@@ -1350,98 +1350,106 @@ jobs:
13501350 exit "$failed"
13511351
13521352 bun_global_install_smoke :
1353- needs : [preflight, root_dockerfile_image, root_dockerfile_image_ready ]
1353+ needs : [preflight, installer_smoke_candidate_payload ]
13541354 if : needs.preflight.outputs.run_full_install_smoke == 'true' && needs.preflight.outputs.run_bun_global_install_smoke == 'true'
13551355 runs-on : ubuntu-24.04
13561356 timeout-minutes : 60
1357- env :
1358- OPENCLAW_DOCKER_E2E_REQUIRE_LOCAL_IMAGE : " 1"
13591357 steps :
13601358 - *trusted_workflow_subdir_checkout_step
13611359 - *trusted_workflow_subdir_identity_step
13621360
1363- - name : Validate root Dockerfile image artifact binding
1361+ - name : Validate candidate payload artifact binding
13641362 env :
1365- ARCHIVE_SHA256 : ${{ needs.root_dockerfile_image.outputs.archive_sha256 }}
1366- ARTIFACT_DIGEST : ${{ needs.root_dockerfile_image.outputs.artifact_digest }}
1367- ARTIFACT_ID : ${{ needs.root_dockerfile_image.outputs.artifact_id }}
1368- ARTIFACT_NAME : ${{ needs.root_dockerfile_image.outputs.artifact_name }}
1369- ARTIFACT_RUN_ATTEMPT : ${{ needs.root_dockerfile_image.outputs.artifact_run_attempt }}
1370- ARTIFACT_RUN_ID : ${{ needs.root_dockerfile_image.outputs.artifact_run_id }}
1363+ ARTIFACT_DIGEST : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_digest }}
1364+ ARTIFACT_ID : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_id }}
1365+ ARTIFACT_NAME : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_name }}
1366+ ARTIFACT_RUN_ATTEMPT : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_run_attempt }}
1367+ ARTIFACT_RUN_ID : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_run_id }}
1368+ ARTIFACT_HARNESS_REPOSITORY : ${{ needs.installer_smoke_candidate_payload.outputs.harness_repository }}
1369+ ARTIFACT_HARNESS_SHA : ${{ needs.installer_smoke_candidate_payload.outputs.harness_sha }}
1370+ ARTIFACT_REPOSITORY : ${{ needs.installer_smoke_candidate_payload.outputs.repository }}
1371+ ARTIFACT_TARGET_SHA : ${{ needs.installer_smoke_candidate_payload.outputs.target_sha }}
1372+ HARNESS_REPOSITORY : ${{ steps.workflow.outputs.repository }}
1373+ HARNESS_SHA : ${{ steps.workflow.outputs.sha }}
13711374 GH_TOKEN : ${{ github.token }}
13721375 TARGET_SHA : ${{ needs.preflight.outputs.target_sha }}
13731376 run : |
13741377 set -euo pipefail
13751378 [[ "$ARTIFACT_ID" =~ ^[1-9][0-9]*$ ]] || {
1376- echo "Root image artifact ID is missing or invalid." >&2
1379+ echo "Candidate payload artifact ID is missing or invalid." >&2
13771380 exit 1
13781381 }
13791382 [[ "$ARTIFACT_DIGEST" =~ ^[a-f0-9]{64}$ ]] || {
1380- echo "Root image artifact digest is missing or invalid." >&2
1381- exit 1
1382- }
1383- [[ "$ARCHIVE_SHA256" =~ ^[a-f0-9]{64}$ ]] || {
1384- echo "Root image archive SHA-256 is missing or invalid." >&2
1383+ echo "Candidate payload artifact digest is missing or invalid." >&2
13851384 exit 1
13861385 }
13871386 [[ "$ARTIFACT_RUN_ID" =~ ^[1-9][0-9]*$ ]] || {
1388- echo "Root image artifact run ID is missing or invalid." >&2
1387+ echo "Candidate payload artifact run ID is missing or invalid." >&2
13891388 exit 1
13901389 }
13911390 [[ "$ARTIFACT_RUN_ATTEMPT" =~ ^[1-9][0-9]*$ ]] || {
1392- echo "Root image artifact run attempt is missing or invalid." >&2
1391+ echo "Candidate payload artifact run attempt is missing or invalid." >&2
13931392 exit 1
13941393 }
1395- expected_artifact_name="install-smoke-root-image-${TARGET_SHA:0:12}-${ARTIFACT_RUN_ID}-${ARTIFACT_RUN_ATTEMPT}"
1394+ [[ "$ARTIFACT_REPOSITORY" == "$GITHUB_REPOSITORY" ]]
1395+ [[ "$ARTIFACT_TARGET_SHA" == "$TARGET_SHA" ]]
1396+ [[ "$ARTIFACT_HARNESS_REPOSITORY" == "$HARNESS_REPOSITORY" ]]
1397+ [[ "$ARTIFACT_HARNESS_SHA" == "$HARNESS_SHA" ]]
1398+ expected_artifact_name="install-smoke-candidate-payload-${TARGET_SHA}-${ARTIFACT_RUN_ID}-${ARTIFACT_RUN_ATTEMPT}"
13961399 [[ "$ARTIFACT_NAME" == "$expected_artifact_name" ]] || {
1397- echo "Root image artifact name does not match the target and producer run attempt ." >&2
1400+ echo "Candidate payload artifact name does not match the producer tuple ." >&2
13981401 exit 1
13991402 }
14001403 bash .release-harness/scripts/docker/shared-image-artifact.sh \
1401- verify-upload "Root image " "$ARTIFACT_ID" "$ARTIFACT_NAME" "$ARTIFACT_DIGEST" \
1404+ verify-upload "Candidate payload " "$ARTIFACT_ID" "$ARTIFACT_NAME" "$ARTIFACT_DIGEST" \
14021405 "$ARTIFACT_RUN_ID" "$ARTIFACT_RUN_ATTEMPT"
14031406
1404- - name : Download root Dockerfile image artifact
1407+ - name : Download candidate payload artifact
14051408 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
14061409 with :
1407- artifact-ids : ${{ needs.root_dockerfile_image .outputs.artifact_id }}
1408- path : ${{ runner.temp }}/install-smoke-root-image
1409- run-id : ${{ needs.root_dockerfile_image .outputs.artifact_run_id }}
1410+ artifact-ids : ${{ needs.installer_smoke_candidate_payload .outputs.artifact_id }}
1411+ path : ${{ runner.temp }}/install-smoke-candidate-payload
1412+ run-id : ${{ needs.installer_smoke_candidate_payload .outputs.artifact_run_id }}
14101413 github-token : ${{ github.token }}
14111414
1412- - name : Verify and load root Dockerfile image artifact
1413- env :
1414- IMAGE_REF : ${{ needs.root_dockerfile_image.outputs.image_ref }}
1415- OPENCLAW_SHARED_IMAGE_ARCHIVE_SHA256 : ${{ needs.root_dockerfile_image.outputs.archive_sha256 }}
1416- OPENCLAW_SHARED_IMAGE_RUN_ATTEMPT : ${{ needs.root_dockerfile_image.outputs.artifact_run_attempt }}
1417- OPENCLAW_SHARED_IMAGE_RUN_ID : ${{ needs.root_dockerfile_image.outputs.artifact_run_id }}
1418- TARGET_SHA : ${{ needs.preflight.outputs.target_sha }}
1419- WORKFLOW_SHA : ${{ steps.workflow.outputs.sha }}
1420- run : |
1421- set -euo pipefail
1422- bash .release-harness/scripts/docker/shared-image-artifact.sh \
1423- load "${RUNNER_TEMP}/install-smoke-root-image" install-smoke-root \
1424- "$TARGET_SHA" "$WORKFLOW_SHA" "$IMAGE_REF"
1425-
1426- - name : Require local root Dockerfile image
1427- env :
1428- IMAGE_REF : ${{ needs.root_dockerfile_image.outputs.image_ref }}
1429- run : docker image inspect "$IMAGE_REF" >/dev/null
1430-
14311415 - name : Setup trusted release harness for Bun smoke
14321416 uses : ./.release-harness/.github/actions/setup-release-harness
14331417 with :
14341418 node-version : " 24.x"
14351419
1420+ - name : Verify candidate payload contents
1421+ env :
1422+ HARNESS_REPOSITORY : ${{ steps.workflow.outputs.repository }}
1423+ HARNESS_SHA : ${{ steps.workflow.outputs.sha }}
1424+ MANIFEST_SHA256 : ${{ needs.installer_smoke_candidate_payload.outputs.manifest_sha256 }}
1425+ PACKAGE_VERSION : ${{ needs.installer_smoke_candidate_payload.outputs.package_version }}
1426+ PRODUCER_RUN_ATTEMPT : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_run_attempt }}
1427+ PRODUCER_RUN_ID : ${{ needs.installer_smoke_candidate_payload.outputs.artifact_run_id }}
1428+ SOURCE_ARCHIVE_SHA256 : ${{ needs.installer_smoke_candidate_payload.outputs.source_archive_sha256 }}
1429+ TARGET_REPOSITORY : ${{ needs.installer_smoke_candidate_payload.outputs.repository }}
1430+ TARGET_SHA : ${{ needs.preflight.outputs.target_sha }}
1431+ run : |
1432+ set -euo pipefail
1433+ node .release-harness/scripts/install-smoke-candidate-payload.mts verify \
1434+ --payload-dir "${RUNNER_TEMP}/install-smoke-candidate-payload" \
1435+ --repository "$TARGET_REPOSITORY" \
1436+ --target-sha "$TARGET_SHA" \
1437+ --harness-repository "$HARNESS_REPOSITORY" \
1438+ --harness-sha "$HARNESS_SHA" \
1439+ --run-id "$PRODUCER_RUN_ID" \
1440+ --run-attempt "$PRODUCER_RUN_ATTEMPT" \
1441+ --package-version "$PACKAGE_VERSION" \
1442+ --manifest-sha256 "$MANIFEST_SHA256" \
1443+ --source-archive-sha256 "$SOURCE_ARCHIVE_SHA256"
1444+
14361445 - name : Install Bun for global smoke
14371446 run :
npm install -g [email protected] 14381447
1439- - name : Run Bun global install image-provider smoke
1448+ - name : Run Bun global install candidate-payload smoke
14401449 working-directory : .release-harness
14411450 env :
1442- OPENCLAW_BUN_GLOBAL_SMOKE_ALLOW_UNRELEASED_CHANGELOG : ${{ inputs.allow_unreleased_changelog }}
1443- OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE : ${{ needs.root_dockerfile_image.outputs.image_ref }}
14441451 OPENCLAW_BUN_GLOBAL_SMOKE_HOST_BUILD : " 0"
1452+ OPENCLAW_BUN_GLOBAL_SMOKE_PACKAGE_TGZ : ${{ runner.temp }}/install-smoke-candidate-payload/candidate.tgz
14451453 run : bash scripts/e2e/bun-global-install-smoke.sh
14461454
14471455 docker-e2e-fast :
0 commit comments