Skip to content

ROSAENG-65904 | fix: sync structure tests and CI fixes - #3531

Open
Alcamech wants to merge 7 commits into
openshift:hyperfleet-v2from
Alcamech:fix/structure-test-after-pathbind-regen
Open

ROSAENG-65904 | fix: sync structure tests and CI fixes #3531
Alcamech wants to merge 7 commits into
openshift:hyperfleet-v2from
Alcamech:fix/structure-test-after-pathbind-regen

Conversation

@Alcamech

@Alcamech Alcamech commented Sep 10, 2026

Copy link
Copy Markdown

Summary

  • Sync command_args.yml with v0.1.9 pathbind regen (remove stale issuer-url, add platform / provisioner-config-name / role-arn)
  • Add cluster_create_normalize_test.go regression test for unset bool normalization
  • Fix pre-push/CI failures left on hyperfleet-v2 (lint, whoami test label, operatorroles test, network vet)

Context

#3510 merged the pathbind v0.1.9 vendor bump and bool normalization fix. Structure tests and a few unit tests were out of sync. #3529 is redundant for the pathbind fix; this PR carries only the remaining follow-up.

Test plan

  • go test ./cmd/rosa/...
  • go test ./pkg/hyperfleet/pathbind/...
  • make lint
  • pre-push checks (format, build, lint, coverage, unit tests)

Remove stale issuer-url entries and add flags from v0.1.9 pathbind
regen. Add regression test for unset bool normalization.
Line-length, staticcheck, and unused-code fixes so pre-push checks pass
on hyperfleet-v2.
openshift#3510 renamed the hyperfleet URL field from Platform API to V2 API.
Use fmt.Print for template body that already ends with a newline.
@coderabbitai

coderabbitai Bot commented Sep 10, 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 YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 34763330-80bc-4eda-af8f-1f26e23a53a1

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.

@Alcamech Alcamech changed the title ROSAENG-65904 | fix: sync structure tests and CI fixes after #3510 ROSAENG-65904 | fix: sync structure tests and CI fixes Sep 11, 2026
"github.com/spf13/cobra"
)

func TestNormalizeClusterCreateInput_clearsUnsetSerializeImagePulls(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The test proves the normalization mechanism works for *bool fields. Consider extending to a table-driven test over all *bool fields (DeleteProtection, MultiArch) to guard against future codegen regressions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for the comments, just see this now.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done in 674aacf — table-driven create/update tests now cover delete-protection, serialize-image-pulls, and multi-arch.

}
}

func TestNormalizeClusterUpdateInput_clearsUnsetSerializeImagePulls(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: create has both unset-clears and changed-keeps tests; update only has unset-clears. Consider adding the symmetric 'keeps changed' case for update.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added TestNormalizeClusterUpdateInput_keepsChangedBoolFlags with the same table-driven pattern as create.

@cdoan1

cdoan1 commented Sep 11, 2026

Copy link
Copy Markdown

/lgtm

@cdoan1

cdoan1 commented Sep 11, 2026

Copy link
Copy Markdown

/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2026
@openshift-ci

openshift-ci Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

1 similar comment
@openshift-ci

openshift-ci Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

Cover all *bool flags on create/update and add symmetric
keeps-changed cases for update per review feedback.
Clear AWS_REGION from the environment so the no-extractable-region
case is not masked when the shell has a region set from e2e runs.
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2026
@openshift-ci

openshift-ci Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants