Document verified manual builds, controlled failure and repair
Assignment 5 manual PDF / manual (push) Successful in 48s

This commit is contained in:
Codex (authorized Assignment 5 implementation)
2026-10-07 01:33:23 +00:00
parent 2b8be117c7
commit db2a8be2ec
8 changed files with 132 additions and 53 deletions
+44 -21
View File
@@ -6,7 +6,7 @@
Human version \texttt{1.7.1}; document date October 6, 2026. The team authorized
Chapter 3 implementation on its existing Droplet. Jenkins (instruction Chapter 4)
is outside this activity. Infrastructure checks below are observed results;
the manual build sequence is recorded separately as it completes.
the manual build sequence below records the executed results.
\end{devopsNote}
\section{Source and trigger}
@@ -32,27 +32,30 @@ instructor-approved key-only SSH exception were preserved.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[node distance=10mm, every node/.style={draw,rounded corners,align=center,font=\small,text width=3.7cm},>=Stealth]
\node (team) {Team source push\\HTTPS 443};
\node[right=of team] (gitea) {Caddy $\rightarrow$ Gitea\\private backend 3000};
\node[below=of gitea] (runner) {Repository runner\\one job; Docker socket};
\node[left=of runner] (job) {Temporary TeX container\\checkout, compile, upload};
\node[below=of job] (pdf) {Named PDF artifact\\download for submission};
\begin{tikzpicture}[node distance=9mm and 7mm,
every node/.style={draw,rounded corners,align=center,font=\small,text width=3.0cm,minimum height=15mm},>=Stealth]
\node (team) {Team\\HTTPS source push};
\node[right=of team] (gitea) {Caddy 443\\Gitea private 3000};
\node[right=of gitea] (runner) {Runner\\HTTPS work requests};
\node[below=of runner] (docker) {Docker daemon\\internal socket};
\node[left=of docker] (job) {Temporary TeX job\\checkout and compile};
\node[left=of job] (pdf) {Named PDF artifact\\team downloads};
\draw[->] (team)--(gitea);
\draw[<->] (gitea)--node[right,draw=none,text width=1.8cm]{HTTPS work requests}(runner);
\draw[->] (runner)--(job);
\draw[->] (gitea)--(runner);
\draw[->] (runner)--(docker);
\draw[->] (docker)--(job);
\draw[->] (job)--(pdf);
\draw[->,dashed] (job)--node[above,sloped,draw=none,text width=3.2cm]{HTTPS source and artifact}(gitea);
\draw[<->,dashed] (gitea)--(job);
\end{tikzpicture}
\caption{Actual single-Droplet manual-build path. Only the runner mounts the
Docker socket; Gitea and the compiler do not share a source filesystem.}
Docker socket. The dashed HTTPS path carries source checkout and artifact upload; Gitea and the compiler do not share a source filesystem.}
\label{Fig:ManualBuildArchitecture}
\end{figure}
\section{Runner setup}
\phantomsection\label{GlossaryRef:actionsrunner}\index{runner!registration}
Runner ID 1, \texttt{assignment5-manual}, is registered only to
\texttt{myfileagent/myfileagent-pipeline}. The self-managed
\path{myfileagent/myfileagent-pipeline}. The self-managed
\texttt{act\_runner} version is 0.6.1. Its image digest is
\path{sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86}.
The live files are under \path{/home/codex/myfileagent-gitea/runner};
@@ -88,7 +91,7 @@ recorded image ID after verification. Dependencies include TeX Live 2022,
latexmk 4.79, BibTeX, makeindex/makeglossaries, Latin Modern and recommended
fonts, Pygments 2.14.0 for minted, Node 18.20.4 and pypdf 3.4.1.
The job runs \path{python3 documentation/ci/build_manual.py}. The helper copies
The job runs \texttt{python3} \path{documentation/ci/build_manual.py}. The helper copies
sources into a fresh temporary directory and invokes:
\begin{lstlisting}[language=bash]
latexmk -pdf -shell-escape -interaction=nonstopmode \
@@ -138,17 +141,37 @@ are available from the run's named download link even though the newer REST
artifact-list endpoint returned no entries in the preflight. The direct
preflight artifact download was verified, including ZIP checksum and contents.
Manual artifact downloads and visible PDF checks are recorded below.
\href{\BuildRunURL/artifacts/assignment5-1.7.1-run-\BuildRun-\BuildCommit}{Download the artifact for this PDF}.
\section{Change, failure, and repair evidence}
% BEGIN BUILD EVIDENCE
\EvidenceID{MAN-BUILD-01}: October 6, 2026. Expected: the first source push
compiles the complete report and uploads a traceable PDF. Actual:
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3}{run 3 passed},
commit \path{c74087a93bf53b44a75a25c3658fc178ff253225}, visible version
\texttt{1.7.1+build.3.c74087a.attempt.1}. The downloaded PDF had 72 pages and
matched the manifest checksum. The next change improves hash wrapping and
clarifies the introduction. The second build and isolated LaTeX failure/repair
remain pending at this stage; the infrastructure preflight is not counted.
All observations below were made on October 6, 2026 (America/New\_York). Logs use UTC, where these runs are dated October 7. These are actual push-triggered manual builds, separate from infrastructure preflight runs 1--2.
\paragraph{Source change 1.}
\EvidenceID{MAN-BUILD-01}: Imported the full manual and activated its workflow. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3}{run 3 passed}; full commit \path{c74087a93bf53b44a75a25c3658fc178ff253225}.
Visible version: \path{1.7.1+build.3.c74087a.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3/artifacts/assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337}.
\paragraph{Source change 2.}
\EvidenceID{MAN-BUILD-02}: Improved long-identifier wrapping and clarified the introduction. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4}{run 4 passed}; full commit \path{2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}.
Visible version: \path{1.7.1+build.4.2b8be11.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ba87740958bada14f31d2236638c9b175d8b24797f715252cdb0f0af6668be06}.
\paragraph{Controlled failure.}
\EvidenceID{MAN-FAIL-01}: Expected: an invalid LaTeX command fails compilation and publishes no PDF. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/5}{run 5 failed} for commit \path{f0e7b74ee63b40811334ee9cd4aecf035f1b0864}, on \texttt{manual-build-validation}. The deliberate \texttt{\string\AssignmentFiveControlledFailure} command caused ``Undefined control sequence at chapter line 4; latexmk returned 12. The workflow skipped PDF upload and the expected named artifact returned HTTP 404. Main and the deployed services remained operational.
\paragraph{Repair.}
\EvidenceID{MAN-REPAIR-01}: Removed the deliberate undefined command on the validation branch. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6}{run 6 passed}; full commit \path{a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}.
Visible version: \path{1.7.1+build.6.a4737f1.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6/artifacts/assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{7591b1cd87f319dfc77eaa4ca9fd9727d1e7b97253a05d9a93e8624296bc736e}.
The artifact name for each successful row is \texttt{assignment5-1.7.1-run-} followed by the run number, a hyphen and the full commit above. The run links and artifact links therefore identify the same source revision; version suffixes use its first seven hex digits. Full machine-readable records and downloaded PDF checksums are retained in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/manual-build-evidence.json}{the versioned evidence manifest}. The controlled error was confined to the validation branch and its repair restored the exact source content of the second successful build.
Visual inspection of the downloaded run-4 chapter identified overlapping architecture labels; the final source corrects the diagram. Final publication uses the current \hyperref[Build:Identity]{Build Identity} and its linked run. Download verification of that final artifact is performed after publication, without editing the PDF or creating an automatic source commit loop.
% END BUILD EVIDENCE
\section{Runner and secret boundary}