Skip to content

UPSTREAM: <carry>: Initialize testContext before generating ginkgo tests #2309

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jsafrane
Copy link

SELinux tests require testContext to be initialized before ginkgo discovers their closures (i.e. before kubeTestsExtension.AddSuite() is called).

Split the testContext initialization in two parts:

initializeCommonTestFramework() files the fields that are either static or can be discovered easily and are needed to generate the tests by ginkgo.

updateTestFrameworkForTests() files the rest, mostly from the cloud provider env. var. and adds fields necessary to actually run the tests.

SELinux tests require testContext to be initialized before ginkgo discovers
their closures (i.e. before kubeTestsExtension.AddSuite() is called).

Split the testContext initialization in two parts:

initializeCommonTestFramework() files the fields that are either static or can be
discovered easily and are needed to generate the tests by ginkgo.

updateTestFrameworkForTests() files the rest, mostly from the cloud
provider env. var. and adds fields necessary to actually run the tests.
@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label May 21, 2025
@openshift-ci-robot
Copy link

@jsafrane: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci openshift-ci bot requested review from p0lyn0mial and tkashem May 21, 2025 15:52
Copy link

openshift-ci bot commented May 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jsafrane
Once this PR has been reviewed and has the lgtm label, please assign benluddy for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@jsafrane
Copy link
Author

/retest

failed commit on ref "index-image-registry.openshift-image-registry.svc:5000/ci-op-hrr54ccq/pipeline:base-machine-with-rpms@sha256:19c11289983ec4c45033e1a103208016afe08dda20e69ad7f714e10a23d57164": [...] 500 Internal Server Error}

@jsafrane
Copy link
Author

jsafrane commented May 22, 2025

I don't like e2e-aws-csi failure, it looks like a regression. Debugging...
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 22, 2025
@openshift-ci-robot
Copy link

@jsafrane: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

…rkForTests

It logs, and the logs go right to stdout, where openshift-tests reads json
from "k8s-tests-ext list" and "info".
@jsafrane jsafrane force-pushed the preinitialize-testconfig branch from 030d3ea to 7c0d17a Compare May 22, 2025 15:14
@openshift-ci-robot
Copy link

@jsafrane: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

Copy link

openshift-ci bot commented May 22, 2025

@jsafrane: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agnostic-ovn-cmd 7c0d17a link false /test e2e-agnostic-ovn-cmd

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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants