-
Notifications
You must be signed in to change notification settings - Fork 13
Add Alibaba P0 automated tests #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| uses: ./.github/workflows/main.yaml | ||
| secrets: inherit | ||
| with: | ||
| hosted_provider: alibaba | ||
| rancher_version: ${{ inputs.rancher_version || 'head/2.12' }} | ||
| k3s_version: ${{ inputs.k3s_version || 'v1.32.1+k3s1' }} | ||
| operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }} | ||
| tests_to_run: ${{ inputs.tests_to_run || 'p0_provisioning' }} | ||
| destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }} | ||
| runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }} | ||
| rancher_installed: ${{ inputs.rancher_installed || 'hostname/password' }} | ||
| downstream_cluster_cleanup: ${{ inputs.downstream_cluster_cleanup == true || (github.event_name == 'schedule' && true) }} | ||
| proxy: ${{ inputs.proxy == true }} | ||
| qase_run_id: ${{ inputs.qase_run_id || 'auto' }} No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 10 days ago
To address the problem, add a permissions block to .github/workflows/alibaba.yaml, either at the root or under the jobs: key (for individual jobs). Since all jobs in this workflow simply delegate to another workflow and do not require direct write access to repository contents, the safest minimal permissions block is likely:
permissions:
contents: readThis restricts GITHUB_TOKEN to read-only repository contents, adhering to least privilege. Place the block just after the name: and before the on: key (the recommended convention), so it applies to all jobs in the workflow. No new methods, imports, or definitions are needed.
-
Copy modified lines R3-R4
| @@ -1,5 +1,7 @@ | ||
| # This workflow calls the main workflow with custom variables | ||
| name: Alibaba-E2E | ||
| permissions: | ||
| contents: read | ||
| run-name: Alibaba on Rancher ${{ inputs.rancher_version || 'head/2.13' }} deployed on ${{ inputs.k3s_version || 'v1.34.1+k3s1' }} | ||
|
|
||
| on: |
2eed49d to
ee7e3cf
Compare
4aa98a5 to
fc7f290
Compare
63dfe83 to
209cf00
Compare
|
here is a latest run - https://github.com/rancher/hosted-providers-e2e/actions/runs/20018232647 |
209cf00 to
35d077a
Compare
valaparthvi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. With this being a huge PR, I'm sure there are things that we might have missed, but they should pop up soon enough.
Thank you for working on this!
Please re-run the tests before merging this.
| // All head versions and releases from prime-optimus[-alpha] channel require an extraEnv index of 2 | ||
| // See https://github.com/rancher-sandbox/ele-testhelpers/blob/main/rancher/install.go | ||
| extraEnvIndex := 1 | ||
| if rancherHeadVersion != "" || strings.Contains(rancherChannel, "prime-optimus") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if rancherHeadVersion != "" || strings.Contains(rancherChannel, "prime-optimus") { | |
| if rancherHeadVersion != "" || strings.Contains(rancherChannel, "prime-") { |
The channel has been changed from prime-optimus* to prime-rc and prime-alpha recently in ele-testhelpers. IMO you should bump ele go-module first in this PR including ^ and then do this change everywhere in a follow up PR.
| github.com/onsi/gomega v1.37.0 | ||
| github.com/onsi/gomega v1.38.0 | ||
| github.com/pkg/errors v0.9.1 | ||
| github.com/rancher-sandbox/ele-testhelpers v0.0.0-20250711071119-c33617a1af7a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be bumped to latest version.
thehejik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM at first sight, thanks
What does this PR do?
This PR introduces a comprehensive P0 end-to-end test suite for Alibaba (ACK) hosted clusters. These tests validates the Alibaba Hosted Cluster provisioning.
The new test suite covers the following scenarios:
GH-Run - https://github.com/rancher/hosted-providers-e2e/actions/runs/19662001546/job/56310136502
Which issue(s) this PR fixes:
rancher/shepherd#443
rancher/shepherd#449