Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7ef4850b7 | ||
|
|
02d31699aa | ||
|
|
d6477b3df6 | ||
|
|
ad056a363c | ||
|
|
041adfcda4 | ||
|
|
4a67a09780 | ||
|
|
8a9f4b3b5b | ||
|
|
2b82307761 | ||
|
|
d812910ba8 | ||
|
|
b6511602f7 | ||
|
|
db2a8be2ec |
Vendored
+29
@@ -0,0 +1,29 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout()
|
||||||
|
disableConcurrentBuilds()
|
||||||
|
timeout(time: 5, unit: 'MINUTES')
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||||
|
timestamps()
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
sh 'git rev-parse HEAD'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Syntax check') {
|
||||||
|
steps {
|
||||||
|
sh 'python3 --version'
|
||||||
|
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'python3 -m unittest discover -s tests -v'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
## Product Scope
|
## Product Scope
|
||||||
|
|
||||||
FilePilot demonstrates a controlled file-update workflow. It accepts a target
|
MyFileAgent demonstrates a controlled file-update workflow. It accepts a target
|
||||||
file description, expected text, and replacement text. The application locates
|
file description, expected text, and replacement text. The application locates
|
||||||
the file only within an approved demonstration directory, verifies the expected
|
the file only within an approved demonstration directory, verifies the expected
|
||||||
text, creates a backup, presents a diff, performs the replacement, verifies the
|
text, creates a backup, presents a diff, performs the replacement, verifies the
|
||||||
result, and records the outcome.
|
result, and records the outcome.
|
||||||
|
|
||||||
FilePilot does not provide unrestricted filesystem access, general desktop
|
MyFileAgent does not provide unrestricted filesystem access, general desktop
|
||||||
control, arbitrary shell execution, or open-ended autonomous planning.
|
control, arbitrary shell execution, or open-ended autonomous planning.
|
||||||
|
|
||||||
## Demonstration Acceptance Criteria
|
## Demonstration Acceptance Criteria
|
||||||
|
|
||||||
The demonstration succeeds when FilePilot:
|
The demonstration succeeds when MyFileAgent:
|
||||||
|
|
||||||
1. finds the approved project-status file;
|
1. finds the approved project-status file;
|
||||||
2. confirms that it contains `Status: Draft`;
|
2. confirms that it contains `Status: Draft`;
|
||||||
|
|||||||
@@ -18,8 +18,7 @@
|
|||||||
\endhead
|
\endhead
|
||||||
\bottomrule
|
\bottomrule
|
||||||
\endlastfoot
|
\endlastfoot
|
||||||
October 6, 2026\\ 1.7.1\\ GDL, CDX & Continue the user-authorized remote implementation using the supplied source ZIP. & AI performed the live preflight, registered the runner, built the pinned compiler image, diagnosed the initial runner memory limit, and downloaded the successful compatibility artifact. The user supplied the original manual and images. Manual source builds and failure/repair evidence follow separately; final human submission review remains with the team. \\
|
October 6--7, 2026\\ 1.7.1\\ GDL, CDX, NK & Implement approved Chapter 3; update the manual, verify Actions artifacts, and apply the requested concise history/log and rubric review. & The user approved remote implementation, supplied the original source/images, and selected version 1.7.1. AI configured the runner/toolchain, corrected its memory limit, executed builds 3--4 and failure/repair 5--6, and verified downloaded PDFs by identity, checksum, links and rendered pages. The team reviews the final Actions PDF before submission. \\
|
||||||
October 6, 2026\\ 1.7.1\\ GDL, CDX & Read the instruction PDF and existing manual; prepare the approved Chapter 3 Gitea Actions implementation. & The user clarified Chapter 3, approved implementation, selected Assignment 5/version 1.7.1/October 6, and identified \texttt{hw4\_images}. AI corrected source paths and metadata and prepared build identity and documentation. The original local SSH access is blocked; the user approved a separate remote implementation chat. Build-helper metadata and clean-copy checks passed locally; no runner, remote workflow, successful build, or failure/repair evidence is claimed. \\
|
|
||||||
September 29, 2026\\ 1.6.1\\ NK, GDL, CDX & Complete and review the public-domain, HTTPS, evidence, recovery, and reference material for Assignment 4. & The team supplied the domain and renewal facts, verified DNS, HTTPS, certificate automation and external ports, and approved the backup/restore exercise. AI assisted with diagnostics, isolated recovery evidence, requirement auditing, live links, security explanations, concise credential and reference updates, figure-flow improvements, compilation, and visual review. \\
|
September 29, 2026\\ 1.6.1\\ NK, GDL, CDX & Complete and review the public-domain, HTTPS, evidence, recovery, and reference material for Assignment 4. & The team supplied the domain and renewal facts, verified DNS, HTTPS, certificate automation and external ports, and approved the backup/restore exercise. AI assisted with diagnostics, isolated recovery evidence, requirement auditing, live links, security explanations, concise credential and reference updates, figure-flow improvements, compilation, and visual review. \\
|
||||||
September 26, 2026\\ 1.6.0\\ NK, GDL, CDX & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 and documenting the instructor-cleared SSH exception. \\
|
September 26, 2026\\ 1.6.0\\ NK, GDL, CDX & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 and documenting the instructor-cleared SSH exception. \\
|
||||||
September 18, 2026\\ 1.5.1\\ NK, GDL, CDX & Develop and integrate Chapter 8, the Project Proposal, for the MyFileAgent one-click DevSecOps pipeline. & The team supplied the project direction and selected tools. AI assisted with organizing the proposal, defining a limited demonstration task, and presenting the planned installation, build, configuration, testing, deployment, security, and Grafana monitoring workflow. The team reviews and approves the final proposal. \\
|
September 18, 2026\\ 1.5.1\\ NK, GDL, CDX & Develop and integrate Chapter 8, the Project Proposal, for the MyFileAgent one-click DevSecOps pipeline. & The team supplied the project direction and selected tools. AI assisted with organizing the proposal, defining a limited demonstration task, and presenting the planned installation, build, configuration, testing, deployment, security, and Grafana monitoring workflow. The team reviews and approves the final proposal. \\
|
||||||
@@ -33,7 +32,7 @@ September 11, 2026\\ 1.4.0\\ NK, GDL, CDX & Organize the Assignment 2 LaTeX repo
|
|||||||
AI assistance was used for document organization, LaTeX authoring, code and
|
AI assistance was used for document organization, LaTeX authoring, code and
|
||||||
diagram presentation, proposal drafting, and layout review. Earlier Linux and website exercise outputs retain their original human-gathered
|
diagram presentation, proposal drafting, and layout review. Earlier Linux and website exercise outputs retain their original human-gathered
|
||||||
attribution. Later infrastructure assistance is identified in the dated entries
|
attribution. Later infrastructure assistance is identified in the dated entries
|
||||||
above. Assignment 5 remote execution is AI-assisted and recorded in the dated entries. Earlier preparation entries describe the state at that time, not the final implementation.
|
above. Assignment 5 remote execution is AI-assisted and recorded in the dated entries. The consolidated 1.7.1 entry summarizes the completed work and its user-authorized revisions.
|
||||||
|
|
||||||
\clearpage
|
\clearpage
|
||||||
\fancyhead[C]{\small\nouppercase{\leftmark}}
|
\fancyhead[C]{\small\nouppercase{\leftmark}}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
\index{Gitea Actions}\index{LaTeX!automated build}\index{build artifact}
|
\index{Gitea Actions}\index{LaTeX!automated build}\index{build artifact}
|
||||||
|
|
||||||
\begin{devopsNote}[Assignment 5 implementation record]
|
\begin{devopsNote}[Assignment 5 implementation record]
|
||||||
Human version \texttt{1.7.1}; document date October 6, 2026. The team authorized
|
Human version \texttt{1.7.1}; document date October 7, 2026. The team authorized
|
||||||
Chapter 3 implementation on its existing Droplet. Jenkins (instruction Chapter 4)
|
Chapter 3 implementation on its existing Droplet. Jenkins (instruction Chapter 4)
|
||||||
is outside this activity. Infrastructure checks below are observed results;
|
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}
|
\end{devopsNote}
|
||||||
|
|
||||||
\section{Source and trigger}
|
\section{Source and trigger}
|
||||||
@@ -27,38 +27,46 @@ and disables persisted checkout credentials. Pushes use Git over HTTPS to
|
|||||||
\texttt{myfileagent.tech:443}. Caddy 2.11.4 terminates TLS and forwards to Gitea
|
\texttt{myfileagent.tech:443}. Caddy 2.11.4 terminates TLS and forwards to Gitea
|
||||||
1.27.3 on private container port 3000. The host mapping remains
|
1.27.3 on private container port 3000. The host mapping remains
|
||||||
\texttt{127.0.0.1:3000}. No Gitea SSH port, runner submission listener or
|
\texttt{127.0.0.1:3000}. No Gitea SSH port, runner submission listener or
|
||||||
compiler port was published. The existing grading apps on 5050/8080 and the
|
compiler port was published. The runner needs no public submission port because
|
||||||
instructor-approved key-only SSH exception were preserved.
|
source pushes terminate at Gitea, while the runner initiates outbound HTTPS
|
||||||
|
requests to Gitea to poll for and receive jobs.
|
||||||
|
|
||||||
\begin{figure}[htbp]
|
\begin{figure}[htbp]
|
||||||
\centering
|
\centering
|
||||||
\begin{tikzpicture}[node distance=10mm, every node/.style={draw,rounded corners,align=center,font=\small,text width=3.7cm},>=Stealth]
|
\begin{tikzpicture}[node distance=9mm and 7mm,
|
||||||
\node (team) {Team source push\\HTTPS 443};
|
every node/.style={draw,rounded corners,align=center,font=\small,text width=3.0cm,minimum height=15mm},>=Stealth]
|
||||||
\node[right=of team] (gitea) {Caddy $\rightarrow$ Gitea\\private backend 3000};
|
\node (team) {Team\\HTTPS source push};
|
||||||
\node[below=of gitea] (runner) {Repository runner\\one job; Docker socket};
|
\node[right=of team] (gitea) {Caddy 443\\Gitea private 3000};
|
||||||
\node[left=of runner] (job) {Temporary TeX container\\checkout, compile, upload};
|
\node[right=of gitea] (runner) {Runner\\HTTPS work requests};
|
||||||
\node[below=of job] (pdf) {Named PDF artifact\\download for submission};
|
\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[->] (team)--(gitea);
|
||||||
\draw[<->] (gitea)--node[right,draw=none,text width=1.8cm]{HTTPS work requests}(runner);
|
\draw[->] (gitea)--(runner);
|
||||||
\draw[->] (runner)--(job);
|
\draw[->] (runner)--(docker);
|
||||||
|
\draw[->] (docker)--(job);
|
||||||
\draw[->] (job)--(pdf);
|
\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}
|
\end{tikzpicture}
|
||||||
\caption{Actual single-Droplet manual-build path. Only the runner mounts the
|
\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}
|
\label{Fig:ManualBuildArchitecture}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
\section{Runner setup}
|
\section{Runner setup}
|
||||||
\phantomsection\label{GlossaryRef:actionsrunner}\index{runner!registration}
|
\phantomsection\label{GlossaryRef:actionsrunner}\index{runner!registration}
|
||||||
Runner ID 1, \texttt{assignment5-manual}, is registered only to
|
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
|
\texttt{act\_runner} version is 0.6.1. Its image digest is
|
||||||
\path{sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86}.
|
\path{sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86}.
|
||||||
The live files are under \path{/home/codex/myfileagent-gitea/runner};
|
The live files are under \path{/home/codex/myfileagent-gitea/runner};
|
||||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build}{versioned non-secret configuration}
|
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build}{versioned non-secret configuration}
|
||||||
records the deployment. The \texttt{manual-latex} label uses
|
records the deployment. \textbf{Execution mode: Docker container execution
|
||||||
\texttt{docker://} execution with the exact local compiler image ID below.
|
(\texttt{docker://}).} Each job runs in a temporary TeX container created by
|
||||||
|
the host Docker daemon, rather than directly in the runner environment.
|
||||||
|
The workflow's \texttt{runs-on: manual-latex} selects the runner label, which
|
||||||
|
maps to the exact local compiler image ID recorded below. The runner polls
|
||||||
|
Gitea over outbound HTTPS, and the job uses HTTPS for checkout and upload.
|
||||||
Capacity is one job. The runner has a 192 MiB hard memory limit and 128 MiB Go
|
Capacity is one job. The runner has a 192 MiB hard memory limit and 128 MiB Go
|
||||||
memory target; jobs have a 256 MiB limit, no swap, 0.65 CPU and a 256-process
|
memory target; jobs have a 256 MiB limit, no swap, 0.65 CPU and a 256-process
|
||||||
limit. The initial 96 MiB runner limit caused an out-of-memory restart while
|
limit. The initial 96 MiB runner limit caused an out-of-memory restart while
|
||||||
@@ -88,7 +96,7 @@ recorded image ID after verification. Dependencies include TeX Live 2022,
|
|||||||
latexmk 4.79, BibTeX, makeindex/makeglossaries, Latin Modern and recommended
|
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.
|
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:
|
sources into a fresh temporary directory and invokes:
|
||||||
\begin{lstlisting}[language=bash]
|
\begin{lstlisting}[language=bash]
|
||||||
latexmk -pdf -shell-escape -interaction=nonstopmode \
|
latexmk -pdf -shell-escape -interaction=nonstopmode \
|
||||||
@@ -105,7 +113,9 @@ references/citations or duplicate labels. Only success copies
|
|||||||
\path{documentation/build/main.pdf} and \path{build-manifest.json} for upload.
|
\path{documentation/build/main.pdf} and \path{build-manifest.json} for upload.
|
||||||
The original manual was precompiled in a separate temporary container before
|
The original manual was precompiled in a separate temporary container before
|
||||||
relying on Actions. The successful Actions records below are the authoritative
|
relying on Actions. The successful Actions records below are the authoritative
|
||||||
publication evidence. See the retained job logs and the
|
publication evidence. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9}{successful run 9}
|
||||||
|
provides its compile-step log; the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9/jobs/9}{successful job log}
|
||||||
|
records checkout, latexmk passes, PDF validation and upload. See also the
|
||||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/ci/build_manual.py}{build helper}.
|
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/ci/build_manual.py}{build helper}.
|
||||||
|
|
||||||
\section{PDF version traceability}
|
\section{PDF version traceability}
|
||||||
@@ -130,6 +140,7 @@ artifact, download its ZIP and extract \texttt{main.pdf}. Retention is
|
|||||||
explicitly requested as 14 days, rather than relying on the server default;
|
explicitly requested as 14 days, rather than relying on the server default;
|
||||||
expiration enforcement has not yet been observed. Keep the submitted PDF
|
expiration enforcement has not yet been observed. Keep the submitted PDF
|
||||||
outside this temporary retention window~\cite{GiteaActionsConfigManual}.
|
outside this temporary retention window~\cite{GiteaActionsConfigManual}.
|
||||||
|
Artifacts are temporary build outputs, not permanent backups.
|
||||||
|
|
||||||
Checkout v4.2.2 is pinned to
|
Checkout v4.2.2 is pinned to
|
||||||
\path{11bd71901bbe5b1630ceea73d27597364c9af683}; upload-artifact v3.2.2 to
|
\path{11bd71901bbe5b1630ceea73d27597364c9af683}; upload-artifact v3.2.2 to
|
||||||
@@ -138,17 +149,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
|
artifact-list endpoint returned no entries in the preflight. The direct
|
||||||
preflight artifact download was verified, including ZIP checksum and contents.
|
preflight artifact download was verified, including ZIP checksum and contents.
|
||||||
Manual artifact downloads and visible PDF checks are recorded below.
|
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}
|
\section{Change, failure, and repair evidence}
|
||||||
% BEGIN BUILD EVIDENCE
|
% BEGIN BUILD EVIDENCE
|
||||||
\EvidenceID{MAN-BUILD-01}: October 6, 2026. Expected: the first source push
|
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.
|
||||||
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
|
\paragraph{Source change 1.}
|
||||||
\texttt{1.7.1+build.3.c74087a.attempt.1}. The downloaded PDF had 72 pages and
|
\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}.
|
||||||
matched the manifest checksum. The next change improves hash wrapping and
|
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:
|
||||||
clarifies the introduction. The second build and isolated LaTeX failure/repair
|
\path{ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337}.
|
||||||
remain pending at this stage; the infrastructure preflight is not counted.
|
|
||||||
|
|
||||||
|
\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
|
% END BUILD EVIDENCE
|
||||||
|
|
||||||
\section{Runner and secret boundary}
|
\section{Runner and secret boundary}
|
||||||
@@ -161,7 +192,12 @@ The runner controls the host Docker socket and therefore has powerful host
|
|||||||
access; containers are not a security boundary against a malicious trusted
|
access; containers are not a security boundary against a malicious trusted
|
||||||
workflow author or Docker administrator. Jobs receive no socket or runner-state
|
workflow author or Docker administrator. Jobs receive no socket or runner-state
|
||||||
mount; \texttt{valid\_volumes: []}, \texttt{docker\_host: '-'}, nonprivileged
|
mount; \texttt{valid\_volumes: []}, \texttt{docker\_host: '-'}, nonprivileged
|
||||||
execution and the separate bridge reduce accidental exposure.
|
execution and the separate bridge reduce accidental exposure. These controls
|
||||||
|
are recorded in the non-secret
|
||||||
|
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-config.yaml}{runner configuration}
|
||||||
|
and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-compose.yaml}{runner Compose file};
|
||||||
|
the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/.gitea/workflows/manual-pdf.yml}{workflow}
|
||||||
|
records trusted push triggers and checkout permissions.
|
||||||
|
|
||||||
Registration state is stored outside Git in a mode-700 directory, with its
|
Registration state is stored outside Git in a mode-700 directory, with its
|
||||||
\texttt{.runner} file mode 600. Registration tokens were passed without logging
|
\texttt{.runner} file mode 600. Registration tokens were passed without logging
|
||||||
@@ -176,7 +212,7 @@ The \hyperref[Table:CredentialRegistry]{Passwords table} contains hints only.
|
|||||||
The \hyperref[Table:HostRegistry]{Hosts table} now identifies the runner,
|
The \hyperref[Table:HostRegistry]{Hosts table} now identifies the runner,
|
||||||
compiler execution and ports. The \hyperref[Table:CredentialRegistry]{Passwords
|
compiler execution and ports. The \hyperref[Table:CredentialRegistry]{Passwords
|
||||||
table} now identifies protected runner state and the temporary implementation
|
table} now identifies protected runner state and the temporary implementation
|
||||||
credential without values. \ChapterRef{DocumentHistory} and
|
credential without values. \hyperref[Chapter:DocumentHistory]{Document History} and
|
||||||
\AppendixRef{AIPromptLog} record the work and retain earlier attribution.
|
\AppendixRef{AIPromptLog} record the work and retain earlier attribution.
|
||||||
Figure~\ref{Fig:ManualBuildArchitecture}, linked glossary/index terms and
|
Figure~\ref{Fig:ManualBuildArchitecture}, linked glossary/index terms and
|
||||||
citations connect the operational record to its configuration and evidence.
|
citations connect the operational record to its configuration and evidence.
|
||||||
|
|||||||
@@ -32,23 +32,37 @@ automatic production deployment. Add important terms to
|
|||||||
\texttt{devopsGlossary.tex} and index them where used.
|
\texttt{devopsGlossary.tex} and index them where used.
|
||||||
|
|
||||||
\section{Building the PDF}
|
\section{Building the PDF}
|
||||||
The template requires a LaTeX distribution with \texttt{pdflatex},
|
For Assignment 5, the authoritative publication route is the versioned
|
||||||
\texttt{bibtex}, \texttt{makeglossaries}, and \texttt{makeindex}.
|
\path{.gitea/workflows/manual-pdf.yml} workflow in the MyFileAgent Gitea
|
||||||
Install the tools using the platform instructions below, then run one of the
|
repository. A trusted push to \texttt{main} or
|
||||||
following platform builds.
|
\texttt{manual-build-validation} runs the registered \texttt{manual-latex}
|
||||||
|
runner and pinned temporary TeX container. Its command is:
|
||||||
\subsection{macOS and Linux Build}
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
make -f makefileMacLinux pdf
|
python3 documentation/ci/build_manual.py
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
The workflow supplies the triggering SHA, run number, run ID and attempt
|
||||||
|
through environment variables. The helper checks the checkout, creates
|
||||||
|
uncommitted build metadata in a fresh temporary workspace, runs
|
||||||
|
\texttt{latexmk -pdf} with minted shell escape, validates the PDF and references,
|
||||||
|
and publishes only successful output. It creates
|
||||||
|
\path{documentation/build/main.pdf} and a matching JSON manifest.
|
||||||
|
Download the named artifact from the successful Actions run and submit only
|
||||||
|
its PDF. See \ChapterRef{AutomatedManualBuild} for versions, limits, evidence,
|
||||||
|
retention, troubleshooting and credential boundaries.
|
||||||
|
|
||||||
\subsection{Windows PowerShell Build}
|
For an explicitly unverified local draft, run from the documentation folder
|
||||||
|
inside the recorded TeX environment:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
.\makefilePowerShell.ps1 -Action pdf
|
latexmk -pdf -shell-escape -interaction=nonstopmode \
|
||||||
|
-halt-on-error -file-line-error main.tex
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
The completed build regenerates references, bibliography, glossary, and index.
|
Without generated metadata the draft visibly says \texttt{+local.unverified}.
|
||||||
Review the log and visually inspect affected PDF pages. Do not edit generated
|
The legacy platform makefiles mentioned by the original template are not
|
||||||
auxiliary files or the PDF directly.
|
included in this project; do not present those commands as tested here.
|
||||||
|
The toolchain includes bibliography, index and glossary utilities. This
|
||||||
|
manual's glossary/acronym lists are authored and linked directly; repeated
|
||||||
|
LaTeX passes resolve their links. Review compiler errors, undefined references,
|
||||||
|
layout and navigation, and do not edit generated auxiliary files or PDFs.
|
||||||
|
|
||||||
\section{Install LaTeX Tools on macOS}
|
\section{Install LaTeX Tools on macOS}
|
||||||
\index{macOS}
|
\index{macOS}
|
||||||
|
|||||||
@@ -19,8 +19,7 @@
|
|||||||
\endhead
|
\endhead
|
||||||
\bottomrule
|
\bottomrule
|
||||||
\endlastfoot
|
\endlastfoot
|
||||||
October 6, 2026 / 1.7.1 & GDL, CDX & Imported the actual source bundle; deployed repository runner and pinned compiler image, verified checkout/artifact preflight, and prepared push-triggered manual compilation. Hosts changed to include runner/jobs; Passwords changed to include credential-storage hints. Manual build evidence is pending this first push. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
|
October 6--7, 2026 / 1.7.1 & GDL, CDX, NK & Implemented Assignment 5: imported the full manual and historical images; deployed the repository-scoped runner and pinned TeX image; enabled push builds with visible commit/run identity and downloadable artifacts. Verified source builds 3--4, controlled failure 5, repair 6, and downloaded publication PDFs. Updated Hosts for runner/job resources and Passwords for credential-storage hints only. Corrected layout and links, aligned the build guide, consolidated this history and the AI log, and checked all instruction Section 3.5 requirements. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
|
||||||
October 6, 2026 / 1.7.1 & GDL, CDX & Began approved Assignment 5 Chapter 3 implementation; updated metadata, corrected historical image paths to \texttt{hw4\_images}, added build-identity support and the automated-build chapter. Prepared and locally checked the clean-build helper; remote setup and evidence remain pending execution on the connected project. Hosts and Passwords tables are unchanged at this preparation stage; add verified runner details after registration. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
|
|
||||||
September 29, 2026 / 1.6.1 & NK, GDL, CDX & Activated \texttt{myfileagent.tech} with DNS, Caddy HTTPS, certificate and ACME evidence; documented the isolated backup/restore test, live links and temporary ports; refined the firewall, extra-credit, credential, figure-layout, and reference material; compiled and visually reviewed the manual. & \ChapterRef{GiteaStartupFoundation}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
|
September 29, 2026 / 1.6.1 & NK, GDL, CDX & Activated \texttt{myfileagent.tech} with DNS, Caddy HTTPS, certificate and ACME evidence; documented the isolated backup/restore test, live links and temporary ports; refined the firewall, extra-credit, credential, figure-layout, and reference material; compiled and visually reviewed the manual. & \ChapterRef{GiteaStartupFoundation}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
|
||||||
September 26, 2026 / 1.6.0 & NK, GDL, CDX & Established the pinned Gitea/SQLite foundation, persistence test, two-member workflow, Cloud Firewall, key-only SSH, architecture and operations; updated Hosts and Passwords and documented the instructor-cleared SSH exception. & \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{GiteaStartupFoundation}, \AppendixRef{AIPromptLog} \\
|
September 26, 2026 / 1.6.0 & NK, GDL, CDX & Established the pinned Gitea/SQLite foundation, persistence test, two-member workflow, Cloud Firewall, key-only SSH, architecture and operations; updated Hosts and Passwords and documented the instructor-cleared SSH exception. & \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{GiteaStartupFoundation}, \AppendixRef{AIPromptLog} \\
|
||||||
September 18, 2026 / 1.5.1 & NK, GDL, CDX & Added Chapter 8, the Project Proposal, describing the MyFileAgent one-click DevSecOps installation, build, configuration, testing, deployment, security, and Grafana monitoring pipeline. & \ChapterRef{ProjectProposal}, \AppendixRef{AIPromptLog} \\
|
September 18, 2026 / 1.5.1 & NK, GDL, CDX & Added Chapter 8, the Project Proposal, describing the MyFileAgent one-click DevSecOps installation, build, configuration, testing, deployment, security, and Grafana monitoring pipeline. & \ChapterRef{ProjectProposal}, \AppendixRef{AIPromptLog} \\
|
||||||
|
|||||||
@@ -16,5 +16,5 @@ assignment and any that will be configured in future assignments.
|
|||||||
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
|
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
|
||||||
\endhead \bottomrule \endlastfoot
|
\endhead \bottomrule \endlastfoot
|
||||||
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; administered through the non-root \texttt{codex} account. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
|
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; administered through the non-root \texttt{codex} account. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
|
||||||
\texttt{assignment5-manual} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
|
\texttt{assignment5-}\newline\texttt{manual} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
|
||||||
\end{tabularx}
|
\end{tabularx}
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ evidence.
|
|||||||
assistance used to organize, author, and review the report.
|
assistance used to organize, author, and review the report.
|
||||||
|
|
||||||
\section{Submission and Verification}
|
\section{Submission and Verification}
|
||||||
Assignment 4 evidence is retained as a historical record. Assignment 5 is
|
Assignment 4 evidence is retained as a historical record. Assignment 5 has verified the runner, two successive source builds, downloaded versioned artifacts, and a controlled failure/repair exercise. Submit only the PDF downloaded from the final successful
|
||||||
complete only after the runner, workflow, versioned artifacts, and failure/repair
|
|
||||||
exercise are verified. Submit only the PDF downloaded from the final successful
|
|
||||||
Gitea Actions run after visual and navigation checks; a local draft is not the
|
Gitea Actions run after visual and navigation checks; a local draft is not the
|
||||||
final submission. Current status appears in \ChapterRef{AutomatedManualBuild}.
|
final submission. Current status appears in \ChapterRef{AutomatedManualBuild}.
|
||||||
|
|||||||
@@ -19,5 +19,5 @@ Group 7 & Droplet (DigitalOcean) & Password manager entry: \texttt{DigitalOcean
|
|||||||
\texttt{glovely} & MyFileAgent Gitea & Password manager entry: \texttt{Gitea - Gowri} & Individual Gitea administrator account; keep distinct from other service credentials\\
|
\texttt{glovely} & MyFileAgent Gitea & Password manager entry: \texttt{Gitea - Gowri} & Individual Gitea administrator account; keep distinct from other service credentials\\
|
||||||
Group 7 & \texttt{.TECH domains} & Password manager entry: \texttt{.tech Domain} & Registrar access for \texttt{myfileagent.tech}\\
|
Group 7 & \texttt{.TECH domains} & Password manager entry: \texttt{.tech Domain} & Registrar access for \texttt{myfileagent.tech}\\
|
||||||
Group 7 & Actions runner & Restricted runner-state directory; \texttt{.runner} file & Repository registration; mode-700 directory and mode-600 state. No value stored here. Re-register/revoke on compromise or retirement.\\
|
Group 7 & Actions runner & Restricted runner-state directory; \texttt{.runner} file & Repository registration; mode-700 directory and mode-600 state. No value stored here. Re-register/revoke on compromise or retirement.\\
|
||||||
\texttt{glovely} & Implementation access & Restricted temporary token file outside Git & \texttt{write:repository} scope; used by authorized setup, never injected into jobs. Revoke when implementation ends.\\
|
\texttt{glovely} & Setup access & Restricted temporary token file outside Git & \texttt{write:repository} scope; used by authorized setup, never injected into jobs. Revoke when implementation ends.\\
|
||||||
\end{tabularx}
|
\end{tabularx}
|
||||||
|
|||||||
@@ -52,14 +52,14 @@
|
|||||||
\newcommand{\AssignmentTitle}{Automated LaTeX Manual Builds with Gitea Actions}
|
\newcommand{\AssignmentTitle}{Automated LaTeX Manual Builds with Gitea Actions}
|
||||||
\newcommand{\AssignmentNumber}{5}
|
\newcommand{\AssignmentNumber}{5}
|
||||||
\newcommand{\DocumentVersion}{1.7.1}
|
\newcommand{\DocumentVersion}{1.7.1}
|
||||||
\newcommand{\DocumentStatus}{Group Assignment Report -- Work in Progress}
|
\newcommand{\DocumentStatus}{Group Assignment Report}
|
||||||
\newcommand{\CourseNumber}{SSW 590}
|
\newcommand{\CourseNumber}{SSW 590}
|
||||||
\newcommand{\CourseName}{DevOps Principles and Practices}
|
\newcommand{\CourseName}{DevOps Principles and Practices}
|
||||||
\newcommand{\Instructor}{Darian Muresan}
|
\newcommand{\Instructor}{Darian Muresan}
|
||||||
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
|
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
|
||||||
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
|
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
|
||||||
\newcommand{\Organization}{Stevens Institute of Technology}
|
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||||
\newcommand{\DocumentDate}{October 6, 2026}
|
\newcommand{\DocumentDate}{October 7, 2026}
|
||||||
\newcommand{\DueDate}{Not specified}
|
\newcommand{\DueDate}{Not specified}
|
||||||
% Generated only in the build workspace; never committed by the workflow.
|
% Generated only in the build workspace; never committed by the workflow.
|
||||||
\newcommand{\BuildSuffix}{+local.unverified}
|
\newcommand{\BuildSuffix}{+local.unverified}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Merge this site block into the deployment's existing Caddyfile.
|
||||||
|
# Gitea delivers directly to Jenkins through the private Docker bridge.
|
||||||
|
ci.myfileagent.tech {
|
||||||
|
@giteaHook path /gitea-webhook /gitea-webhook/*
|
||||||
|
respond @giteaHook "Webhook is available only on the private network" 403
|
||||||
|
reverse_proxy jenkins:8080
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
# Assignment 6 Python CI
|
||||||
|
|
||||||
|
The pipeline runs on the trusted Jenkins controller executor. Only trusted
|
||||||
|
team members may change pipeline code. Do not supply secrets or privileged
|
||||||
|
Docker access to untrusted pull requests. Fork PR discovery is disabled.
|
||||||
|
|
||||||
|
The controller uses the official Jenkins LTS image recorded in compose.jenkins.yaml.
|
||||||
|
Python comes from that image's Debian package repositories; record the actual
|
||||||
|
Python version from each build. No pip dependencies or Docker socket are needed.
|
||||||
|
After replacing the container, run `sh ops/jenkins/install-python.sh` on the
|
||||||
|
Droplet before building. A restart retains Python; replacement requires reinstall.
|
||||||
|
Jenkins jobs and settings persist in the jenkins-home volume.
|
||||||
|
|
||||||
|
From the repository root, reproduce checks with:
|
||||||
|
|
||||||
|
python3 -m py_compile pricing.py tests/test_pricing.py
|
||||||
|
python3 -m unittest discover -s tests -v
|
||||||
|
|
||||||
|
Expected: both tests pass. Syntax or test failures must fail the Jenkins run.
|
||||||
|
Multibranch origin PR discovery tests the current PR revision, not a merged revision.
|
||||||
|
The printed checkout commit identifies what was actually tested.
|
||||||
|
|
||||||
|
Webhook delivery, status reporting, branch protection, and the controlled
|
||||||
|
failure/repair demonstration must be configured and verified separately.
|
||||||
|
|
||||||
|
## Gitea webhook and required merge gate
|
||||||
|
|
||||||
|
Configure the repository Gitea webhook with POST, application/json, active,
|
||||||
|
push and pull-request events, branch filter `*`, and target
|
||||||
|
`http://jenkins:8080/gitea-webhook/post`. Gitea must allow the exact `jenkins`
|
||||||
|
host through its webhook destination allowlist; see `compose.webhook.yaml`.
|
||||||
|
The deployed base Compose file includes this same environment setting.
|
||||||
|
The hook is configured manually, so Jenkins does not manage repository hooks.
|
||||||
|
|
||||||
|
The installed Gitea plugin handler does not verify a shared-secret signature.
|
||||||
|
Leave the hook secret empty and use the existing private Docker network.
|
||||||
|
Block `/gitea-webhook` and `/gitea-webhook/*` at the public Caddy site, as in
|
||||||
|
`Caddyfile.jenkins`. Raw port 8080 remains loopback-only. Do not claim HMAC
|
||||||
|
authentication, and do not expose the unsigned receiver publicly.
|
||||||
|
|
||||||
|
Require `myfileagent-python-ci/pipeline/pr-main` on `main`; this is the
|
||||||
|
observed PR-head context. The branch context ending `/pipeline/head` is
|
||||||
|
not the PR context. `main-branch-protection.json` records the applied rule:
|
||||||
|
no direct or force pushes, one approval, dismiss stale approvals, reject
|
||||||
|
changes-requested reviews, and no administrator merge override.
|
||||||
|
|
||||||
|
October 9, 2026 acceptance exercise, linked to issue #10 and PR #11:
|
||||||
|
- PR build 1 passed on ad056a3 after a real pull-request-open webhook.
|
||||||
|
- Commit d6477b3 changed multiplication to addition; PR build 2 failed with
|
||||||
|
`AssertionError: 13 != 30`; Gitea showed the required check failed.
|
||||||
|
- Commit 02d3169 restored multiplication; the webhook started PR build 3,
|
||||||
|
which passed both tests and updated the same required context.
|
||||||
|
- PR #11 remains open for reviewer nkogut. No review approval or merge has
|
||||||
|
been performed by automation.
|
||||||
|
|
||||||
|
For delivery diagnosis, inspect Gitea's recent delivery response and compare
|
||||||
|
its event/head SHA with Jenkins' console. A 200 `Processed` delivery alone
|
||||||
|
is not proof that tests passed. Save the failed and repaired PR gate views
|
||||||
|
before further commits. A new commit needs a new success status and review.
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
jenkins:
|
||||||
|
image: jenkins/jenkins@sha256:a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1
|
||||||
|
container_name: myfileagent-jenkins
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: "-Xms64m -Xmx256m"
|
||||||
|
mem_limit: 448m
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8080:8080"
|
||||||
|
volumes:
|
||||||
|
- jenkins-home:/var/jenkins_home
|
||||||
|
networks:
|
||||||
|
- gitea-private
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
jenkins-home:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Apply with the existing base compose.yaml and compose.jenkins.yaml.
|
||||||
|
# Allows only the named Jenkins destination in addition to Gitea's default
|
||||||
|
# external destinations; never use '*' to allow every private address.
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
environment:
|
||||||
|
GITEA__webhook__ALLOWED_HOST_LIST: "external,jenkins"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Run on the Droplet after recreating the official Jenkins container.
|
||||||
|
# Python installed in the container survives restart, not container replacement.
|
||||||
|
set -eu
|
||||||
|
docker exec -u root myfileagent-jenkins sh -c 'apt-get update -qq && apt-get install -y --no-install-recommends python3'
|
||||||
|
docker exec myfileagent-jenkins python3 --version
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"branch_name": "main",
|
||||||
|
"rule_name": "main",
|
||||||
|
"priority": 1,
|
||||||
|
"enable_push": false,
|
||||||
|
"enable_push_whitelist": false,
|
||||||
|
"push_whitelist_usernames": [],
|
||||||
|
"push_whitelist_teams": [],
|
||||||
|
"push_whitelist_deploy_keys": false,
|
||||||
|
"enable_force_push": false,
|
||||||
|
"enable_force_push_allowlist": false,
|
||||||
|
"force_push_allowlist_usernames": [],
|
||||||
|
"force_push_allowlist_teams": [],
|
||||||
|
"force_push_allowlist_deploy_keys": false,
|
||||||
|
"enable_merge_whitelist": false,
|
||||||
|
"merge_whitelist_usernames": [],
|
||||||
|
"merge_whitelist_teams": [],
|
||||||
|
"enable_bypass_allowlist": false,
|
||||||
|
"bypass_allowlist_usernames": [],
|
||||||
|
"bypass_allowlist_teams": [],
|
||||||
|
"enable_status_check": true,
|
||||||
|
"status_check_contexts": [
|
||||||
|
"myfileagent-python-ci/pipeline/pr-main"
|
||||||
|
],
|
||||||
|
"required_approvals": 1,
|
||||||
|
"enable_approvals_whitelist": false,
|
||||||
|
"approvals_whitelist_username": [],
|
||||||
|
"approvals_whitelist_teams": [],
|
||||||
|
"block_on_rejected_reviews": true,
|
||||||
|
"block_on_official_review_requests": true,
|
||||||
|
"block_on_outdated_branch": false,
|
||||||
|
"dismiss_stale_approvals": true,
|
||||||
|
"ignore_stale_approvals": false,
|
||||||
|
"require_signed_commits": false,
|
||||||
|
"protected_file_patterns": "",
|
||||||
|
"unprotected_file_patterns": "",
|
||||||
|
"block_admin_merge_override": true,
|
||||||
|
"created_at": "2026-10-09T19:03:48Z",
|
||||||
|
"updated_at": "2026-10-09T19:04:32Z"
|
||||||
|
}
|
||||||
+20
-25
@@ -1,8 +1,12 @@
|
|||||||
# Assignment 5 manual build infrastructure
|
# Assignment 5 manual build infrastructure
|
||||||
|
|
||||||
Status on October 6, 2026: infrastructure preparation; the authoritative manual
|
Status on October 6, 2026 (America/New_York): source transfer resolved. The
|
||||||
has not been transferred. No manual PDF build or failure/repair exercise is
|
complete manual now resides in documentation/. Push-triggered manual runs 3
|
||||||
claimed. Assignment metadata must remain 1.7.1, October 6, 2026.
|
and 4 passed; controlled LaTeX failure run 5 published no PDF; repaired run 6
|
||||||
|
passed. All three successful artifacts were downloaded and checksum-verified.
|
||||||
|
See manual-build-evidence.json and documentation/devopsAutomatedManualBuild.tex.
|
||||||
|
Assignment metadata remains 1.7.1, October 6, 2026. Final PDF publication uses
|
||||||
|
its generated Build Identity; final download verification is retained separately.
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
@@ -36,8 +40,7 @@ workflow changes remains a procedural control, not an enforced approval gate.
|
|||||||
|
|
||||||
Dockerfile pins Debian by digest and packages by the October 1, 2026 Debian
|
Dockerfile pins Debian by digest and packages by the October 1, 2026 Debian
|
||||||
snapshot. It supplies TeX Live 2022, latexmk, minted/Pygments, Latin Modern,
|
snapshot. It supplies TeX Live 2022, latexmk, minted/Pygments, Latin Modern,
|
||||||
recommended fonts, BibTeX, index/glossary tools, Node and pypdf. Full source
|
recommended fonts, BibTeX, index/glossary tools, Node and pypdf. Full source compatibility was verified by precompilation and successful Actions runs.
|
||||||
compatibility remains unverified until the real manual is available.
|
|
||||||
|
|
||||||
runner-preflight.yml is an isolated infrastructure test on branch
|
runner-preflight.yml is an isolated infrastructure test on branch
|
||||||
manual-runner-preflight. It is not one of the required manual source builds.
|
manual-runner-preflight. It is not one of the required manual source builds.
|
||||||
@@ -47,22 +50,17 @@ retention; the eventual PDF workflow must also record its actual retention.
|
|||||||
Checkout is pinned to v4.2.2 commit 11bd71901bbe5b1630ceea73d27597364c9af683.
|
Checkout is pinned to v4.2.2 commit 11bd71901bbe5b1630ceea73d27597364c9af683.
|
||||||
Upload is pinned to v3.2.2 commit c6a366c94c3e0affe28c06c8df20a878f24da3cf.
|
Upload is pinned to v3.2.2 commit c6a366c94c3e0affe28c06c8df20a878f24da3cf.
|
||||||
|
|
||||||
## Source transfer and remaining work
|
## Source and build
|
||||||
|
|
||||||
Transfer the actual C:\Users\gowri\SSW590\assignment5\documentation directory,
|
The user supplied Assignment5-source-prepared.zip, SHA-256
|
||||||
including main.tex, all chapters, cornell.cls, bibliography/style files,
|
ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e.
|
||||||
ci/build_manual.py, hw4_images and other referenced assets, plus the instruction
|
The original archive and instruction PDF remain outside the public repository.
|
||||||
PDF dosManual-V1.18.pdf. Preserve the archive as an input and inspect it before
|
All actual manual dependencies, including twelve hw4_images files, are versioned.
|
||||||
extracting. Exclude credentials and stale build/cache outputs from commits.
|
The active workflow is .gitea/workflows/manual-pdf.yml, triggered by pushes to
|
||||||
Use existing authenticated SSH/SFTP/SCP to stage the source archive under
|
main and manual-build-validation. Its helper runs from documentation/ci and
|
||||||
/home/codex/myfileagent-gitea/incoming; do not open a public upload port.
|
creates uncommitted build metadata in a fresh temporary workspace. Compiler
|
||||||
|
errors, missing/empty PDFs and failed identity/reference checks stop publication.
|
||||||
Then verify dependencies, add the push-triggered manual workflow, generate
|
The requested artifact retention is 14 days. No generated PDF is auto-committed.
|
||||||
uncommitted visible version/commit/run metadata, and require a nonempty PDF.
|
|
||||||
Perform two successful source-change builds, the controlled error and repair
|
|
||||||
on manual-build-validation, update all eight chapter sections and history,
|
|
||||||
prompt log, Hosts/Passwords (explicit changed/unchanged), glossary and index.
|
|
||||||
Download and visually inspect the final successful Actions PDF artifact.
|
|
||||||
|
|
||||||
## Ownership, cost, cleanup and recovery
|
## Ownership, cost, cleanup and recovery
|
||||||
|
|
||||||
@@ -108,14 +106,11 @@ The pinned upload-artifact v3.2.2 action works with this server. Its legacy
|
|||||||
artifact is downloadable from the run URL but absent from the newer REST
|
artifact is downloadable from the run URL but absent from the newer REST
|
||||||
artifact listing. Use the run's named download link for this protocol. Retention
|
artifact listing. Use the run's named download link for this protocol. Retention
|
||||||
is requested as 14 days; expiry enforcement has not yet been observed.
|
is requested as 14 days; expiry enforcement has not yet been observed.
|
||||||
The pending manual workflow is in manual-pdf.yml.example, not activated.
|
The active manual workflow is .gitea/workflows/manual-pdf.yml; manual-pdf.yml.example is the original preparation template.
|
||||||
|
|
||||||
The first preflight hit the runner's 96 MiB cap during action download. Its
|
The first preflight hit the runner's 96 MiB cap during action download. Its
|
||||||
orphaned container was stopped; the cap is now 192 MiB with GOMEMLIMIT=128MiB.
|
orphaned container was stopped; the cap is now 192 MiB with GOMEMLIMIT=128MiB.
|
||||||
Run 2 then passed without another runner restart. This infrastructure repair
|
Run 2 then passed without another runner restart. This infrastructure repair
|
||||||
is NOT the required controlled LaTeX error and repair exercise.
|
is NOT the required controlled LaTeX error and repair exercise.
|
||||||
|
|
||||||
No original manual chapter, history, glossary, Hosts or Passwords table was
|
The original manual is now imported. Its complete automated-build chapter, history, prompt log, introduction, references and Hosts/Passwords hints have been updated while preserving earlier evidence. The glossary and index link the build concepts; the final artifact requires visual review after download.
|
||||||
modified on this host because its authoritative source is still missing.
|
|
||||||
Once transferred, incorporate these verified facts into the single complete
|
|
||||||
devopsAutomatedManualBuild.tex and preserve prior history.
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
"job_memory_mib": 256,
|
"job_memory_mib": 256,
|
||||||
"runner_image": "gitea/act_runner@sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86",
|
"runner_image": "gitea/act_runner@sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86",
|
||||||
"compiler_image_id": "sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1",
|
"compiler_image_id": "sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1",
|
||||||
"source_transfer": "pending; incoming directory empty",
|
"source_transfer": "resolved: user-provided archive imported into documentation",
|
||||||
"manual_builds_verified": 0,
|
"manual_builds_verified": 3,
|
||||||
"preflight_1": {
|
"preflight_1": {
|
||||||
"commit": "194cce7c657ff1166c4cddb5dd6f47bfa9c97e93",
|
"commit": "194cce7c657ff1166c4cddb5dd6f47bfa9c97e93",
|
||||||
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/1",
|
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/1",
|
||||||
@@ -47,5 +47,6 @@
|
|||||||
"color-buttons-app on 8080"
|
"color-buttons-app on 8080"
|
||||||
],
|
],
|
||||||
"secret_boundary": "runner state and temporary repository write token outside Git, restricted storage; no credential values in evidence",
|
"secret_boundary": "runner state and temporary repository write token outside Git, restricted storage; no credential values in evidence",
|
||||||
"hosts_passwords_manual_tables": "unchanged remotely; authoritative manual unavailable"
|
"hosts_passwords_manual_tables": "updated with runner and protected credential-storage hints",
|
||||||
|
"manual_evidence": "manual-build-evidence.json"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"observed_date": "2026-10-06 America/New_York",
|
||||||
|
"source_archive_sha256": "ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e",
|
||||||
|
"successful_builds": [
|
||||||
|
{
|
||||||
|
"commit": "c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||||
|
"run_number": "3",
|
||||||
|
"run_id": "3",
|
||||||
|
"attempt": "1",
|
||||||
|
"suffix": "+build.3.c74087a.attempt.1",
|
||||||
|
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3",
|
||||||
|
"document_version": "1.7.1",
|
||||||
|
"pdf_sha256": "ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337",
|
||||||
|
"pages": 72,
|
||||||
|
"artifact_name": "assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||||
|
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3/artifacts/assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225",
|
||||||
|
"artifact_zip_sha256": "f4ebf6cf6e9278715dd8347a6e38a9034e62256ea5e619887109a6bddece6b2d",
|
||||||
|
"result": "success"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"commit": "2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||||
|
"run_number": "4",
|
||||||
|
"run_id": "4",
|
||||||
|
"attempt": "1",
|
||||||
|
"suffix": "+build.4.2b8be11.attempt.1",
|
||||||
|
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4",
|
||||||
|
"document_version": "1.7.1",
|
||||||
|
"pdf_sha256": "ba87740958bada14f31d2236638c9b175d8b24797f715252cdb0f0af6668be06",
|
||||||
|
"pages": 72,
|
||||||
|
"artifact_name": "assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||||
|
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a",
|
||||||
|
"artifact_zip_sha256": "87d3ed75e74caf0eaf823a8b3dd7355fd090e7a13b28ae75ba82020ff2045bbc",
|
||||||
|
"result": "success"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"commit": "a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||||
|
"run_number": "6",
|
||||||
|
"run_id": "6",
|
||||||
|
"attempt": "1",
|
||||||
|
"suffix": "+build.6.a4737f1.attempt.1",
|
||||||
|
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6",
|
||||||
|
"document_version": "1.7.1",
|
||||||
|
"pdf_sha256": "7591b1cd87f319dfc77eaa4ca9fd9727d1e7b97253a05d9a93e8624296bc736e",
|
||||||
|
"pages": 72,
|
||||||
|
"artifact_name": "assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||||
|
"artifact_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6/artifacts/assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856",
|
||||||
|
"artifact_zip_sha256": "e7de44f82686fdb57b8c57480f4b0079dca1b27751a08b15b980adaaa10473d8",
|
||||||
|
"result": "success"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"controlled_failure": {
|
||||||
|
"run": 5,
|
||||||
|
"commit": "f0e7b74ee63b40811334ee9cd4aecf035f1b0864",
|
||||||
|
"run_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/5",
|
||||||
|
"error": "Undefined control sequence: AssignmentFiveControlledFailure",
|
||||||
|
"latexmk_exit": 12,
|
||||||
|
"artifact_download_status": 404
|
||||||
|
},
|
||||||
|
"final_publication": "Current PDF build identity and matching Actions artifact identify the final source; external verification follows download."
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# Instruction PDF section 3.5 documentation review
|
||||||
|
|
||||||
|
Reviewed October 7, 2026 against the supplied dosManual-V1.18.pdf, section 3.5
|
||||||
|
(printed pages 13–14). This checks documented coverage, not a grade prediction.
|
||||||
|
The title remains Assignment 5, version 1.7.1, October 6, 2026.
|
||||||
|
|
||||||
|
| Requirement | Documentation and evidence | Result |
|
||||||
|
|---|---|---|
|
||||||
|
| Eight numbered subsections in rubric order; dated, labeled, sanitized evidence and clickable links | Chapter 10 has sections 10.1–10.8 in the required order; MAN-RUNNER-01 and MAN-BUILD/FAIL/REPAIR records have dates, expected/actual results and real run links. | Included |
|
||||||
|
| 1. Source and trigger: repository/main/workflow links, branch and push trigger, observed triggered run, HTTPS path and ports, no runner submission port | 10.1 names main and manual-build-validation, links source/workflow, traces HTTPS 443 → Caddy → private Gitea 3000, and explains outbound runner polling; 10.6 correlates source pushes and runs. | Included |
|
||||||
|
| 2. Runner setup: version, location, scope, label, execution mode, network path, capacity, online/assigned evidence, isolation and temporary jobs | 10.2 records runner 0.6.1, same-Droplet configuration location, repository scope, ID 1, manual-latex, explicit Docker docker:// execution, temporary TeX containers, HTTPS paths, capacity one, resource limits, online API observation and assigned run 2. No public runner/job ports or socket mount in jobs. | Included |
|
||||||
|
| 3. Reproducible compilation: image, dependencies, command, main file, output, successful log, failure detection, compiler location and source/artifact exchange | 10.3 records the pinned image ID, tool versions, latexmk command, helper/output path and validation gates; 10.1 identifies main.tex. A direct successful run-9 job-log link is included. Sections 10.2–10.3 and Figure 10.1 explain temporary compiler installation and HTTPS exchange without a Gitea/shared compiler filesystem. | Included |
|
||||||
|
| 4. PDF identity: human version, build suffix, full commit/run, matching run and no auto-commit loop | 10.4 and the visible Build Identity page describe generated temporary metadata. The title includes the actual build suffix; matching runs and PDF identities are in 10.6. | Included |
|
||||||
|
| 5. Artifact: named successful artifact link, downloaded file opens, retention and no permanent-backup claim | 10.5 provides a generated link to the current PDF artifact and requests 14-day retention; it explicitly states artifacts are not permanent backups. 10.6 records downloaded/parsed PDFs and matching checksums for runs 3, 4 and 6. The newly revised artifact is downloaded and checked after this review is committed. | Included; revised artifact verification follows build |
|
||||||
|
| 6. Two successive source changes plus controlled failure and repair, expected/actual results and matched commits | 10.6 correlates successful runs 3–4, failed run 5 (compiler error, upload skipped, artifact 404), and repaired run 6 with full commits, visible PDF versions, named artifacts and checksums. | Included |
|
||||||
|
| 7. Workflow rights, secret storage hints, isolation, Docker privilege risk and non-secret configuration links | 10.7 documents Owners-team rights, trusted push triggers, protected runner/token storage, socket risk and job restrictions. It directly links runner-config.yaml, runner-compose.yaml and the workflow. | Included |
|
||||||
|
| 8. Version/history and chapter link; explicit Hosts/Passwords changes; current hints-only tables; citations, glossary/index, evidence, failed-build procedure | Consolidated 1.7.1 history explicitly records Hosts and Passwords updates and links the chapters. 10.8 links the tables/history/log, cites supporting material and gives troubleshooting. Existing glossary/index destinations and all earlier-version history remain. | Included |
|
||||||
|
|
||||||
|
The four 1.7.1 rows in each log were merged into one concise October 6–7 row.
|
||||||
|
Their rendered height is checked against the requested two-thirds-page maximum
|
||||||
|
(preferably one-half page) in the downloaded Actions PDF. No earlier-version
|
||||||
|
entry was removed. Section 10.1's requested sentence was removed; historical
|
||||||
|
records in other chapters remain intact.
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
def total_price(unit_price, quantity):
|
||||||
|
if quantity < 1:
|
||||||
|
raise ValueError("Quantity must be positive")
|
||||||
|
return unit_price * quantity
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import unittest
|
||||||
|
from pricing import total_price
|
||||||
|
|
||||||
|
|
||||||
|
class PricingTests(unittest.TestCase):
|
||||||
|
def test_total(self):
|
||||||
|
self.assertEqual(total_price(10, 3), 30)
|
||||||
|
|
||||||
|
def test_invalid_quantity(self):
|
||||||
|
with self.assertRaises(ValueError):
|
||||||
|
total_price(10, 0)
|
||||||
Reference in New Issue
Block a user