2020 description : ' Version string for build'
2121 type : string
2222 default : ' '
23+ use_release_artifacts :
24+ description : ' Soak the already selected binaries-* artifacts instead of rebuilding quick-lane binaries'
25+ type : boolean
26+ default : false
2327
2428permissions :
2529 contents : read
@@ -64,12 +68,33 @@ jobs:
6468 if : startsWith(matrix.os, 'ubuntu')
6569 run : sudo apt-get update && sudo apt-get install -y zlib1g-dev python3 git
6670 - name : Build
71+ if : ${{ !inputs.use_release_artifacts }}
6772 run : scripts/build.sh ${{ inputs.version && format('--version {0}', inputs.version) || '' }} CC=${{ matrix.cc }} CXX=${{ matrix.cxx }}
73+ - name : Download selected release container
74+ if : ${{ inputs.use_release_artifacts }}
75+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
76+ with :
77+ name : binaries-${{ matrix.goos }}-${{ matrix.goarch }}
78+ path : ${{ runner.temp }}/cbm-selected-container
79+ - name : Extract selected release executable
80+ if : ${{ inputs.use_release_artifacts }}
81+ run : |
82+ mkdir -p "$RUNNER_TEMP/cbm-selected-artifact"
83+ tar -xzf "$RUNNER_TEMP/cbm-selected-container/codebase-memory-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz" \
84+ -C "$RUNNER_TEMP/cbm-selected-artifact" codebase-memory-mcp
85+ chmod +x "$RUNNER_TEMP/cbm-selected-artifact/codebase-memory-mcp"
86+ "$RUNNER_TEMP/cbm-selected-artifact/codebase-memory-mcp" --version
6887 # The soak SEQUENCE and its guards live in the ONE canonical entry
6988 # scripts/soak-legs.sh — never in workflow YAML. Leg selection is a
7089 # workflow input so a long #581-only run needs no separate workflow.
7190 - name : Soak legs (${{ inputs.legs }}, ${{ inputs.duration_minutes }} min each)
72- run : scripts/soak-legs.sh --legs "${{ inputs.legs }}" build/c/codebase-memory-mcp ${{ inputs.duration_minutes }}
91+ env :
92+ SELECTED_BINARY : ${{ runner.temp }}/cbm-selected-artifact/codebase-memory-mcp
93+ USE_RELEASE_ARTIFACTS : ${{ inputs.use_release_artifacts }}
94+ run : |
95+ binary=build/c/codebase-memory-mcp
96+ test "$USE_RELEASE_ARTIFACTS" != true || binary="$SELECTED_BINARY"
97+ scripts/soak-legs.sh --legs "${{ inputs.legs }}" "$binary" ${{ inputs.duration_minutes }}
7398 - name : Upload metrics
7499 if : always()
75100 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -104,6 +129,7 @@ jobs:
104129 make
105130 git
106131 coreutils
132+ unzip
107133 # Same protected root the test legs and the VM soak use. Without it the
108134 # soak ran under the runner's inherited LocalAppData\Temp ACLs while the
109135 # local soak ran hardened — the two venues were soaking different shapes.
@@ -115,8 +141,24 @@ jobs:
115141 -ProtectDir (Join-Path $env:GITHUB_WORKSPACE "build\c")
116142 "CBM_CI_TEMP_ROOT=$root" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
117143 - name : Build
144+ if : ${{ !inputs.use_release_artifacts }}
118145 shell : msys2 {0}
119146 run : scripts/build.sh ${{ inputs.version && format('--version {0}', inputs.version) || '' }} CC=clang CXX=clang++
147+ - name : Download selected release container
148+ if : ${{ inputs.use_release_artifacts }}
149+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
150+ with :
151+ name : binaries-windows-amd64
152+ path : ${{ runner.temp }}/cbm-selected-container
153+ - name : Extract selected release executable
154+ if : ${{ inputs.use_release_artifacts }}
155+ shell : msys2 {0}
156+ run : |
157+ ARTIFACT_DIR="$(cygpath -u "$RUNNER_TEMP")/cbm-selected-artifact"
158+ mkdir -p "$ARTIFACT_DIR"
159+ unzip -q "$(cygpath -u "$RUNNER_TEMP")/cbm-selected-container/codebase-memory-mcp-windows-amd64.zip" \
160+ codebase-memory-mcp.exe -d "$ARTIFACT_DIR"
161+ "$ARTIFACT_DIR/codebase-memory-mcp.exe" --version
120162 # Both release-gating legs via the ONE canonical soak entry; only the
121163 # protected-TEMP provisioning is venue text. soak-legs.sh resolves .exe.
122164 - name : Soak legs (${{ inputs.legs }}, ${{ inputs.duration_minutes }} min each)
@@ -125,7 +167,11 @@ jobs:
125167 export TEMP="$(cygpath -m "$CBM_CI_TEMP_ROOT")"
126168 export TMP="$TEMP"
127169 export TMPDIR="$(cygpath -u "$CBM_CI_TEMP_ROOT")"
128- scripts/soak-legs.sh --legs "${{ inputs.legs }}" build/c/codebase-memory-mcp ${{ inputs.duration_minutes }}
170+ binary=build/c/codebase-memory-mcp
171+ if [ "${{ inputs.use_release_artifacts }}" = true ]; then
172+ binary="$(cygpath -u "$RUNNER_TEMP")/cbm-selected-artifact/codebase-memory-mcp.exe"
173+ fi
174+ scripts/soak-legs.sh --legs "${{ inputs.legs }}" "$binary" ${{ inputs.duration_minutes }}
129175 - name : Upload metrics
130176 if : always()
131177 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -161,6 +207,7 @@ jobs:
161207 make
162208 git
163209 coreutils
210+ unzip
164211 # Same protected root the test legs and the VM soak use. Without it the
165212 # soak ran under the runner's inherited LocalAppData\Temp ACLs while the
166213 # local soak ran hardened — the two venues were soaking different shapes.
@@ -172,8 +219,24 @@ jobs:
172219 -ProtectDir (Join-Path $env:GITHUB_WORKSPACE "build\c")
173220 "CBM_CI_TEMP_ROOT=$root" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
174221 - name : Build
222+ if : ${{ !inputs.use_release_artifacts }}
175223 shell : msys2 {0}
176224 run : scripts/build.sh ${{ inputs.version && format('--version {0}', inputs.version) || '' }} CC=clang CXX=clang++
225+ - name : Download selected release container
226+ if : ${{ inputs.use_release_artifacts }}
227+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
228+ with :
229+ name : binaries-windows-arm64
230+ path : ${{ runner.temp }}/cbm-selected-container
231+ - name : Extract selected release executable
232+ if : ${{ inputs.use_release_artifacts }}
233+ shell : msys2 {0}
234+ run : |
235+ ARTIFACT_DIR="$(cygpath -u "$RUNNER_TEMP")/cbm-selected-artifact"
236+ mkdir -p "$ARTIFACT_DIR"
237+ unzip -q "$(cygpath -u "$RUNNER_TEMP")/cbm-selected-container/codebase-memory-mcp-windows-arm64.zip" \
238+ codebase-memory-mcp.exe -d "$ARTIFACT_DIR"
239+ "$ARTIFACT_DIR/codebase-memory-mcp.exe" --version
177240 # Both release-gating legs via the ONE canonical soak entry; only the
178241 # protected-TEMP provisioning is venue text. soak-legs.sh resolves .exe.
179242 - name : Soak legs (${{ inputs.legs }}, ${{ inputs.duration_minutes }} min each)
@@ -182,7 +245,11 @@ jobs:
182245 export TEMP="$(cygpath -m "$CBM_CI_TEMP_ROOT")"
183246 export TMP="$TEMP"
184247 export TMPDIR="$(cygpath -u "$CBM_CI_TEMP_ROOT")"
185- scripts/soak-legs.sh --legs "${{ inputs.legs }}" build/c/codebase-memory-mcp ${{ inputs.duration_minutes }}
248+ binary=build/c/codebase-memory-mcp
249+ if [ "${{ inputs.use_release_artifacts }}" = true ]; then
250+ binary="$(cygpath -u "$RUNNER_TEMP")/cbm-selected-artifact/codebase-memory-mcp.exe"
251+ fi
252+ scripts/soak-legs.sh --legs "${{ inputs.legs }}" "$binary" ${{ inputs.duration_minutes }}
186253 - name : Upload metrics
187254 if : always()
188255 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
@@ -198,7 +265,61 @@ jobs:
198265 path : soak-results-query-leak/
199266 retention-days : 14
200267
268+ # Portable Linux is a separate immutable product tuple. It participates when
269+ # a caller supplies selected release artifacts; the source-building nightly
270+ # retains its historical matrix and has no upstream binaries-* artifacts.
271+ soak-quick-linux-portable :
272+ if : ${{ inputs.use_release_artifacts }}
273+ strategy :
274+ fail-fast : false
275+ matrix :
276+ include :
277+ - arch : amd64
278+ runner : ubuntu-latest
279+ - arch : arm64
280+ runner : ubuntu-24.04-arm
281+ runs-on : ${{ matrix.runner }}
282+ timeout-minutes : 560
283+ steps :
284+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
285+ - name : Install soak dependencies
286+ run : sudo apt-get update && sudo apt-get install -y python3 git
287+ - name : Download selected portable release container
288+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
289+ with :
290+ name : binaries-linux-${{ matrix.arch }}-portable
291+ path : ${{ runner.temp }}/cbm-selected-container
292+ - name : Extract selected portable executable
293+ run : |
294+ mkdir -p "$RUNNER_TEMP/cbm-selected-artifact"
295+ tar -xzf "$RUNNER_TEMP/cbm-selected-container/codebase-memory-mcp-linux-${{ matrix.arch }}-portable.tar.gz" \
296+ -C "$RUNNER_TEMP/cbm-selected-artifact" codebase-memory-mcp
297+ chmod +x "$RUNNER_TEMP/cbm-selected-artifact/codebase-memory-mcp"
298+ "$RUNNER_TEMP/cbm-selected-artifact/codebase-memory-mcp" --version
299+ - name : Soak selected portable legs (${{ inputs.legs }}, ${{ inputs.duration_minutes }} min each)
300+ run : |
301+ scripts/soak-legs.sh --legs "${{ inputs.legs }}" \
302+ "$RUNNER_TEMP/cbm-selected-artifact/codebase-memory-mcp" \
303+ ${{ inputs.duration_minutes }}
304+ - name : Upload metrics
305+ if : always()
306+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
307+ with :
308+ name : soak-quick-linux-${{ matrix.arch }}-portable
309+ path : soak-results/
310+ retention-days : 14
311+ - name : Upload query-leak metrics
312+ if : always()
313+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
314+ with :
315+ name : soak-query-leak-linux-${{ matrix.arch }}-portable
316+ path : soak-results-query-leak/
317+ retention-days : 14
318+
201319 soak-asan :
320+ # Supplemental source-built instrumentation. This can find memory bugs but
321+ # is not evidence that the selected release bytes were soaked; the quick
322+ # jobs above own that release gate when use_release_artifacts=true.
202323 if : ${{ inputs.run_asan }}
203324 strategy :
204325 fail-fast : false
0 commit comments