Skip to content

Commit 0097de1

Browse files
committed
ci: migrate all workflows off Blacksmith
1 parent 2f8718d commit 0097de1

9 files changed

Lines changed: 129 additions & 79 deletions

File tree

‎.github/actionlint.yaml‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎.github/workflows/blacksmith-testbox.yml‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎.github/workflows/build.yaml‎

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
build-default:
1414
name: Build Default ${{matrix.target}}
1515
runs-on: ${{ matrix.os }}
16-
timeout-minutes: 90
16+
timeout-minutes: 180
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
include:
2121
# Linux builds - both native, matching the release workflow
22-
- os: blacksmith-8vcpu-ubuntu-2404
22+
- os: ubuntu-24.04
2323
target: x86_64-unknown-linux-gnu
24-
- os: blacksmith-8vcpu-ubuntu-2404-arm
24+
- os: ubuntu-24.04-arm
2525
target: aarch64-unknown-linux-gnu
2626

2727
# macOS build - aarch64 only (M1/M2)
@@ -34,6 +34,20 @@ jobs:
3434

3535
steps:
3636
- uses: actions/checkout@v4
37+
- name: Prepare Linux build resources
38+
if: runner.os == 'Linux'
39+
run: |
40+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
41+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
42+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
43+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
44+
echo "Added 16G swap"
45+
else
46+
sudo rm -f /swap.build
47+
echo "::warning title=Swap::Could not add swap; continuing without it"
48+
fi
49+
free -h
50+
df -h /
3751
3852
- name: Set up Node.js
3953
uses: actions/setup-node@v4
@@ -79,10 +93,24 @@ jobs:
7993
# Kafka build for x86_64 Linux only
8094
build-kafka:
8195
name: Build Kafka x86_64-unknown-linux-gnu
82-
runs-on: blacksmith-8vcpu-ubuntu-2404
83-
timeout-minutes: 90
96+
runs-on: ubuntu-24.04
97+
timeout-minutes: 180
8498
steps:
8599
- uses: actions/checkout@v4
100+
- name: Prepare Linux build resources
101+
if: runner.os == 'Linux'
102+
run: |
103+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
104+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
105+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
106+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
107+
echo "Added 16G swap"
108+
else
109+
sudo rm -f /swap.build
110+
echo "::warning title=Swap::Could not add swap; continuing without it"
111+
fi
112+
free -h
113+
df -h /
86114
87115
- name: Set up Node.js
88116
uses: actions/setup-node@v4

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323

2424
jobs:
2525
changes:
26-
runs-on: blacksmith-8vcpu-ubuntu-2404
26+
runs-on: ubuntu-24.04
2727
timeout-minutes: 5
2828
outputs:
2929
frontend: ${{ steps.paths.outputs.frontend }}
@@ -94,7 +94,7 @@ jobs:
9494
name: CI passed
9595
if: always()
9696
needs: [changes, frontend, rust, integration]
97-
runs-on: blacksmith-8vcpu-ubuntu-2404
97+
runs-on: ubuntu-24.04
9898
timeout-minutes: 5
9999
steps:
100100
- name: Check required results

‎.github/workflows/coverage.yaml‎

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,24 @@ env:
1313

1414
jobs:
1515
clippy:
16-
runs-on: blacksmith-8vcpu-ubuntu-2404
17-
timeout-minutes: 45
16+
runs-on: ubuntu-24.04
17+
timeout-minutes: 90
1818
steps:
1919
- uses: actions/checkout@v4
20+
- name: Prepare Linux build resources
21+
if: runner.os == 'Linux'
22+
run: |
23+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
24+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
25+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
26+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
27+
echo "Added 16G swap"
28+
else
29+
sudo rm -f /swap.build
30+
echo "::warning title=Swap::Could not add swap; continuing without it"
31+
fi
32+
free -h
33+
df -h /
2034
- uses: ./.github/actions/setup-rust-ci
2135
with:
2236
cache-key: rust-clippy
@@ -27,10 +41,24 @@ jobs:
2741
run: cargo hack clippy --verbose --each-feature --no-dev-deps -- -D warnings
2842

