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

refactor(ci): earthly in spot with persistent cache #5644

Merged
merged 179 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
52827b0
chore: Load bb benches into aggregate benchmark
spalladino Mar 15, 2024
e388ab8
Merge remote-tracking branch 'origin/palla/load-bb-benchs'
ludamad Apr 2, 2024
6fbb9cd
Merge remote-tracking branch 'origin/master' into report-diff-in-comment
ludamad Apr 2, 2024
2be5466
Merge branch 'master' into report-diff-in-comment
ludamad Apr 2, 2024
e2f5f2b
bb logs
ludamad Apr 2, 2024
fb7ab75
Merge remote-tracking branch 'origin/report-diff-in-comment' into rep…
ludamad Apr 2, 2024
20dcbaf
run earthly pure local
ludamad Apr 2, 2024
ebf1fe8
upload to s3
ludamad Apr 2, 2024
a249aed
fix
ludamad Apr 2, 2024
7871f49
branch
ludamad Apr 2, 2024
bb8b5bb
fix
ludamad Apr 2, 2024
34644be
fix
ludamad Apr 2, 2024
2b90f70
working comment
ludamad Apr 3, 2024
251cfa1
typo
ludamad Apr 3, 2024
9af57c2
external collab strategy
ludamad Apr 3, 2024
2bc7908
Merge branch 'master' into report-diff-in-comment
ludamad Apr 3, 2024
0335e57
ci
ludamad Apr 3, 2024
63d9798
Merge remote-tracking branch 'origin/report-diff-in-comment' into rep…
ludamad Apr 3, 2024
03ce615
grand experiment
ludamad Apr 3, 2024
f29692d
many secrets
ludamad Apr 3, 2024
6ab7bea
never gonna cache again Guilty keys have got no rhythm
ludamad Apr 3, 2024
727fc5a
never gonna cache again Guilty keys have got no rhythm
ludamad Apr 3, 2024
bfd3dae
up
ludamad Apr 3, 2024
8a2b410
huh
ludamad Apr 3, 2024
f8823c9
Merge branch 'master' into report-diff-in-comment
ludamad Apr 3, 2024
a76ecb4
fix
ludamad Apr 3, 2024
4edffcf
Merge remote-tracking branch 'origin/report-diff-in-comment' into rep…
ludamad Apr 3, 2024
647a657
try
ludamad Apr 3, 2024
da99904
iteation
ludamad Apr 4, 2024
0daaad1
ami
ludamad Apr 4, 2024
d17e6ca
ami x2
ludamad Apr 4, 2024
2314e24
ncs
ludamad Apr 4, 2024
108fdc2
try
ludamad Apr 4, 2024
af445ac
try
ludamad Apr 4, 2024
26ef204
spot is hot
ludamad Apr 4, 2024
b7a8ac9
spot is hot
ludamad Apr 4, 2024
80d2b51
spot is hot
ludamad Apr 4, 2024
417f813
Update ci.yml
ludamad Apr 4, 2024
da59885
Update ci.yml
ludamad Apr 4, 2024
e6f4612
Update ci.yml
ludamad Apr 4, 2024
3b581f6
Update ci.yml
ludamad Apr 4, 2024
924ac9d
Update ci.yml
ludamad Apr 4, 2024
a7a564a
Update ci.yml
ludamad Apr 4, 2024
ebc1dcc
Update ci.yml
ludamad Apr 4, 2024
440286f
Update ci.yml
ludamad Apr 4, 2024
db5c059
Update ci.yml
ludamad Apr 4, 2024
708b776
Update ci.yml
ludamad Apr 4, 2024
130c860
Update ci.yml
ludamad Apr 4, 2024
e1bf992
Create clear-cache.yml
ludamad Apr 4, 2024
cc829af
Merge pull request #2 from ludamad-test-org/report-diff-in-comment
ludamad Apr 4, 2024
e3aa956
Update ci.yml
ludamad Apr 4, 2024
2c2f702
Update ci.yml
ludamad Apr 5, 2024
f3e6050
Update ci.yml
ludamad Apr 5, 2024
aad7df9
Update ci.yml
ludamad Apr 5, 2024
1eb9d78
Update ci.yml
ludamad Apr 5, 2024
789294f
Update ci.yml
ludamad Apr 5, 2024
71fd6be
Update ci.yml
ludamad Apr 5, 2024
fed2328
Update ci.yml
ludamad Apr 5, 2024
a441917
Update ci.yml
ludamad Apr 5, 2024
be0631e
Update ci.yml
ludamad Apr 5, 2024
14e0763
Update ci.yml
ludamad Apr 5, 2024
39c4d79
Update ci.yml
ludamad Apr 5, 2024
671e7d8
Update ci.yml
ludamad Apr 5, 2024
97a1c85
Update ci.yml
ludamad Apr 5, 2024
d22daac
Update ci.yml
ludamad Apr 5, 2024
f40fcc1
Update action.yml
ludamad Apr 5, 2024
aac343a
Update ci.yml
ludamad Apr 5, 2024
f7fe004
Update ci.yml
ludamad Apr 5, 2024
98e7576
Update ci.yml
ludamad Apr 5, 2024
a6d719a
Update ci.yml
ludamad Apr 5, 2024
5c71f4e
hack for rerun failures
ludamad Apr 5, 2024
489fc76
Update ci.yml
ludamad Apr 5, 2024
385d784
Update ci.yml
ludamad Apr 5, 2024
8ef03b6
Update ci.yml
ludamad Apr 5, 2024
afead34
Update ci.yml
ludamad Apr 5, 2024
e5c8349
Update ci.yml
ludamad Apr 5, 2024
467da00
Update ci.yml
ludamad Apr 5, 2024
2d294be
Update ci.yml
ludamad Apr 5, 2024
623b200
Update action.yml
ludamad Apr 5, 2024
b5b5b17
Update ci.yml
ludamad Apr 5, 2024
1b4a95e
Update ci.yml
ludamad Apr 5, 2024
bbddcc3
Update ci.yml
ludamad Apr 5, 2024
9a33270
Update ci.yml
ludamad Apr 5, 2024
2b2621e
Update ci.yml
ludamad Apr 5, 2024
e57953c
Update ci.yml
ludamad Apr 5, 2024
56275a5
Update ci.yml
ludamad Apr 5, 2024
bc93a06
Update ci.yml
ludamad Apr 5, 2024
77413c5
Update ci.yml
ludamad Apr 5, 2024
0eeecfb
Update ci.yml
ludamad Apr 5, 2024
67a195e
Update ci.yml
ludamad Apr 5, 2024
5ec92a1
Update ci.yml
ludamad Apr 5, 2024
578bbf2
Update ci.yml
ludamad Apr 5, 2024
1b6a3e2
Update ci.yml
ludamad Apr 5, 2024
1308e4b
Update ci.yml
ludamad Apr 5, 2024
fdbf2bd
Update ci.yml
ludamad Apr 5, 2024
c220ff2
Update ci.yml
ludamad Apr 5, 2024
a045382
Update ci.yml
ludamad Apr 5, 2024
b02faa7
Update ci.yml
ludamad Apr 5, 2024
76fe4cc
Update ci.yml
ludamad Apr 5, 2024
a89f486
Update ci.yml
ludamad Apr 5, 2024
f473ece
refactor ci to be on same machine
ludamad Apr 6, 2024
a555f0f
unfancy
ludamad Apr 6, 2024
09e997b
roll back anchors
ludamad Apr 6, 2024
7197b65
fix branch master
ludamad Apr 6, 2024
989dd0b
fix branch master
ludamad Apr 6, 2024
f445dd8
lock on memory hungry prover test
ludamad Apr 6, 2024
553f110
test
ludamad Apr 6, 2024
4b066c3
upload
ludamad Apr 6, 2024
b4f0165
fix
ludamad Apr 6, 2024
7399c2e
fix
ludamad Apr 6, 2024
8f766ed
fix
ludamad Apr 6, 2024
368d2ad
fix
ludamad Apr 6, 2024
4aeb118
concurrency fix
ludamad Apr 6, 2024
fa62ec1
concurrency fix
ludamad Apr 6, 2024
9508f1f
forge fmt workaround
ludamad Apr 6, 2024
9850ef6
work around old docker compose
ludamad Apr 6, 2024
d8aba28
work around old docker compose
ludamad Apr 6, 2024
ffac498
Update docker
ludamad Apr 6, 2024
ee4adea
large build, better ami
ludamad Apr 6, 2024
2685d2c
better benching
ludamad Apr 6, 2024
2e2a526
flexible with whatever docker
ludamad Apr 6, 2024
669f56f
try 64-core machines
ludamad Apr 6, 2024
2fd4268
disable logs
ludamad Apr 9, 2024
48df3ae
Merge remote-tracking branch 'origin/master' into report-diff-in-comment
ludamad Apr 9, 2024
c6ca2a9
merge fix
ludamad Apr 9, 2024
38f3c5e
attach ebs
ludamad Apr 9, 2024
d7f4047
fix script evoke
ludamad Apr 9, 2024
5c787c6
fix env and check mount
ludamad Apr 9, 2024
fade3b9
missing file
ludamad Apr 9, 2024
2420a1e
fix syntax
ludamad Apr 9, 2024
611a12e
restart with runner action
ludamad Apr 9, 2024
563c287
fix avail zone
ludamad Apr 9, 2024
3b9657e
spec bench x86
ludamad Apr 9, 2024
7583aad
fix region
ludamad Apr 9, 2024
6439d07
fix x86 startup
ludamad Apr 9, 2024
7bea72a
fix paths
ludamad Apr 9, 2024
3b9e6a3
try old instance type
ludamad Apr 9, 2024
c5d2faf
Delete .github/workflows/clear-cache.yml
ludamad Apr 9, 2024
ed37666
Update attach_ebs_cache.sh
ludamad Apr 9, 2024
af62fe9
Merge remote-tracking branch 'origin/report-diff-in-comment' into rep…
ludamad Apr 9, 2024
4d8e039
avail zones
ludamad Apr 9, 2024
59d1fe8
revert
ludamad Apr 9, 2024
b63c4a7
Merge branch 'master' into feat/earthly-in-spot-with-ebs
ludamad Apr 9, 2024
3466694
revert
ludamad Apr 9, 2024
6b96870
Don't restart
ludamad Apr 9, 2024
922b6fe
Use 100gb cache
ludamad Apr 9, 2024
e51b9a9
Merge remote-tracking branch 'origin/feat/earthly-in-spot-with-ebs' i…
ludamad Apr 9, 2024
49ab388
default cache probably fine
ludamad Apr 9, 2024
5fb872c
[ci rebuild] redo
ludamad Apr 9, 2024
5bf145e
Always wait for ebs
ludamad Apr 9, 2024
c39d8c3
Merge branch 'master' into feat/earthly-in-spot-with-ebs
ludamad Apr 9, 2024
fe45bfb
runner
ludamad Apr 9, 2024
fb95343
[ci rebuild] fix bench-tx-size
ludamad Apr 9, 2024
dc90cde
Merge remote-tracking branch 'origin/feat/earthly-in-spot-with-ebs' i…
ludamad Apr 9, 2024
ab909ee
try better cache settings
ludamad Apr 9, 2024
c6a7a08
fix earthly config
ludamad Apr 9, 2024
3870ace
fix earthly config [ci restart-spot]
ludamad Apr 9, 2024
8ea416b
Merge remote-tracking branch 'origin/feat/earthly-in-spot-with-ebs' i…
ludamad Apr 9, 2024
fb6079f
[ci rebuild][ci restart-spot]
ludamad Apr 9, 2024
425566d
earthly path fix [ci rebuild][ci restart-spot]
ludamad Apr 9, 2024
13aff19
try fix cache setting [ci spot-restart]
ludamad Apr 9, 2024
336cab1
Update docker-compose.yml
ludamad Apr 9, 2024
3cb0b41
reinstate static config file after research [ci restart-spot]
ludamad Apr 9, 2024
cda4aca
Merge remote-tracking branch 'origin/feat/earthly-in-spot-with-ebs' i…
ludamad Apr 9, 2024
ada047e
[ci restart-spot]
ludamad Apr 9, 2024
e63c460
change mountpoint. [ci restart-spot]
ludamad Apr 9, 2024
7141e25
export e2e locally [ci restart-spot]
ludamad Apr 9, 2024
e996164
replace with todo
ludamad Apr 9, 2024
e3b6baf
fix path
ludamad Apr 9, 2024
44ce605
try build mode
ludamad Apr 9, 2024
bb9551a
retry with proper fork
ludamad Apr 9, 2024
1fb6317
no dice
ludamad Apr 9, 2024
dca8838
test ci
ludamad Apr 10, 2024
5b6f4ce
[ci restart-spot]
ludamad Apr 10, 2024
67bb799
add ability to just start spot
ludamad Apr 10, 2024
cd84a13
fix start spot check
ludamad Apr 10, 2024
42a79d2
better spot only mode
ludamad Apr 10, 2024
df04897
fix just_start_spot
ludamad Apr 10, 2024
2c8266c
fix
ludamad Apr 10, 2024
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
31 changes: 26 additions & 5 deletions .github/ci-setup-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ inputs:
dockerhub_password:
required: true
description: 'DockerHub Password'
github_actor:
required: true
description: 'GitHub Actor'

