-
Notifications
You must be signed in to change notification settings - Fork 141
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 test-canisters.sh script to CI #2655
Conversation
7275d77
to
97b5adb
Compare
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.
Could you please split the changes and the reformatting into different PRs?
@@ -391,6 +390,20 @@ jobs: | |||
env: | |||
RUST_BACKTRACE: 1 | |||
|
|||
test-canisters-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.
This job takes more than 10 minutes, so it is immediately the slowest thing in the whole pipeline. I would not add it without any caching.
For reference, the normal pipeline with caching takes ~6m 30s.
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 added the --no-build
parameter and used the built wasms. It takes 6'30" now. Is this reasonable?
It depends on a few other jobs though. Therefore, the whole CI is probably slower now.
I could add pocket-ic and the other dependencies into a cache and use it as well. Maybe in another PR?
6ce4473
to
a01452f
Compare
@frederikrothenberger ready for another review. The duration is now down to 2min. |
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, thanks!
|
||
- name: Run tests | ||
run: | | ||
./scripts/test-canisters.sh --no-build should_keep_new_anchor_across_rollback |
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.
Maybe add a comment on how you chose these particular tests?
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.
done
20a2520
to
024464d
Compare
Motivation
Make sure that test-canisters.sh script is kept up-to-date in case something else is needed to run tests.
Changes
Add a test in CI to run the tests with this script.
🟡 Some screens were changed