Skip to content

Commit efae5bc

Browse files
TeoSlayerteovl
andauthored
fix(ci): release build only ships daemon/pilotctl/updater + drop dead harness (#186)
Same rot as -short suite swap (#185): the release build script still listed gateway/registry/beacon/rendezvous/nameserver in BINS — every one of those cmd/ dirs was extracted into a sibling repo months ago, and `stat: cmd/gateway: directory not found` aborted the build stage on every release tag pushed since the extraction (v1.10.1+). Also drop: - the dist/registry start/stop smoke test (registry is a sibling now) - the entire 'Integration harness' job (driven by bin/registry + bin/beacon — both gone) — release now needs build directly Web4 ships the daemon stack only; sibling releases ship the rest. Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
1 parent 6134cc3 commit efae5bc

1 file changed

Lines changed: 2 additions & 73 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
VERSION=${GITHUB_REF_NAME}
7777
LDFLAGS="-s -w -X main.version=${VERSION}"
78-
BINS="daemon pilotctl gateway registry beacon rendezvous nameserver updater"
78+
BINS="daemon pilotctl updater"
7979
mkdir -p dist
8080
for bin in $BINS; do
8181
echo "Building $bin for ${{ matrix.goos }}/${{ matrix.goarch }}..."
@@ -113,13 +113,6 @@ jobs:
113113
echo " ✓ $name"
114114
done
115115
116-
echo ""
117-
echo "=== Registry start/stop test ==="
118-
dist/registry -addr 127.0.0.1:0 &
119-
REG_PID=$!
120-
sleep 1
121-
kill $REG_PID 2>/dev/null && echo " ✓ registry starts and stops cleanly"
122-
123116
echo ""
124117
echo "=== Daemon help test ==="
125118
dist/daemon -h 2>&1 | head -5
@@ -142,73 +135,9 @@ jobs:
142135
name: pilot-${{ matrix.goos }}-${{ matrix.goarch }}
143136
path: ${{ env.ARCHIVE }}
144137

145-
harness:
146-
name: Integration harness
147-
needs: build
148-
runs-on: ubuntu-latest
149-
steps:
150-
- uses: actions/checkout@v4
151-
152-
- name: Download linux/amd64 binaries
153-
uses: actions/download-artifact@v4
154-
with:
155-
name: pilot-linux-amd64
156-
157-
- name: Extract binaries
158-
run: |
159-
mkdir -p bin
160-
tar -xzf pilot-linux-amd64.tar.gz -C bin
161-
chmod +x bin/*
162-
163-
- name: End-to-end harness
164-
run: |
165-
set -e
166-
echo "=== Starting registry ==="
167-
bin/registry -addr 127.0.0.1:19000 -log-level error &
168-
REG_PID=$!
169-
sleep 1
170-
171-
echo "=== Starting beacon ==="
172-
bin/beacon -registry-addr 127.0.0.1:19000 -listen :19001 -log-level error &
173-
BEACON_PID=$!
174-
sleep 1
175-
176-
echo "=== Starting daemon A ==="
177-
PILOT_HOME=$(mktemp -d)
178-
bin/daemon -registry 127.0.0.1:19000 -beacon 127.0.0.1:19001 \
179-
-hostname harness-a -home "$PILOT_HOME/a" -log-level error &
180-
DA_PID=$!
181-
sleep 2
182-
183-
echo "=== Starting daemon B ==="
184-
bin/daemon -registry 127.0.0.1:19000 -beacon 127.0.0.1:19001 \
185-
-hostname harness-b -home "$PILOT_HOME/b" -log-level error &
186-
DB_PID=$!
187-
sleep 2
188-
189-
echo "=== Verify nodes registered ==="
190-
# pilotctl info via daemon A
191-
PILOT_SOCK="$PILOT_HOME/a/pilot.sock" bin/pilotctl info --json 2>&1 | head -20
192-
echo " ✓ daemon A responds to info"
193-
194-
PILOT_SOCK="$PILOT_HOME/b/pilot.sock" bin/pilotctl info --json 2>&1 | head -20
195-
echo " ✓ daemon B responds to info"
196-
197-
echo "=== Health check ==="
198-
PILOT_SOCK="$PILOT_HOME/a/pilot.sock" bin/pilotctl health --json 2>&1 | head -20
199-
echo " ✓ daemon A health OK"
200-
201-
echo "=== Teardown ==="
202-
kill $DA_PID $DB_PID $BEACON_PID $REG_PID 2>/dev/null || true
203-
wait $DA_PID $DB_PID $BEACON_PID $REG_PID 2>/dev/null || true
204-
rm -rf "$PILOT_HOME"
205-
echo " ✓ all processes stopped cleanly"
206-
echo ""
207-
echo "=== HARNESS PASSED ==="
208-
209138
release:
210139
name: Create release
211-
needs: harness
140+
needs: build
212141
runs-on: ubuntu-latest
213142
steps:
214143
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)