-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add zombie upgrade tests containers #560
Add zombie upgrade tests containers #560
Conversation
# Always run the commands from the "test" dir | ||
cd $(dirname $0)/.. | ||
|
||
LATEST_RUNTIME_RELEASE=$(curl -s https://api.github.com/repos/moondance-labs/tanssi/releases | jq -r '.[] | select(.name | test("runtime";"i")) | .tag_name' | head -n 1 | tr -d '[:blank:]') && [[ ! -z "${LATEST_RUNTIME_RELEASE}" ]] |
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.
I bet this won't work because jq is not installed in the runner (but maybe I'm wrong)
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.
it should, it's the same we are doing in the CI through a script
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.
tanssi/.github/workflows/release.yml
Line 55 in a8336a4
TYPE=$(echo $RESPONSE | jq -r '.object.type') |
Coverage Report@@ Coverage Diff @@
## master girazoki-add-zombie-upgrade-tests-containers +/- ##
================================================================================
+ Coverage 69.19% 69.33% +0.14%
Files 221 221
- Lines 39049 38618 -431
================================================================================
- Hits 27017 26775 -242
- Misses 12032 11843 -189
|
Adds new tests for zombienet upgrades in container-chains. This should extend our toolset and that of the container-chains to test the runtime upgrades. These are triggered by the CI but also can be triggered as:
pnpm moonwall test zombie_frontier_template_upgrade
pnpm moonwall test zombie_simple_template_upgrade
What the test does:
The test fetches the latest node associated with the latest runtime release and spawns a zombienet network composed of one relay, tanssi and a container. Once these are up, the container-chain is upgraded with the compiled runtime.