Files
myfileagent-pipeline/ci/OPERATIONS.txt
T

71 lines
3.8 KiB
Plaintext
Raw Normal View History

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. Create a Secret text credential final-project-gitea-read containing an
appropriately scoped Gitea read token. Do not store it in Git or chat.
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.