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

[Merged by Bors] - Add self-hosted runners v2 #4506

Closed
wants to merge 37 commits into from
Closed
Changes from 13 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e639fe
run bigger tasks on self hosted runners
antondlr Mar 20, 2023
769b130
Merge branch 'unstable' into self-hosted-runners
paulhauner Jul 14, 2023
da921b0
Revert dependency installation
paulhauner Jul 14, 2023
2eb7457
Add libpq-dev
paulhauner Jul 14, 2023
42ca4c8
Empty commit
paulhauner Jul 14, 2023
9a4c459
Run debug tests on self-hosted runners
paulhauner Jul 14, 2023
d369c18
Remove Rust update for self-hosted tasks
paulhauner Jul 14, 2023
eba6dd3
Revert to Github runner for Windows tests
paulhauner Jul 14, 2023
9e5e0f2
Add runners as variables
paulhauner Jul 14, 2023
8bc4e99
Remove sudo when installing libpq-dev
paulhauner Jul 14, 2023
3472e60
Run rustup update when not using self-hosted
paulhauner Jul 14, 2023
e705411
Use repository-level environment variable
paulhauner Jul 14, 2023
853d447
Remove bangs
paulhauner Jul 14, 2023
d85891e
Use `== 'true'` in ternary operator
paulhauner Jul 14, 2023
bc883e6
Add temporary debug stuff
paulhauner Jul 14, 2023
a90df60
Add another debug line
paulhauner Jul 14, 2023
7148b13
Modify debug statements
paulhauner Jul 14, 2023
04deb0f
More debugging
paulhauner Jul 14, 2023
5880179
Start using `github.repository`
paulhauner Jul 14, 2023
4749645
Try using toJson
paulhauner Jul 14, 2023
1cd9e9d
Revert "Try using toJson"
paulhauner Jul 14, 2023
74542b7
Test with just string for `runs-on`
paulhauner Jul 14, 2023
c3625d3
Try fromJson
paulhauner Jul 14, 2023
7db66c7
Implement fromJson globally
paulhauner Jul 14, 2023
e008422
Switch windows to self-hosted
paulhauner Jul 14, 2023
b62e79a
Swap vars to env
paulhauner Jul 15, 2023
c7862f9
Fix ef-tests
paulhauner Jul 15, 2023
d92bf62
Use sudo for self-hosted runners
paulhauner Jul 16, 2023
a0619ac
Add 7zip to windows runner
paulhauner Jul 16, 2023
b57c114
Install `7zip` rather than `7zip.install`
paulhauner Jul 17, 2023
c9476bd
Disable LLVM update for Windows runner
paulhauner Jul 17, 2023
7f45652
Merge branch 'unstable' into self-hosted-runners-paul
paulhauner Jul 17, 2023
2f9243f
Change watch DB host
paulhauner Jul 20, 2023
0adaf83
Add watch host for debug tests too
paulhauner Jul 20, 2023
21be30c
Fix compile error
paulhauner Jul 20, 2023
acb9c29
Remove libpq install
paulhauner Jul 21, 2023
ce4ed6e
Allow `WATCH_HOST` to be `localhost` on Github runners
paulhauner Jul 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,24 @@ jobs:
run: make cargo-fmt
release-tests-ubuntu:
name: release-tests-ubuntu
runs-on: ubuntu-latest
runs-on: ${{ vars.SELF_HOSTED_RUNNERS && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Install apt dependencies
if: vars.SELF_HOSTED_RUNNERS
run: |
apt-get update
apt-get install libpq-dev # Required for Postgres in ./watch.
- name: Run tests in release
run: make test-release
release-tests-windows:
Expand All @@ -69,6 +75,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
run: rustup update stable
- name: Use Node.js
uses: actions/setup-node@v2
Expand All @@ -93,11 +100,12 @@ jobs:
run: make test-release
beacon-chain-tests:
name: beacon-chain-tests
runs-on: ubuntu-latest
runs-on: ${{ vars.SELF_HOSTED_RUNNERS && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
Expand Down Expand Up @@ -131,18 +139,24 @@ jobs:
run: make test-slasher
debug-tests-ubuntu:
name: debug-tests-ubuntu
runs-on: ubuntu-22.04
paulhauner marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ${{ vars.SELF_HOSTED_RUNNERS && '[self-hosted, linux, large]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install anvil
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
- name: Install apt dependencies
if: vars.SELF_HOSTED_RUNNERS
run: |
apt-get update
apt-get install libpq-dev # Required for Postgres in ./watch.
- name: Run tests in debug
run: make test-debug
state-transition-vectors-ubuntu:
Expand All @@ -161,11 +175,12 @@ jobs:
run: make run-state-transition-tests
ef-tests-ubuntu:
name: ef-tests-ubuntu
runs-on: ubuntu-latest
runs-on: ${{ vars.SELF_HOSTED_RUNNERS && '[self-hosted, linux, small]' || 'ubuntu-latest' }}
needs: cargo-fmt
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: vars.SELF_HOSTED_RUNNERS == false
run: rustup update stable
- name: Install Protoc
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
Expand Down