-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates srtool to 1.69.0 in the CI (#2339)
* Updates workflows to use bare-metal instead of self-hosted * Updates docker login action * forcing submodules * Forces master ref * dirty clean * reset reset moonbeam repo * more hacks? * testing differently * testing registry * Forces reclone moonbeam * fix srtool command line * break scripts * Testing recent srtool * Testing recent srtool * more dangerous srtool * Restore valid srtool * testing root * no root * Custom srtool * adds logs * removes logs * new srtool image * more logs * force docker user * adds cleanup docker run * better cleanup * syntax * typo * better clean * force new scripts * restore ssh custom * Forces chwon to srtool * better chown user id * again ? * retry * chmod instead * hacking ? * copy ? * cat entry * retrying * restore * simplify docker call * cleaner * normlal srtool * more debug * fix original scripts * Setup final action * Better cleanup * fix cleanup * Reset ssh auth for srtool * Testing private again * adds check for file permission * more logs * More checks * better ls * more * more check * better release note * Updates rust-toolchain * Adds custom script to get docker user id * Cleanup * Adds doc * revert tag for custom srtool
- Loading branch information
Alan Sapede
authored
Jun 14, 2023
1 parent
670eddf
commit 116df29
Showing
12 changed files
with
103 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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,59 @@ | ||
# Automation | ||
|
||
This section of the documentation is dedicated to the automation processes for the CI. | ||
|
||
## Architecture | ||
|
||
Automation is using Github Action, where all the actions are described in [.github/workflows](.github/workflows) | ||
|
||
### bare-metal | ||
|
||
label bare-metal refers to our CI servers managed by opslayer. Those are dedicated machines, optimized to reduce the compilation and testing time of the actions. | ||
|
||
## Cancellation | ||
|
||
It is possible to cancel actions directly in github action UI or using (replace "coverage.yml" by the desired | ||
action and "my-branch" by the desired pr branch): | ||
`gh run list --workflow="coverage.yml" --json status,headBranch,databaseId | jq '.[] | select(.headBranch == "my-branch" and (.status == "in_progress" or .status == "queued")) | .databaseId' | xargs -n1 --no-run-if-empty gh run cancel` | ||
|
||
## Actions | ||
|
||
### Cancel | ||
|
||
Cancel allows to cancel previous execution of the same action for the same PR in order to release allocated resources. This is the case of | ||
[build](#build) and [coverage](#coverage) actions | ||
|
||
### Build | ||
|
||
[.github/workflows/build.yml](.github/workflows/build.yml) | ||
`gh workflow run build -r my-branch-or-tag` | ||
|
||
Performs multiple actions to ensure the code provided is high quality: | ||
|
||
- Checks formatting/copyrights/links/locks/... | ||
- Builds the runtime and binary (with and without features) | ||
- Prepare external binaries (polkadot) matching the new code | ||
- Tests: | ||
- Rust tests (mostly unit), including tracing features | ||
- Typescript (mostly dev integrations), including full relay chain & tracing | ||
- Fork & Dev upgrade tests | ||
- Build a docker image based on the sha and push to docker.io | ||
|
||
### Coverage | ||
|
||
[.github/workflows/coverage.yml](.github/workflows/coverage.yml) | ||
`gh workflow run coverage -r my-branch-or-tag` | ||
|
||
Similar to [build](#build), coverage ensure the quality of our code | ||
and test by re-building our binary with `grcov` and re-executing our tests. | ||
|
||
The output is stored as an artefact and published in the comments of the PR. | ||
|
||
### Publish runtime draft | ||
|
||
[.github/workflows/publish-runtime.yml](.github/workflows/publish-runtime.yml) | ||
`gh workflow run "Publish Runtime Draft" -r master -f from=runtime-2302 -f to=runtime-2400` | ||
|
||
Builds the runtime of each network using srtool and then draft | ||
the release notes using the git commits between the given tags. | ||
The draft is "not published" (TODO: change the name of the action) |
This file contains 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[toolchain] | ||
channel = "1.68.2" | ||
channel = "1.69.0" | ||
components = [ "rustfmt", "clippy" ] | ||
targets = [ "wasm32-unknown-unknown" ] | ||
profile = "minimal" |
This file contains 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 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