Skip to content
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

Merged
merged 16 commits into from
Oct 23, 2024
Merged

Conversation

lmuntaner
Copy link
Collaborator

@lmuntaner lmuntaner commented Oct 17, 2024

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

@lmuntaner lmuntaner marked this pull request as ready for review October 17, 2024 13:40
@lmuntaner lmuntaner requested a review from a team as a code owner October 17, 2024 13:40
@lmuntaner lmuntaner force-pushed the lm-add-test-canisters-script-ci branch from 7275d77 to 97b5adb Compare October 17, 2024 13:41
Copy link
Contributor

@frederikrothenberger frederikrothenberger left a 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:
Copy link
Contributor

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.

Copy link
Collaborator Author

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?

@lmuntaner lmuntaner force-pushed the lm-add-test-canisters-script-ci branch 2 times, most recently from 6ce4473 to a01452f Compare October 21, 2024 09:41
@lmuntaner
Copy link
Collaborator Author

@frederikrothenberger ready for another review.

The duration is now down to 2min.

Copy link
Contributor

@frederikrothenberger frederikrothenberger left a 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
Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@lmuntaner lmuntaner force-pushed the lm-add-test-canisters-script-ci branch from 20a2520 to 024464d Compare October 23, 2024 08:02
@lmuntaner lmuntaner added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit aeceb7b Oct 23, 2024
67 checks passed
@lmuntaner lmuntaner deleted the lm-add-test-canisters-script-ci branch October 23, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants