Skip to content

Conversation

@wangke19
Copy link
Contributor

@wangke19 wangke19 commented Aug 18, 2025

The pr is to verify the of OpenShift Tests Extension scaffold for oauth-apiserver( openshift/oauth-apiserver#138)

@wangke19
Copy link
Contributor Author

/pj-rehearse all

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci-robot
Copy link
Contributor

@wangke19: job(s): , all either don't exist or were not found to be affected, and cannot be rehearsed

@wangke19
Copy link
Contributor Author

/pj-rehearse pull-ci-openshift-oauth-apiserver-master-e2e-tests-extension

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@wangke19
Copy link
Contributor Author

/pj-rehearse pull-ci-openshift-oauth-apiserver-release-4.20-e2e-tests-extension

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@wangke19 wangke19 changed the title [CNTRLPLANE-1259]Call OTE in the ci for oauth-apiserver in order to ensure that the tests will be execute always [WIP][CNTRLPLANE-1259]Call OTE in the ci for oauth-apiserver in order to ensure that the tests will be execute always Aug 19, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 19, 2025
@wangke19
Copy link
Contributor Author

Failed e2e-tests-extension is fixed in openshift/oauth-apiserver#140

@wangke19 wangke19 changed the title [WIP][CNTRLPLANE-1259]Call OTE in the ci for oauth-apiserver in order to ensure that the tests will be execute always [CNTRLPLANE-1259]Call OTE in the ci for oauth-apiserver in order to ensure that the tests will be execute always Aug 19, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 19, 2025
@gangwgr
Copy link
Contributor

gangwgr commented Aug 19, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2025
@wangke19
Copy link
Contributor Author

/pj-rehearse

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-bot
Copy link
Contributor

Issues in openshift/release go stale after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 15d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 19, 2025
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2025
@wangke19
Copy link
Contributor Author

/pj-rehearse

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@wangke19
Copy link
Contributor Author

/remove-lifecycle stale

@openshift-ci openshift-ci bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 19, 2025
@wangke19
Copy link
Contributor Author

/pj-rehearse

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@gangwgr
Copy link
Contributor

gangwgr commented Sep 22, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 22, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gangwgr, wangke19
Once this PR has been reviewed and has the lgtm label, please assign p0lyn0mial 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

Copy link
Contributor

@p0lyn0mial p0lyn0mial left a comment

Choose a reason for hiding this comment

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

could you split this pr into two commits?

one commit that holds changes made by you and the other commit for holding generated changes.

also could you share a link to the doc that describe ote ?

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 22, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2025

New changes are detected. LGTM label has been removed.

@openshift-ci-robot
Copy link
Contributor

[REHEARSALNOTIFIER]
@wangke19: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-oauth-apiserver-master-e2e-tests-extension openshift/oauth-apiserver presubmit Presubmit changed
pull-ci-openshift-oauth-apiserver-release-4.20-e2e-tests-extension openshift/oauth-apiserver presubmit Presubmit changed
pull-ci-openshift-oauth-apiserver-release-4.21-e2e-tests-extension openshift/oauth-apiserver presubmit Presubmit changed
pull-ci-openshift-oauth-apiserver-release-4.22-e2e-tests-extension openshift/oauth-apiserver presubmit Presubmit changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@wangke19
Copy link
Contributor Author

/pj-rehearse

@openshift-ci-robot
Copy link
Contributor

@wangke19: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@wangke19
Copy link
Contributor Author

could you split this pr into two commits?

one commit that holds changes made by you and the other commit for holding generated changes.

also could you share a link to the doc that describe ote ?

Done.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2025

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

echo "Build binary oauth-apiserver-tests-ext"
make tests-ext-build
echo "Running ./oauth-apiserver-tests-ext with sanity test"
./oauth-apiserver-tests-ext run-suite openshift/oauth-apiserver/conformance/parallel -j ${ARTIFACT_DIR}/junit_$(shell date +%Y%m%d-%H%M%S).xml
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't openshift/oauth-apiserver/conformance/parallel run https://github.com/openshift/oauth-apiserver/blob/34b8999cc261b993cb2a41920f686b88286002d9/test/e2e/tokenreviews.go#L23 ?

how do we add tests to a suite for an existing repo ?

Copy link
Contributor Author

@wangke19 wangke19 Sep 23, 2025

Choose a reason for hiding this comment

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

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 that the idea behind "openshift-tests-extension" is to be able to execute tests defined for a component/repository/operator. In our case it is about executing tests defined in the oauth-apiserver repo. Right?

Having said that should tests be added to the defined suites ? Is this something we will be doing in the future?

Copy link
Contributor Author

@wangke19 wangke19 Sep 23, 2025

Choose a reason for hiding this comment

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

We will add test cases to the corresponding suite based on the test attributes, such as parallel and serial.

Is this something we will be doing in the future?

Yes, we will add some tests to tests-extension, maybe move some from origin, some from bugs, some from features.

echo "Build binary oauth-apiserver-tests-ext"
make tests-ext-build
echo "Running ./oauth-apiserver-tests-ext with sanity test"
./oauth-apiserver-tests-ext run-suite openshift/oauth-apiserver/conformance/parallel -j ${ARTIFACT_DIR}/junit_$(shell date +%Y%m%d-%H%M%S).xml
Copy link
Contributor

Choose a reason for hiding this comment

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

The doc you referenced shows that the name of the binary should be my-component-tests which translates to oauth-apiserver-tests. Should we change the binary name? Is there a convention ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no specific convention for the name of the binary, but we use component name of github repo to name, that's easy to manage and identify. From extensionBinaries registry https://github.com/openshift/origin/blob/main/pkg/test/extensions/binary.go#L167, we can see their names are different, but at least components of control plane are unified.

echo "Build binary oauth-apiserver-tests-ext"
make tests-ext-build
echo "Running ./oauth-apiserver-tests-ext with sanity test"
./oauth-apiserver-tests-ext run-suite openshift/oauth-apiserver/conformance/parallel -j ${ARTIFACT_DIR}/junit_$(shell date +%Y%m%d-%H%M%S).xml
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 that the idea behind "openshift-tests-extension" is to be able to execute tests defined for a component/repository/operator. In our case it is about executing tests defined in the oauth-apiserver repo. Right?

Having said that should tests be added to the defined suites ? Is this something we will be doing in the future?

echo "Build binary oauth-apiserver-tests-ext"
make tests-ext-build
echo "Running ./oauth-apiserver-tests-ext with sanity test"
./oauth-apiserver-tests-ext run-suite openshift/oauth-apiserver/conformance/parallel -j ${ARTIFACT_DIR}/junit_$(shell date +%Y%m%d-%H%M%S).xml
Copy link
Contributor

Choose a reason for hiding this comment

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

should we define a makefile target that would run a default test suite ? by doing so we wouldn't have to change the CI job definition if we wanted to change something.

Copy link
Contributor Author

@wangke19 wangke19 Sep 23, 2025

Choose a reason for hiding this comment

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

I think that the idea behind "openshift-tests-extension" is to be able to execute tests defined for a component/repository/operator. In our case it is about executing tests defined in the oauth-apiserver repo. Right?

Our case is executed for oauth-apiserver repo, also register the binary in origin’s extension registry.
If your repo’s extension binary PR hasn’t been merged, you can use multi-PR testing to test them together.
Here we just have merely implemented an example that can run smoothly in the Prow CI.

test:
- as: tests-extension
commands: |
echo "Build binary oauth-apiserver-tests-ext"
Copy link
Contributor

Choose a reason for hiding this comment

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

which test suites should this job be executing ? is there a convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Basically consistent with the origin we have done before, parallel cases in parallel CI job and serial cases in serial CI job. These will be reflected in the test names, see https://github.com/openshift/oauth-apiserver/blob/master/test/extended/main.go#L9

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In conclusion, the CI job name e2e-tests-extension here may not necessarily be the names we will use in the future, maybe e2e-tests-extension-aws, e2e-tests-extension-aws-serial are CI job names.

@openshift-bot
Copy link
Contributor

Issues in openshift/release go stale after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 15d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 23, 2025
@openshift-bot
Copy link
Contributor

Stale issue in openshift/release rot after 15d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 15d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 7, 2025
@openshift-bot
Copy link
Contributor

Rotten issues in openshift/release close after 15d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this Nov 22, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 22, 2025

@openshift-bot: Closed this PR.

In response to this:

Rotten issues in openshift/release close after 15d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants