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

CM-462: refactor custom-api-ingress-cert related CI steps #60303

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

lunarwhite
Copy link
Member

@lunarwhite lunarwhite commented Jan 3, 2025

Main changes:

  • Updated CI steps definition to expose ENV and trim unnecessary claims.
  • Added checkpoints to check prerequisites like dependencies readiness.
  • Defined common functions which is super useful to reuse within and across shell scripts.
  • Adpoted oc wait instead of raw while-loop for better readability and maintenance.
  • Switched to use the Console route for the Ingress post-check.
  • Tweaked comments for better documentation.

@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 Jan 3, 2025
Copy link
Contributor

openshift-ci bot commented Jan 3, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 3, 2025
@openshift-ci openshift-ci bot added the do-not-merge/invalid-owners-file Indicates that a PR should not merge because it has an invalid OWNERS file in it. label Jan 3, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/invalid-owners-file Indicates that a PR should not merge because it has an invalid OWNERS file in it. label Jan 3, 2025
@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f2-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f2-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f2-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f2-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite
Copy link
Member Author

/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert

@openshift-ci-robot
Copy link
Contributor

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

@lunarwhite lunarwhite changed the title [wip] refactor cert-manager related CI steps CM-462: refactor custom-api-ingress-cert related CI steps Jan 6, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 6, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jan 6, 2025

@lunarwhite: This pull request references CM-462 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set.

In response to this:

TBD

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jan 6, 2025

@lunarwhite: This pull request references CM-462 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set.

In response to this:

Main changes:

  • Updated CI steps definition to expose ENV and trim unnecessary claims.
  • Added checkpoints to check prerequisites like dependencies readiness.
  • Defined common functions which is super useful to reuse within and across shell scripts.
  • Adpoted oc wait instead of raw while-loop for better readability and maintenance.
  • Switched to use the Console route for the Ingress post-check.
  • Tweaked comments for better documentation.

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 openshift-eng/jira-lifecycle-plugin repository.

@lunarwhite
Copy link
Member Author

Rehearsed some CI jobs that invoke changed Refs, results:

periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert: https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/pr-logs/pull/openshift_release/60303/rehearse-60303-periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert/1875582968777412608

openshift-extended-test:
  total: 991
  failures: 5
  errors: 0
  skipped: 316
cucushift-e2e:
  total: 334
  failures: 0
  errors: 0
  skipped: 1

periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert: https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/pr-logs/pull/openshift_release/60303/rehearse-60303-periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert/1875582968806772736

openshift-extended-test:
  total: 1037
  failures: 4
  errors: 0
  skipped: 391
cucushift-e2e:
  total: 334
  failures: 1
  errors: 0
  skipped: 1

periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert: https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/pr-logs/pull/openshift_release/60303/rehearse-60303-periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert/1875582968693526528

openshift-extended-test:
  total: 1083
  failures: 4
  errors: 0
  skipped: 389
cucushift-e2e:
  total: 333
  failures: 1
  errors: 0
  skipped: 1

The pass ratio is quite high and there is no decrease compared to the job results prior to this PR. (Note: The azure-aks-hypershift-full-cert-guest jobs were failing due to the cluster provision error, which is not related to this PR.)

@lunarwhite lunarwhite marked this pull request as ready for review January 6, 2025 02:35
@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 Jan 6, 2025
@openshift-ci openshift-ci bot requested review from dgoodwin and neisw January 6, 2025 02:36
Copy link
Contributor

openshift-ci bot commented Jan 6, 2025

@lunarwhite: The following tests 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/rehearse/periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 27440dc link unknown /pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14
ci/rehearse/periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 27440dc link unknown /pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14
ci/rehearse/periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert 805189e link unknown /pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert
ci/rehearse/periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert 805189e link unknown /pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert
ci/rehearse/periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert 805189e link unknown /pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert

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.

@lunarwhite
Copy link
Member Author

Rehearsal results see: #60303 (comment)

/pj-rehearse ack
/lgtm

Copy link
Contributor

openshift-ci bot commented Jan 6, 2025

@lunarwhite: you cannot LGTM your own PR.

In response to this:

Rehearsal results see: #60303 (comment)

/pj-rehearse ack
/lgtm

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.

@openshift-ci-robot
Copy link
Contributor

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

@openshift-ci-robot openshift-ci-robot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jan 6, 2025
@openshift-ci-robot openshift-ci-robot removed the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jan 7, 2025
@openshift-ci-robot
Copy link
Contributor

[REHEARSALNOTIFIER]
@lunarwhite: 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
periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f2-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-4.18-upgrade-from-stable-4.18-aws-ipi-byo-iam-role-efs-mini-perm-arm-f60-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-multi-nightly-aws-ipi-byo-iam-role-efs-mini-perm-arm-f7-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-4.17-upgrade-from-stable-4.17-aws-ipi-byo-iam-role-efs-arm-f60-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-gcp-ipi-disk-encryption-arm-f14-cert-manager-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-multi-nightly-4.19-upgrade-from-stable-4.18-aws-ipi-byo-iam-role-efs-fips-amd-f28-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.19-amd64-nightly-azure-aks-hypershift-full-cert-guest-f14 N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.16-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f28-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-aws-ipi-byo-iam-role-efs-arm-f7-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.18-multi-nightly-4.18-upgrade-from-stable-4.17-aws-ipi-byo-iam-role-efs-fips-amd-f28-custom-cert N/A periodic Registry content changed
periodic-ci-openshift-openshift-tests-private-release-4.17-multi-nightly-4.17-upgrade-from-stable-4.16-aws-ipi-byo-iam-role-efs-fips-amd-f28-custom-cert N/A periodic Registry content 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 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.

@hector-vido
Copy link
Contributor

/retest

Copy link
Member

@KeenonLee KeenonLee left a comment

Choose a reason for hiding this comment

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

/lgtm

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

openshift-ci bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KeenonLee, lunarwhite

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

@lunarwhite
Copy link
Member Author

/pj-rehearse ack

@openshift-ci-robot
Copy link
Contributor

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

@openshift-ci-robot openshift-ci-robot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jan 22, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 1e7d9a2 into openshift:master Jan 22, 2025
11 checks passed
@lunarwhite lunarwhite deleted the refine branch January 22, 2025 07:37
fjglira pushed a commit to fjglira/release that referenced this pull request Feb 5, 2025
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/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants