Skip to content

Commit

Permalink
ci: run ext*-depending builds in tmpfs
Browse files Browse the repository at this point in the history
This puts the Nix builds requiring a non-ext filesystem into a tmpfs. This is a workaround until the upstream bug is reported and resolved to / in fakeroot.
  • Loading branch information
msanft committed Jul 26, 2024
1 parent 0299ce5 commit 77462e7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/actions/nix_tmpfs/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: use tmpfs for nix builds
description: Set Nix' build directory to a tmpfs to fix builds that don't work in the runner-provisioned ext2/ext3 filesystem

runs:
using: "composite"
steps:
- name: use tmpfs for nix builds
shell: bash
run: |
sudo mkdir -p /etc/systemd/system/nix-daemon.service.d
echo -e "[Service]\nEnvironment=TMPDIR=/dev/shm" | sudo tee /etc/systemd/system/nix-daemon.service.d/tmpfs.conf
sudo systemctl daemon-reload
sudo systemctl restart nix-daemon
1 change: 1 addition & 0 deletions .github/workflows/e2e_openssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV"
sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}')
echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV"
- uses: ./.github/actions/nix_tmpfs
- name: Build and prepare deployments
run: |
just coordinator initializer openssl port-forwarder node-installer
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV"
sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}')
echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV"
- uses: ./.github/actions/nix_tmpfs
- name: Build and prepare deployments
run: |
just coordinator initializer openssl port-forwarder node-installer
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- name: Get credentials for CI cluster
run: |
just get-credentials
- uses: ./.github/actions/nix_tmpfs
- name: Build and prepare deployments
run: |
just node-installer
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e_servicemesh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:
- name: Get credentials for CI cluster
run: |
just get-credentials
- name: Set sync environemnt
- name: Set sync environment
run: |
sync_ip=$(kubectl get svc sync -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV"
sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}')
echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV"
- uses: ./.github/actions/nix_tmpfs
- name: Build and prepare deployments
run: |
just coordinator initializer port-forwarder service-mesh-proxy node-installer
Expand Down

0 comments on commit 77462e7

Please sign in to comment.