-
Notifications
You must be signed in to change notification settings - Fork 236
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
fix(ci): bigger cache disk, cache+prune docker images, disable ClientIvcTests.Full #5729
Changes from 19 commits
78108b3
ac629ec
958ff07
09d0988
2f6699c
c5e7564
6e3c584
ae9ebb8
ad22701
cc9edb3
d45515a
4c41da5
330c44f
9e67aac
5ee332f
ef3d71f
8f95339
2c3a334
76325b7
b877245
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
global: | ||
cache_size_pct: 75 | ||
cache_size_pct: 50 | ||
buildkit_max_parallelism: 50 | ||
container_frontend: docker-shell | ||
buildkit_additional_args: ["-e", "BUILDKIT_STEP_LOG_MAX_SIZE=-1"] |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,8 +11,15 @@ INSTANCE_ID=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |||||
# TODO also mount various other aspects of docker image metadata | ||||||
|
||||||
# Check for existing mount, assume we can continue if existing | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm this isn't true though. We don't stop earthly There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if this is true, the spot is still running, we run earthly bootstrap still but it quickly reports typically earthly is still running |
||||||
if mount | grep -q /var/lib/docker/volumes; then | ||||||
echo "Detected mount existing on /var/lib/docker/volumes already" | ||||||
if mount | grep -q "/var/lib/docker/volumes type ext4"; then | ||||||
echo "Detected mount existing on /var/lib/docker/volumes. This is our old mount." | ||||||
echo "Run the stop spot workflow https://github.com/AztecProtocol/aztec-packages/actions/workflows/stop-spot.yml and rerun all steps in this workflow." | ||||||
exit 0 | ||||||
fi | ||||||
|
||||||
# Check for existing mount, assume we can continue if existing | ||||||
if mount | grep -q "/var/lib/docker type ext4"; then | ||||||
echo "Detected mount existing on /var/lib/docker already" | ||||||
echo "Continuing..." | ||||||
exit 0 | ||||||
fi | ||||||
|
@@ -22,7 +29,7 @@ fi | |||||
# this means we are in a weird state (two spot instances running etc) | ||||||
EXISTING_VOLUME=$(aws ec2 describe-volumes \ | ||||||
--region $REGION \ | ||||||
--filters "Name=tag:username,Values=$EBS_CACHE_TAG" \ | ||||||
--filters "Name=tag:username,Values=$EBS_CACHE_TAG-$SIZE" \ | ||||||
--query "Volumes[0].VolumeId" \ | ||||||
--output text) | ||||||
|
||||||
|
@@ -33,7 +40,7 @@ if [ "$EXISTING_VOLUME" == "None" ]; then | |||||
--availability-zone $AVAILABILITY_ZONE \ | ||||||
--size $SIZE \ | ||||||
--volume-type $VOLUME_TYPE \ | ||||||
--tag-specifications "ResourceType=volume,Tags=[{Key=username,Value=$EBS_CACHE_TAG}]" \ | ||||||
--tag-specifications "ResourceType=volume,Tags=[{Key=username,Value=$EBS_CACHE_TAG-$SIZE}]" \ | ||||||
--query "VolumeId" \ | ||||||
--output text) | ||||||
else | ||||||
|
@@ -77,7 +84,7 @@ while [ "$(aws ec2 describe-volumes \ | |||||
sleep 1 | ||||||
done | ||||||
|
||||||
# We are expecting the device to come up as /dev/nvme1n1, but include generic code from | ||||||
# We are expecting the device to come up as /dev/nvme1n1, but include generic code from | ||||||
# https://github.com/slavivanov/ec2-spotter/blob/master/ec2spotter-remount-root | ||||||
while true; do | ||||||
if lsblk /dev/nvme1n1; then | ||||||
|
@@ -100,5 +107,5 @@ if ! file -s $BLKDEVICE | grep -q ext4; then | |||||
fi | ||||||
|
||||||
# Create a mount point and mount the volume | ||||||
mkdir -p /var/lib/docker/volumes | ||||||
mount $BLKDEVICE /var/lib/docker/volumes | ||||||
mkdir -p /var/lib/docker | ||||||
mount $BLKDEVICE /var/lib/docker |
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.
no more personal arm runners