Verify Jenkins release, deploy metrics collector, and test compiler failure
This commit is contained in:
+18
-7
@@ -17,7 +17,7 @@ Implemented:
|
||||
is preserved on local archive/final-project-documentation-draft.
|
||||
- Durable locked versions; immutable release reuse; no conflicting overwrite.
|
||||
- ZIP manifest/hash and reviewed-file behavior gates.
|
||||
- Live-only metric emitter and dashboard proposal (not deployed).
|
||||
- Live-only metric emitter; collector and dashboard now deployed.
|
||||
- 18 pipeline/publication tests passed in the pinned image; 2 existing
|
||||
pricing tests passed. Host lacks pypdf, so 4 publication tests require
|
||||
the image rather than host-only Python.
|
||||
@@ -32,10 +32,8 @@ Observed evidence:
|
||||
NOT by a Jenkins job. Subsequent fixes/tests must retain their own run IDs.
|
||||
|
||||
Pending before calling Member 2 remotely complete:
|
||||
- User creates the prepared Jenkins job from the signed-in browser; browser
|
||||
click/type automation is unavailable in this chat. No API login was assumed.
|
||||
- Run the latest successful Actions SHA/run/attempt through the Jenkins job;
|
||||
verify credential access, stage execution and downloadable archive.
|
||||
- Jenkins #1 completed successfully; latest test/monitoring updates still
|
||||
require a subsequent run after their push.
|
||||
- Rehearse downstream failure/no-publication and retry in Jenkins itself.
|
||||
- Agree source baseline and final version line with Member 1 (1.0 provisional).
|
||||
- Integrate actual model/runtime, measured token/memory results, AI/human SWOT
|
||||
@@ -44,10 +42,23 @@ Pending before calling Member 2 remotely complete:
|
||||
- Write the report chapter later, only when the user resumes documentation.
|
||||
|
||||
Next operator action:
|
||||
Read ci/OPERATIONS.txt and ci/jenkins-job.xml. Use the provided browser setup
|
||||
snippet to create only final-project-fixture; keep existing jobs untouched.
|
||||
The separate final-project-fixture job exists. Temporary API setup is pending
|
||||
in the signed-in browser to automate remaining failure/retry checks.
|
||||
|
||||
Persistence/cleanup:
|
||||
Volume ssw590-final-project-state contains fixture reservations/releases.
|
||||
Temporary container names begin ssw590-final-. Remove only the known current
|
||||
container, never the state volume or unrelated application/monitoring services.
|
||||
|
||||
Technical checkpoint, 2026-11-26 (report writing remains deferred):
|
||||
- Actual Jenkins final-project-fixture #1 SUCCESS, Actions #38, source
|
||||
0e7ade75b99e18a24db1e7c78f6f442256be2e0f; archived fixture 1.0.2.
|
||||
- ZIP payload hashes and independently extracted reviewed.py pass.
|
||||
- Real Jenkins PDF contains generated review data and diff.
|
||||
- 19 pipeline tests now pass in compiler image, including real TeX failure
|
||||
that removes stale PDF/manifest. Earlier Jenkins #1 ran 18 plus 2 pricing.
|
||||
- Node Exporter textfile collector and final dashboard deployed; target up,
|
||||
collector success 1, scrape error 0. No live-model counts emitted.
|
||||
- CPU/memory time series from actual Jenkins #1 saved in ci/evidence/.
|
||||
- Pending: authenticated remote retry/failure runs; latest technical changes
|
||||
pushed and tested; Member 1 real runtime and model integration.
|
||||
|
||||
Binary file not shown.
@@ -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"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
@@ -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,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())
|
||||
Reference in New Issue
Block a user