2943
tests:
30-
runs-on: blacksmith-8vcpu-ubuntu-2404
31-
timeout-minutes: 45
44+
runs-on: ubuntu-24.04
45+
timeout-minutes: 90
3246
steps:
3347
- uses: actions/checkout@v4
48+
- name: Prepare Linux build resources
49+
if: runner.os == 'Linux'
50+
run: |
51+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
52+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
53+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
54+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
55+
echo "Added 16G swap"
56+
else
57+
sudo rm -f /swap.build
58+
echo "::warning title=Swap::Could not add swap; continuing without it"
59+
fi
60+
free -h
61+
df -h /
3462
- uses: ./.github/actions/setup-rust-ci
3563
with:
3664
cache-key: rust-tests-${{ inputs.coverage && 'coverage' || 'plain' }}

‎.github/workflows/frontend.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults:
1010
jobs:
1111
checks:
1212
name: Format, build and unit tests
13-
runs-on: blacksmith-8vcpu-ubuntu-2404
13+
runs-on: ubuntu-24.04
1414
timeout-minutes: 15
1515
steps:
1616
- uses: actions/checkout@v4
@@ -37,7 +37,7 @@ jobs:
3737

3838
browser:
3939
name: ${{ matrix.suite }}
40-
runs-on: blacksmith-8vcpu-ubuntu-2404
40+
runs-on: ubuntu-24.04
4141
timeout-minutes: 20
4242
# Keep screenshot fonts, Chromium and OS identical to the reviewed baselines.
4343
# Update together with @playwright/test in frontend/package-lock.json.

‎.github/workflows/integration-test.yaml‎

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,34 @@ permissions:
1111

1212
jobs:
1313
build-image:
14-
runs-on: blacksmith-8vcpu-ubuntu-2404
15-
timeout-minutes: 30
14+
runs-on: ubuntu-24.04
15+
timeout-minutes: 90
1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Prepare Linux build resources
19+
if: runner.os == 'Linux'
20+
run: |
21+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
22+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
23+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
24+
echo "Added 16G swap"
25+
else
26+
sudo rm -f /swap.build
27+
echo "::warning title=Swap::Could not add swap; continuing without it"
28+
fi
29+
free -h
30+
df -h /
1831
- name: Set up cached Docker builder
19-
uses: useblacksmith/setup-docker-builder@v2
20-
with:
21-
cache-key: parseable-integration
32+
uses: docker/setup-buildx-action@v3
2233
- name: Build integration image once
23-
uses: useblacksmith/build-push-action@v2
34+
uses: docker/build-push-action@v6
2435
with:
2536
context: .
2637
file: Dockerfile.debug
2738
platforms: linux/amd64
2839
tags: parseable-ci:${{ github.sha }}
40+
cache-from: type=gha,scope=parseable-integration
41+
cache-to: type=gha,scope=parseable-integration,mode=max
2942
outputs: type=docker,dest=${{ runner.temp }}/parseable-ci.tar
3043
- uses: actions/upload-artifact@v4
3144
with:
@@ -38,7 +51,7 @@ jobs:
3851
quest:
3952
name: Quest ${{ matrix.deployment }} (${{ inputs.full && 'full' || 'smoke' }})
4053
needs: build-image
41-
runs-on: blacksmith-8vcpu-ubuntu-2404
54+
runs-on: ubuntu-24.04
4255
timeout-minutes: 40
4356
strategy:
4457
fail-fast: false

‎.github/workflows/release.yml‎

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# repository, so that job runs only in parseablehq/parseable.
88
# It also creates a checksum file for the artifacts and publishes it to the release page.
99
# It also builds and pushes a Docker image to Docker Hub with the same version tag.
10-
# Linux jobs run on Blacksmith runners. The build-profile input can select the
10+
# Linux jobs run on GitHub-hosted Ubuntu 24.04 runners. The build-profile input can select the
1111
# experimental release-thin-lto profile; such runs upload workflow artifacts
1212
# only and never publish to the release page or registry.
1313

@@ -42,7 +42,7 @@ env:
4242
jobs:
4343
build-frontend:
4444
name: Package frontend
45-
runs-on: blacksmith-8vcpu-ubuntu-2404
45+
runs-on: ubuntu-24.04
4646
timeout-minutes: 20
4747
permissions:
4848
contents: write
@@ -100,17 +100,32 @@ jobs:
100100
matrix:
101101
include:
102102
- target: x86_64-unknown-linux-gnu
103-
os: blacksmith-8vcpu-ubuntu-2404
103+
os: ubuntu-24.04
104104
# A hosted runner lost contact during the cross-compiled LTO build,
105105
# so aarch64 builds natively on an Arm runner.
106106
- target: aarch64-unknown-linux-gnu
107-
os: blacksmith-8vcpu-ubuntu-2404-arm
108-
timeout-minutes: 90
107+
os: ubuntu-24.04-arm
108+
timeout-minutes: 180
109109
steps:
110110
- uses: actions/checkout@v4
111111
with:
112112
ref: ${{ inputs.build-profile == 'release-thin-lto' && inputs.tag || format('refs/tags/{0}', inputs.tag) }}
113113

