Skip to content

OCPBUGS-85436: Make random suffix tests toolchain-independent - #560

Open
redhat-chai-bot wants to merge 1 commit into
openshift:release-5.0from
redhat-chai-bot:fix-pr-559-rand-suffix
Open

redhat-chai-bot wants to merge 1 commit into
openshift:release-5.0from
redhat-chai-bot:fix-pr-559-rand-suffix

Conversation

@redhat-chai-bot

@redhat-chai-bot redhat-chai-bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Tagged make test passed for all packages in a disposable Fedora 42 container.
  • make verify passed, including gofmt and import checks.
  • git diff --check passed.
  • The final diff contains only pkg/build/builder/common_test.go.

Failure reproduced by: release-5.0 unit job.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 54d82810-fb0d-4f6b-a394-e19e5d318d5d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 23, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@redhat-chai-bot: This pull request references Jira Issue OCPBUGS-104323, which is invalid:

  • expected Jira Issue OCPBUGS-104323 to depend on a bug targeting a version in 5.1.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

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. After the module/toolchain update, the release-5.0 unit job failed because these tests expected the old fixed suffix f1f85ff5.

Validation

  • Tagged make test passed for all packages in a disposable Fedora 42 container.
  • make verify passed, including gofmt and import checks.
  • git diff --check passed.
  • Pre-commit review found no issues.

Failure reproduced by: release-5.0 unit job.


AI-generated. Review for accuracy.

@kunalmemane requested via Chai Bot

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
openshift-ci Bot requested review from moebasim and prabhapa September 23, 2026 07:32
@openshift-ci

openshift-ci Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found here.

Details 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

@kunalmemane

Copy link
Copy Markdown
Member

/pipeline required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-builds
/test e2e-aws-ovn-image-ecosystem

@redhat-chai-bot redhat-chai-bot changed the title OCPBUGS-104323: Make random suffix tests toolchain-independent OCPBUGS-85436: Make random suffix tests toolchain-independent Sep 23, 2026
@openshift-ci-robot openshift-ci-robot removed the jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. label Sep 23, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@redhat-chai-bot: This pull request references Jira Issue OCPBUGS-85436, which is invalid:

  • expected the bug to target the "5.0.0" version, but no target version was set
  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-85436 to depend on a bug targeting a version in 5.1.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

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

  • Tagged make test passed for all packages in a disposable Fedora 42 container.
  • make verify passed, including gofmt and import checks.
  • git diff --check passed.
  • The final diff contains only pkg/build/builder/common_test.go.

Failure reproduced by: release-5.0 unit job.

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.

@kunalmemane

Copy link
Copy Markdown
Member

/pipeline required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-builds
/test e2e-aws-ovn-image-ecosystem

@redhat-chai-bot

Copy link
Copy Markdown
Contributor Author

/retest-required


AI-generated. Review for accuracy.

@openshift-ci

openshift-ci Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

@redhat-chai-bot: 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/security fe88bd3 link false /test security

Full PR test history. Your PR dashboard.

Details

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.

@ocp-sustaining-admins

Copy link
Copy Markdown

/retest-required

@kunalmemane

Copy link
Copy Markdown
Member

/jira refresh

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kunalmemane: This pull request references Jira Issue OCPBUGS-85436, which is invalid:

  • expected the bug to target the "5.0.z" version, but no target version was set
  • expected Jira Issue OCPBUGS-85436 to depend on a bug targeting a version in 5.1.0 and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/jira refresh

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.

@kunalmemane

Copy link
Copy Markdown
Member

/jira refresh

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kunalmemane: This pull request references Jira Issue OCPBUGS-85436, which is invalid:

  • expected the bug to target the "5.0.z" version, but no target version was set
  • expected Jira Issue OCPBUGS-85436 to depend on a bug targeting a version in 5.1.0 and in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/jira refresh

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.

@kunalmemane

Copy link
Copy Markdown
Member

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Nov 27, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kunalmemane: This pull request references Jira Issue OCPBUGS-85436, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.z) matches configured target version for branch (5.0.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-148070 is in the state Closed (Done), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-148070 targets the "5.1.0" version, which is one of the valid target versions: 5.1.0
  • bug has dependents
Details

In response to this:

/jira refresh

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.

@kunalmemane

Copy link
Copy Markdown
Member

Fix covered by #588

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

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants