-
Notifications
You must be signed in to change notification settings - Fork 130
[manta] CI runtime upgrade test and github templates improvements #393
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
+11
−146
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a72c6f2
Use latest client for base in CI runtime upgrade test
ghzlatarev cdcd704
Fix test
ghzlatarev b6f8912
Remove build and test checks temporariliy
ghzlatarev bfd8d2e
Revert temporary changes
ghzlatarev 8fd064e
Fix
ghzlatarev 44606c6
Revert temp changes
ghzlatarev 514a769
Fix merge conflicts with manta
ghzlatarev f95684b
Reduce expected blocks for integration-tests CI workflow, in order to…
ghzlatarev 514b2c8
Remove unnecessary lines in the PR template
ghzlatarev 6c864ba
Move someo of the chelist items from PR template to Release template
ghzlatarev 763ea05
Spelling correction
ghzlatarev e9f149c
Revert change to target relay and para blocks in integration test
ghzlatarev e84ee6f
Resolve merge conflicts with manta
ghzlatarev 2275fed
Be more specific about code freeze and runtime migration checks
ghzlatarev 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
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
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 |
|---|---|---|
|
|
@@ -175,98 +175,6 @@ jobs: | |
| with: | ||
| name: config-for-integration-test | ||
| path: .github/resources/config-for-integration-test.json | ||
|
|
||
| build-node-base: | ||
| needs: | ||
| - start-node-builder-base | ||
| - check-for-runtime-upgrade | ||
| runs-on: ${{ needs.start-node-builder-base.outputs.runner-label }} | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
| steps: | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| ref: 'manta' | ||
| - | ||
| name: install sccache | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| env: | ||
| SCCACHE_RELEASE_URL: https://github.com/mozilla/sccache/releases/download | ||
| SCCACHE_VERSION: v0.2.15 | ||
| run: | | ||
| SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl | ||
| mkdir -p $HOME/.local/bin | ||
| curl -L "$SCCACHE_RELEASE_URL/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz | ||
| mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache | ||
| chmod +x $HOME/.local/bin/sccache | ||
| echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: cache cargo registry | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| key: cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| cargo- | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: cache sccache | ||
| uses: actions/cache@v2 | ||
| continue-on-error: false | ||
| with: | ||
| path: /home/runner/.cache/sccache | ||
| key: sccache-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| sccache- | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: start sccache server | ||
| run: sccache --start-server | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: init | ||
| run: | | ||
| curl -s https://sh.rustup.rs -sSf | sh -s -- -y | ||
| source ${HOME}/.cargo/env | ||
| rustup toolchain install stable | ||
| rustup toolchain install nightly | ||
| rustup default stable | ||
| rustup target add wasm32-unknown-unknown --toolchain nightly | ||
| cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force | ||
| rustup update | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: build | ||
| env: | ||
| RUST_BACKTRACE: full | ||
| RUSTC_WRAPPER: sccache | ||
| SCCACHE_CACHE_SIZE: 2G | ||
| SCCACHE_DIR: /home/runner/.cache/sccache | ||
| run: | | ||
| source ${HOME}/.cargo/env | ||
| cargo build --profile production --verbose | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: stop sccache server | ||
| run: sccache --stop-server || true | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: strip | ||
| run: | | ||
| strip target/production/manta | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
| name: upload | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: manta-base | ||
| path: target/production/manta | ||
| - | ||
| name: upload | ||
| uses: actions/upload-artifact@v2 | ||
|
|
@@ -276,7 +184,6 @@ jobs: | |
|
|
||
| runtime-upgrade-test: | ||
| needs: | ||
| - build-node-base | ||
| - build-node-current | ||
| - build-runtimes | ||
| - start-runtime-upgrade-tester | ||
|
|
@@ -308,7 +215,6 @@ jobs: | |
| name: fetch manta-base | ||
| uses: actions/download-artifact@v2 | ||
| with: | ||
| # Workaround for 0.9.16 breaking change, using the latest binary instead for base. | ||
| name: manta | ||
| - | ||
| if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }} | ||
|
|
@@ -988,48 +894,6 @@ jobs: | |
| runner-label: ${{ needs.start-node-builder-current.outputs.runner-label }} | ||
| aws-instance-id: ${{ needs.start-node-builder-current.outputs.aws-instance-id }} | ||
|
|
||
| start-node-builder-base: | ||
| runs-on: ubuntu-20.04 | ||
| outputs: | ||
| runner-label: ${{ steps.start-self-hosted-runner.outputs.runner-label }} | ||
| aws-region: ${{ steps.start-self-hosted-runner.outputs.aws-region }} | ||
| aws-instance-id: ${{ steps.start-self-hosted-runner.outputs.aws-instance-id }} | ||
| steps: | ||
| - | ||
| id: start-self-hosted-runner | ||
| uses: audacious-network/[email protected] | ||
| with: | ||
| mode: start | ||
| github-token: ${{ secrets.GH_SHR_TOKEN }} | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-instance-ssh-public-key: ${{ env.AWS_INSTANCE_SSH_PUBLIC_KEY }} | ||
| aws-region: ${{ env.AWS_REGION }} | ||
| aws-subnet-id: ${{ env.AWS_SUBNET_ID }} | ||
| aws-security-group-id: ${{ env.AWS_SECURITY_GROUP_ID }} | ||
| aws-instance-type: ${{ env.AWS_INSTANCE_TYPE }} # 32 vcpu, 64gb ram, $1.392 hourly | ||
| aws-instance-root-volume-size: 32 | ||
| aws-image-search-pattern: ${{ env.AWS_IMAGE_SEARCH_PATTERN }} | ||
| aws-image-search-owners: ${{ env.AWS_IMAGE_SEARCH_OWNERS }} # canonical | ||
|
|
||
| stop-node-builder-base: | ||
| needs: | ||
| - start-node-builder-base | ||
| - build-node-base | ||
| runs-on: ubuntu-20.04 | ||
| if: ${{ always() }} | ||
| steps: | ||
| - | ||
| uses: audacious-network/[email protected] | ||
| with: | ||
| mode: stop | ||
| github-token: ${{ secrets.GH_SHR_TOKEN }} | ||
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| aws-region: ${{ needs.start-node-builder-base.outputs.aws-region }} | ||
| runner-label: ${{ needs.start-node-builder-base.outputs.runner-label }} | ||
| aws-instance-id: ${{ needs.start-node-builder-base.outputs.aws-instance-id }} | ||
|
|
||
| start-integration-tester: | ||
| runs-on: ubuntu-20.04 | ||
| outputs: | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.