Finalize Assignment 6 documentation corrections
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user