-
Notifications
You must be signed in to change notification settings - Fork 38
test: add backwards compatibility test setup [WIP] #1065
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
Merged
ryanzhang-oss
merged 10 commits into
Azure:main
from
michaelawyu:test/backwards-compatibility
Mar 4, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3f6acfd
Added the test cases + setup
michaelawyu 9caf61b
Minor adjustments
michaelawyu 4033e44
Minor adjustments
michaelawyu f3a9598
Minor adjustments
michaelawyu 84fddaa
Minor adjustments
michaelawyu ee154d5
Minor adjustments
michaelawyu 1a46fa6
Merge branch 'main' into test/backwards-compatibility
ryanzhang-oss 273e8b5
WIP
michaelawyu f83d6ec
Added more test specs
michaelawyu f203e97
Merge commit 'f83d6ec' into test/backwards-compatibility
michaelawyu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release-* | ||
| workflow_dispatch: {} | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - release-* | ||
| paths-ignore: [docs/**, "**.md", "**.mdx", "**.png", "**.jpg"] | ||
|
|
||
| env: | ||
| GO_VERSION: '1.22.12' | ||
|
|
||
| jobs: | ||
| detect-noop: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| noop: ${{ steps.noop.outputs.should_skip }} | ||
| steps: | ||
| - name: Detect No-op Changes | ||
| id: noop | ||
| uses: fkirc/skip-duplicate-actions@v5.3.1 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| do_not_skip: '["workflow_dispatch", "schedule", "push"]' | ||
| concurrent_skipping: false | ||
|
|
||
| hub-agent-backward-compatibility: | ||
| runs-on: ubuntu-latest | ||
| needs: detect-noop | ||
| if: needs.detect-noop.outputs.noop != 'true' | ||
| steps: | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Ginkgo CLI | ||
| run: | | ||
| go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.1 | ||
|
|
||
| - name: Prepare the fleet | ||
| run: cd test/upgrade && chmod +x setup.sh && ./setup.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
| HUB_SERVER_URL: 'https://172.19.0.2:6443' | ||
|
|
||
| - name: Run the Before suite | ||
| run: cd test/upgrade/before && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Upgrade the Fleet hub agent | ||
| run: cd test/upgrade && chmod +x upgrade.sh && UPGRADE_HUB_SIDE=true ./upgrade.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Run the After suite | ||
| run: cd test/upgrade/after && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| member-agent-backward-compatibility: | ||
| runs-on: ubuntu-latest | ||
| needs: detect-noop | ||
| if: needs.detect-noop.outputs.noop != 'true' | ||
| steps: | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Ginkgo CLI | ||
| run: | | ||
| go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.1 | ||
|
|
||
| - name: Prepare the fleet | ||
| run: cd test/upgrade && chmod +x setup.sh && ./setup.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
| HUB_SERVER_URL: 'https://172.19.0.2:6443' | ||
|
|
||
| - name: Run the Before suite | ||
| run: cd test/upgrade/before && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Upgrade the Fleet member agent | ||
| run: cd test/upgrade && chmod +x upgrade.sh && UPGRADE_MEMBER_SIDE=true ./upgrade.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Run the After suite | ||
| run: cd test/upgrade/after && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| full-backward-compatibility: | ||
| runs-on: ubuntu-latest | ||
| needs: detect-noop | ||
| if: needs.detect-noop.outputs.noop != 'true' | ||
| steps: | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: ${{ env.GO_VERSION }} | ||
|
|
||
| - name: Check out code into the Go module directory | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Ginkgo CLI | ||
| run: | | ||
| go install github.com/onsi/ginkgo/v2/ginkgo@v2.19.1 | ||
|
|
||
| - name: Prepare the fleet | ||
| run: cd test/upgrade && chmod +x setup.sh && ./setup.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
| HUB_SERVER_URL: 'https://172.19.0.2:6443' | ||
|
|
||
| - name: Run the Before suite | ||
| run: cd test/upgrade/before && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Upgrade all Fleet agents | ||
| run: cd test/upgrade && chmod +x upgrade.sh && UPGRADE_HUB_SIDE=true UPGRADE_MEMBER_SIDE=true ./upgrade.sh 3 && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
||
| - name: Run the After suite | ||
| run: cd test/upgrade/after && ginkgo -v -p . && cd - | ||
| env: | ||
| KUBECONFIG: '/home/runner/.kube/config' | ||
|
|
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this file required ? |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What is this file for?