Compare commits

..
Author SHA1 Message Date
Codex 0e2df635d1 Record verified live pipeline evidence for #24 [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-27 19:27:38 +00:00
Codex c735c8c693 Use compatible pinned model image and demonstrate syntax repair for #24
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Successful in 1m17s
2026-11-27 19:15:48 +00:00
Codex 0311260ddf Account for kernel page rounding in measured memory cap
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m24s
2026-11-27 19:10:35 +00:00
Codex 9275fcdcae Integrate real reviewer with measured Actions execution and live Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (live) / review (push) Failing after 1m24s
2026-11-27 19:08:59 +00:00
Codex ad69828bc5 Merge branch 'feature/final-ai-review' of https://myfileagent.tech/myfileagent/myfileagent-pipeline into feature/final-ci-demo 2026-11-27 19:03:37 +00:00
Codex 4feb58810a Preserve technical verification evidence and remaining integration checkpoint
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 58s
2026-11-26 16:57:33 +00:00
Codex 0ec7cee5b9 Verify Jenkins release, deploy metrics collector, and test compiler failure
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m25s
2026-11-26 16:48:06 +00:00
Codex 0e7ade75b9 Define shared review contract and generate run data in automated PDF
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m8s
2026-11-25 20:15:37 +00:00
Codex 1fa79546e6 Defer report authoring and retain technical build integration 2026-11-25 20:12:07 +00:00
Codex e8d4653abf Verify immutable release gates and document fixture handoff
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 1m9s
2026-11-25 20:11:06 +00:00
Codex 5dc81e0b57 Reuse existing Jenkins credential and trust isolated build checkout
myfileagent-python-ci/pipeline/head This commit looks good
Final project review (fixture) / review (push) Successful in 49s
2026-11-25 20:07:44 +00:00
Codex bed90200d2 Build Member 2 fixture review-to-release pipeline
Final project review (fixture) / review (push) Successful in 1m7s
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-25 20:03:12 +00:00
65 changed files with 3148 additions and 9 deletions
+53
View File
@@ -0,0 +1,53 @@
name: Final project review (live)
on:
push:
branches: [feature/final-ci-demo, final-project-demo]
jobs:
review:
runs-on: manual-latex
container:
image: sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3
options: --memory=250000000 --memory-swap=250000000 --tmpfs /private-model:rw,size=100000000
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Verify source and run combined contract tests
env:
SOURCE_SHA: ${{ github.sha }}
run: |
set -eu
test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
python3 -m unittest discover -s ci/tests -v
python3 -m unittest discover -s tests -v
- name: Run real model under measured 250 MB cap
env:
SOURCE_SHA: ${{ github.sha }}
ACTIONS_RUN_ID: ${{ github.run_id }}
ACTIONS_ATTEMPT: ${{ github.run_attempt }}
run: |
set -eu
python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
python3 ci/run_live_review.py
python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
- name: Publish ready bundle for this exact run and attempt
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: review-${{ github.run_id }}-attempt-${{ github.run_attempt }}-${{ github.sha }}
path: out/review-bundle.zip
if-no-files-found: error
retention-days: 14
- name: Preserve raw model and resource evidence
if: always()
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: live-evidence-${{ github.run_id }}-${{ github.sha }}
path: |
out/review
out/resource.json
if-no-files-found: warn
retention-days: 30
+4
View File
@@ -0,0 +1,4 @@
__pycache__/
*.py[cod]
out/
documentation/build/
+3
View File
@@ -1,3 +1,6 @@
Historical Member 1 handoff as delivered. Current deployed integration and
verified live results are recorded in ci/HANDOFF.txt and ci/evidence/live-integration/.
SSW590 Group 7 — Member 1 handoff (2026-11-26 America/New_York) SSW590 Group 7 — Member 1 handoff (2026-11-26 America/New_York)
Owner: Member 1; branch: feature/final-ai-review Owner: Member 1; branch: feature/final-ai-review
BASE_SHA / demonstrated source_commit: 5373351a7e7ac2bc0f34bae19c25383de3843ca7 BASE_SHA / demonstrated source_commit: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
+81
View File
@@ -0,0 +1,81 @@
pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); skipDefaultCheckout(); timeout(time: 45, unit: 'MINUTES'); timestamps() }
parameters {
string(name: 'SOURCE_SHA', defaultValue: '', description: 'Full SHA of this reviewed pipeline branch and Actions run')
string(name: 'ACTIONS_RUN_ID', defaultValue: '', description: 'Exact successful Gitea Actions run')
string(name: 'ACTIONS_ATTEMPT', defaultValue: '1', description: 'Exact attempt')
choice(name: 'MODE', choices: ['live', 'fixture'], description: 'Must match the selected Actions bundle')
}
stages {
stage('Checkout exact source') {
steps {
script {
if (!(params.SOURCE_SHA ==~ /[0-9a-f]{40}/) || !(params.ACTIONS_RUN_ID ==~ /[1-9][0-9]*/) || !(params.ACTIONS_ATTEMPT ==~ /[1-9][0-9]*/)) { error('Invalid run identity') }
}
deleteDir()
checkout scm
sh '''set -eu
test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
mkdir -p out
'''
}
}
stage('Retrieve exact Actions bundle') {
steps {
withCredentials([string(credentialsId: 'gitea-jenkins-ci', variable: 'GITEA_TOKEN')]) {
sh '''set +x
set -eu
python3 ci/final_project.py fetch --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --output out/review-bundle.zip > out/actions-run.json
'''
}
}
}
stage('Validate identity and payload hashes') {
steps { sh '''set -eu
python3 ci/final_project.py verify --bundle out/review-bundle.zip --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --output out/verified
sh ci/toolchain.sh start
''' }
}
stage('Publish measured live review metrics') {
when { expression { params.MODE == 'live' } }
steps { sh 'python3 ci/final_project.py metrics --review-dir out/verified --output out/review.prom && sh ci/toolchain.sh metrics' }
}
stage('Reserve durable release version') {
steps {
script {
env.RELEASE_VERSION = sh(script: 'sh ci/toolchain.sh exec python3 ci/final_project.py reserve --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --state /state --baseline 1.0', returnStdout: true).trim()
}
}
}
stage('Compile LaTeX report') {
steps { sh '''set -eu
RUN_NUMBER=$(python3 -c 'import json;print(json.load(open("out/actions-run.json"))["run_number"])')
sh ci/toolchain.sh exec python3 documentation/ci/build_manual.py --sha "$SOURCE_SHA" --run-number "$RUN_NUMBER" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --review-bundle /work/out/review-bundle.zip --release-version "$RELEASE_VERSION" --mode "$MODE" --jenkins-build "$BUILD_NUMBER"
''' }
}
stage('Unit, syntax and reviewed-file smoke tests') {
steps { sh '''set -eu
sh ci/toolchain.sh exec python3 -m unittest discover -s tests -v
sh ci/toolchain.sh exec python3 -m unittest discover -s ci/tests -v
sh ci/toolchain.sh exec python3 ci/final_project.py test --review-dir out/verified --output out/test-result.json
''' }
}
stage('Package immutable release') {
steps { sh '''set -eu
sh ci/toolchain.sh exec python3 ci/final_project.py publish --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode "$MODE" --bundle out/review-bundle.zip --pdf documentation/build/main.pdf --state /state --output out/release --jenkins-build "$BUILD_NUMBER"
sh ci/toolchain.sh collect
''' }
}
stage('Publish downloadable ZIP') {
steps { archiveArtifacts artifacts: 'out/collected/release/*', fingerprint: true }
}
}
post {
always {
sh 'sh ci/toolchain.sh collect || true'
sh 'sh ci/toolchain.sh stop || true'
archiveArtifacts artifacts: 'out/actions-run.json,out/collected/test-result.json,out/collected/verified/verified.json', allowEmptyArchive: true
}
}
}
+2
View File
@@ -0,0 +1,2 @@
FROM python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1
RUN apt-get update && apt-get install -y --no-install-recommends git nodejs ca-certificates && rm -rf /var/lib/apt/lists/*
+76
View File
@@ -0,0 +1,76 @@
SSW590 technical integration checkpoint — 2026-11-27
User: Gowri, Member 2. Report writing remains deferred.
Workspace: /home/codex/ssw590-member2
Branch: feature/final-ci-demo
Verified implementation: c735c8c6934c3084944de3077dfba027bf423bef
Member 1 merged head: 1449a8bf68a5013433225f77f5286bf8d6fd9468
Shared base: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
Completed live technical path:
- Merged the real bounded reviewer, fixtures and tests. Adopted the optional
runtime/library/executable checksum hardening, with safe preparation support
for the older compiler Python. Fixed Member 1 smoke-error normalization.
- Issue #24 tracks the actual work. Commit c735c8c references it and changes
demo/demo.py to the controlled missing-parenthesis input. The model preserves
that committed source and writes the repaired output separately.
- Actions #43 SUCCESS: real SmolLM2 model returned corrected, 23 input and 5
output tokens, 3.0561 seconds. SHA, input hash, runtime lock, raw response,
runtime counters and resource measurements are retained with the review.
- Strict 250,000,000-byte requested cap, no swap. Kernel effective cap and
observed whole-job peak: 249,999,360 bytes. memory.events max=433, oom=0,
oom_kill=0. The job reached its cap; this does NOT prove natural peak below
the cap or spare memory. It includes preparation/cache and reviewer work.
- Jenkins final-project-live #1 SUCCESS, 39 tests (19 reviewer/application,
20 pipeline), exact reviewed-file smoke, 170-page PDF, live ZIP 1.0.4.
- Downloaded ZIP, companion SHA256, all four payload hashes, PDF source/model/
token/code identity and independently extracted Python execution passed.
- Jenkins live #2 expected FAILURE: invalid Actions run rejected before build,
metrics or release publication; no ZIP. Live #3 SUCCESS: exact byte-identical
1.0.4 retry, original published identity preserved.
- ZIP SHA256: 2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5
- Real input/output/duration/memory/timestamp metrics verified in Prometheus.
Grafana resource storage confirms eight loaded panels. Fixed-window raw
series include shared-host CPU/memory, not per-model CPU or RSS.
Important implementation details:
- Live Actions image is locked by immutable local image ID in ci/live-image.json;
ci/Dockerfile.live-actions builds it from Member 1's compatible pinned Python
base plus Git/Node. It is present on this Droplet. A new runner host needs that
image provisioned or a reviewed rebuild and updated image lock.
- Each Actions run downloads and checksum-verifies its runtime. Model resides
in private tmpfs. The shared runner's allowed-volume policy was not widened.
- Compiler remains the original pinned TeX image; model inference is separate.
- Live job: https://ci.myfileagent.tech/job/final-project-live/
Actions: https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/43
Issue: https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/24
- Manual Jenkins trigger is supported: use the exact successful Actions run's
full source SHA, run ID, attempt 1 and MODE=live. Current pipeline requires
branch HEAD to match that source; evidence-only follow-up commits also move
HEAD, so use the corresponding successful run after any branch advance.
- Existing 1.0 release line and durable ssw590-final-project-state volume remain.
Prior fixture 1.0.1–1.0.3 and local Member 1 dry runs are distinct evidence.
- Existing protected-main checks, pricing, Zammad and monitoring collectors
remain intact. Temporary Jenkins API token revoked, rejection verified (401),
temporary credential file removed after testing.
Evidence and deliverables:
- ci/evidence/live-integration/summary.json indexes verified results.
- That directory retains Actions failures 41 (kernel rounding), 42 (runtime
libc incompatibility), success 43, Jenkins logs/results, issue data, real
review bundle, checksum results and Prometheus samples/window.
- Local ZIP and checksum:
/home/codex/outputs/final-project-live/ssw590-live-1.0.4.zip
/home/codex/outputs/final-project-live/ssw590-live-1.0.4.zip.sha256
- Member 1 source evidence and report draft remain under handoff/member1/.
Do not describe their synthetic local run IDs as deployed pipeline runs.
Remaining user-facing project work:
- Final report/chapter, diagrams, SWOT integration, update history and final
presentation/demo preparation: deliberately deferred by user.
- Capture presentation screenshots from the actual Grafana/Jenkins UI. Raw
measurements and verified provisioned panels are saved; no screenshots have
been fabricated or claimed. Dashboard was opened on the actual run window.
- Issue completion comment is prepared in outputs/final-project-live/ and the
user was asked to post it because the repository API token lacks issue-write
permission. Check the public issue comments before assuming it was posted.
- Preserve the current release; do not delete the durable state volume.
+71
View File
@@ -0,0 +1,71 @@
SSW590 Member 2 operations — fixture stage
Starting main SHA: 5373351a7e7ac2bc0f34bae19c25383de3843ca7
Branch: feature/final-ci-demo
Workspace: /home/codex/ssw590-member2
Member 1's earlier uncommitted draft remains in /home/codex/ssw590-final-project.
No reviewer/ or tests/smoke_demo.py ownership is assumed here.
Run local unit checks:
python3 -m unittest discover -s ci/tests -v
python3 -m unittest discover -s tests -v
Actions:
The final-project workflow runs only on feature/final-ci-demo or
final-project-demo. It uses the existing manual-latex label and proven
action pins. It runs only simulated review until Member 1 is integrated.
Copy the successful full source SHA, numeric Actions run ID and attempt.
The name is review-RUN_ID-attempt-ATTEMPT-FULL_SHA.
Jenkins setup (requires an authenticated administrator):
1. Create Pipeline job final-project-fixture.
2. Pipeline from SCM: Git, existing public repository URL, branch
*/feature/final-ci-demo, Script Path Jenkinsfile.final-project.
3. Keep the existing myfileagent-python-ci required check unchanged.
4. Reuse existing Jenkins credential gitea-jenkins-ci. Its installed
PersonalAccessTokenImpl implements StringCredentials and supports the
string binding used here; no credential value was read during setup.
5. Run once to load parameters; then Build with Parameters using the exact
successful run SHA/ID/attempt. If branch HEAD has advanced, select the
corresponding new successful run (pipeline refuses a checkout mismatch).
6. Use the existing assignment8-trusted agent. The job creates a temporary
compiler container, network disabled, memory 256 MiB, 0.65 CPU; no
Docker socket or secrets are mounted into that compiler container.
7. The dedicated Docker volume ssw590-final-project-state retains
versions.json and releases/. Do not delete it on cleanup/retry.
8. Download the archived out/collected/release/*.zip and companion checksum.
Extract freshly, verify every manifest payload hash, inspect PDF identity,
and execute python3 reviewed.py (expected hello).
Version policy:
1.0 is a provisional baseline for fixture development, not a team-approved
final baseline. State locks serialize allocation across processes. Source
SHA and mode select a reservation; model/runtime must be pinned in source
before live integration. An unchanged retry reuses original immutable
published bytes/identity. Changed reviewed bytes under the same identity
fail. Final live baseline/identity must be agreed with Member 1.
Report builds:
Ordinary mode remains: python3 documentation/ci/build_manual.py with the
existing GITEA_SHA/RUN_NUMBER/RUN_ID/RUN_ATTEMPT variables.
Final mode additionally accepts --review-bundle, --release-version,
--jenkins-build and --mode. It validates the bundle before inserting data.
Both modes require the pinned TeX image. See ci/toolchain.sh.
Failure exercises:
reviewer_stub.py --case rejected/error produces diagnostics, no reviewed.py.
--case runtime produces valid Python that fails execution; hash it normally.
For transfer corruption, create/hash a good bundle first, then mutate one
payload without updating SHA256SUMS. Validation must fail before TeX.
For wrong identity, use a different expected run ID or SHA. Do not publish.
Execute deliberate TeX failures only in isolated test copies.
Fixture tests never establish real-model accuracy, memory or token evidence.
Monitoring handoff:
ci/final_project.py metrics accepts explicitly live review metadata only.
It emits availability gauges, counts when known and a supplied measured
completion timestamp, using atomic textfile replacement. Existing Node
Exporter textfile collection is not yet enabled by this change. Coordinate
paths, mounts and real metric evidence with Member 1 before deployment.
No paid resizing or production pricing/Zammad deployment is included.
+76
View File
@@ -0,0 +1,76 @@
{
"schema_version": 1,
"baseline_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
"reviewer_cli": [
"--input",
"--source-commit",
"--out-dir"
],
"source_policy": "Never overwrite input; output directory must be fresh",
"outputs": [
"review.json",
"reviewed.py"
],
"required_review_fields": [
"source_commit",
"model_id",
"status",
"summary",
"diff",
"input_tokens",
"output_tokens"
],
"exit_codes": {
"0": [
"corrected",
"unchanged"
],
"2": [
"rejected"
],
"3": [
"error"
]
},
"ready_statuses": [
"corrected",
"unchanged"
],
"failure_policy": "No reviewed.py or ready bundle on rejected/error",
"tokens": "Measured nonnegative integers or null when unavailable; never estimated",
"modes": [
"fixture",
"live"
],
"fixture_model_id": "fixture-model",
"bundle_files": [
"reviewed.py",
"review.json",
"bundle.json",
"SHA256SUMS"
],
"bundle_identity": [
"schema_version",
"source_commit",
"run_id",
"attempt",
"mode"
],
"smoke_stdout": "hello\n",
"model_memory_target_bytes": 250000000,
"provisional_release_baseline": "1.0",
"owners": {
"member1": [
"real model and runtime pinning",
"reviewer CLI",
"actual token and memory measurement"
],
"member2": [
"Actions and Jenkins",
"artifact verification",
"PDF build automation",
"testing and versioned ZIP",
"monitoring integration"
]
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"source_sha": "bed90200d2e309a63b644a5f138624e6710be3bf",
"actions_run": "35",
"mode": "fixture",
"version": "1.0.1",
"payload_hashes": "passed",
"smoke": "passed",
"zip_sha256": "ecfecf00849828e22ad8be3e9f5dd3f330993fffa30224f3ab1eff13df94f4c6",
"execution": "isolated toolchain on Droplet; not a Jenkins job"
}
Binary file not shown.
+138
View File
@@ -0,0 +1,138 @@
{
"jenkins_build": 1,
"start": 1795637897.303,
"end": 1795638073.477,
"scope": "Shared host, includes unrelated workloads; not model RSS",
"series": {
"cpu_percent": [
{
"metric": {},
"values": [
[
1795637777.303,
"77.6760923166033"
],
[
1795637807.303,
"92.7444444444134"
],
[
1795637837.303,
"99.97777777775708"
],
[
1795637867.303,
"89.62895444741524"
],
[
1795637897.303,
"89.65555555555814"
],
[
1795637927.303,
"89.36666666672359"
],
[
1795637957.303,
"98.16666666670547"
],
[
1795637987.303,
"96.65555555560988"
],
[
1795638017.303,
"95.46666666664856"
],
[
1795638047.303,
"95.41111111110594"
],
[
1795638077.303,
"94.58888888882939"
],
[
1795638107.303,
"76.33385924758521"
],
[
1795638137.303,
"64.63333333331522"
],
[
1795638167.303,
"50.77777777779071"
]
]
}
],
"available_memory_bytes": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795637777.303,
"446656512"
],
[
1795637807.303,
"433098752"
],
[
1795637837.303,
"559407104"
],
[
1795637867.303,
"537243648"
],
[
1795637897.303,
"437555200"
],
[
1795637927.303,
"396320768"
],
[
1795637957.303,
"455864320"
],
[
1795637987.303,
"460541952"
],
[
1795638017.303,
"422821888"
],
[
1795638047.303,
"443179008"
],
[
1795638077.303,
"423858176"
],
[
1795638107.303,
"405078016"
],
[
1795638137.303,
"362545152"
],
[
1795638167.303,
"358948864"
]
]
}
]
}
}
+34
View File
@@ -0,0 +1,34 @@
{
"jenkins_url": "https://ci.myfileagent.tech/job/final-project-fixture/1/",
"actions_run": 38,
"manifest": {
"attempt": "1",
"jenkins_build": "1",
"mode": "fixture",
"payload_sha256": {
"README.txt": "0a7793faeee8ddc7d1fee883e85195eb08f767b09dc32d9c0be33cb316365f98",
"report-1.0.2.pdf": "f41138043a3b7d928bb9d6701a9ce8fd76c58c30b93a198fe4dae4fabd659b1b",
"review.json": "e56cc2bc964314e35e8917b972b13628b4e83d61b758bf179e7d42ee29a7dc6d",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "38",
"schema_version": 1,
"source_commit": "0e7ade75b99e18a24db1e7c78f6f442256be2e0f",
"version": "1.0.2"
},
"zip_sha256": "64173b7bd460cf4ff392ec0cc051865220a242d12e779f929e63a57606013794",
"payload_hashes": "pass",
"fresh_runtime_smoke": "pass",
"jenkins_result": "SUCCESS",
"test_counts": {
"pipeline": 18,
"existing": 2
},
"pdf_check": {
"release_identity": "pass",
"generated_review_appendix": "pass",
"reviewed_code": "pass after removing PDF extraction whitespace",
"review_diff": "present"
},
"console_log_sha256": "e429970e610fc3e259d11df7e8800d821374d28f264458e8828b1cbcd15c14f4"
}
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
}
],
"building": false,
"duration": 41740,
"number": 2,
"result": "FAILURE",
"timestamp": 1795711715474
}
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-fixture-1.0.2.zip",
"relativePath": "out/collected/release/ssw590-fixture-1.0.2.zip"
},
{
"fileName": "ssw590-fixture-1.0.2.zip.sha256",
"relativePath": "out/collected/release/ssw590-fixture-1.0.2.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 195415,
"number": 3,
"result": "SUCCESS",
"timestamp": 1795711757395,
"retry_zip_sha256": "64173b7bd460cf4ff392ec0cc051865220a242d12e779f929e63a57606013794",
"byte_identical_to_build1": true
}
Binary file not shown.
+52
View File
@@ -0,0 +1,52 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-fixture-1.0.3.zip",
"relativePath": "out/collected/release/ssw590-fixture-1.0.3.zip"
},
{
"fileName": "ssw590-fixture-1.0.3.zip.sha256",
"relativePath": "out/collected/release/ssw590-fixture-1.0.3.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 167832,
"number": 4,
"result": "SUCCESS",
"timestamp": 1795711990901,
"manifest": {
"attempt": "1",
"jenkins_build": "4",
"mode": "fixture",
"payload_sha256": {
"README.txt": "3bbdaead77ac642c22c8217be9773f6dc4a97c0a02b9e0fa08b03b6a72fb6d33",
"report-1.0.3.pdf": "c6893079df21bdd444f9c09d633620d09e9bff397499bdd7c324139be6ee673a",
"review.json": "8a42691189a267cbefe1761ba2a8f872786f838bb46d525d839705f4f593ac71",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "39",
"schema_version": 1,
"source_commit": "0ec7cee5b9923e484e78046ca9adcb848423cd3e",
"version": "1.0.3"
},
"zip_sha256": "275c66b7120fb6987d5ac102ce9f38a9fe949cf0b337cef46cb1dcdfe8d65c1a",
"independent_hash_and_runtime_verification": "pass",
"download_url": "https://ci.myfileagent.tech/job/final-project-fixture/4/artifact/out/collected/release/ssw590-fixture-1.0.3.zip"
}
@@ -0,0 +1,5 @@
{
"token_revoked": true,
"rejection_verified": true,
"temporary_credential_file_removed": true
}
@@ -0,0 +1,10 @@
----------------------------------------------------------------------
Ran 19 tests in 1.935s
OK
/usr/local/lib/python3.13/zipfile/__init__.py:1686: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
----------------------------------------------------------------------
Ran 20 tests in 2.224s
OK (skipped=5)
+258
View File
@@ -0,0 +1,258 @@
2026-11-27T19:09:07.4214075Z assignment5-manual(version:v0.6.1) received task 42 of job review, be triggered by event: push
2026-11-27T19:09:07.4571264Z workflow prepared
2026-11-27T19:09:07.4709522Z evaluating expression 'success()'
2026-11-27T19:09:07.4788344Z expression 'success()' evaluated to 'true'
2026-11-27T19:09:07.4789728Z 🚀 Start image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:09:07.7123560Z 🐳 docker pull image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= username= forcePull=false
2026-11-27T19:09:07.7124453Z 🐳 docker pull sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:09:07.9811397Z Image exists? true
2026-11-27T19:09:12.5766890Z 🐳 docker create image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:09:17.7343582Z Custom container.Config from options ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:09:17.7344849Z Merged container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 Volumes:map[] WorkingDir:/workspace/myfileagent/myfileagent-pipeline Entrypoint:[/bin/sleep 1800] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:09:17.7346000Z Custom container.HostConfig from options ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62cbbac8 OomKillDisable:0x3f5f62cbb9c3 PidsLimit:0x3f5f62cbbb28 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:09:17.7347047Z --network and --net in the options will be ignored.
2026-11-27T19:09:17.7347703Z Merged container.HostConfig ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:true VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62cbbac8 OomKillDisable:0x3f5f62cbb9c3 PidsLimit:0x3f5f62cbbb28 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd Target:/workspace/myfileagent/myfileagent-pipeline ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:09:18.8137231Z Created container name=GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd id=bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26 from image sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 (platform: )
2026-11-27T19:09:18.8148308Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2026-11-27T19:09:18.8149015Z 🐳 docker run image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:09:18.8149831Z Starting container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:09:20.9434576Z Started container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:09:21.3288005Z Writing entry to tarball workflow/event.json len:16053
2026-11-27T19:09:21.3289801Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:09:21.3290038Z Extracting content to '/var/run/act/'
2026-11-27T19:09:21.4801235Z ☁ git clone 'https://github.com/actions/checkout' # ref=11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:21.4803001Z cloning https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:09:25.9021667Z Unable to pull refs/heads/11bd71901bbe5b1630ceea73d27597364c9af683: worktree contains unstaged changes
2026-11-27T19:09:25.9024003Z Cloned https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:09:25.9805501Z Checked out 11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:26.1168134Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:26.1168687Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:28.0705782Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:09:28.0707053Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:28.1563757Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:28.2418858Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:28.2438673Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:29.5886528Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:09:29.5887264Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:09:29.7454464Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:09:29.9661215Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:09:29.9661890Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:09:29.9662709Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=9275fcdcaeefb862fbbce5702235ae1a407ebf70)'
2026-11-27T19:09:30.0544700Z evaluating expression ''
2026-11-27T19:09:30.0545582Z expression '' evaluated to 'true'
2026-11-27T19:09:30.0545821Z ⭐ Run Main https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:30.0546215Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:09:30.0546492Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:09:30.0546734Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:09:30.0546915Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:09:30.0547076Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:09:30.0547262Z Extracting content to '/var/run/act'
2026-11-27T19:09:30.0951464Z ::group::Run https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:09:30.0952209Z with:
2026-11-27T19:09:30.0952469Z persist-credentials: false
2026-11-27T19:09:30.0952671Z ref: ${{ github.sha }}
2026-11-27T19:09:37.9854053Z ::add-matcher::/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/problem-matcher.json
2026-11-27T19:09:37.9951268Z Syncing repository: myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.0128805Z ::group::Getting Git version info
2026-11-27T19:09:38.0218587Z Working directory is '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:09:38.2220992Z [command]/usr/bin/git version
2026-11-27T19:09:38.3336224Z git version 2.39.5
2026-11-27T19:09:38.3776137Z ::endgroup::
2026-11-27T19:09:38.4114173Z Temporarily overriding HOME='/tmp/bbdf8f58-c46e-4a9c-9aad-2b19401a647e' before making global git config changes
2026-11-27T19:09:38.4141150Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:09:38.4229766Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.4690078Z Deleting the contents of '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:09:38.4770161Z ::group::Initializing the repository
2026-11-27T19:09:38.4811036Z [command]/usr/bin/git init /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.5543080Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-11-27T19:09:38.5543747Z hint: is subject to change. To configure the initial branch name to use in all
2026-11-27T19:09:38.5543887Z hint: of your new repositories, which will suppress this warning, call:
2026-11-27T19:09:38.5544063Z hint:
2026-11-27T19:09:38.5544184Z hint: git config --global init.defaultBranch <name>
2026-11-27T19:09:38.5544338Z hint:
2026-11-27T19:09:38.5544458Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-11-27T19:09:38.5544588Z hint: 'development'. The just-created branch can be renamed via this command:
2026-11-27T19:09:38.5544721Z hint:
2026-11-27T19:09:38.5544821Z hint: git branch -m <name>
2026-11-27T19:09:38.5656936Z Initialized empty Git repository in /workspace/myfileagent/myfileagent-pipeline/.git/
2026-11-27T19:09:38.5789544Z [command]/usr/bin/git remote add origin https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:09:38.6147006Z ::endgroup::
2026-11-27T19:09:38.6147262Z ::group::Disabling automatic garbage collection
2026-11-27T19:09:38.6165471Z [command]/usr/bin/git config --local gc.auto 0
2026-11-27T19:09:38.6381465Z ::endgroup::
2026-11-27T19:09:38.6389666Z ::group::Setting up auth
2026-11-27T19:09:38.6460945Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:09:38.6752308Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:09:38.8797955Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:09:38.9160191Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:09:39.2346168Z [command]/usr/bin/git config --local http.https://myfileagent.tech/.extraheader AUTHORIZATION: basic ***
2026-11-27T19:09:39.2682988Z ::endgroup::
2026-11-27T19:09:39.2683366Z ::group::Fetching the repository
2026-11-27T19:09:39.2772657Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.0476897Z From https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:09:47.0477775Z * branch 9275fcdcaeefb862fbbce5702235ae1a407ebf70 -> FETCH_HEAD
2026-11-27T19:09:47.0669011Z ::endgroup::
2026-11-27T19:09:47.0670311Z ::group::Determining the checkout info
2026-11-27T19:09:47.0698978Z ::endgroup::
2026-11-27T19:09:47.0721932Z [command]/usr/bin/git sparse-checkout disable
2026-11-27T19:09:47.0984823Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-11-27T19:09:47.1119959Z ::group::Checking out the ref
2026-11-27T19:09:47.1147401Z [command]/usr/bin/git checkout --progress --force 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.3031867Z Note: switching to '9275fcdcaeefb862fbbce5702235ae1a407ebf70'.
2026-11-27T19:09:47.3032653Z
2026-11-27T19:09:47.3032864Z You are in 'detached HEAD' state. You can look around, make experimental
2026-11-27T19:09:47.3033037Z changes and commit them, and you can discard any commits you make in this
2026-11-27T19:09:47.3033208Z state without impacting any branches by switching back to a branch.
2026-11-27T19:09:47.3033497Z
2026-11-27T19:09:47.3033623Z If you want to create a new branch to retain commits you create, you may
2026-11-27T19:09:47.3033767Z do so (now or later) by using -c with the switch command. Example:
2026-11-27T19:09:47.3033960Z
2026-11-27T19:09:47.3034095Z git switch -c <new-branch-name>
2026-11-27T19:09:47.3034212Z
2026-11-27T19:09:47.3034351Z Or undo this operation with:
2026-11-27T19:09:47.3034532Z
2026-11-27T19:09:47.3034650Z git switch -
2026-11-27T19:09:47.3034763Z
2026-11-27T19:09:47.3034918Z Turn off this advice by setting config variable advice.detachedHead to false
2026-11-27T19:09:47.3035228Z
2026-11-27T19:09:47.3035396Z HEAD is now at 9275fcd Integrate real reviewer with measured Actions execution and live Jenkins pipeline
2026-11-27T19:09:47.3101086Z ::endgroup::
2026-11-27T19:09:47.3349084Z [command]/usr/bin/git log -1 --format=%H
2026-11-27T19:09:47.3501418Z 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:47.3618395Z ::group::Removing auth
2026-11-27T19:09:47.3657470Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:09:47.3896656Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:09:47.5715066Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:09:47.5966050Z http.https://myfileagent.tech/.extraheader
2026-11-27T19:09:47.6070242Z [command]/usr/bin/git config --local --unset-all http.https://myfileagent.tech/.extraheader
2026-11-27T19:09:47.6384364Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:09:47.8370798Z ::endgroup::
2026-11-27T19:09:47.8436994Z ::remove-matcher owner=checkout-git::
2026-11-27T19:09:47.8962273Z ::endgroup::
2026-11-27T19:09:48.5271447Z ::group::Run set -eu
2026-11-27T19:09:48.5271958Z set -eu
2026-11-27T19:09:48.5272134Z test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
2026-11-27T19:09:48.5272292Z python3 -m unittest discover -s ci/tests -v
2026-11-27T19:09:48.5272498Z python3 -m unittest discover -s tests -v
2026-11-27T19:09:48.5272646Z shell: sh -e {0}
2026-11-27T19:09:48.5272830Z env:
2026-11-27T19:09:48.5272989Z SOURCE_SHA: 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:48.5273198Z ::endgroup::
2026-11-27T19:09:49.3051527Z test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
2026-11-27T19:09:49.3173907Z test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
2026-11-27T19:09:49.3174649Z return self._open_to_write(zinfo, force_zip64=force_zip64)
2026-11-27T19:09:49.3200372Z ok
2026-11-27T19:09:50.0011839Z test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
2026-11-27T19:09:50.1682316Z test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
2026-11-27T19:09:50.1766811Z test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
2026-11-27T19:09:50.5650719Z test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
2026-11-27T19:09:50.5743135Z test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
2026-11-27T19:09:50.5811948Z test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
2026-11-27T19:09:50.5867252Z test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
2026-11-27T19:09:50.5917680Z test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
2026-11-27T19:09:50.9350513Z test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
2026-11-27T19:09:50.9435080Z test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
2026-11-27T19:09:50.9536310Z test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
2026-11-27T19:09:50.9616408Z test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
2026-11-27T19:09:50.9690171Z test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
2026-11-27T19:09:51.3556228Z test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
2026-11-27T19:09:51.4748822Z test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
2026-11-27T19:09:51.4797589Z ok
2026-11-27T19:09:51.4965070Z test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
2026-11-27T19:09:51.6051030Z test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
2026-11-27T19:09:54.6262508Z test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
2026-11-27T19:09:54.6276863Z
2026-11-27T19:09:54.6294235Z ----------------------------------------------------------------------
2026-11-27T19:09:54.6305506Z Ran 20 tests in 5.500s
2026-11-27T19:09:54.6331756Z
2026-11-27T19:09:54.6338898Z OK
2026-11-27T19:09:55.2536182Z test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
2026-11-27T19:09:55.2561609Z test_total (test_pricing.PricingTests.test_total) ... ok
2026-11-27T19:09:56.1814315Z test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
2026-11-27T19:09:57.6583550Z test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
2026-11-27T19:09:58.4061581Z test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
2026-11-27T19:09:58.5384537Z test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
2026-11-27T19:09:58.5545329Z test_error (test_reviewer.ReviewerTests.test_error) ... ok
2026-11-27T19:09:58.5672248Z test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
2026-11-27T19:09:58.5831002Z test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
2026-11-27T19:09:58.5926490Z test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
2026-11-27T19:09:58.7412640Z test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
2026-11-27T19:09:58.7580758Z test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
2026-11-27T19:09:58.7673475Z test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
2026-11-27T19:09:58.7773368Z test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
2026-11-27T19:09:58.9129662Z test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
2026-11-27T19:09:58.9887559Z test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
2026-11-27T19:09:58.9972574Z test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
2026-11-27T19:09:59.0068661Z test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
2026-11-27T19:09:59.0202275Z test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
2026-11-27T19:09:59.0232577Z
2026-11-27T19:09:59.0233138Z ----------------------------------------------------------------------
2026-11-27T19:09:59.0233336Z Ran 19 tests in 3.770s
2026-11-27T19:09:59.0233435Z
2026-11-27T19:09:59.0233513Z OK
2026-11-27T19:09:59.9875710Z ::group::Run set -eu
2026-11-27T19:09:59.9876339Z set -eu
2026-11-27T19:09:59.9876868Z python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
2026-11-27T19:09:59.9877055Z python3 ci/run_live_review.py
2026-11-27T19:09:59.9877239Z python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
2026-11-27T19:09:59.9877539Z shell: sh -e {0}
2026-11-27T19:09:59.9877748Z env:
2026-11-27T19:09:59.9877911Z SOURCE_SHA: 9275fcdcaeefb862fbbce5702235ae1a407ebf70
2026-11-27T19:09:59.9878076Z ACTIONS_RUN_ID: 41
2026-11-27T19:09:59.9878213Z ACTIONS_ATTEMPT: 1
2026-11-27T19:09:59.9878345Z ::endgroup::
2026-11-27T19:10:10.8966540Z REVIEWER_MODEL_PATH=/private-model/SmolLM2-135M-Instruct.Q4_0.gguf
2026-11-27T19:10:10.8968505Z REVIEWER_LLAMA_COMPLETION=out/runtime/llama-b12785/llama-completion
2026-11-27T19:10:10.8968728Z LD_LIBRARY_PATH=out/runtime/libgomp-root/usr/lib/x86_64-linux-gnu:out/runtime/llama-b12785
2026-11-27T19:10:11.3416079Z Traceback (most recent call last):
2026-11-27T19:10:11.3416809Z File "/workspace/myfileagent/myfileagent-pipeline/ci/run_live_review.py", line 16, in <module>
2026-11-27T19:10:11.3417093Z assert limit == 250000000, 'Actual Actions container must have the exact 250 MB limit'
2026-11-27T19:10:11.3417302Z ^^^^^^^^^^^^^^^^^^
2026-11-27T19:10:11.3417486Z AssertionError: Actual Actions container must have the exact 250 MB limit
2026-11-27T19:10:11.4768848Z ❌ Failure - Main Run real model under measured 250 MB cap
2026-11-27T19:10:12.2451440Z exitcode '1': failure
2026-11-27T19:10:14.5648941Z ::group::Run Preserve raw model and resource evidence
2026-11-27T19:10:14.5650312Z with:
2026-11-27T19:10:14.5701939Z if-no-files-found: warn
2026-11-27T19:10:14.5702743Z name: live-evidence-${{ github.run_id }}-${{ github.sha }}
2026-11-27T19:10:14.5702891Z path: out/review\nout/resource.json
2026-11-27T19:10:14.5703118Z retention-days: 30
2026-11-27T19:10:23.7997030Z Multiple search paths detected. Calculating the least common ancestor of all paths
2026-11-27T19:10:23.8016032Z The least common ancestor is /workspace/myfileagent/myfileagent-pipeline/out. This will be the root directory of the artifact
2026-11-27T19:10:23.8031251Z ::warning::No files were found with the provided path: out/review%0Aout/resource.json. No artifacts will be uploaded.
2026-11-27T19:10:23.8394513Z ::endgroup::
2026-11-27T19:10:23.9346826Z skipping post step for 'Publish ready bundle for this exact run and attempt'; main step was skipped
2026-11-27T19:10:24.1497050Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:10:24.1500800Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:10:24.1503806Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=9275fcdcaeefb862fbbce5702235ae1a407ebf70)'
2026-11-27T19:10:24.1985063Z evaluating expression 'always()'
2026-11-27T19:10:24.1986502Z expression 'always()' evaluated to 'true'
2026-11-27T19:10:24.1989944Z ⭐ Run Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:10:24.1990738Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:10:24.1991017Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:10:24.1991759Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:10:24.1991954Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:10:24.1992135Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:10:24.1994965Z Extracting content to '/var/run/act'
2026-11-27T19:10:24.2168996Z run post step for 'https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683'
2026-11-27T19:10:24.2183820Z executing remote job container: [node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]
2026-11-27T19:10:24.2184600Z 🐳 docker exec cmd=[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js] user= workdir=
2026-11-27T19:10:24.2184976Z Exec command '[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]'
2026-11-27T19:10:24.2185747Z Working directory '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:10:26.3670971Z [command]/usr/bin/git version
2026-11-27T19:10:26.5099631Z git version 2.39.5
2026-11-27T19:10:26.5443661Z ***
2026-11-27T19:10:26.5730992Z Temporarily overriding HOME='/tmp/8264d9af-2cef-4b74-952a-ed5fa9d552c7' before making global git config changes
2026-11-27T19:10:26.5795633Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:10:26.5795943Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:10:26.6150929Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:10:26.6597905Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:10:26.8901071Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:10:26.9036384Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:10:27.0342512Z ✅ Success - Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:10:27.0796293Z Cleaning up container for job review
2026-11-27T19:10:29.8897102Z Removed container: bcc9c1846e3127046c1aee89a825f3c6b64330b3b815576dbc8e50faef79dc26
2026-11-27T19:10:29.9202215Z 🐳 docker volume rm GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd
2026-11-27T19:10:30.1708874Z 🐳 docker volume rm GITEA-ACTIONS-TASK-42-WORKFLOW-Final-project-review-live-JOB-re-0d28051af72660222c3b6f8a6b47ebd799847cef87387195927923f454e39ebd-env
2026-11-27T19:10:30.9964552Z 🏁 Job failed
2026-11-27T19:10:31.0677377Z Job 'review' failed
+273
View File
@@ -0,0 +1,273 @@
2026-11-27T19:10:54.8035382Z assignment5-manual(version:v0.6.1) received task 44 of job review, be triggered by event: push
2026-11-27T19:10:54.8531495Z workflow prepared
2026-11-27T19:10:54.8582481Z evaluating expression 'success()'
2026-11-27T19:10:54.8641018Z expression 'success()' evaluated to 'true'
2026-11-27T19:10:54.8641880Z 🚀 Start image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:10:56.1416611Z 🐳 docker pull image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= username= forcePull=false
2026-11-27T19:10:56.1434419Z 🐳 docker pull sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1
2026-11-27T19:10:56.8449040Z Image exists? true
2026-11-27T19:11:06.2064432Z 🐳 docker create image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:11:09.5112128Z Custom container.Config from options ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:11:09.5113747Z Merged container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:true ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 Volumes:map[] WorkingDir:/workspace/myfileagent/myfileagent-pipeline Entrypoint:[/bin/sleep 1800] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
2026-11-27T19:11:09.5114916Z Custom container.HostConfig from options ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62b6e3c8 OomKillDisable:0x3f5f62b6e2c3 PidsLimit:0x3f5f62b6e428 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:11:09.5116149Z --network and --net in the options will be ignored.
2026-11-27T19:11:09.5116977Z Merged container.HostConfig ==> &{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:manual-build-jobs PortBindings:map[] RestartPolicy:{Name:no MaximumRetryCount:0} AutoRemove:true VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[/private-model:rw,size=100000000] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:250000000 NanoCPUs:650000000 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:250000000 MemorySwappiness:0x3f5f62b6e3c8 OomKillDisable:0x3f5f62b6e2c3 PidsLimit:0x3f5f62b6e428 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e Target:/workspace/myfileagent/myfileagent-pipeline ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
2026-11-27T19:11:10.1222183Z Created container name=GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e id=827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3 from image sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 (platform: )
2026-11-27T19:11:10.1222855Z ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
2026-11-27T19:11:10.1223051Z 🐳 docker run image=sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1 platform= entrypoint=["/bin/sleep" "1800"] cmd=[] network="manual-build-jobs"
2026-11-27T19:11:10.1223254Z Starting container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:11:11.4003915Z Started container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:11:12.0925348Z Writing entry to tarball workflow/event.json len:4966
2026-11-27T19:11:12.0926365Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:11:12.0926687Z Extracting content to '/var/run/act/'
2026-11-27T19:11:13.0835142Z ☁ git clone 'https://github.com/actions/checkout' # ref=11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:13.0835732Z cloning https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:11:17.1791154Z Unable to pull refs/heads/11bd71901bbe5b1630ceea73d27597364c9af683: worktree contains unstaged changes
2026-11-27T19:11:17.1792546Z Cloned https://github.com/actions/checkout to /root/.cache/act/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e
2026-11-27T19:11:17.2667036Z Checked out 11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:17.4054960Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:17.4055986Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:19.1331349Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:11:19.1334578Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:19.2659064Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:19.5826387Z ☁ git clone 'https://github.com/actions/upload-artifact' # ref=c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:19.5826986Z cloning https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:22.0045304Z Unable to pull refs/heads/c6a366c94c3e0affe28c06c8df20a878f24da3cf: non-fast-forward update
2026-11-27T19:11:22.0046099Z Cloned https://github.com/actions/upload-artifact to /root/.cache/act/f1f571556f480e66f3848f04b48d608c3de744370fda949e839f6fbb2099663d
2026-11-27T19:11:22.0628016Z Checked out c6a366c94c3e0affe28c06c8df20a878f24da3cf
2026-11-27T19:11:22.2528080Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:11:22.2528906Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:11:22.2530907Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=0311260ddf813ecd8d4f4c6889c7a0775e7511d5)'
2026-11-27T19:11:22.3866668Z evaluating expression ''
2026-11-27T19:11:22.3867550Z expression '' evaluated to 'true'
2026-11-27T19:11:22.3867773Z ⭐ Run Main https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:22.3868147Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:11:22.3868475Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:11:22.3868680Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:11:22.3868878Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:11:22.3869060Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:11:22.3890563Z Extracting content to '/var/run/act'
2026-11-27T19:11:22.4361443Z ::group::Run https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:11:22.4362088Z with:
2026-11-27T19:11:22.4362296Z persist-credentials: false
2026-11-27T19:11:22.4362469Z ref: ${{ github.sha }}
2026-11-27T19:11:33.3214167Z ::add-matcher::/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/problem-matcher.json
2026-11-27T19:11:33.3441729Z Syncing repository: myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.3610847Z ::group::Getting Git version info
2026-11-27T19:11:33.3623718Z Working directory is '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:11:33.3984458Z [command]/usr/bin/git version
2026-11-27T19:11:33.4573067Z git version 2.39.5
2026-11-27T19:11:33.5041062Z ::endgroup::
2026-11-27T19:11:33.5170857Z Temporarily overriding HOME='/tmp/3aa468d9-dc1e-44cf-a7bd-b268f4430578' before making global git config changes
2026-11-27T19:11:33.5192568Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:11:33.5231113Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.5437113Z Deleting the contents of '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:11:33.5471930Z ::group::Initializing the repository
2026-11-27T19:11:33.5505647Z [command]/usr/bin/git init /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.5840335Z hint: Using 'master' as the name for the initial branch. This default branch name
2026-11-27T19:11:33.5840869Z hint: is subject to change. To configure the initial branch name to use in all
2026-11-27T19:11:33.5840988Z hint: of your new repositories, which will suppress this warning, call:
2026-11-27T19:11:33.5841131Z hint:
2026-11-27T19:11:33.5841238Z hint: git config --global init.defaultBranch <name>
2026-11-27T19:11:33.5841350Z hint:
2026-11-27T19:11:33.5841609Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2026-11-27T19:11:33.5841797Z hint: 'development'. The just-created branch can be renamed via this command:
2026-11-27T19:11:33.5842018Z hint:
2026-11-27T19:11:33.5842167Z hint: git branch -m <name>
2026-11-27T19:11:33.5892175Z Initialized empty Git repository in /workspace/myfileagent/myfileagent-pipeline/.git/
2026-11-27T19:11:33.5985184Z [command]/usr/bin/git remote add origin https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:11:33.6184036Z ::endgroup::
2026-11-27T19:11:33.6189921Z ::group::Disabling automatic garbage collection
2026-11-27T19:11:33.6222829Z [command]/usr/bin/git config --local gc.auto 0
2026-11-27T19:11:33.6387173Z ::endgroup::
2026-11-27T19:11:33.6387493Z ::group::Setting up auth
2026-11-27T19:11:33.6439085Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:11:33.6597723Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:11:33.8154616Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:11:33.8334980Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:11:33.9515084Z [command]/usr/bin/git config --local http.https://myfileagent.tech/.extraheader AUTHORIZATION: basic ***
2026-11-27T19:11:33.9832535Z ::endgroup::
2026-11-27T19:11:33.9846419Z ::group::Fetching the repository
2026-11-27T19:11:33.9961095Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:41.2265200Z From https://myfileagent.tech/myfileagent/myfileagent-pipeline
2026-11-27T19:11:41.2266234Z * branch 0311260ddf813ecd8d4f4c6889c7a0775e7511d5 -> FETCH_HEAD
2026-11-27T19:11:41.2727108Z ::endgroup::
2026-11-27T19:11:41.2743371Z ::group::Determining the checkout info
2026-11-27T19:11:41.2808181Z ::endgroup::
2026-11-27T19:11:41.2922385Z [command]/usr/bin/git sparse-checkout disable
2026-11-27T19:11:41.3753227Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2026-11-27T19:11:41.4334711Z ::group::Checking out the ref
2026-11-27T19:11:41.4444823Z [command]/usr/bin/git checkout --progress --force 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:42.0804583Z Note: switching to '0311260ddf813ecd8d4f4c6889c7a0775e7511d5'.
2026-11-27T19:11:42.0805127Z
2026-11-27T19:11:42.0805334Z You are in 'detached HEAD' state. You can look around, make experimental
2026-11-27T19:11:42.0805513Z changes and commit them, and you can discard any commits you make in this
2026-11-27T19:11:42.0805676Z state without impacting any branches by switching back to a branch.
2026-11-27T19:11:42.0805835Z
2026-11-27T19:11:42.0806072Z If you want to create a new branch to retain commits you create, you may
2026-11-27T19:11:42.0806241Z do so (now or later) by using -c with the switch command. Example:
2026-11-27T19:11:42.0806420Z
2026-11-27T19:11:42.0806566Z git switch -c <new-branch-name>
2026-11-27T19:11:42.0806711Z
2026-11-27T19:11:42.0806850Z Or undo this operation with:
2026-11-27T19:11:42.0806990Z
2026-11-27T19:11:42.0807134Z git switch -
2026-11-27T19:11:42.0807286Z
2026-11-27T19:11:42.0807420Z Turn off this advice by setting config variable advice.detachedHead to false
2026-11-27T19:11:42.0807667Z
2026-11-27T19:11:42.0807851Z HEAD is now at 0311260 Account for kernel page rounding in measured memory cap
2026-11-27T19:11:42.0839948Z ::endgroup::
2026-11-27T19:11:42.1024779Z [command]/usr/bin/git log -1 --format=%H
2026-11-27T19:11:42.1112578Z 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:42.1166355Z ::group::Removing auth
2026-11-27T19:11:42.1181125Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:11:42.1325552Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:11:42.2068125Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:11:42.2134340Z http.https://myfileagent.tech/.extraheader
2026-11-27T19:11:42.2170832Z [command]/usr/bin/git config --local --unset-all http.https://myfileagent.tech/.extraheader
2026-11-27T19:11:42.2265470Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:11:42.3033784Z ::endgroup::
2026-11-27T19:11:42.3058038Z ::remove-matcher owner=checkout-git::
2026-11-27T19:11:42.4086573Z ::endgroup::
2026-11-27T19:11:43.8971782Z ::group::Run set -eu
2026-11-27T19:11:43.8972313Z set -eu
2026-11-27T19:11:43.8972524Z test "$(git rev-parse HEAD)" = "$SOURCE_SHA"
2026-11-27T19:11:43.8972684Z python3 -m unittest discover -s ci/tests -v
2026-11-27T19:11:43.8972834Z python3 -m unittest discover -s tests -v
2026-11-27T19:11:43.8972987Z shell: sh -e {0}
2026-11-27T19:11:43.8973162Z env:
2026-11-27T19:11:43.8973312Z SOURCE_SHA: 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:43.8973476Z ::endgroup::
2026-11-27T19:11:46.3768102Z test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
2026-11-27T19:11:46.4154876Z test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
2026-11-27T19:11:46.4155827Z return self._open_to_write(zinfo, force_zip64=force_zip64)
2026-11-27T19:11:46.4362240Z ok
2026-11-27T19:11:47.4592917Z test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
2026-11-27T19:11:47.7662720Z test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
2026-11-27T19:11:47.7753211Z test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
2026-11-27T19:11:48.3693465Z test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
2026-11-27T19:11:48.3962039Z test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
2026-11-27T19:11:48.4021586Z test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
2026-11-27T19:11:48.4180985Z test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
2026-11-27T19:11:48.4328411Z test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
2026-11-27T19:11:49.1720553Z test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
2026-11-27T19:11:49.1868496Z test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
2026-11-27T19:11:49.2290496Z test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
2026-11-27T19:11:49.2751485Z test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
2026-11-27T19:11:49.3221646Z test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
2026-11-27T19:11:50.4080616Z test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
2026-11-27T19:11:50.5992026Z test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
2026-11-27T19:11:50.6063646Z ok
2026-11-27T19:11:50.6277636Z test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
2026-11-27T19:11:50.7248940Z test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
2026-11-27T19:11:52.9974215Z test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
2026-11-27T19:11:52.9984775Z
2026-11-27T19:11:52.9985256Z ----------------------------------------------------------------------
2026-11-27T19:11:52.9985462Z Ran 20 tests in 6.904s
2026-11-27T19:11:52.9985617Z
2026-11-27T19:11:53.0004866Z OK
2026-11-27T19:11:53.9510810Z test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
2026-11-27T19:11:53.9511518Z test_total (test_pricing.PricingTests.test_total) ... ok
2026-11-27T19:11:55.5004179Z test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
2026-11-27T19:11:56.5199036Z test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
2026-11-27T19:11:56.6806772Z test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
2026-11-27T19:11:56.7080399Z test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
2026-11-27T19:11:56.7108441Z test_error (test_reviewer.ReviewerTests.test_error) ... ok
2026-11-27T19:11:56.7131206Z test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
2026-11-27T19:11:56.7150041Z test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
2026-11-27T19:11:56.7171353Z test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
2026-11-27T19:11:56.7691467Z test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
2026-11-27T19:11:56.7716096Z test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
2026-11-27T19:11:56.7744249Z test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
2026-11-27T19:11:56.7766520Z test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
2026-11-27T19:11:56.8000845Z test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
2026-11-27T19:11:56.8558551Z test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
2026-11-27T19:11:56.8582492Z test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
2026-11-27T19:11:56.8606678Z test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
2026-11-27T19:11:56.8627165Z test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
2026-11-27T19:11:56.8631700Z
2026-11-27T19:11:56.8634840Z ----------------------------------------------------------------------
2026-11-27T19:11:56.8641553Z Ran 19 tests in 2.916s
2026-11-27T19:11:56.8641987Z
2026-11-27T19:11:56.8642144Z OK
2026-11-27T19:11:57.3215712Z ::group::Run set -eu
2026-11-27T19:11:57.3216196Z set -eu
2026-11-27T19:11:57.3216372Z python3 -m reviewer.prepare_runtime --dest out/runtime --model-dir /private-model
2026-11-27T19:11:57.3216539Z python3 ci/run_live_review.py
2026-11-27T19:11:57.3216690Z python3 ci/final_project.py bundle --review-dir out/review --sha "$SOURCE_SHA" --run-id "$ACTIONS_RUN_ID" --attempt "$ACTIONS_ATTEMPT" --mode live --output out/review-bundle.zip
2026-11-27T19:11:57.3217138Z shell: sh -e {0}
2026-11-27T19:11:57.3217344Z env:
2026-11-27T19:11:57.3217489Z SOURCE_SHA: 0311260ddf813ecd8d4f4c6889c7a0775e7511d5
2026-11-27T19:11:57.3217639Z ACTIONS_RUN_ID: 42
2026-11-27T19:11:57.3217774Z ACTIONS_ATTEMPT: 1
2026-11-27T19:11:57.3217914Z ::endgroup::
2026-11-27T19:12:03.1601598Z REVIEWER_MODEL_PATH=/private-model/SmolLM2-135M-Instruct.Q4_0.gguf
2026-11-27T19:12:03.1602883Z REVIEWER_LLAMA_COMPLETION=out/runtime/llama-b12785/llama-completion
2026-11-27T19:12:03.1603101Z LD_LIBRARY_PATH=out/runtime/libgomp-root/usr/lib/x86_64-linux-gnu:out/runtime/llama-b12785
2026-11-27T19:12:04.2143991Z {"scope": "actual Actions job including runtime preparation, reviewer and private tmpfs model", "requested_memory_limit_bytes": 250000000, "memory_limit_bytes": 249999360, "memory_peak_bytes": 218419200, "memory_events": {"low": 0, "high": 0, "max": 0, "oom": 0, "oom_kill": 0, "oom_group_kill": 0}, "swap_limit_bytes": 0, "reviewer_exit_code": 3}
2026-11-27T19:12:04.2146670Z Traceback (most recent call last):
2026-11-27T19:12:04.2148235Z File "/workspace/myfileagent/myfileagent-pipeline/ci/run_live_review.py", line 37, in <module>
2026-11-27T19:12:04.2151412Z assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live acceptance gate failed'
2026-11-27T19:12:04.2153479Z ^^^^^^^^^^^^^
2026-11-27T19:12:04.2154844Z AssertionError: Live acceptance gate failed
2026-11-27T19:12:04.2621788Z ❌ Failure - Main Run real model under measured 250 MB cap
2026-11-27T19:12:04.3107436Z exitcode '1': failure
2026-11-27T19:12:04.4623513Z ::group::Run Preserve raw model and resource evidence
2026-11-27T19:12:04.4623983Z with:
2026-11-27T19:12:04.4739647Z if-no-files-found: warn
2026-11-27T19:12:04.4740606Z name: live-evidence-${{ github.run_id }}-${{ github.sha }}
2026-11-27T19:12:04.4740884Z path: out/review\nout/resource.json
2026-11-27T19:12:04.4741104Z retention-days: 30
2026-11-27T19:12:11.5938462Z Multiple search paths detected. Calculating the least common ancestor of all paths
2026-11-27T19:12:11.5964659Z The least common ancestor is /workspace/myfileagent/myfileagent-pipeline/out. This will be the root directory of the artifact
2026-11-27T19:12:11.5964890Z With the provided path, there will be 2 files uploaded
2026-11-27T19:12:11.6006966Z Starting artifact upload
2026-11-27T19:12:11.6007808Z For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
2026-11-27T19:12:11.6017642Z Artifact name is valid!
2026-11-27T19:12:11.9263852Z Container for artifact "live-evidence-42-0311260ddf813ecd8d4f4c6889c7a0775e7511d5" successfully created. Starting upload of file(s)
2026-11-27T19:12:12.4703765Z Total size of all the files uploaded is 565 bytes
2026-11-27T19:12:12.4704663Z File upload process has finished. Finalizing the artifact upload
2026-11-27T19:12:12.6905749Z Artifact has been finalized. All files have been successfully uploaded!
2026-11-27T19:12:12.6906477Z
2026-11-27T19:12:12.6906647Z The raw size of all the files that were specified for upload is 930 bytes
2026-11-27T19:12:12.6906939Z The size of all the files that were uploaded is 565 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage
2026-11-27T19:12:12.6907194Z
2026-11-27T19:12:12.6907354Z Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads
2026-11-27T19:12:12.6907546Z
2026-11-27T19:12:12.6907733Z Artifact live-evidence-42-0311260ddf813ecd8d4f4c6889c7a0775e7511d5 has been successfully uploaded!
2026-11-27T19:12:12.7395355Z ::endgroup::
2026-11-27T19:12:12.8373766Z skipping post step for 'Publish ready bundle for this exact run and attempt'; main step was skipped
2026-11-27T19:12:13.0074151Z expression '${{ github.sha }}' rewritten to 'format('{0}', github.sha)'
2026-11-27T19:12:13.0075488Z evaluating expression 'format('{0}', github.sha)'
2026-11-27T19:12:13.0084079Z expression 'format('{0}', github.sha)' evaluated to '%!t(string=0311260ddf813ecd8d4f4c6889c7a0775e7511d5)'
2026-11-27T19:12:13.0678814Z evaluating expression 'always()'
2026-11-27T19:12:13.0692655Z expression 'always()' evaluated to 'true'
2026-11-27T19:12:13.0693324Z ⭐ Run Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:12:13.0693979Z Writing entry to tarball workflow/outputcmd.txt len:0
2026-11-27T19:12:13.0694308Z Writing entry to tarball workflow/statecmd.txt len:0
2026-11-27T19:12:13.0694727Z Writing entry to tarball workflow/pathcmd.txt len:0
2026-11-27T19:12:13.0694944Z Writing entry to tarball workflow/envs.txt len:0
2026-11-27T19:12:13.0695131Z Writing entry to tarball workflow/SUMMARY.md len:0
2026-11-27T19:12:13.0696186Z Extracting content to '/var/run/act'
2026-11-27T19:12:13.0903321Z run post step for 'https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683'
2026-11-27T19:12:13.0904566Z executing remote job container: [node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]
2026-11-27T19:12:13.0904855Z 🐳 docker exec cmd=[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js] user= workdir=
2026-11-27T19:12:13.0911381Z Exec command '[node /var/run/act/actions/b94eaaec415855fd53d8344a8c166275277ae14bc69c7aa01565edbbc05ddb4e/dist/index.js]'
2026-11-27T19:12:13.0929009Z Working directory '/workspace/myfileagent/myfileagent-pipeline'
2026-11-27T19:12:14.1950569Z [command]/usr/bin/git version
2026-11-27T19:12:14.2804485Z git version 2.39.5
2026-11-27T19:12:14.2984191Z ***
2026-11-27T19:12:14.3177125Z Temporarily overriding HOME='/tmp/64da97c2-98f7-4c3b-bd56-8948c48dc430' before making global git config changes
2026-11-27T19:12:14.3222061Z Adding repository directory to the temporary git global config as a safe directory
2026-11-27T19:12:14.3302613Z [command]/usr/bin/git config --global --add safe.directory /workspace/myfileagent/myfileagent-pipeline
2026-11-27T19:12:14.3595817Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2026-11-27T19:12:14.3730559Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2026-11-27T19:12:14.5122686Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/myfileagent\.tech\/\.extraheader
2026-11-27T19:12:14.5280117Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/myfileagent\.tech\/\.extraheader' && git config --local --unset-all 'http.https://myfileagent.tech/.extraheader' || :"
2026-11-27T19:12:14.6558074Z ✅ Success - Post https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2026-11-27T19:12:14.7194357Z Cleaning up container for job review
2026-11-27T19:12:16.8036577Z Removed container: 827197b2192c5d48c1563edfc19dd544dc5bf8ea614a0bd87b9d957fdd57e9b3
2026-11-27T19:12:16.8260393Z 🐳 docker volume rm GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e
2026-11-27T19:12:16.9363347Z 🐳 docker volume rm GITEA-ACTIONS-TASK-44-WORKFLOW-Final-project-review-live-JOB-re-9f70cb810b9cf0af25df92671a4002d3855602b2e1d0aaa327c4526aeadc748e-env
2026-11-27T19:12:17.6141737Z 🏁 Job failed
2026-11-27T19:12:17.6818537Z Job 'review' failed
@@ -0,0 +1,16 @@
{
"scope": "actual Actions job including runtime preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 218419200,
"memory_events": {
"low": 0,
"high": 0,
"max": 0,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 3
}
@@ -0,0 +1,16 @@
{
"source_commit": "0311260ddf813ecd8d4f4c6889c7a0775e7511d5",
"model_id": null,
"status": "error",
"summary": "RuntimeError: review could not complete",
"diff": "",
"input_tokens": null,
"output_tokens": null,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T19:12:03.679089Z",
"finished_at": "2026-11-27T19:12:04.196663Z",
"elapsed_seconds": 0.517523,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"diagnostic": "RuntimeError: llama-completion exited 1"
}
@@ -0,0 +1,2 @@
069bcb417438b4961e3ae5e89b5d4fadcab71b6a2c1b630bd28a919ed3b1c905 review.json
b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180 reviewed.py
@@ -0,0 +1 @@
{"attempt": "1", "mode": "live", "run_id": "43", "schema_version": 1, "source_commit": "c735c8c6934c3084944de3077dfba027bf423bef"}
@@ -0,0 +1,47 @@
{
"source_commit": "c735c8c6934c3084944de3077dfba027bf423bef",
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"status": "corrected",
"summary": "Added the missing closing parenthesis",
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
"input_tokens": 23,
"output_tokens": 5,
"schema_version": 1,
"mode": "live",
"started_at": "2026-11-27T19:16:55.203351Z",
"finished_at": "2026-11-27T19:16:58.259482Z",
"elapsed_seconds": 3.0561,
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
"raw_response_file": "raw_response.txt",
"runtime_response_file": "runtime_response.json",
"resource_measurement": {
"scope": "job cgroup including preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 249999360,
"memory_events": {
"low": 0,
"high": 0,
"max": 433,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 0
},
"model_lock_sha256": "ea56ca30322e2fd47236d9014dd86eb14e78a98a2e5b71e16b73f62ac8d6304b",
"raw_response": " print(\"hello\")\n\n\n",
"runtime_response": {
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
"raw_stdout": " print(\"hello\")\n\n\n",
"prompt_eval_tokens": 23,
"sampler_total_tokens": 28,
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
"runtime_log_counter_lines": [
"0.01.545.667 I common_perf_print: samplers time = 0.36 ms / 28 tokens",
"0.01.545.679 I common_perf_print: prompt eval time = 258.99 ms / 23 tokens ( 11.26 ms per token, 88.81 tokens per second)"
]
}
}
@@ -0,0 +1 @@
print("hello")
@@ -0,0 +1,52 @@
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
test_total (test_pricing.PricingTests.test_total) ... ok
test_cli_corrected_and_malformed_json (test_reviewer.ReviewerTests.test_cli_corrected_and_malformed_json) ... ok
test_cli_rejected_and_unchanged (test_reviewer.ReviewerTests.test_cli_rejected_and_unchanged) ... ok
test_cli_usage_is_separate (test_reviewer.ReviewerTests.test_cli_usage_is_separate) ... ok
test_corrected (test_reviewer.ReviewerTests.test_corrected) ... ok
test_error (test_reviewer.ReviewerTests.test_error) ... ok
test_invalid_counts (test_reviewer.ReviewerTests.test_invalid_counts) ... ok
test_invalid_sha (test_reviewer.ReviewerTests.test_invalid_sha) ... ok
test_missing_candidate (test_reviewer.ReviewerTests.test_missing_candidate) ... ok
test_missing_counts (test_reviewer.ReviewerTests.test_missing_counts) ... ok
test_no_newline (test_reviewer.ReviewerTests.test_no_newline) ... ok
test_rejected_invalid_syntax (test_reviewer.ReviewerTests.test_rejected_invalid_syntax) ... ok
test_rejected_unrelated_edit (test_reviewer.ReviewerTests.test_rejected_unrelated_edit) ... ok
test_runtime_failure (test_reviewer.ReviewerTests.test_runtime_failure) ... ok
test_subprocess_timeout (test_reviewer.ReviewerTests.test_subprocess_timeout) ... ok
test_timeout (test_reviewer.ReviewerTests.test_timeout) ... ok
test_unchanged_skips_backend (test_reviewer.ReviewerTests.test_unchanged_skips_backend) ... ok
test_unrelated_syntax_error (test_reviewer.ReviewerTests.test_unrelated_syntax_error) ... ok
----------------------------------------------------------------------
Ran 19 tests in 2.187s
OK
test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
ok
test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
test_measured_live_metric_fields (test_pipeline.PipelineTests.test_measured_live_metric_fields) ... ok
test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
ok
test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
----------------------------------------------------------------------
Ran 20 tests in 2.886s
OK
@@ -0,0 +1,2 @@
version: 1.1.0-dev (build 12785, commit 55d482814)
built with GNU 11.4.0 for Linux x86_64
@@ -0,0 +1,7 @@
{
"number": 24,
"title": "Final project: integrate measured AI review with versioned CI release",
"html_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/24",
"created_at": "2026-11-27T19:12:40Z",
"body": "Track the final-project technical integration.\r\n\r\nImplementation branch: feature/final-ci-demo. Member 1 reviewer: 1449a8bf68a5013433225f77f5286bf8d6fd9468.\r\n\r\n- [x] Merge bounded real reviewer and checksum-pinned runtime.\r\n- [x] Pass 39 combined tests in the pinned compiler image.\r\n- [x] Configure live Actions review under a 250 MB cap with no swap.\r\n- [x] Configure exact-artifact Jenkins live job and measured metrics.\r\n- [ ] Verify actual live Actions \u2192 Jenkins \u2192 versioned ZIP run.\r\n- [ ] Verify deployed token, duration, memory and host-load evidence.\r\n- [ ] Verify downloaded release and immutable retry.\r\n\r\nReport writing is deferred. Evidence is retained under ci/evidence; earlier fixture runs remain explicitly separate from live-model evidence."
}
@@ -0,0 +1,52 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-live-1.0.4.zip",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip"
},
{
"fileName": "ssw590-live-1.0.4.zip.sha256",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 187698,
"number": 1,
"result": "SUCCESS",
"timestamp": 1795807060620,
"manifest": {
"attempt": "1",
"jenkins_build": "1",
"mode": "live",
"payload_sha256": {
"README.txt": "b4c8df55e70139ab1f2c1b7b93c6e62b75de67abdfc37e9adb7187d272bad6b8",
"report-1.0.4.pdf": "7269861686dfb5d592a165e172ca9e3338b81f09e33b122bf4ff8ba459314c07",
"review.json": "069bcb417438b4961e3ae5e89b5d4fadcab71b6a2c1b630bd28a919ed3b1c905",
"reviewed.py": "b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180"
},
"run_id": "43",
"schema_version": 1,
"source_commit": "c735c8c6934c3084944de3077dfba027bf423bef",
"version": "1.0.4"
},
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"independent_verification": "companion checksum, all payload hashes, exact live review and fresh execution passed",
"download_url": "https://ci.myfileagent.tech/job/final-project-live/1/artifact/out/collected/release/ssw590-live-1.0.4.zip"
}
@@ -0,0 +1,14 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
}
],
"building": false,
"duration": 25642,
"number": 2,
"result": "FAILURE",
"timestamp": 1795807248575
}
@@ -0,0 +1,36 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{
"fileName": "actions-run.json",
"relativePath": "out/actions-run.json"
},
{
"fileName": "release.json",
"relativePath": "out/collected/release/release.json"
},
{
"fileName": "ssw590-live-1.0.4.zip",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip"
},
{
"fileName": "ssw590-live-1.0.4.zip.sha256",
"relativePath": "out/collected/release/ssw590-live-1.0.4.zip.sha256"
},
{
"fileName": "test-result.json",
"relativePath": "out/collected/test-result.json"
},
{
"fileName": "verified.json",
"relativePath": "out/collected/verified/verified.json"
}
],
"building": false,
"duration": 156705,
"number": 3,
"result": "SUCCESS",
"timestamp": 1795807274328,
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"byte_identical_to_live1": true
}
@@ -0,0 +1,298 @@
{
"start_epoch": 1795806835.203351,
"end_epoch": 1795807308.318,
"step_seconds": 30,
"host_scope": "Shared Droplet, not model-only CPU/RSS",
"series": {
"input_tokens": [
{
"metric": {
"__name__": "review_input_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"23"
],
[
1795807165.203,
"23"
],
[
1795807195.203,
"23"
],
[
1795807225.203,
"23"
],
[
1795807255.203,
"23"
],
[
1795807285.203,
"23"
]
]
}
],
"output_tokens": [
{
"metric": {
"__name__": "review_output_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"5"
],
[
1795807165.203,
"5"
],
[
1795807195.203,
"5"
],
[
1795807225.203,
"5"
],
[
1795807255.203,
"5"
],
[
1795807285.203,
"5"
]
]
}
],
"review_duration": [
{
"metric": {
"__name__": "review_duration_seconds",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"3.0561"
],
[
1795807165.203,
"3.0561"
],
[
1795807195.203,
"3.0561"
],
[
1795807225.203,
"3.0561"
],
[
1795807255.203,
"3.0561"
],
[
1795807285.203,
"3.0561"
]
]
}
],
"job_memory_peak": [
{
"metric": {
"__name__": "review_job_memory_peak_bytes",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"values": [
[
1795807135.203,
"249999360"
],
[
1795807165.203,
"249999360"
],
[
1795807195.203,
"249999360"
],
[
1795807225.203,
"249999360"
],
[
1795807255.203,
"249999360"
],
[
1795807285.203,
"249999360"
]
]
}
],
"host_cpu_percent": [
{
"metric": {},
"values": [
[
1795806835.203,
"63.311111111090426"
],
[
1795806865.203,
"77.03333333335145"
],
[
1795806895.203,
"90.91111111111887"
],
[
1795806925.203,
"89.1555555555452"
],
[
1795806955.203,
"78.0111111111344"
],
[
1795806985.203,
"73.61111111111111"
],
[
1795807015.203,
"83.96666666667443"
],
[
1795807045.203,
"92.47777777775708"
],
[
1795807075.203,
"95.3888888889277"
],
[
1795807105.203,
"95.37777777780624"
],
[
1795807135.203,
"97.23333333334368"
],
[
1795807165.203,
"97.73333333329194"
],
[
1795807195.203,
"96.33333333334627"
],
[
1795807225.203,
"96.41131048277165"
],
[
1795807255.203,
"95.85555555557626"
],
[
1795807285.203,
"96.19999999995343"
]
]
}
],
"host_available_memory": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"values": [
[
1795806835.203,
"445128704"
],
[
1795806865.203,
"527900672"
],
[
1795806895.203,
"559788032"
],
[
1795806925.203,
"540057600"
],
[
1795806955.203,
"533585920"
],
[
1795806985.203,
"496340992"
],
[
1795807015.203,
"522829824"
],
[
1795807045.203,
"557027328"
],
[
1795807075.203,
"558444544"
],
[
1795807105.203,
"538083328"
],
[
1795807135.203,
"489725952"
],
[
1795807165.203,
"488443904"
],
[
1795807195.203,
"473464832"
],
[
1795807225.203,
"406007808"
],
[
1795807255.203,
"530657280"
],
[
1795807285.203,
"494395392"
]
]
}
]
}
}
@@ -0,0 +1,71 @@
{
"review_input_tokens{mode=\"live\"}": [
{
"metric": {
"__name__": "review_input_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.736,
"23"
]
}
],
"review_output_tokens{mode=\"live\"}": [
{
"metric": {
"__name__": "review_output_tokens",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.753,
"5"
]
}
],
"review_duration_seconds{mode=\"live\"}": [
{
"metric": {
"__name__": "review_duration_seconds",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.756,
"3.0561"
]
}
],
"review_job_memory_peak_bytes{mode=\"live\"}": [
{
"metric": {
"__name__": "review_job_memory_peak_bytes",
"instance": "node-exporter:9100",
"job": "node",
"mode": "live"
},
"value": [
1795807124.76,
"249999360"
]
}
],
"node_textfile_scrape_error": [
{
"metric": {
"__name__": "node_textfile_scrape_error",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795807124.763,
"0"
]
}
]
}
+54
View File
@@ -0,0 +1,54 @@
{
"verified_implementation": "c735c8c6934c3084944de3077dfba027bf423bef",
"member1_published_head": "1449a8bf68a5013433225f77f5286bf8d6fd9468",
"member1_optional_hardening": "reviewer implementation adopted and tested, plus Python 3.11 preparation compatibility",
"issue": 24,
"actions_run": 43,
"jenkins_live_runs": {
"1": "SUCCESS: actual live release",
"2": "Expected FAILURE: invalid Actions artifact, no ZIP",
"3": "SUCCESS: byte-identical immutable retry"
},
"tests": {
"reviewer_and_existing": 19,
"pipeline": 20,
"total": 39
},
"release_version": "1.0.4",
"zip_sha256": "2eed54036744e4e0eaeb91f001a15be169a3d13bb28a213c900f097af1f664c5",
"measured_review": {
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
"input_tokens": 23,
"output_tokens": 5,
"elapsed_seconds": 3.0561,
"started_at": "2026-11-27T19:16:55.203351Z",
"finished_at": "2026-11-27T19:16:58.259482Z",
"resource_measurement": {
"scope": "job cgroup including preparation, reviewer and private tmpfs model",
"requested_memory_limit_bytes": 250000000,
"memory_limit_bytes": 249999360,
"memory_peak_bytes": 249999360,
"memory_events": {
"low": 0,
"high": 0,
"max": 433,
"oom": 0,
"oom_kill": 0,
"oom_group_kill": 0
},
"swap_limit_bytes": 0,
"reviewer_exit_code": 0
}
},
"pdf": {
"pages": 170,
"source_model_tokens_code_verified": true
},
"monitoring": {
"actual_prometheus_samples_verified": true,
"grafana_panels_loaded": 8,
"screenshots_captured": false
},
"report_prose": "deferred by user",
"temporary_jenkins_access": "revoked and file removed"
}
+70
View File
@@ -0,0 +1,70 @@
{
"observed_epoch": 1795711458,
"queries": {
"node_textfile_scrape_error": [
{
"metric": {
"__name__": "node_textfile_scrape_error",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711458.653,
"0"
]
}
],
"node_scrape_collector_success{collector=\"textfile\"}": [
{
"metric": {
"__name__": "node_scrape_collector_success",
"collector": "textfile",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711458.655,
"1"
]
}
],
"up{job=\"node\"}": [
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711521.843,
"1"
]
}
]
},
"live_tokens_emitted": false,
"connectivity_probe": {
"query": "ssw590_collector_check",
"result": [
{
"metric": {
"__name__": "ssw590_collector_check",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1795711663.854,
"1"
]
}
],
"removed_after_check": true
},
"grafana": {
"uid": "ssw590-final-project",
"url": "https://metrics.myfileagent.tech/d/ssw590-final-project",
"provisioned_resource_verified": true,
"panels": 6,
"availability_series": 2
}
}
+27
View File
@@ -0,0 +1,27 @@
test_concurrent_reservation (test_pipeline.PipelineTests.test_concurrent_reservation) ... ok
test_duplicate_and_symlink (test_pipeline.PipelineTests.test_duplicate_and_symlink) ... /usr/lib/python3.11/zipfile.py:1569: UserWarning: Duplicate name: 'reviewed.py'
return self._open_to_write(zinfo, force_zip64=force_zip64)
ok
test_fixture_cli_and_source_integrity (test_pipeline.PipelineTests.test_fixture_cli_and_source_integrity) ... ok
test_fixture_unchanged (test_pipeline.PipelineTests.test_fixture_unchanged) ... ok
test_fresh_output_required (test_pipeline.PipelineTests.test_fresh_output_required) ... ok
test_good_bundle_and_smoke (test_pipeline.PipelineTests.test_good_bundle_and_smoke) ... ok
test_metrics_reject_fixture (test_pipeline.PipelineTests.test_metrics_reject_fixture) ... ok
test_missing_live_counts_are_unknown (test_pipeline.PipelineTests.test_missing_live_counts_are_unknown) ... ok
test_rejected_not_bundled (test_pipeline.PipelineTests.test_rejected_not_bundled) ... ok
test_runtime_failure_reaches_smoke (test_pipeline.PipelineTests.test_runtime_failure_reaches_smoke) ... ok
test_tampered_transfer (test_pipeline.PipelineTests.test_tampered_transfer) ... ok
test_unexpected_paths (test_pipeline.PipelineTests.test_unexpected_paths) ... ok
test_version_retry_and_mode (test_pipeline.PipelineTests.test_version_retry_and_mode) ... ok
test_wrong_identity (test_pipeline.PipelineTests.test_wrong_identity) ... ok
test_existing_version_refuses_changed_review (test_release.ReleaseTests.test_existing_version_refuses_changed_review) ... ok
test_publish_and_retry_preserve_bytes (test_release.ReleaseTests.test_publish_and_retry_preserve_bytes) ... Reusing immutable release and its original build identity
ok
test_report_mismatch_prevents_release (test_release.ReleaseTests.test_report_mismatch_prevents_release) ... ok
test_runtime_failure_prevents_release (test_release.ReleaseTests.test_runtime_failure_prevents_release) ... ok
test_failed_compile_removes_stale_publish_targets (test_tex_failure.CompilerFailureTests.test_failed_compile_removes_stale_publish_targets) ... ok
----------------------------------------------------------------------
Ran 19 tests in 2.603s
OK
@@ -0,0 +1,5 @@
{
"temporary_jenkins_token": "revoked",
"revocation_verified": true,
"credential_file": "removed"
}
+349
View File
@@ -0,0 +1,349 @@
"""Exact-bundle validation and immutable release tooling; standard library only."""
import argparse
import contextlib
import fcntl
import hashlib
import io
import json
import os
from pathlib import Path
import re
import shutil
import stat
import subprocess
import sys
import tempfile
import urllib.request
import zipfile
ROOT = Path(__file__).resolve().parents[1]
BASE = 'https://myfileagent.tech'
REPO = 'myfileagent/myfileagent-pipeline'
PAYLOAD = {'reviewed.py', 'review.json'}
FILES = PAYLOAD | {'bundle.json', 'SHA256SUMS'}
MAX_BYTES = 2 * 1024 * 1024
def digest(data):
return hashlib.sha256(data).hexdigest()
def write_json(path, data):
path = Path(path)
path.parent.mkdir(parents=True, exist_ok=True)
tmp = path.with_name(path.name + '.tmp')
tmp.write_text(json.dumps(data, sort_keys=True, indent=2) + '\n', encoding='utf-8')
os.replace(tmp, path)
def identity(sha, run, attempt, mode):
if not re.fullmatch('[0-9a-f]{40}', str(sha)):
raise ValueError('Expected full lowercase SHA-1 source commit')
if any(not re.fullmatch('[1-9][0-9]*', str(x)) for x in (run, attempt)):
raise ValueError('Run ID and attempt must be positive integers')
if mode not in ('fixture', 'live'):
raise ValueError('Explicit fixture/live mode required')
return dict(schema_version=1, source_commit=sha, run_id=str(run), attempt=str(attempt), mode=mode)
def bundle_name(meta):
return f"review-{meta['run_id']}-attempt-{meta['attempt']}-{meta['source_commit']}"
def review_metadata(raw, expected):
data = json.loads(raw)
required = {'source_commit', 'model_id', 'status', 'summary', 'diff', 'input_tokens', 'output_tokens'}
if not isinstance(data, dict) or not required <= data.keys():
raise ValueError('Missing review metadata fields')
if data['source_commit'] != expected['source_commit'] or data['status'] not in ('corrected', 'unchanged'):
raise ValueError('Review identity/status does not permit a ready bundle')
if not all(isinstance(data[x], str) for x in ('summary', 'diff')):
raise ValueError('Review summary and diff must be strings')
if data.get('mode', expected['mode']) != expected['mode']:
raise ValueError('Review mode mismatch')
for key in ('input_tokens', 'output_tokens'):
value = data[key]
if value is not None and (type(value) is not int or value < 0):
raise ValueError('Invalid token count')
if data['status'] == 'corrected' and (not isinstance(data['model_id'], str) or not data['model_id']):
raise ValueError('Corrected review must identify its model')
if expected['mode'] == 'fixture' and data['model_id'] != 'fixture-model':
raise ValueError('Fixture model ID required')
if expected['mode'] == 'live' and data['model_id'] == 'fixture-model':
raise ValueError('Fixture data cannot be released in live mode')
return data
def zip_bytes(contents):
out = io.BytesIO()
with zipfile.ZipFile(out, 'w', compression=zipfile.ZIP_DEFLATED) as z:
for name, data in sorted(contents.items()):
info = zipfile.ZipInfo(name, date_time=(2020, 1, 1, 0, 0, 0))
info.compress_type = zipfile.ZIP_DEFLATED
info.external_attr = 0o100644 << 16
z.writestr(info, data)
return out.getvalue()
def create_bundle(review_dir, output, expected):
output = Path(output)
if output.exists():
raise ValueError('Refuse to overwrite a bundle')
files = {}
for name in PAYLOAD:
path = Path(review_dir) / name
if path.is_symlink() or not path.is_file() or path.stat().st_size > MAX_BYTES:
raise ValueError('Invalid review file')
files[name] = path.read_bytes()
review_metadata(files['review.json'], expected)
files['bundle.json'] = (json.dumps(expected, sort_keys=True)+'\n').encode()
files['SHA256SUMS'] = ''.join(f'{digest(files[n])} {n}\n' for n in sorted(PAYLOAD)).encode()
output.parent.mkdir(parents=True, exist_ok=True)
output.write_bytes(zip_bytes(files))
def read_bundle(path, expected):
if Path(path).stat().st_size > MAX_BYTES:
raise ValueError('Bundle exceeds size limit')
with zipfile.ZipFile(path) as z:
entries = z.infolist()
if len(entries) != len(FILES) or {i.filename for i in entries} != FILES:
raise ValueError('Unexpected, duplicate or missing bundle files')
if sum(i.file_size for i in entries) > MAX_BYTES:
raise ValueError('Expanded bundle exceeds size limit')
for i in entries:
kind = stat.S_IFMT(i.external_attr >> 16)
if kind not in (0, stat.S_IFREG) or i.flag_bits & 1:
raise ValueError('Only unencrypted regular files are allowed')
files = {i.filename: z.read(i) for i in entries}
if json.loads(files['bundle.json']) != expected:
raise ValueError('Bundle SHA/run/attempt/mode mismatch')
required = ''.join(f'{digest(files[n])} {n}\n' for n in sorted(PAYLOAD)).encode()
if files['SHA256SUMS'] != required:
raise ValueError('Payload checksum mismatch')
review_metadata(files['review.json'], expected)
return files
def verify_bundle(path, destination, expected):
files = read_bundle(path, expected)
destination = Path(destination)
destination.mkdir(parents=True, exist_ok=False)
for name, data in files.items():
(destination / name).write_bytes(data)
write_json(destination / 'verified.json', dict(**expected, bundle_sha256=digest(Path(path).read_bytes())))
return files
class SameOrigin(urllib.request.HTTPRedirectHandler):
def redirect_request(self, req, fp, code, msg, headers, newurl):
from urllib.parse import urlsplit
if urlsplit(newurl).scheme != 'https' or urlsplit(newurl).netloc != 'myfileagent.tech':
raise ValueError('Refuse cross-origin artifact redirect')
return super().redirect_request(req, fp, code, msg, headers, newurl)
def fetch_bundle(output, expected):
token = os.environ.get('GITEA_TOKEN', '')
opener = urllib.request.build_opener(SameOrigin())
headers = {'Authorization': 'token '+token} if token else {}
def get(url, limit):
with opener.open(urllib.request.Request(url, headers=headers), timeout=60) as response:
raw = response.read(limit+1)
if len(raw) > limit:
raise ValueError('Response exceeds size limit')
return raw
# Server-side success is checked independently from client-supplied metadata.
run = json.loads(get(f'{BASE}/api/v1/repos/{REPO}/actions/runs/{expected["run_id"]}', MAX_BYTES))
if run.get('conclusion') != 'success' or run.get('head_sha') != expected['source_commit']:
raise ValueError('Selected Actions run is not successful on the expected SHA')
if str(run.get('run_attempt', '1')) != expected['attempt']:
raise ValueError('Actions run attempt mismatch')
name = bundle_name(expected)
raw = get(f'{BASE}/{REPO}/actions/runs/{expected["run_id"]}/artifacts/{name}', MAX_BYTES)
# upload-artifact wraps our canonical review-bundle.zip in its own ZIP.
with zipfile.ZipFile(io.BytesIO(raw)) as outer:
entries = outer.infolist()
if len(entries) != 1 or entries[0].filename != 'review-bundle.zip' or entries[0].file_size > MAX_BYTES:
raise ValueError('Unexpected Actions artifact wrapper')
content = outer.read(entries[0])
output = Path(output)
output.parent.mkdir(parents=True, exist_ok=True)
with output.open('xb') as target:
target.write(content)
read_bundle(output, expected)
return run
@contextlib.contextmanager
def locked(state):
state = Path(state)
state.mkdir(parents=True, exist_ok=True)
with (state / '.lock').open('a') as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
yield state
def release_key(meta):
# Mode separates simulated and live reservations. Model/runtime must be pinned in the commit.
return f"{meta['mode']}:{meta['source_commit']}"
def reserve(state, meta, baseline='1.0'):
if not re.fullmatch(r'(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)', baseline):
raise ValueError('Baseline must be Major.Minor')
with locked(state) as state:
path = state / 'versions.json'
registry = json.loads(path.read_text()) if path.exists() else {'baseline': baseline, 'next': 1, 'reservations': {}}
if registry['baseline'] != baseline:
raise ValueError('Baseline differs from durable registry')
key = release_key(meta)
if key not in registry['reservations']:
registry['reservations'][key] = f"{baseline}.{registry['next']}"
registry['next'] += 1
write_json(path, registry)
return registry['reservations'][key]
def smoke(path):
run = subprocess.run([sys.executable, str(path)], capture_output=True, text=True, timeout=10)
if run.returncode or run.stdout != 'hello\n':
raise ValueError('Reviewed-file smoke test failed')
def test_review(verified, receipt):
root = Path(verified)
subprocess.run([sys.executable, '-m', 'py_compile', str(root / 'reviewed.py')], check=True, timeout=10)
# Adopt Member 1's smoke entry point when integrated; retain the independent assertion.
member1 = ROOT / 'tests/smoke_demo.py'
if member1.exists():
try:
subprocess.run([sys.executable, str(member1), str(root/'reviewed.py')], check=True, timeout=20)
except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as exc:
raise ValueError('Member 1 smoke test failed') from exc
smoke(root / 'reviewed.py')
write_json(receipt, {'reviewed_sha256': digest((root/'reviewed.py').read_bytes()), 'result': 'passed'})
def publish(bundle, expected, pdf, state, output, baseline, jenkins_build):
files = read_bundle(bundle, expected)
version = reserve(state, expected, baseline)
pdf = Path(pdf)
from pypdf import PdfReader
reader = PdfReader(pdf)
text = '\n'.join(p.extract_text() or '' for p in reader.pages)
for value in [version, expected['source_commit']]:
if value not in text:
raise ValueError('PDF is missing release identity')
build_meta = json.loads(pdf.with_name('build-manifest.json').read_text())
if (build_meta.get('release_version') != version or build_meta.get('commit') != expected['source_commit']
or build_meta.get('review_sha256') != digest(files['review.json'])
or build_meta.get('reviewed_sha256') != digest(files['reviewed.py'])
or build_meta.get('pdf_sha256') != digest(pdf.read_bytes())
or build_meta.get('run_id') != expected['run_id'] or build_meta.get('attempt') != expected['attempt']
or build_meta.get('mode') != expected['mode']):
raise ValueError('Report manifest does not match this verified bundle')
with tempfile.TemporaryDirectory() as temp:
candidate = Path(temp)/'reviewed.py'
candidate.write_bytes(files['reviewed.py'])
smoke(candidate) # Publication cannot bypass the behavior gate.
contents = {n: files[n] for n in PAYLOAD}
contents[f'report-{version}.pdf'] = pdf.read_bytes()
contents['README.txt'] = (f'SSW590 final project {version}\nMode: {expected["mode"]}\n'
f'Source: {expected["source_commit"]}\nPython 3 required (tested by CI).\n'
'Extract into a fresh directory; run: python3 reviewed.py\nExpected stdout: hello\n'
'Compare payload SHA-256 hashes with manifest.json; compare the ZIP with its companion .sha256.\n'
'Fixture mode is simulated evidence, not a real AI review.\n').encode()
manifest = dict(**expected, version=version, jenkins_build=str(jenkins_build),
payload_sha256={n:digest(b) for n,b in sorted(contents.items())})
contents['manifest.json'] = (json.dumps(manifest, sort_keys=True, indent=2)+'\n').encode()
archive = zip_bytes(contents)
name = f'ssw590-{expected["mode"]}-{version}.zip'
with locked(state) as state:
release = state/'releases'/name
release.parent.mkdir(exist_ok=True)
if release.exists():
# A published version is immutable. A new build identity/PDF cannot silently overwrite it.
if release.read_bytes() != archive:
previous = release.read_bytes()
with zipfile.ZipFile(io.BytesIO(previous)) as z:
old_manifest = json.loads(z.read('manifest.json'))
if (old_manifest['source_commit'] != expected['source_commit']
or old_manifest['mode'] != expected['mode']
or any(z.read(n) != files[n] for n in PAYLOAD)):
raise ValueError('Version already published with different reviewed payload')
archive = previous
manifest = old_manifest
print('Reusing immutable release and its original build identity', file=sys.stderr)
else:
tmp = release.with_suffix('.tmp')
tmp.write_bytes(archive)
os.replace(tmp, release)
out = Path(output)
out.mkdir(parents=True, exist_ok=True)
(out/name).write_bytes(archive)
(out/(name+'.sha256')).write_text(f'{digest(archive)} {name}\n')
write_json(out/'release.json', manifest)
return name
def metrics(review, output, completed_at):
data = json.loads(Path(review).read_text())
if data.get('mode') != 'live' or data.get('model_id') == 'fixture-model':
raise ValueError('Only explicitly live metadata may emit live metrics')
rows = []
for key in ('input_tokens', 'output_tokens'):
value = data.get(key)
known = type(value) is int and value >= 0
rows += [f'review_{key}_available{{mode="live"}} {int(known)}']
if known:
rows += [f'review_{key}{{mode="live"}} {value}']
if completed_at is None and data.get('finished_at'):
from datetime import datetime
completed_at = int(datetime.fromisoformat(data['finished_at'].replace('Z', '+00:00')).timestamp())
elapsed = data.get('elapsed_seconds')
if type(elapsed) in (int, float) and 0 <= elapsed < float('inf'):
rows += [f'review_duration_seconds{{mode="live"}} {elapsed}']
resource = data.get('resource_measurement', {})
for field, metric in [('memory_peak_bytes', 'review_job_memory_peak_bytes'),
('memory_limit_bytes', 'review_job_memory_limit_bytes')]:
value = resource.get(field)
if type(value) is int and value > 0:
rows += [f'{metric}{{mode="live"}} {value}']
if not re.fullmatch('[0-9]+', str(completed_at)):
raise ValueError('Completion timestamp must be measured epoch seconds')
rows += [f'review_completed_timestamp_seconds{{mode="live"}} {completed_at}']
output = Path(output)
output.parent.mkdir(parents=True, exist_ok=True)
tmp = output.with_suffix('.tmp')
tmp.write_text('\n'.join(rows)+'\n')
os.replace(tmp, output)
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('action', choices=['bundle','fetch','verify','reserve','test','publish','metrics'])
p.add_argument('--sha'); p.add_argument('--run-id'); p.add_argument('--attempt', default='1')
p.add_argument('--mode', choices=['fixture','live'], default='fixture')
p.add_argument('--review-dir'); p.add_argument('--bundle'); p.add_argument('--output')
p.add_argument('--state'); p.add_argument('--baseline', default='1.0'); p.add_argument('--pdf')
p.add_argument('--jenkins-build', default='local'); p.add_argument('--completed-at')
a = p.parse_args()
if a.action == 'test':
test_review(a.review_dir, a.output); return
if a.action == 'metrics':
metrics(a.review_dir+'/review.json', a.output, a.completed_at); return
meta = identity(a.sha,a.run_id,a.attempt,a.mode)
if a.action == 'bundle': create_bundle(a.review_dir,a.output,meta)
elif a.action == 'fetch': print(json.dumps(fetch_bundle(a.output,meta)))
elif a.action == 'verify': verify_bundle(a.bundle,a.output,meta)
elif a.action == 'reserve': print(reserve(a.state,meta,a.baseline))
elif a.action == 'publish': print(publish(a.bundle,meta,a.pdf,a.state,a.output,a.baseline,a.jenkins_build))
if __name__ == '__main__':
try:
main()
except Exception as exc:
print(f'Final-project gate failed: {type(exc).__name__}: {exc}', file=sys.stderr)
raise SystemExit(1)
+1
View File
@@ -0,0 +1 @@
print("hello"
+1
View File
@@ -0,0 +1 @@
print("hello")
+63
View File
@@ -0,0 +1,63 @@
"""Standalone simulated reviewer. Does not import Member 1's code."""
import argparse
import ast
import difflib
import json
from pathlib import Path
import re
def main():
p = argparse.ArgumentParser(description=__doc__)
p.add_argument('--input', required=True)
p.add_argument('--source-commit', required=True)
p.add_argument('--out-dir', required=True)
p.add_argument('--case', choices=['good', 'rejected', 'error', 'runtime'], default='good')
a = p.parse_args()
out = Path(a.out_dir)
try:
out.mkdir(parents=True, exist_ok=False)
except OSError:
p.exit(3, 'A fresh writable output directory is required\n')
data = dict(source_commit=a.source_commit, model_id='fixture-model', mode='fixture',
status='error', summary='', diff='', input_tokens=24, output_tokens=8)
result = 3
try:
if not re.fullmatch('[0-9a-f]{40}', a.source_commit):
raise ValueError('Full SHA required')
source = Path(a.input).read_text(encoding='utf-8')
if a.case == 'error':
raise RuntimeError('Simulated operational error')
if a.case == 'rejected':
data.update(status='rejected', summary='Simulated rejected proposal')
result = 2
else:
if a.case == 'runtime':
candidate = 'raise RuntimeError("fixture")\n'
status = 'corrected'
else:
try:
ast.parse(source)
candidate, status = source, 'unchanged'
data.update(input_tokens=None, output_tokens=None)
except SyntaxError:
if source not in ['print("hello"', 'print("hello"\n']:
data.update(status='rejected', summary='Unsupported fixture')
(out / 'review.json').write_text(json.dumps(data, indent=2)+'\n')
return 2
candidate = source.rstrip('\n') + ')' + ('\n' if source.endswith('\n') else '')
status = 'corrected'
data.update(status=status, summary=f'SIMULATED {a.case} fixture; not live AI evidence',
diff=''.join(difflib.unified_diff(source.splitlines(True), candidate.splitlines(True),
fromfile='original.py', tofile='reviewed.py')))
(out / 'reviewed.py').write_text(candidate, encoding='utf-8')
result = 0
except Exception as exc:
data['summary'] = f'Simulated fixture failure: {type(exc).__name__}'
(out / 'reviewed.py').unlink(missing_ok=True)
(out / 'review.json').write_text(json.dumps(data, indent=2)+'\n', encoding='utf-8')
return result
if __name__ == '__main__':
raise SystemExit(main())
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow-definition plugin="workflow-job">
<description>SSW590 Member 2 fixture pipeline. Simulated review, not live model evidence. Separate from the protected-main Python check.</description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition><name>SOURCE_SHA</name><description>Full SHA matching the selected Actions run and current Member 2 branch HEAD</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_RUN_ID</name><description>Successful exact Actions run ID</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_ATTEMPT</name><defaultValue>1</defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition><name>MODE</name><choices class="java.util.Arrays$ArrayList"><a class="string-array"><string>fixture</string></a></choices></hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps">
<scm class="hudson.plugins.git.GitSCM" plugin="git">
<configVersion>2</configVersion>
<userRemoteConfigs><hudson.plugins.git.UserRemoteConfig><url>https://myfileagent.tech/myfileagent/myfileagent-pipeline.git</url></hudson.plugins.git.UserRemoteConfig></userRemoteConfigs>
<branches><hudson.plugins.git.BranchSpec><name>*/feature/final-ci-demo</name></hudson.plugins.git.BranchSpec></branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions/>
</scm>
<scriptPath>Jenkinsfile.final-project</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow-definition plugin="workflow-job">
<description>SSW590 integrated real-model pipeline. Exact Actions bundle and measured review evidence. Separate from the protected-main Python check.</description>
<keepDependencies>false</keepDependencies>
<properties>
<hudson.model.ParametersDefinitionProperty>
<parameterDefinitions>
<hudson.model.StringParameterDefinition><name>SOURCE_SHA</name><description>Full SHA matching the selected Actions run and current Member 2 branch HEAD</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_RUN_ID</name><description>Successful exact Actions run ID</description><defaultValue></defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.StringParameterDefinition><name>ACTIONS_ATTEMPT</name><defaultValue>1</defaultValue><trim>true</trim></hudson.model.StringParameterDefinition>
<hudson.model.ChoiceParameterDefinition><name>MODE</name><choices class="java.util.Arrays$ArrayList"><a class="string-array"><string>live</string><string>fixture</string></a></choices></hudson.model.ChoiceParameterDefinition>
</parameterDefinitions>
</hudson.model.ParametersDefinitionProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps">
<scm class="hudson.plugins.git.GitSCM" plugin="git">
<configVersion>2</configVersion>
<userRemoteConfigs><hudson.plugins.git.UserRemoteConfig><url>https://myfileagent.tech/myfileagent/myfileagent-pipeline.git</url></hudson.plugins.git.UserRemoteConfig></userRemoteConfigs>
<branches><hudson.plugins.git.BranchSpec><name>*/feature/final-ci-demo</name></hudson.plugins.git.BranchSpec></branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="empty-list"/>
<extensions/>
</scm>
<scriptPath>Jenkinsfile.final-project</scriptPath>
<lightweight>true</lightweight>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>
+5
View File
@@ -0,0 +1,5 @@
{
"image_id": "sha256:9c907055071888835492d1f479d032b522bb05a29300eff1d6beff1e09c40eb3",
"base": "python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1",
"dockerfile": "ci/Dockerfile.live-actions"
}
+45
View File
@@ -0,0 +1,45 @@
"""Run the pinned reviewer inside the actual capped Actions job and retain measurements."""
import hashlib
import json
import os
from pathlib import Path
import shutil
import subprocess
import sys
root = Path(__file__).resolve().parents[1]
lock_bytes = (root/'reviewer/model-lock.json').read_bytes()
lock = json.loads(lock_bytes)
runtime = root/'out/runtime'
cgroup = Path('/sys/fs/cgroup')
limit = int((cgroup/'memory.max').read_text())
assert 250000000 - os.sysconf('SC_PAGE_SIZE') < limit <= 250000000, 'Actual Actions container must have the page-rounded 250 MB limit'
assert (cgroup/'memory.swap.max').read_text().strip() == '0', 'Swap must be disabled'
assert not os.environ.get('REVIEWER_BACKEND_COMMAND'), 'Fixture override is forbidden'
private = Path('/private-model')/lock['quantized_filename']
assert private.is_file(), 'Model must be downloaded into private tmpfs'
library = runtime/'libgomp-root'/lock['libgomp_library_path']
assert hashlib.sha256(library.read_bytes()).hexdigest() == lock['libgomp_library_sha256']
env = os.environ.copy()
env.update(REVIEWER_MODEL_PATH=str(private),
REVIEWER_LLAMA_COMPLETION=str(runtime/f"llama-{lock['runtime_tag']}"/lock['entrypoint']),
LD_LIBRARY_PATH=str(library.parent)+':'+str(runtime/f"llama-{lock['runtime_tag']}"))
result = subprocess.run([sys.executable,'-m','reviewer','--input','demo/demo.py',
'--source-commit',env['SOURCE_SHA'],'--out-dir','out/review'],cwd=root,env=env)
peak = int((cgroup/'memory.peak').read_text())
events = {k:int(v) for k,v in (line.split() for line in (cgroup/'memory.events').read_text().splitlines())}
measurement = dict(scope='job cgroup including preparation, reviewer and private tmpfs model',
requested_memory_limit_bytes=250000000,memory_limit_bytes=limit,memory_peak_bytes=peak,memory_events=events,
swap_limit_bytes=0,reviewer_exit_code=result.returncode)
Path('out').mkdir(exist_ok=True)
Path('out/resource.json').write_text(json.dumps(measurement,indent=2)+'\n')
print(json.dumps(measurement))
assert result.returncode == 0 and events['oom_kill'] == 0 and peak <= limit, 'Live acceptance gate failed'
p=Path('out/review/review.json');data=json.loads(p.read_text())
assert data['mode']=='live' and data['status']=='corrected'
data['resource_measurement']=measurement
data['model_lock_sha256']=hashlib.sha256(lock_bytes).hexdigest()
data['raw_response']=(p.parent/'raw_response.txt').read_text()
data['runtime_response']=json.loads((p.parent/'runtime_response.json').read_text())
p.write_text(json.dumps(data,indent=2)+'\n')
subprocess.run([sys.executable,'tests/smoke_demo.py',str(p.parent/'reviewed.py')],check=True)
+157
View File
@@ -0,0 +1,157 @@
import concurrent.futures
import io
import json
from pathlib import Path
import stat
import subprocess
import sys
import tempfile
import unittest
import zipfile
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity, create_bundle, read_bundle, verify_bundle, reserve, test_review, metrics, zip_bytes
SHA = 'a' * 40
META = identity(SHA, '1', '1', 'fixture')
def reserve_worker(args):
state, sha = args
return reserve(state, identity(sha, '1', '1', 'fixture'))
class PipelineTests(unittest.TestCase):
def setUp(self):
self.temp = tempfile.TemporaryDirectory()
self.addCleanup(self.temp.cleanup)
self.root = Path(self.temp.name)
self.review = self.root/'review'
self.review.mkdir()
self.review.joinpath('reviewed.py').write_text('print("hello")\n')
self.review.joinpath('review.json').write_text(json.dumps(dict(source_commit=SHA,
model_id='fixture-model', mode='fixture', status='corrected', summary='SIMULATED', diff='fixture',
input_tokens=24, output_tokens=8)))
self.bundle = self.root/'bundle.zip'
create_bundle(self.review, self.bundle, META)
def contents(self):
with zipfile.ZipFile(self.bundle) as z:
return {n:z.read(n) for n in z.namelist()}
def test_good_bundle_and_smoke(self):
out = self.root/'verified'
verify_bundle(self.bundle,out,META)
test_review(out,self.root/'tested.json')
self.assertEqual(json.loads((self.root/'tested.json').read_text())['result'],'passed')
def test_tampered_transfer(self):
files=self.contents();files['reviewed.py']=b'print("changed")\n'
self.bundle.write_bytes(zip_bytes(files))
with self.assertRaisesRegex(ValueError,'checksum'):read_bundle(self.bundle,META)
def test_wrong_identity(self):
for key,value in [('source_commit','b'*40),('run_id','2'),('attempt','2'),('mode','live')]:
with self.subTest(key=key), self.assertRaisesRegex(ValueError,'mismatch'):
read_bundle(self.bundle,{**META,key:value})
def test_unexpected_paths(self):
for name in ['../escape','/absolute','nested/file']:
files=self.contents();files[name]=b'bad'
path=self.root/'bad.zip';path.write_bytes(zip_bytes(files))
with self.subTest(name=name),self.assertRaises(ValueError):read_bundle(path,META)
def test_duplicate_and_symlink(self):
files=self.contents()
for kind in ['duplicate','symlink']:
out=io.BytesIO()
with zipfile.ZipFile(out,'w') as z:
for n,b in files.items():
info=zipfile.ZipInfo(n)
info.external_attr=((stat.S_IFLNK|0o777) if kind=='symlink' and n=='reviewed.py' else 0o100644)<<16
z.writestr(info,b)
if kind=='duplicate':z.writestr('reviewed.py',b'bad')
path=self.root/'bad.zip';path.write_bytes(out.getvalue())
with self.subTest(kind=kind),self.assertRaises(ValueError):read_bundle(path,META)
def test_fresh_output_required(self):
out=self.root/'verified';verify_bundle(self.bundle,out,META)
with self.assertRaises(FileExistsError):verify_bundle(self.bundle,out,META)
def test_rejected_not_bundled(self):
for status in ['rejected','error']:
data=json.loads((self.review/'review.json').read_text());data['status']=status
(self.review/'review.json').write_text(json.dumps(data))
with self.subTest(status=status),self.assertRaises(ValueError):create_bundle(self.review,self.root/'no.zip',META)
self.assertFalse((self.root/'no.zip').exists())
def test_runtime_failure_reaches_smoke(self):
(self.review/'reviewed.py').write_text('raise RuntimeError("fixture")\n')
path=self.root/'runtime.zip';create_bundle(self.review,path,META)
out=self.root/'runtime';verify_bundle(path,out,META)
with self.assertRaisesRegex(ValueError,'smoke'):test_review(out,self.root/'receipt.json')
self.assertFalse((self.root/'receipt.json').exists())
def test_version_retry_and_mode(self):
state=self.root/'state'
self.assertEqual(reserve(state,META),'1.0.1')
self.assertEqual(reserve(state,META),'1.0.1')
self.assertEqual(reserve(state,{**META,'mode':'live'}),'1.0.2')
with self.assertRaises(ValueError):reserve(state,META,'2.0')
def test_concurrent_reservation(self):
state=str(self.root/'state')
with concurrent.futures.ProcessPoolExecutor(max_workers=3) as pool:
same=list(pool.map(reserve_worker,[(state,SHA)]*6))
other=list(pool.map(reserve_worker,[(state,f'{i:040x}') for i in range(6)]))
self.assertEqual(len(set(same)),1)
self.assertEqual(len(set(other)),6)
self.assertNotIn(same[0],other)
def test_metrics_reject_fixture(self):
with self.assertRaises(ValueError):metrics(self.review/'review.json',self.root/'metrics.prom','123')
self.assertFalse((self.root/'metrics.prom').exists())
def test_missing_live_counts_are_unknown(self):
data=json.loads((self.review/'review.json').read_text())
data.update(mode='live',model_id='real-model',input_tokens=None,output_tokens=7)
(self.review/'review.json').write_text(json.dumps(data))
metrics(self.review/'review.json',self.root/'metrics.prom','123')
text=(self.root/'metrics.prom').read_text()
self.assertIn('review_input_tokens_available{mode="live"} 0',text)
self.assertNotIn('review_input_tokens{',text)
self.assertIn('review_output_tokens{mode="live"} 7',text)
def test_fixture_cli_and_source_integrity(self):
source=self.root/'source.py';source.write_text('print("hello"\n')
before=source.read_bytes()
for case,exit_code in [('good',0),('rejected',2),('error',3),('runtime',0)]:
out=self.root/case
run=subprocess.run([sys.executable,'ci/fixtures/reviewer_stub.py','--input',str(source),
'--source-commit',SHA,'--out-dir',str(out),'--case',case],capture_output=True)
self.assertEqual(run.returncode,exit_code,run.stderr)
self.assertEqual((out/'reviewed.py').exists(),exit_code==0)
self.assertEqual(source.read_bytes(),before)
def test_fixture_unchanged(self):
source=self.root/'valid.py';source.write_text('print("hello")\n')
out=self.root/'valid'
subprocess.run([sys.executable,'ci/fixtures/reviewer_stub.py','--input',str(source),
'--source-commit',SHA,'--out-dir',str(out)],check=True)
data=json.loads((out/'review.json').read_text())
self.assertEqual(data['status'],'unchanged');self.assertEqual(data['diff'],'')
self.assertEqual((out/'reviewed.py').read_bytes(),source.read_bytes())
def test_measured_live_metric_fields(self):
data=json.loads((self.review/'review.json').read_text())
data.update(mode='live',model_id='real-model',finished_at='2026-11-27T00:00:00Z',elapsed_seconds=2.5,
resource_measurement={'memory_peak_bytes':240000000,'memory_limit_bytes':250000000})
(self.review/'review.json').write_text(json.dumps(data))
metrics(self.review/'review.json',self.root/'metrics.prom',None)
text=(self.root/'metrics.prom').read_text()
self.assertIn('review_duration_seconds{mode="live"} 2.5',text)
self.assertIn('review_job_memory_peak_bytes{mode="live"} 240000000',text)
self.assertIn('review_completed_timestamp_seconds{mode="live"} 1795737600',text)
if __name__=='__main__':unittest.main()
+71
View File
@@ -0,0 +1,71 @@
"""Publication gate tests run in the pinned compiler image (which provides pypdf)."""
import importlib.util
import io
import json
from pathlib import Path
import sys
import tempfile
import unittest
import zipfile
sys.path.insert(0,str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity,create_bundle,publish,digest
@unittest.skipUnless(importlib.util.find_spec('pypdf'), 'pypdf is supplied by the pinned TeX image')
class ReleaseTests(unittest.TestCase):
def setUp(self):
from pypdf import PdfWriter
from pypdf.generic import DictionaryObject,NameObject,DecodedStreamObject
self.temp=tempfile.TemporaryDirectory();self.addCleanup(self.temp.cleanup)
self.root=Path(self.temp.name);self.meta=identity('a'*40,'1','1','fixture')
self.review=self.root/'review';self.review.mkdir()
(self.review/'reviewed.py').write_text('print("hello")\n')
(self.review/'review.json').write_text(json.dumps(dict(source_commit='a'*40,model_id='fixture-model',
mode='fixture',status='corrected',summary='fixture',diff='fixture',input_tokens=24,output_tokens=8)))
self.bundle=self.root/'review.zip';create_bundle(self.review,self.bundle,self.meta)
self.pdf=self.root/'main.pdf'
writer=PdfWriter();page=writer.add_blank_page(width=1200,height=800)
font=DictionaryObject({NameObject('/Type'):NameObject('/Font'),NameObject('/Subtype'):NameObject('/Type1'),NameObject('/BaseFont'):NameObject('/Helvetica')})
page[NameObject('/Resources')]=DictionaryObject({NameObject('/Font'):DictionaryObject({NameObject('/F1'):font})})
stream=DecodedStreamObject();stream.set_data(('BT /F1 10 Tf 40 700 Td (1.0.1 '+ 'a'*40+' Configuring and Running the DevOps Pipeline) Tj ET').encode())
page[NameObject('/Contents')]=writer._add_object(stream)
with self.pdf.open('wb') as f:writer.write(f)
self.manifest=dict(release_version='1.0.1',commit='a'*40,review_sha256=digest((self.review/'review.json').read_bytes()),
reviewed_sha256=digest((self.review/'reviewed.py').read_bytes()),pdf_sha256=digest(self.pdf.read_bytes()),run_id='1',attempt='1',mode='fixture')
self.write_manifest()
def write_manifest(self):
self.pdf.with_name('build-manifest.json').write_text(json.dumps(self.manifest))
def run_publish(self,build='1'):
return publish(self.bundle,self.meta,self.pdf,self.root/'state',self.root/'out','1.0',build)
def test_publish_and_retry_preserve_bytes(self):
name=self.run_publish();before=(self.root/'out'/name).read_bytes()
with zipfile.ZipFile(io.BytesIO(before)) as z:
manifest=json.loads(z.read('manifest.json'))
for path,sha in manifest['payload_sha256'].items():self.assertEqual(digest(z.read(path)),sha)
self.run_publish('2')
self.assertEqual((self.root/'out'/name).read_bytes(),before)
self.assertEqual(json.loads((self.root/'out/release.json').read_text())['jenkins_build'],'1')
def test_report_mismatch_prevents_release(self):
self.manifest['reviewed_sha256']='b'*64;self.write_manifest()
with self.assertRaisesRegex(ValueError,'manifest'):self.run_publish()
self.assertFalse((self.root/'out').exists())
self.assertFalse((self.root/'state/releases').exists())
def test_runtime_failure_prevents_release(self):
(self.review/'reviewed.py').write_text('raise RuntimeError("fixture")\n')
self.bundle.unlink();create_bundle(self.review,self.bundle,self.meta)
self.manifest['reviewed_sha256']=digest((self.review/'reviewed.py').read_bytes());self.write_manifest()
with self.assertRaisesRegex(ValueError,'smoke'):self.run_publish()
self.assertFalse((self.root/'state/releases').exists())
def test_existing_version_refuses_changed_review(self):
self.run_publish()
data=json.loads((self.review/'review.json').read_text());data['summary']='different'
(self.review/'review.json').write_text(json.dumps(data))
self.bundle.unlink();create_bundle(self.review,self.bundle,self.meta)
self.manifest['review_sha256']=digest((self.review/'review.json').read_bytes());self.write_manifest()
with self.assertRaisesRegex(ValueError,'different reviewed payload'):self.run_publish('2')
+39
View File
@@ -0,0 +1,39 @@
"""Exercise a real compiler failure without modifying the project manual."""
from pathlib import Path
import shutil
import subprocess
import sys
import tempfile
import unittest
ROOT = Path(__file__).resolve().parents[2]
@unittest.skipUnless(shutil.which('latexmk'), 'Requires the pinned TeX image')
class CompilerFailureTests(unittest.TestCase):
def test_failed_compile_removes_stale_publish_targets(self):
with tempfile.TemporaryDirectory() as temp:
root = Path(temp)
for name in ('documentation/ci/build_manual.py', 'ci/final_project.py'):
target = root / name
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(ROOT / name, target)
(root / 'documentation/main.tex').write_text(
'\\documentclass{article}\n\\newcommand{\\DocumentVersion}{1.0}\n'
'\\begin{document}\n\\UndefinedFinalProjectCommand\n\\end{document}\n')
def git(*args):
return subprocess.check_output(['git', '-C', str(root), *args], stderr=subprocess.DEVNULL, text=True).strip()
git('init'); git('add', '.')
git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@localhost', 'commit', '-m', 'Isolated compiler failure fixture')
build = root / 'documentation/build'
build.mkdir()
for name in ('main.pdf', 'build-manifest.json'):
(build / name).write_text('stale output')
result = subprocess.run([sys.executable, str(root/'documentation/ci/build_manual.py'),
'--sha', git('rev-parse', 'HEAD'), '--run-number', '1', '--run-id', '1'],
capture_output=True, text=True, timeout=60)
self.assertNotEqual(result.returncode, 0)
self.assertIn('LaTeX compilation failed', result.stderr)
self.assertTrue((build/'main.log').is_file())
self.assertFalse((build/'main.pdf').exists())
self.assertFalse((build/'build-manifest.json').exists())
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
# Called on the existing trusted agent. No host socket/network enters this container.
set -eu
name="ssw590-final-${JOB_BASE_NAME:-local}-${BUILD_NUMBER:-local}"
image='sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1'
case "$1" in
start)
docker run -d --name "$name" --network none --memory 256m --memory-swap 256m --cpus .65 --pids-limit 256 \
--mount type=volume,src=ssw590-final-project-state,dst=/state \
--workdir /work --entrypoint sleep "$image" 3600
docker cp . "$name:/work"
docker exec "$name" git config --global --add safe.directory /work
;;
metrics)
docker run --rm -i --network none --memory 64m --memory-swap 64m --cpus .2 \
--mount type=bind,src=/home/codex/ssw590-final-metrics,dst=/metrics \
--entrypoint python3 "$image" -c 'import os,sys; from pathlib import Path; p=Path("/metrics/final-project.tmp"); p.write_bytes(sys.stdin.buffer.read()); os.replace(p,"/metrics/final-project.prom")' < out/review.prom
;;
exec) shift; docker exec "$name" "$@" ;;
collect) mkdir -p out/collected; docker cp "$name:/work/out/." out/collected/ ;;
stop) docker rm -f "$name" ;;
*) echo 'Expected start, exec, collect or stop' >&2; exit 2 ;;
esac
+1 -1
View File
@@ -1 +1 @@
print("hello") print("hello"
+58 -1
View File
@@ -13,6 +13,9 @@ import re
import shutil import shutil
import subprocess import subprocess
import tempfile import tempfile
import sys
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from ci.final_project import identity, read_bundle, digest
def build_metadata(sha, run_number, run_id, attempt): def build_metadata(sha, run_number, run_id, attempt):
@@ -64,6 +67,10 @@ def main():
parser.add_argument("--run-number", default=os.environ.get("GITEA_RUN_NUMBER", "")) parser.add_argument("--run-number", default=os.environ.get("GITEA_RUN_NUMBER", ""))
parser.add_argument("--run-id", default=os.environ.get("GITEA_RUN_ID", "")) parser.add_argument("--run-id", default=os.environ.get("GITEA_RUN_ID", ""))
parser.add_argument("--attempt", default=os.environ.get("GITEA_RUN_ATTEMPT", "1")) parser.add_argument("--attempt", default=os.environ.get("GITEA_RUN_ATTEMPT", "1"))
parser.add_argument("--review-bundle")
parser.add_argument("--release-version")
parser.add_argument("--jenkins-build", default="local")
parser.add_argument("--mode", choices=["fixture", "live"], default="fixture")
args = parser.parse_args() args = parser.parse_args()
metadata = build_metadata(args.sha, args.run_number, args.run_id, args.attempt) metadata = build_metadata(args.sha, args.run_number, args.run_id, args.attempt)
source = Path(__file__).resolve().parents[1] source = Path(__file__).resolve().parents[1]
@@ -74,6 +81,19 @@ def main():
if not version_match: if not version_match:
raise ValueError("Human-maintained document version is missing") raise ValueError("Human-maintained document version is missing")
metadata["document_version"] = version_match.group(1) metadata["document_version"] = version_match.group(1)
review_files = None
if bool(args.review_bundle) != bool(args.release_version):
raise ValueError("Review bundle and release version must be supplied together")
if args.review_bundle:
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", args.release_version):
raise ValueError("Major.Minor.Changelist required")
if not re.fullmatch(r"[A-Za-z0-9_-]{1,80}", args.jenkins_build):
raise ValueError("Invalid Jenkins build identity")
review_files = read_bundle(args.review_bundle, identity(args.sha, args.run_id, args.attempt, args.mode))
metadata.update(release_version=args.release_version, mode=args.mode,
jenkins_build=args.jenkins_build,
review_sha256=digest(review_files["review.json"]),
reviewed_sha256=digest(review_files["reviewed.py"]))
output = source / "build" output = source / "build"
output.mkdir(exist_ok=True) output.mkdir(exist_ok=True)
# Remove only this build's known publish targets, so a failed rebuild cannot # Remove only this build's known publish targets, so a failed rebuild cannot
@@ -83,7 +103,44 @@ def main():
with tempfile.TemporaryDirectory(prefix="manual-ci-") as temp: with tempfile.TemporaryDirectory(prefix="manual-ci-") as temp:
workspace = Path(temp) workspace = Path(temp)
copy_sources(source, workspace) copy_sources(source, workspace)
(workspace / "build-metadata.tex").write_text(latex_metadata(metadata), encoding="utf-8") generated = latex_metadata(metadata)
if review_files:
review = json.loads(review_files["review.json"])
def tex(value):
mapping = {"\\": r"\textbackslash{}", "{": r"\{", "}": r"\}",
"_": r"\_", "%": r"\%", "&": r"\&", "#": r"\#", "$": r"\$",
"^": r"\textasciicircum{}", "~": r"\textasciitilde{}"}
return ''.join(mapping.get(c, c) for c in str(value))
fields = {"FinalVersion": args.release_version, "FinalMode": args.mode,
"FinalJenkinsBuild": args.jenkins_build, "FinalStatus": review["status"],
"FinalModel": review["model_id"], "FinalInputTokens": review["input_tokens"],
"FinalOutputTokens": review["output_tokens"]}
generated += r"\renewcommand{\DocumentVersion}{" + args.release_version + "}\n"
generated += r"\renewcommand{\AssignmentTitle}{DevOps Pipeline Final Project}" + "\n"
generated += r"\renewcommand{\AssignmentNumber}{Final}" + "\n"
generated += r"\renewcommand{\DocumentStatus}{" + args.mode + " validation}\n"
for key, value in fields.items():
generated += "\\newcommand{\\" + key + "}{" + tex(value) + "}\n"
(workspace / "final-reviewed.txt").write_bytes(review_files["reviewed.py"])
(workspace / "final-diff.txt").write_text(review["diff"] or "No changes (unchanged review).", encoding="utf-8")
# Generated run data only; the authored report chapter is maintained separately.
appendix = r"""\clearpage
\chapter*{Automated Review Run}
\noindent Release: \FinalVersion\\
Mode: \FinalMode\\
Status: \FinalStatus\\
Model: \FinalModel\\
Input tokens: \FinalInputTokens\\
Output tokens: \FinalOutputTokens\\
Jenkins build: \FinalJenkinsBuild
\section*{Reviewed source}
\lstinputlisting[basicstyle=\ttfamily\small,breaklines=true]{final-reviewed.txt}
\section*{Change log}
\lstinputlisting[basicstyle=\ttfamily\small,breaklines=true]{final-diff.txt}
"""
main_path = workspace / "main.tex"
main_path.write_text(main_path.read_text().replace(r"\end{document}", appendix + r"\end{document}"))
(workspace / "build-metadata.tex").write_text(generated, encoding="utf-8")
# Shell escape is needed by the current minted source. Run only trusted # Shell escape is needed by the current minted source. Run only trusted
# team source in the isolated job, with no host/Docker socket mounts. # team source in the isolated job, with no host/Docker socket mounts.
command = ["latexmk", "-pdf", "-shell-escape", "-interaction=nonstopmode", "-halt-on-error", "-file-line-error", "main.tex"] command = ["latexmk", "-pdf", "-shell-escape", "-interaction=nonstopmode", "-halt-on-error", "-file-line-error", "main.tex"]
+3
View File
@@ -52,8 +52,11 @@ services:
- --collector.cpu - --collector.cpu
- --collector.meminfo - --collector.meminfo
- --collector.filesystem - --collector.filesystem
- --collector.textfile
- --collector.textfile.directory=/textfiles
volumes: volumes:
- /:/host:ro,rslave - /:/host:ro,rslave
- /home/codex/ssw590-final-metrics:/textfiles:ro
networks: [monitoring] networks: [monitoring]
blackbox-exporter: blackbox-exporter:
image: quay.io/prometheus/blackbox-exporter:v0.29.1 image: quay.io/prometheus/blackbox-exporter:v0.29.1
+25
View File
@@ -0,0 +1,25 @@
Final-project monitoring integration — collector and dashboard deployed; live-model connection pending
Use Member 1's measured live review metadata only. The metric adapter is:
python3 ci/final_project.py metrics --review-dir VERIFIED_LIVE_DIRECTORY \
--completed-at MEASURED_COMPLETION_EPOCH --output DIRECTORY/final-project.prom
Dedicated host directory: /home/codex/ssw590-final-metrics
Mounted readonly into Node Exporter at /textfiles.
Enable --collector.textfile and --collector.textfile.directory=/textfiles
in addition to the existing cpu, meminfo and filesystem collectors. Do not
replace the existing deployment Compose file with an unverified template.
The job's Actions container currently has no host-volume access. Use the
trusted integration step to transfer validated metrics to that host directory.
Validate with Node Exporter target health and node_textfile_scrape_error == 0.
Retain last-run gauges through at least two 30-second scrapes. Unknown counts
are omitted and explicitly represented by *_available == 0. Do not substitute
zero tokens for an unknown count. Refresh/remove stale samples intentionally.
dashboard.json is provisioned with the existing prometheus datasource. Keep existing dashboard copies
in sync where the existing monitoring deployment requires it. Add annotations
for source SHA, Actions run/attempt and Jenkins build; use a fixed window.
Fixture metrics must not populate the live panels. Shared-host CPU includes
Zammad, pricing and other services. Record baseline and after observations;
do not manufacture load or claim per-model RSS from host available memory.
+243
View File
@@ -0,0 +1,243 @@
{
"title": "SSW590 final project \u2014 live evidence",
"uid": "ssw590-final-project",
"schemaVersion": 39,
"version": 1,
"timezone": "America/New_York",
"refresh": "30s",
"time": {
"from": "now-15m",
"to": "now"
},
"panels": [
{
"id": 1,
"title": "Live input tokens",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 0,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "review_input_tokens{mode=\"live\"}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
}
},
{
"id": 2,
"title": "Live output tokens",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "review_output_tokens{mode=\"live\"}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
}
},
{
"id": 3,
"title": "Host CPU",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 8,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[2m])))",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent"
},
"overrides": []
}
},
{
"id": 4,
"title": "Available host memory",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 8,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "node_memory_MemAvailable_bytes{job=\"node\"}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
}
},
{
"id": 5,
"title": "Token count availability",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 16,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "review_input_tokens_available{mode=\"live\"}",
"refId": "A",
"legendFormat": "Input count available"
},
{
"expr": "review_output_tokens_available{mode=\"live\"}",
"refId": "B",
"legendFormat": "Output count available"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
}
},
{
"id": 6,
"title": "Seconds since review completed",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 16,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "time() - review_completed_timestamp_seconds{mode=\"live\"}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
}
},
{
"id": 7,
"title": "Measured review duration",
"type": "timeseries",
"gridPos": {
"x": 0,
"y": 24,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "review_duration_seconds{mode=\"live\"}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
}
},
{
"id": 8,
"title": "Actual Actions job memory peak and limit",
"type": "timeseries",
"gridPos": {
"x": 12,
"y": 24,
"w": 12,
"h": 8
},
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"targets": [
{
"expr": "review_job_memory_peak_bytes{mode=\"live\"}",
"refId": "A"
},
{
"expr": "review_job_memory_limit_bytes{mode=\"live\"}",
"refId": "B"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
}
}
],
"annotations": {
"list": []
}
}
+2
View File
@@ -29,6 +29,8 @@ def propose(source):
raise ValueError("model checksum mismatch") raise ValueError("model checksum mismatch")
if not executable.is_file(): if not executable.is_file():
raise FileNotFoundError("llama-completion executable missing") raise FileNotFoundError("llama-completion executable missing")
if _sha256(executable) != lock["runtime_entrypoint_sha256"]:
raise ValueError("llama-completion checksum mismatch")
if source not in ('print("hello"', 'print("hello"\n'): if source not in ('print("hello"', 'print("hello"\n'):
raise ValueError("real-model adapter only supports the hello fixture") raise ValueError("real-model adapter only supports the hello fixture")
prompt = lock["prompt_template"].format(source_line=source.rstrip("\n")) prompt = lock["prompt_template"].format(source_line=source.rstrip("\n"))
+7 -1
View File
@@ -30,5 +30,11 @@
], ],
"memory_target_bytes": 250000000, "memory_target_bytes": 250000000,
"batch_tokens": 32, "batch_tokens": 32,
"microbatch_tokens": 32 "microbatch_tokens": 32,
"runtime_entrypoint_sha256": "7119bef261611b26f326f7c4da4dc3fdeb7bb28e2faf1ec392bda7b21215ef52",
"libgomp_package": "libgomp1_14.2.0-4ubuntu2~24.04.1_amd64.deb",
"libgomp_package_sha256": "e8a95ec58125b4933597f30ff56c2ae10edf90f287262e366d4b6edea3019144",
"libgomp_url": "https://archive.ubuntu.com/ubuntu/pool/main/g/gcc-14/libgomp1_14.2.0-4ubuntu2~24.04.1_amd64.deb",
"libgomp_library_path": "usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0",
"libgomp_library_sha256": "135f3c8f006d2fe5e68e51281c7974cb991a03de3bfb3593d68d174dfcf854d1"
} }
+29 -5
View File
@@ -1,9 +1,10 @@
"""Download and checksum the pinned public GGUF model and llama.cpp CPU archive.""" """Prepare checksum-pinned model, llama.cpp CPU runtime, and libgomp1."""
import argparse import argparse
import hashlib import hashlib
import json import json
from pathlib import Path from pathlib import Path
import shutil import shutil
import subprocess
import tarfile import tarfile
import urllib.request import urllib.request
@@ -36,25 +37,48 @@ def fetch(url, target, expected):
def main(): def main():
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--dest", type=Path, required=True, help="directory outside Git for model/runtime files") parser.add_argument("--dest", type=Path, required=True, help="directory outside Git for model/runtime files")
parser.add_argument("--model-dir", type=Path, help="optional private tmpfs model directory")
args = parser.parse_args() args = parser.parse_args()
lock = json.loads(LOCK.read_text()) lock = json.loads(LOCK.read_text())
args.dest.mkdir(parents=True, exist_ok=True) args.dest.mkdir(parents=True, exist_ok=True)
model = args.dest / lock["quantized_filename"] model_dir = args.model_dir or args.dest
model_dir.mkdir(parents=True, exist_ok=True)
model = model_dir / lock["quantized_filename"]
archive = args.dest / lock["runtime_archive"] archive = args.dest / lock["runtime_archive"]
fetch(lock["quantized_url"], model, lock["quantized_sha256"]) fetch(lock["quantized_url"], model, lock["quantized_sha256"])
fetch(lock["runtime_url"], archive, lock["runtime_archive_sha256"]) fetch(lock["runtime_url"], archive, lock["runtime_archive_sha256"])
package = args.dest / lock["libgomp_package"]
fetch(lock["libgomp_url"], package, lock["libgomp_package_sha256"])
with tarfile.open(archive) as bundle: with tarfile.open(archive) as bundle:
members = bundle.getmembers() members = bundle.getmembers()
root_name = "llama-" + lock["runtime_tag"] root_name = "llama-" + lock["runtime_tag"]
if any(member.name != root_name and not member.name.startswith(root_name + "/") for member in members): if any(member.name != root_name and not member.name.startswith(root_name + "/") for member in members):
raise ValueError("unexpected runtime archive layout") raise ValueError("unexpected runtime archive layout")
# The pinned compiler has Python 3.11 without tarfile.data_filter.
# Reject traversal, special files and escaping link targets before extraction.
from pathlib import PurePosixPath
for member in members:
for name in (member.name, member.linkname):
path = PurePosixPath(name)
if path.is_absolute() or ".." in path.parts:
raise ValueError("unsafe archive member/link")
if not (member.isfile() or member.isdir() or member.issym() or member.islnk()):
raise ValueError("special archive member")
if hasattr(tarfile, "data_filter"):
bundle.extractall(args.dest, filter="data") bundle.extractall(args.dest, filter="data")
else:
bundle.extractall(args.dest)
server = args.dest / f"llama-{lock['runtime_tag']}" / lock["entrypoint"] server = args.dest / f"llama-{lock['runtime_tag']}" / lock["entrypoint"]
if not server.is_file(): if not server.is_file() or digest(server) != lock["runtime_entrypoint_sha256"]:
raise FileNotFoundError("runtime entrypoint missing from verified archive") raise ValueError("runtime entrypoint checksum mismatch")
libgomp_root = args.dest / "libgomp-root"
subprocess.run(["dpkg-deb", "--extract", str(package), str(libgomp_root)], check=True)
library = libgomp_root / lock["libgomp_library_path"]
if not library.is_file() or digest(library) != lock["libgomp_library_sha256"]:
raise ValueError("libgomp1 library checksum mismatch")
print(f"REVIEWER_MODEL_PATH={model}") print(f"REVIEWER_MODEL_PATH={model}")
print(f"REVIEWER_LLAMA_COMPLETION={server}") print(f"REVIEWER_LLAMA_COMPLETION={server}")
print("Install libgomp1 in the execution image and ensure its directory is on the loader path.") print(f"LD_LIBRARY_PATH={library.parent}:{server.parent}")
if __name__ == "__main__": if __name__ == "__main__":