From d54d801020b8cc0cbdc34ce9cb150b3054921d78 Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 23 Oct 2026 18:06:07 -0400 Subject: [PATCH] Finalize Assignment 6 documentation corrections --- manual/latex/devopsAIPromptLog.tex | 32 +++++++++++++++++++++++++ manual/latex/devopsAssignment.tex | 2 +- manual/latex/devopsDocumentHistory.tex | 1 + manual/latex/devopsJenkins.tex | 33 ++++++++++++++++---------- 4 files changed, 54 insertions(+), 14 deletions(-) diff --git a/manual/latex/devopsAIPromptLog.tex b/manual/latex/devopsAIPromptLog.tex index 4d47cd1..1a6aebd 100644 --- a/manual/latex/devopsAIPromptLog.tex +++ b/manual/latex/devopsAIPromptLog.tex @@ -647,3 +647,35 @@ the report. Vincent then tested from campus Wi-Fi \texttt{Stevens-Net} his screenshots into one figure, blurring the password field and profile icon. A friend reportedly on campus saw a blank page (the 403); his network and address were not recorded, so no conclusion is drawn from it. + +\section{Assignment 6 Run-9 Review and Final Corrections} +Date: October 23, 2026; Tool: OpenAI Codex; Human: Vincent Sun. +Inputs: Vincent's request to review the run-9 PDF, instructor manual version +1.38, the repository's AI guidance, public Gitea commit/status/review records, +and Vincent's approval to correct the documentation while leaving the three +theme plugins unchanged. Codex reviewed the Jenkins chapter, updated tables, +history, and AI records visually; checked the artifact ZIP and PDF links; +and confirmed the recorded failed/repaired statuses, approval, and merge +against Gitea. A read-only HTTPS check returned the Jenkins sign-in page +with certificate verification passing. No authenticated Jenkins inspection +or new droplet experiment was performed during this review. + +Human/AI corrections: the PDF linked a 60-plugin lockfile at the initial +deployment merge while describing the later 63-plugin set. Codex changed +that link to the recorded revision \texttt{ac18f11}, retaining historical +PR and run links. It clarified that \emph{Build Now} uses the revision +selected for that run and does not establish a clean workspace or the same +commit as an earlier run; clean local reproduction now calls for a fresh +clone and the recorded commit ID. It separated the observed delivery timeout +from the suspected CPU/discovery cause and made timeout tuning conditional. +At Vincent's direction, the theme plugins were left unchanged; the existing +security-check result is explicitly limited to its 63 checked versions. + +Outputs used: these corrections in \ChapterRef{JenkinsCI}, version 4.2, +the dated Document History entry, and this record. Prior Billy/Claude +records and original run-9 evidence are preserved. Hosts and Passwords +tables are unchanged because no deployed service, account, or credential +changed. The revision is checked through the complete local TinyTeX build, +diagnostic inspection, and visual review of the affected PDF pages. +No commit, push, remote configuration change, or submission is performed +as part of this correction. diff --git a/manual/latex/devopsAssignment.tex b/manual/latex/devopsAssignment.tex index db691cd..ef45114 100644 --- a/manual/latex/devopsAssignment.tex +++ b/manual/latex/devopsAssignment.tex @@ -36,7 +36,7 @@ % Replace these values for each assignment. \newcommand{\AssignmentTitle}{Gitea + Jenkins Autobuild and Testing -- Group} \newcommand{\AssignmentNumber}{6} -\newcommand{\DocumentVersion}{4.1} +\newcommand{\DocumentVersion}{4.2} \newcommand{\DocumentStatus}{Draft} \newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseName}{DevOps} diff --git a/manual/latex/devopsDocumentHistory.tex b/manual/latex/devopsDocumentHistory.tex index a04fb61..3da61e5 100644 --- a/manual/latex/devopsDocumentHistory.tex +++ b/manual/latex/devopsDocumentHistory.tex @@ -12,6 +12,7 @@ link each entry to the changed chapter, table, figure, or controlled artifact. \multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\ \toprule \textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At}\\ \midrule \endhead \bottomrule \endlastfoot +October 23, 2026 / 4.2 & VS, CDX & Corrected the Jenkins lockfile link to the recorded 63-plugin revision; clarified clean reproduction, Jenkins revision selection, and the unconfirmed webhook-timeout cause. Scoped the existing update-check result to the 63 checked plugins. Theme plugins are unchanged at Vincent's direction. Hosts and Passwords tables are unchanged because no service, account, or credential changed. & \ChapterRef{JenkinsCI}, \ChapterRef{AIPromptLog}\\ October 23, 2026 / 4.1 & BY, CD & Corrected the Jenkins instructor access path to the Stevens campus network, with off-campus graders' addresses added on request; recorded the GlobalProtect test showing the Stevens VPN is split-tunnel and therefore not an access path, and Vincent's passing campus test on \texttt{Stevens-Net}; added the real webhook delivery table and diagnosis of one timed-out delivery, UML stereotypes on the deployment diagram, the stored Jenkins URL, free disk space, reconciled plugin counts, and corrected wording on push rights, resource limits, and corrective actions. Shortened AI initials in this table (CDX for Codex, CD for Claude). Hosts and Passwords tables are unchanged. & \ChapterRef{JenkinsCI}, \ChapterRef{AIPromptLog}\\ October 22--23, 2026 / 4.0 & BY, VS, CD & Assignment 6: ran the guarded Jenkins capacity test on the resized 1\,GiB droplet; deployed Jenkins 2.580.1 LTS with a hashed plugin lockfile behind Caddy at \texttt{ci.yebilly.me} (Stevens and team allowlist); integrated Gitea via a private webhook and the \texttt{jenkins-bot} identity; required check \texttt{vpn-dns-gateway/pipeline/pr-main} on \texttt{main}; recorded PR~\#15's pass, blocked failure, repair, review, and merge, the restart-persistence and IPv4/IPv6 exposure tests, and the plugin-update check. \textbf{Updated the Hosts table} (resize, Jenkins, \texttt{ci} DNS, Color Buttons retired) and \textbf{the Passwords table} (Jenkins administrators, \texttt{jenkins-bot} account and token, CI allowlist file). Added glossary terms, set the Assignment 6 title page and abstract, and noted the completed Assignment 5 merge. & Title and abstract, \ChapterRef{JenkinsCI}, \ChapterRef{HostsPasswords}, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\ October 21, 2026 / preparation & VS, CDX & Recorded core-test timing qualification and the Billy/Claude handoff; prepared the plugin/pipeline test and verified it locally after separating plugin resolution from runtime. The droplet run remains unverified. Hosts and Passwords tables are unchanged because no persistent Jenkins service or real integration credential was added. & \ChapterRef{AIPromptLog}\\ diff --git a/manual/latex/devopsJenkins.tex b/manual/latex/devopsJenkins.tex index 462defe..a0ab743 100644 --- a/manual/latex/devopsJenkins.tex +++ b/manual/latex/devopsJenkins.tex @@ -42,8 +42,8 @@ The versioned \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/420ba4c56b1c3efa50099a85c16c750a9815091a/deploy/jenkins/Dockerfile}{\texttt{deploy/jenkins/Dockerfile}} adds only \texttt{python3} (Python 3.13.5; Git 2.47.3 is already in the image) because builds run on the controller. Plugins come from the lockfile -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/420ba4c56b1c3efa50099a85c16c750a9815091a/deploy/jenkins/plugins.txt}{\texttt{deploy/jenkins/plugins.txt}}, -which pins every plugin's version and SHA-256. The image build downloads each +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/ac18f1118601157da356d09d4aa28c4084dc86eb/deploy/jenkins/plugins.txt}{\texttt{deploy/jenkins/plugins.txt}}, +which pins each listed plugin's version and SHA-256. The image build downloads each archive and verifies its hash. Table~\ref{Table:JenkinsPlugins} lists the plugins the pipeline relies on; the full lockfile holds 63 plugins including dependencies. @@ -410,12 +410,15 @@ Delivery~3 is a real failure. Gitea recorded \texttt{Post "http://jenkins:8080/gitea-webhook/post": context deadline exceeded (Client.Timeout exceeded while awaiting headers)}. Diagnosis: Jenkins did receive the event, because Gitea shows PR-15's status ``Build queued'' at -23:02:01, two seconds later, and run~1 passed at 23:02:18. Jenkins answered -after Gitea's delivery timeout because it was busy with the PR discovery on -its 0.75-CPU limit. No action was needed; had the build not started, -\emph{Redeliver} on that delivery, or \emph{Scan Multibranch Pipeline Now}, -would recover it, and raising Gitea's \texttt{webhook.DELIVER\_TIMEOUT} -would prevent repeats. General procedure if a push does not start a build: +23:02:01, two seconds later, and run~1 passed at 23:02:18. Gitea did not +receive a response before its delivery timeout. PR discovery under the +0.75-CPU limit is a suspected cause of the delay, not a measured diagnosis. +No action was needed because the build completed. If a build does not +start, inspect the delivery and Jenkins logs, then use \emph{Redeliver} +or \emph{Scan Multibranch Pipeline Now} after correcting the cause. +Raising Gitea's \texttt{webhook.DELIVER\_TIMEOUT} may help if slow responses +are confirmed, but does not guarantee successful delivery. +General procedure if a push does not start a build: (1) open \emph{Repository Settings $\rightarrow$ Webhooks $\rightarrow$ jenkins-ci $\rightarrow$ Recent Deliveries} and read the response; (2) ``can only call allowed HTTP @@ -467,11 +470,15 @@ raises \texttt{ValueError}. Expected passing output ends in \end{itemize} \textbf{Dependencies:} Python 3.13.5 and Git 2.47.3 come from the Debian packages in the Jenkins image; the tests use only the standard library. -\textbf{Clean run:} on any machine with Python 3, check out a commit and run +\textbf{Clean run:} on a machine with Python 3, clone the repository into a +new directory and check out the recorded commit ID of the run to reproduce. +From that repository root, run \texttt{python3 -m py\_compile pricing.py} then \texttt{python3 -m unittest discover -s tests -v} from the repository root. -In Jenkins, \emph{Build Now} on a branch or PR job repeats the run in a fresh -checkout of the same commit. +In Jenkins, \emph{Build Now} on a branch or PR job builds the revision selected +for that run. Verify the checked-out commit ID in its log; it may differ from +an earlier run after a new push. The pipeline's \texttt{checkout scm} step +does not explicitly clean the workspace. Figure~\ref{Figure:JenkinsStages} shows the distinct stage results of a run, here the deliberate failure, with the tested commit identified in its log. @@ -623,8 +630,8 @@ dependencies make 63 locked; Jenkins reports 66 installed, the other three being the theme plugins described in Section~\ref{Section:JenkinsQuality}, which this check did not cover.) One newer version exists (\texttt{workflow-api} \texttt{1413.v2ff1a\_5e720fa\_} $\rightarrow$ -\texttt{1429.v7a\_1b\_efb\_a\_f7c5}); no security warning matches any installed -version. The update was deferred: it is not a security fix and would change +\texttt{1429.v7a\_1b\_efb\_a\_f7c5}); no security warning matched the 63 +checked plugin versions. The update was deferred: it is not a security fix and would change the tested set. Updates are applied by regenerating the lockfile, rebuilding the image, and recreating the container.