fix: update Sonarcloud unit test configuration#82104
Conversation
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
WalkthroughThe main and release CI configurations add a Go 1.26 builder image to controller and addon builds and extend SonarCloud workflows with envtest initialization, Kubernetes API version detection, and filtered Go test arguments. ChangesDynamic scoring framework CI
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
|
/pj-rehearse auto-ack |
|
@dhaiducek: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhaiducek 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 |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse ack Looks like the new EnvTest setup is working. The Sonarcloud config hasn't been fast-forwarded to 5.1, so the failure there is expected. |
|
@dhaiducek: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/cc @rokej |
|
@dhaiducek: 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. |
Summary by CodeRabbit
Updates the Stolostron Dynamic Scoring Framework CI SonarCloud configuration for both main and release-5.1 to run Go unit tests against a properly initialized Kubernetes envtest environment. The SonarCloud job scripts now set
HOME=/tmp, runmake setup-envtest, deriveENVTEST_K8S_VERSIONfrom thek8s.io/apimodule version, generateKUBEBUILDER_ASSETS, and computeSONAR_GO_TEST_ARGSfromgo list ./...while excludinge2epackages. The pipelines also introduce and wire a Go 1.26 builder image (stolostron_builder_go1.26-linux) for these builds.