114+
- name: Prepare Linux build resources
115+
if: runner.os == 'Linux'
116+
run: |
117+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
118+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
119+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
120+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
121+
echo "Added 16G swap"
122+
else
123+
sudo rm -f /swap.build
124+
echo "::warning title=Swap::Could not add swap; continuing without it"
125+
fi
126+
free -h
127+
df -h /
128+
114129
- name: Set up Node.js
115130
uses: actions/setup-node@v4
116131
with:
@@ -140,21 +155,6 @@ jobs:
140155
with:
141156
key: ${{ matrix.target }}-default-${{ env.RELEASE_PROFILE }}
142157

143-
# The aarch64 runner lost contact during the fat-LTO build twice, which
144-
# GitHub attributes to CPU or memory starvation. Free disk, add swap and
145-
# record the resources as annotations, which survive a lost runner.
146-
# Swap is best effort because runner disk layouts differ.
147-
- name: Free disk and add swap
148-
run: |
149-
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
150-
if sudo fallocate -l 16G /swap.release && sudo chmod 600 /swap.release \
151-
&& sudo mkswap /swap.release && sudo swapon /swap.release; then
152-
echo "Added 16G swap"
153-
else
154-
echo "::warning title=Swap::Could not add swap; continuing without it"
155-
fi
156-
echo "::notice title=Runner resources::$(nproc) CPUs; $(free -h | awk '/Mem/{print $2" RAM"} /Swap/{print $2" swap"}' | paste -sd ' '); $(df -h --output=avail / | tail -1 | tr -d ' ') free on /"
157-
158158
- name: Build native
159159
run: cargo build --profile "$RELEASE_PROFILE" --target ${{ matrix.target }}
160160

@@ -332,8 +332,8 @@ jobs:
332332

333333
build-kafka-linux:
334334
name: Build Kafka for x86_64-unknown-linux-gnu
335-
runs-on: blacksmith-8vcpu-ubuntu-2404
336-
timeout-minutes: 90
335+
runs-on: ubuntu-24.04
336+
timeout-minutes: 180
337337
permissions:
338338
id-token: write
339339
contents: write
@@ -343,6 +343,21 @@ jobs:
343343
with:
344344
ref: ${{ inputs.build-profile == 'release-thin-lto' && inputs.tag || format('refs/tags/{0}', inputs.tag) }}
345345

346+
- name: Prepare Linux build resources
347+
if: runner.os == 'Linux'
348+
run: |
349+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
350+
echo "CARGO_BUILD_JOBS=2" >> "$GITHUB_ENV"
351+
if sudo fallocate -l 16G /swap.build && sudo chmod 600 /swap.build \
352+
&& sudo mkswap /swap.build && sudo swapon /swap.build; then
353+
echo "Added 16G swap"
354+
else
355+
sudo rm -f /swap.build
356+
echo "::warning title=Swap::Could not add swap; continuing without it"
357+
fi
358+
free -h
359+
df -h /
360+
346361
- name: Set up Node.js
347362
uses: actions/setup-node@v4
348363
with:
@@ -538,7 +553,7 @@ jobs:
538553
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
539554

540555
create-checksum:
541-
runs-on: blacksmith-8vcpu-ubuntu-2404
556+
runs-on: ubuntu-24.04
542557
timeout-minutes: 10
543558
needs: [build-linux, build-windows, build-mac, build-kafka-linux, build-kafka-mac]
544559
permissions:

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ For production deployments, refer to the [installation guide ↗︎](https://www
8080
8181
## Contributing
8282

83-
Pull requests use the [CI workflow](.github/workflows/ci.yaml) on Blacksmith
84-
8-vCPU Ubuntu 24.04 runners. It selects frontend, Rust, and integration jobs from
83+
Pull requests use the [CI workflow](.github/workflows/ci.yaml) on GitHub-hosted
84+
Ubuntu 24.04 runners. It selects frontend, Rust, and integration jobs from
8585
the changed paths and reports one aggregate `CI passed` check. Frontend changes
8686
still exercise the embedded UI through the integration image; Rust-only changes
8787
skip the browser suite. A newer PR commit cancels its superseded CI run.

0 commit comments

Comments
 (0)