Repository navigation
OCPBUGS-85436: Make random test assertions format-based instead of value-based - #588
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
@kunalmemane: This pull request references Jira Issue OCPBUGS-85436, which is valid. 7 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
/lgtm |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: prabhapa The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-aws-ovn-builds |
2 similar comments
|
/test e2e-aws-ovn-builds |
|
/test e2e-aws-ovn-builds |
|
@kunalmemane: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/label backport-risk-assessed |
|
@prabhapa: This PR has been marked as verified by DetailsIn response to this:
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. |
8ceba2d
into
openshift:release-5.0
|
@kunalmemane: Jira Issue OCPBUGS-85436: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-85436 has not been moved to the MODIFIED state. This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload. DetailsIn response to this:
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. |
|
/cherry-pick release-4.22 release-4.21 release-4.20 |
|
@kunalmemane: new pull request created: #589 DetailsIn response to this:
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. |
|
/jira refresh |
|
@kunalmemane: Jira Issue Verification Checks: Jira Issue OCPBUGS-85436 Jira Issue OCPBUGS-85436 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 DetailsIn response to this:
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. |
|
Fix included in release 5.0.0-0.nightly-2026-11-30-164959 |
Test improvements
rewrote TestRandomBuildTag, TestRandomBuildTagNoDupes, and TestContainerName to use format/structure assertions instead of hardcoded random values.
What does this pull request do?
Update pkg/build/builder/common_test.go so TestRandomBuildTag and TestContainerName validate the required name structure and 8-character lowercase hexadecimal suffix instead of relying on the old global math/rand.Seed sequence. Production code is unchanged.
Why is this needed?
Go 1.24 and later no longer make the deprecated top-level rand.Seed deterministic by default. The release-5.0 unit job failed because these tests expected the old fixed suffix f1f85ff5.
Validation
Failure reproduced by: release-5.0 unit job.