Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-8266: Downstream Sync 2023-09-19 #824

Merged
merged 11 commits into from
Sep 20, 2023
Merged

OCPBUGS-8266: Downstream Sync 2023-09-19 #824

merged 11 commits into from
Sep 20, 2023

Conversation

liornoy
Copy link
Contributor

@liornoy liornoy commented Sep 13, 2023

This PR brings the K8S reporter commit from upstream.
This enables us to run the E2E tests with the -report flag and
get a K8S reporter to help us troubleshoot failed tests.

zeeke and others added 6 commits September 6, 2023 10:36
If a user creates an SriovNetwork with a network namespace
that doesn't exist, retrying reconciling with an exponential
backoff is not efficient, as the routing will fail until the namespace
is created.

This patch makes the controller watch Namespace resource
creation and reconcile the related SriovNetworks if needed.

Signed-off-by: Andrea Panattoni <[email protected]>
Apply the same namespace reaction as the SriovNetwork

Signed-off-by: Andrea Panattoni <[email protected]>
Modify the k8sreporter/reporter.go to utilize
the latest external k8s-reporter package.

The new reporter still outputs the same output as before
plus the CRDs: SriovOperatorConfig and SriovNetwork.

It is used by the conformance and validation suites,
consumes the flag "-report" as the path to where the dir
"sriov_failure_report.log" will be created and hold all of
the failed tests logs.
Also removed the unused `-junit` flag, as we're using Ginkgo's
built it --junit-report tool.

Added the `-report` flag to the run-e2e-conformance.sh script.

Signed-off-by: Lior Noy <[email protected]>
Utilize the k8s-reporter in the e2e tests
@liornoy
Copy link
Contributor Author

liornoy commented Sep 13, 2023

/retest

design doc for the externally-manage-pf support
@liornoy
Copy link
Contributor Author

liornoy commented Sep 13, 2023

/retest

@zeeke
Copy link
Contributor

zeeke commented Sep 14, 2023

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2023
switch {
case ns == namespaces.Test:
return true
case ns == "openshift-sriov-network-operator":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohhh I miss this one in the u/s review??
there is a variable for the operator namespace please use that one and not this string.
you will need to open the PR u/s first

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SchSeba I am looking at the code and don't see a variable that is available for use.
I mean, there is a private const in the controllers package, and a private var in the conformance/tests package.
Do you propose to export the one in the conformance/tests package?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @SchSeba is referring to the OPEATOR_NAMESPACE environment variable:
It's used in other places in the test suite:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR upstream merged, I rebased this one.

SchSeba and others added 4 commits September 14, 2023 15:33
SriovNetwork: react on namespace creation
This commit modifies the k8s reporter to fetch the namesapce
from the env var OPERATOR_NAMESPACE.

Signed-off-by: Lior Noy <[email protected]>
Use the OPERATOR_NAMESPACE var in the k8sreporter
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2023
@liornoy liornoy changed the title Downstream Sync 2023-09-13 Downstream Sync 2023-09-19 Sep 19, 2023
@zeeke
Copy link
Contributor

zeeke commented Sep 19, 2023

/retitle OCPBUGS-8266: Downstream Sync 2023-09-19
/lgtm

@openshift-ci openshift-ci bot changed the title Downstream Sync 2023-09-19 OCPBUGS-8266: Downstream Sync 2023-09-19 Sep 19, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Sep 19, 2023
@openshift-ci-robot
Copy link
Contributor

@liornoy: This pull request references Jira Issue OCPBUGS-8266, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @zhaozhanqi

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This PR brings the K8S reporter commit from upstream.
This enables us to run the E2E tests with the -report flag and
get a K8S reporter to help us troubleshoot failed tests.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot requested a review from zhaozhanqi September 19, 2023 16:29
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2023
@liornoy
Copy link
Contributor Author

liornoy commented Sep 20, 2023

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2023

@liornoy: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@SchSeba
Copy link
Contributor

SchSeba commented Sep 20, 2023

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liornoy, SchSeba, zeeke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2023
@openshift-merge-robot openshift-merge-robot merged commit b5d2a17 into openshift:master Sep 20, 2023
@openshift-ci-robot
Copy link
Contributor

@liornoy: Jira Issue OCPBUGS-8266: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-8266 has been moved to the MODIFIED state.

In response to this:

This PR brings the K8S reporter commit from upstream.
This enables us to run the E2E tests with the -report flag and
get a K8S reporter to help us troubleshoot failed tests.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants