-
Notifications
You must be signed in to change notification settings - Fork 598
test: Create workflow for full AVM tests #7051
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
781bf87
Create workflow for full AVM tests
157356c
Addressing review comments
217bc2e
Adapt runner
9ad2c85
Update vm_full_tests.yml
jeanmon 17aa91d
Update vm_full_tests.yml
jeanmon df3a0c4
Test run
de49b15
Remove concurrency key
jeanmon 9fe37ea
Update timeout
jeanmon 2509f5f
Attempt to remove wasm build
570c557
another try to decouple no-wasm builts
9f8866b
Revert decoupling no-wasm build
ffae50a
Use runner of github.actor
dfcfb29
Decrease timeout to 90 minutes
121c51d
Concurrency key is back
3a1b0be
Remove the trigger from push
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: AVM Full Tests | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "15 4 * * 1-5" # Monday to Friday at 4:15 AM UTC | ||
| workflow_dispatch: | ||
| inputs: | ||
| username: | ||
| description: "Username (optional)" | ||
| required: false | ||
| action: | ||
| description: "Default to 'start'" | ||
| required: false | ||
| default: "start" | ||
|
|
||
| concurrency: | ||
| # force parallelism in master | ||
| group: avm-full-tests-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| DOCKERHUB_PASSWORD: "${{ secrets.DOCKERHUB_PASSWORD }}" | ||
| RUN_ID: ${{ github.run_id }} | ||
| RUN_ATTEMPT: ${{ github.run_attempt }} | ||
| USERNAME: ${{ github.event.pull_request.user.login || github.actor }} | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| GH_SELF_HOSTED_RUNNER_TOKEN: ${{ secrets.GH_SELF_HOSTED_RUNNER_TOKEN }} | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| BUILD_INSTANCE_SSH_KEY: ${{ secrets.BUILD_INSTANCE_SSH_KEY }} | ||
| GIT_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| # kludge until we move away from runners | ||
| WAIT_FOR_RUNNERS: false | ||
|
|
||
| jobs: | ||
| setup: | ||
| uses: ./.github/workflows/setup-runner.yml | ||
| with: | ||
| username: ${{ github.event.pull_request.user.login || github.actor }} | ||
| runner_type: builder-x86 | ||
| secrets: inherit | ||
|
|
||
| # barretenberg (prover) native and AVM (public VM) tests | ||
| # only ran on x86 for resource reasons (memory intensive) | ||
| avm-full-tests: | ||
| needs: [setup] | ||
| runs-on: ${{ github.event.pull_request.user.login || github.actor }}-x86 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: { ref: "${{ env.GIT_COMMIT }}" } | ||
| # Only allow one memory-hunger prover test to use this runner | ||
| - uses: ./.github/ci-setup-action | ||
| with: | ||
| # must be globally unique for build x runner | ||
| concurrency_key: avm-full-tests-x86 | ||
| - name: "AVM Full Tests" | ||
| working-directory: ./barretenberg/cpp/ | ||
| timeout-minutes: 90 | ||
| # limit our parallelism to half our cores | ||
| run: earthly-ci --no-output +vm-full-test --hardware_concurrency=64 | ||
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
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
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.
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.
whose runner do we want this to run on? I guess right now it'd be github bot
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.
@ludamad Ok good point. How should I change this exactly?
Should I also change the argument in "runs-on" at line 47?
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.
Everywhere we consider the GitHub actor. You can see our e2e CI file as an example. We want to start the runner with the same flags as our runs on
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.
Sorry, the arm Ci as an example
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.
Thx for the pointer. I followed the arm CI template.
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.
@ludamad I had to revert the changes made after your feedback. Somehow the workflow did not leverage cache for build and I had 2 hours build for wasm and MacOSX. I tried to remove wasm dependencies in Earthfile without success. Therefore, I am going to merge this version.