runs:
# define an action, runs in OS of caller
using: composite
Expand All @@ -25,11 +21,36 @@ runs:
shell: bash
run: git submodule sync --recursive && git submodule update --init --recursive

# Since we use multiple runners, dont want them clashing
- name: Generate Unique Home Directory
shell: bash
run: |
RUN_HOME=~/run-$RANDOM-$(date +%s)
echo HOME=$RUN_HOME >> $GITHUB_ENV
mkdir -p $RUN_HOME

# TODO reconsider how jq gets into image
- name: Setup jq
uses: dcarbone/install-jq-action@v2.1.0

- name: Setup Earthly
uses: earthly/actions-setup@v1
with:
# permission issue with spot runners, simpler to leave out
use-cache: false
version: 'v0.8.5'

- name: Setup Env
shell: bash
run: ./scripts/setup_env.sh ${{ inputs.dockerhub_password }} ${{ inputs.github_actor }}
run: ./scripts/setup_env.sh ${{ inputs.dockerhub_password }}

- name: Setup Docker
shell: bash
run: |
if ! [ -f /etc/docker/daemon.json ] ; then
echo '{"default-address-pools":[{"base":"172.17.0.0/12","size":20}, {"base":"10.99.0.0/12","size":20}, {"base":"192.168.0.0/16","size":24}]}' > /etc/docker/daemon.json
sudo service docker restart
echo "Configured docker daemon for making many networks."
else
echo "Docker daemon already configured."
fi
5 changes: 5 additions & 0 deletions .github/earthly-ci-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
global:
cache_size_pct: 90
buildkit_max_parallelism: 50
container_frontend: docker-shell
buildkit_additional_args: ["-e", "BUILDKIT_STEP_LOG_MAX_SIZE=-1"]
Loading
Loading