Fix Jenkins metrics helper workspace transport
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
Jenkins build #5 failure and targeted repair evidence
|
||||
UTC date: 2026-11-28
|
||||
Branch: feature/final-ci-demo
|
||||
Source commit: 32a3c6f3f055c8a840f5bde9784137bfa39c8493
|
||||
Actions run: 47, attempt 1
|
||||
Jenkins job: final-project-live, build #5
|
||||
|
||||
Relevant Jenkins console sequence (read from saved build #5 log):
|
||||
checkout: 32a3c6f3f055c8a840f5bde9784137bfa39c8493
|
||||
verify: python3 ci/final_project.py verify --bundle out/review-bundle.zip --sha 32a3c6f3f055c8a840f5bde9784137bfa39c8493 --run-id 47 --attempt 1 --mode live --output out/verified
|
||||
reserve: python3 ci/final_project.py reserve --sha 32a3c6f3f055c8a840f5bde9784137bfa39c8493 --run-id 47 --attempt 1 --mode live --state /state --baseline 1.0
|
||||
metrics: python3 ci/final_project.py metrics --review-dir out/verified --output out/review.prom
|
||||
publish: sh ci/toolchain.sh metrics 1.0.6
|
||||
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/jenkins/agent/workspace/final-project-live.
|
||||
ERROR: script returned exit code 125
|
||||
Finished: FAILURE
|
||||
|
||||
The Jenkins agent's /home/jenkins/agent path is a Docker volume. Its path is
|
||||
not available as a bind source to the Docker host daemon. The previous helper
|
||||
used --mount type=bind,src="$PWD",dst=/work,readonly, causing the failure.
|
||||
|
||||
Repair: ci/toolchain.sh metrics streams ci/publish_live_metrics.py,
|
||||
out/verified/review.json, out/verified/bundle.json and out/review.prom through
|
||||
tar on stdin to the isolated metrics helper. The only host bind is the existing
|
||||
/home/codex/ssw590-final-metrics -> /metrics mount.
|
||||
|
||||
Targeted verification:
|
||||
sh -n ci/toolchain.sh: passed
|
||||
git diff --check: passed
|
||||
toolchain image contains /usr/bin/tar and /usr/bin/python3
|
||||
Failed workspace input sizes: 6,976 + 1,971 + 131 + 476 = 9,554 bytes
|
||||
Isolated replay used the build #5 verified inputs, Docker network=none,
|
||||
read-only root, 8 MB private tmpfs, 64 MB memory and 0.2 CPU.
|
||||
Test metrics destination: fresh temporary /tmp directory, removed afterward.
|
||||
Replay result: {"totals": {"input": 23, "output": 5}, "recorded_runs": 1}
|
||||
Test .prom included review_input_tokens_total{mode="live"} 23,
|
||||
review_output_tokens_total{mode="live"} 5 and
|
||||
review_release_info{mode="live",version="1.0.6"} 1.
|
||||
|
||||
This verifies the failed metrics transport and writer only. Jenkins PDF,
|
||||
reviewed-program, tests and packaging still need a new full build. The isolated
|
||||
replay did not alter live Grafana metrics and is not a released artifact.
|
||||
Reference in New Issue
Block a user