-
Notifications
You must be signed in to change notification settings - Fork 939
Add nightly tests workflow to test prior forks #8319
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
8 commits
Select commit
Hold shift + click to select a range
0636ea2
Add nightly tests workflow.
jimmygchen 1bb2fd9
Add nightly tests workflow. (#54)
jimmygchen 049b890
Merge branch 'unstable' of github.com:jimmygchen/lighthouse into unst…
jimmygchen df3771d
Fix syntax issue.
jimmygchen 662a996
Remove self hosted runners
jimmygchen 759d7a6
Job name cleanup
jimmygchen 9dec9cd
Moar cleanup
jimmygchen ff2a5b9
Merge branch 'unstable' into nightly-test-workflow
jimmygchen 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,135 @@ | ||
| # We only run tests on `RECENT_FORKS` on CI. To make sure we don't break prior forks, we run nightly tests to cover all prior forks. | ||
| name: nightly-tests | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run at 8:30 AM UTC every day | ||
| - cron: '30 8 * * *' | ||
| workflow_dispatch: # Allow manual triggering | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| # Deny warnings in CI | ||
| # Disable debug info (see https://github.com/sigp/lighthouse/issues/4005) | ||
| RUSTFLAGS: "-D warnings -C debuginfo=0" | ||
| # Prevent Github API rate limiting. | ||
| LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.LIGHTHOUSE_GITHUB_TOKEN }} | ||
| # Disable incremental compilation | ||
| CARGO_INCREMENTAL: 0 | ||
| # Enable portable to prevent issues with caching `blst` for the wrong CPU type | ||
| TEST_FEATURES: portable | ||
|
|
||
| jobs: | ||
| setup-matrix: | ||
| name: setup-matrix | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| forks: ${{ steps.set-matrix.outputs.forks }} | ||
| steps: | ||
| - name: Set matrix | ||
| id: set-matrix | ||
| run: | | ||
| # All prior forks to cover in nightly tests. This list should be updated when we remove a fork from `RECENT_FORKS`. | ||
| echo 'forks=["phase0", "altair", "bellatrix", "capella", "deneb"]' >> $GITHUB_OUTPUT | ||
|
|
||
| beacon-chain-tests: | ||
| name: beacon-chain-tests | ||
| needs: setup-matrix | ||
| runs-on: 'ubuntu-latest' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| strategy: | ||
| matrix: | ||
| fork: ${{ fromJson(needs.setup-matrix.outputs.forks) }} | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Get latest version of stable Rust | ||
| uses: moonrepo/setup-rust@v1 | ||
| with: | ||
| channel: stable | ||
| cache-target: release | ||
| bins: cargo-nextest | ||
| - name: Run beacon_chain tests for ${{ matrix.fork }} | ||
| run: make test-beacon-chain-${{ matrix.fork }} | ||
| timeout-minutes: 60 | ||
|
|
||
| http-api-tests: | ||
| name: http-api-tests | ||
| needs: setup-matrix | ||
| runs-on: 'ubuntu-latest' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| strategy: | ||
| matrix: | ||
| fork: ${{ fromJson(needs.setup-matrix.outputs.forks) }} | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Get latest version of stable Rust | ||
| uses: moonrepo/setup-rust@v1 | ||
| with: | ||
| channel: stable | ||
| cache-target: release | ||
| bins: cargo-nextest | ||
| - name: Run http_api tests for ${{ matrix.fork }} | ||
| run: make test-http-api-${{ matrix.fork }} | ||
| timeout-minutes: 60 | ||
|
|
||
| op-pool-tests: | ||
| name: op-pool-tests | ||
| needs: setup-matrix | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| strategy: | ||
| matrix: | ||
| fork: ${{ fromJson(needs.setup-matrix.outputs.forks) }} | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Get latest version of stable Rust | ||
| uses: moonrepo/setup-rust@v1 | ||
| with: | ||
| channel: stable | ||
| cache-target: release | ||
| bins: cargo-nextest | ||
| - name: Run operation_pool tests for ${{ matrix.fork }} | ||
| run: make test-op-pool-${{ matrix.fork }} | ||
| timeout-minutes: 60 | ||
|
|
||
| network-tests: | ||
| name: network-tests | ||
| needs: setup-matrix | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| strategy: | ||
| matrix: | ||
| fork: ${{ fromJson(needs.setup-matrix.outputs.forks) }} | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Get latest version of stable Rust | ||
| uses: moonrepo/setup-rust@v1 | ||
| with: | ||
| channel: stable | ||
| cache-target: release | ||
| bins: cargo-nextest | ||
| - name: Create CI logger dir | ||
| run: mkdir ${{ runner.temp }}/network_test_logs | ||
| - name: Run network tests for ${{ matrix.fork }} | ||
| run: make test-network-${{ matrix.fork }} | ||
| timeout-minutes: 60 | ||
| env: | ||
| TEST_FEATURES: portable | ||
| CI_LOGGER_DIR: ${{ runner.temp }}/network_test_logs | ||
| - name: Upload logs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: network_test_logs_${{ matrix.fork }} | ||
| path: ${{ runner.temp }}/network_test_logs | ||
Oops, something went wrong.
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.
is this just a time slot or is there reasoning behind it?
I think aiming for it to be ready by AUS AM is maybe a good idea?
also, UTC start of workday there may be heavier-than-average demand but I have no evidence of that
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.
yeah i looked at the timezones, I think it's more quiet on the lighthouse side , but maybe not on the anchor side?
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.
Thanks for the review! Let's try this out and we can move it if it doesn't work out