Repository navigation
OCPBUGS-85436: Make random test assertions format-based instead of value-based - #588
kunalmemane wants to merge 1 commit into
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. |
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.