Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 5m41s
1171 lines
34 KiB
TeX
1171 lines
34 KiB
TeX
\chapter{Configuring and Running the DevOps Pipeline}
|
|
\label{chap:devops-pipeline}
|
|
|
|
\section{Purpose and Scope}
|
|
|
|
This chapter documents the configuration, implementation,
|
|
execution, and verification of the final DevOps pipeline
|
|
for the Startup Product project.
|
|
|
|
\section{DevOps Architecture}
|
|
|
|
The final project extends the existing Startup Product
|
|
infrastructure without replacing the established
|
|
production, staging, or monitoring services.
|
|
|
|
The architecture separates source management, continuous
|
|
integration, release packaging, deployment verification,
|
|
operational monitoring, and documentation generation.
|
|
|
|
\subsection{DevOps Toolchain}
|
|
|
|
\begin{itemize}
|
|
\item Gitea: self-hosted issue tracking and source control.
|
|
\item GitLab: comparative repository and CI/CD platform.
|
|
\item Git: version control and commit traceability.
|
|
\item Jenkins: automated application validation,
|
|
testing, and release packaging.
|
|
\item Node.js and Python: application testing runtimes.
|
|
\item Docker: isolated execution and deployment.
|
|
\item DigitalOcean: cloud execution infrastructure.
|
|
\item Caddy: HTTPS reverse proxy for existing services.
|
|
\item Prometheus and Node Exporter: metric collection.
|
|
\item Blackbox Exporter: HTTPS availability monitoring.
|
|
\item Grafana: visualization of operational metrics.
|
|
\item LaTeX and Gitea Actions: technical documentation
|
|
and automated manual compilation.
|
|
\end{itemize}
|
|
|
|
\subsection{DevOps V-Curve Mapping}
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|p{0.40\linewidth}|p{0.40\linewidth}|}
|
|
\hline
|
|
\textbf{Development activity} &
|
|
\textbf{Verification activity} \\
|
|
\hline
|
|
Requirements and issue tracking &
|
|
Acceptance criteria and issue review \\
|
|
\hline
|
|
Architecture design &
|
|
System verification and monitoring \\
|
|
\hline
|
|
Component design &
|
|
Integration and HTTP smoke tests \\
|
|
\hline
|
|
Source implementation &
|
|
JavaScript and Python unit tests \\
|
|
\hline
|
|
Build configuration &
|
|
Automated CI/CD execution \\
|
|
\hline
|
|
Release packaging &
|
|
ZIP integrity and SHA-256 verification \\
|
|
\hline
|
|
Cloud deployment &
|
|
Operational monitoring and feedback \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
\subsection{Application Delivery Architecture}
|
|
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\setlength{\fboxsep}{6pt}
|
|
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Issue Tracking: Gitea and GitLab}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Git Commit and Source Control}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Automated Jenkins CI/CD Pipeline}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
JavaScript and Python Validation and Testing}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Versioned ZIP Artifact and Integrity Verification}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Isolated Docker Deployment on DigitalOcean}}\\
|
|
$\downarrow$\\
|
|
\fbox{\parbox{0.78\linewidth}{\centering
|
|
Prometheus, Blackbox Exporter and Grafana}}
|
|
|
|
\caption{Forward architecture of the final DevOps
|
|
application delivery workflow.}
|
|
\label{fig:chapter8-delivery-architecture}
|
|
\end{figure}
|
|
|
|
\subsection{Infrastructure Constraints}
|
|
|
|
The cloud environment is a single-vCPU DigitalOcean
|
|
Droplet with limited memory and storage. Existing
|
|
container images and runtime dependencies were reused
|
|
to minimize resource consumption.
|
|
|
|
The demonstration deployment was isolated from the
|
|
existing production environment. No production promotion
|
|
was performed as part of the final-project release test.
|
|
|
|
\section{Issue Tracking and Source Control}
|
|
|
|
The final-project implementation was tracked through
|
|
Gitea issue \#15 and the comparative GitLab issue \#1.
|
|
Both issues documented the automated validation
|
|
requirements and acceptance criteria.
|
|
|
|
Development was isolated in the Git branch
|
|
\texttt{feature/15-final-project}, preserving the
|
|
existing main branch and previous assignment content.
|
|
|
|
\begin{itemize}
|
|
\item \texttt{570f024}: Initial final-project Jenkins pipeline.
|
|
\item \texttt{6cee97f}: Additional database health unit test.
|
|
\item \texttt{99fb0ad}: Automated Python tests and artifact cleanup.
|
|
\end{itemize}
|
|
|
|
The issue reference was included in commit messages
|
|
to establish traceability between requirements,
|
|
implementation, and verification.
|
|
|
|
\section{Jenkins Pipeline Configuration}
|
|
|
|
The dedicated Jenkins job is named
|
|
\texttt{startup-product-final-project}.
|
|
|
|
Its version-controlled pipeline definition is stored
|
|
in \texttt{Jenkinsfile.final-project}.
|
|
|
|
The job retrieves the final-project feature branch
|
|
from Gitea and automatically detects source changes
|
|
through SCM polling.
|
|
|
|
\subsection{Automatic Pipeline Trigger}
|
|
|
|
\begin{verbatim}
|
|
H/5 * * * *
|
|
\end{verbatim}
|
|
|
|
The polling configuration allows Jenkins to detect
|
|
new commits without requiring manual build execution.
|
|
|
|
\subsection{Pipeline Stages}
|
|
|
|
The enhanced pipeline contains nine stages:
|
|
|
|
\begin{enumerate}
|
|
\item Checkout source code.
|
|
\item Verify build tools.
|
|
\item JavaScript syntax validation.
|
|
\item JavaScript unit tests.
|
|
\item Python syntax validation.
|
|
\item Python unit tests.
|
|
\item Versioned package generation.
|
|
\item Package integrity verification.
|
|
\item Artifact archiving and fingerprinting.
|
|
\end{enumerate}
|
|
|
|
\subsection{Verified Build History}
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|l|l|l|l|}
|
|
\hline
|
|
\textbf{Build} & \textbf{Trigger} &
|
|
\textbf{Release} & \textbf{Result} \\
|
|
\hline
|
|
1 & Manual & 1.0.1 & Success \\
|
|
2 & SCM change & 1.0.2 & Success \\
|
|
4 & SCM change & 1.0.4 & Success \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
Build 4 successfully executed all nine stages using
|
|
commit \texttt{99fb0ad}.
|
|
|
|
\section{Automated Validation and Testing}
|
|
|
|
The Jenkins environment provided Node.js 20.19.2,
|
|
npm 9.2.0, and Python 3.13.5.
|
|
|
|
\subsection{JavaScript Unit Tests}
|
|
|
|
The JavaScript validation and tests were executed
|
|
using the following commands:
|
|
|
|
\begin{verbatim}
|
|
npm run check
|
|
npm test
|
|
\end{verbatim}
|
|
|
|
Three unit tests verified the application health logic
|
|
for connected, disconnected, and missing database status.
|
|
|
|
All three tests passed.
|
|
|
|
\subsection{Python Unit Tests}
|
|
|
|
Python syntax validation was performed using:
|
|
|
|
\begin{verbatim}
|
|
python3 -m py_compile app.py test_app.py
|
|
\end{verbatim}
|
|
|
|
The Python unit tests were executed using:
|
|
|
|
\begin{verbatim}
|
|
python3 -m unittest -v test_app
|
|
\end{verbatim}
|
|
|
|
The tests verified the health and pricing endpoints.
|
|
Both tests passed in Jenkins Build 4.
|
|
|
|
\subsection{Python Dependency Configuration}
|
|
|
|
To avoid additional package installations on the
|
|
resource-constrained Droplet, existing Python
|
|
dependencies were copied from the staging runtime
|
|
into a dedicated Jenkins dependency directory.
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|l|l|}
|
|
\hline
|
|
\textbf{Dependency} & \textbf{Version} \\
|
|
\hline
|
|
Flask & 3.1.3 \\
|
|
Werkzeug & 3.1.9 \\
|
|
Jinja2 & 3.1.6 \\
|
|
MarkupSafe & 3.0.4 \\
|
|
ItsDangerous & 2.2.0 \\
|
|
Click & 8.5.1 \\
|
|
Blinker & 1.9.0 \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
The dependency directory consumed approximately
|
|
5.4 MB of temporary storage during provisioning.
|
|
Compatibility was verified through imports and
|
|
successful execution of both Python unit tests.
|
|
|
|
This approach requires the dependency provisioning
|
|
procedure to be repeated if the Jenkins environment
|
|
is rebuilt without its persistent data.
|
|
|
|
\subsection{Combined Automated Test Results}
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|l|r|r|}
|
|
\hline
|
|
\textbf{Test suite} & \textbf{Passed} & \textbf{Failed} \\
|
|
\hline
|
|
JavaScript & 3 & 0 \\
|
|
Python & 2 & 0 \\
|
|
\hline
|
|
Total & 5 & 0 \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
\section{Versioned Release Artifacts}
|
|
|
|
The Jenkins pipeline generates a release version
|
|
using the Major.Minor.BuildNumber convention.
|
|
|
|
\begin{verbatim}
|
|
VERSION="1.0.${BUILD_NUMBER}"
|
|
\end{verbatim}
|
|
|
|
For the demonstration, the generated release was:
|
|
|
|
\begin{verbatim}
|
|
startup-product-1.0.4.zip
|
|
\end{verbatim}
|
|
|
|
The package included application source code,
|
|
unit tests, dependency requirements, Dockerfile,
|
|
release version, and source commit metadata.
|
|
|
|
The generated ZIP was validated using Python's
|
|
ZIP integrity testing functionality and archived
|
|
with Jenkins artifact fingerprinting.
|
|
|
|
The SHA-256 checksum was also recorded during
|
|
deployment verification.
|
|
|
|
Previously generated workspace artifacts were
|
|
removed before creating each new release, preventing
|
|
older packages from being archived alongside the
|
|
current build.
|
|
|
|
The build number provides release traceability
|
|
through the accompanying COMMIT metadata. It is
|
|
not a literal Git commit count.
|
|
|
|
\section{Cloud Deployment and Verification}
|
|
|
|
Release 1.0.4 was extracted from the Jenkins-generated
|
|
artifact and executed in an isolated Docker container
|
|
on DigitalOcean.
|
|
|
|
The deployment reused an existing local runtime
|
|
image without downloading additional images.
|
|
|
|
The initial HTTP smoke test encountered a connection
|
|
refusal. The subsequent attempt explicitly configured
|
|
the Flask listening address and port and introduced
|
|
a readiness check.
|
|
|
|
Both HTTP smoke tests passed during the corrected
|
|
deployment.
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|l|l|}
|
|
\hline
|
|
\textbf{Verification} & \textbf{Result} \\
|
|
\hline
|
|
Health endpoint & HTTP 200 \\
|
|
Pricing endpoint & HTTP 200 \\
|
|
API version & v1 \\
|
|
Package version & 1.0.4 \\
|
|
Basic plan & \$10 \\
|
|
Pro plan & \$25 \\
|
|
Enterprise plan & \$50 \\
|
|
Container memory & 14.33 MiB \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
The demonstration completed on December 1, 2026,
|
|
at 02:01:44 UTC.
|
|
|
|
The temporary deployment was designed for validation
|
|
rather than production promotion. Existing production
|
|
and staging services were not replaced.
|
|
|
|
\section{Operational Monitoring and Workload Verification}
|
|
|
|
Prometheus, Node Exporter, Blackbox Exporter, and
|
|
Grafana provided infrastructure and HTTPS service
|
|
monitoring.
|
|
|
|
The monitored services included Gitea, Jenkins,
|
|
and the existing production Pricing API.
|
|
|
|
A controlled infrastructure workload was executed
|
|
inside an isolated Docker container with the following
|
|
resource limits:
|
|
|
|
\begin{itemize}
|
|
\item Workload duration: 30 seconds.
|
|
\item CPU allocation: 0.10 CPU.
|
|
\item Memory limit: 32 MB.
|
|
\item Network access: disabled.
|
|
\item Container filesystem: read-only.
|
|
\end{itemize}
|
|
|
|
The workload completed 1,101,427 SHA-256 hashing
|
|
operations. Execution began at 02:05:21 UTC and
|
|
completed at 02:05:58 UTC on December 1, 2026.
|
|
|
|
Post-workload Grafana screenshots showed continued
|
|
HTTPS availability at the observed probe samples.
|
|
|
|
The latest CPU reading was approximately 61 percent,
|
|
compared with approximately 73 percent in the
|
|
baseline screenshot. These observations do not
|
|
establish a causal relationship between the
|
|
controlled workload and the CPU change.
|
|
|
|
The experiment demonstrated cloud execution and
|
|
operational monitoring rather than application
|
|
throughput benchmarking.
|
|
|
|
\section{Infrastructure Resource Optimization}
|
|
|
|
The limited Droplet storage required careful
|
|
management of generated Jenkins workspaces.
|
|
|
|
Two redundant repository checkouts consumed
|
|
approximately 233 MB each.
|
|
|
|
After checking repository state and ensuring that
|
|
Jenkins was idle, the redundant workspaces were
|
|
removed without targeting the dedicated final-project
|
|
workspace or Docker images.
|
|
|
|
\begin{center}
|
|
\begin{tabular}{|l|l|l|}
|
|
\hline
|
|
\textbf{Metric} & \textbf{Before} & \textbf{After} \\
|
|
\hline
|
|
Disk utilization & 93 percent & 88 percent \\
|
|
Available storage & 639 MB & 1.1 GB \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
Approximately 466 MB of workspace storage was
|
|
recovered.
|
|
|
|
Branch-specific automatic SCM suppression was
|
|
configured in the older multibranch pipeline to
|
|
reduce duplicate execution.
|
|
|
|
The duplicate workspace did not return during the
|
|
subsequent final-project build. This observation
|
|
does not independently confirm that no redundant
|
|
build was scheduled.
|
|
|
|
An earlier branch-indexing operation also reported
|
|
removal of orphaned pull request jobs. Preservation
|
|
of their historical build records was not verified.
|
|
|
|
\section{Gitea and GitLab Practical Comparison}
|
|
|
|
Two DevOps platform configurations were evaluated
|
|
through practical implementation rather than
|
|
theoretical feature comparison alone.
|
|
|
|
The primary environment used self-hosted Gitea
|
|
and Jenkins on DigitalOcean. The comparative
|
|
environment used GitLab.com and GitLab CI/CD.
|
|
|
|
\subsection{Comparative GitLab Implementation}
|
|
|
|
A private GitLab repository was created using a
|
|
selected subset of the Startup Product application.
|
|
|
|
The comparative repository contained application
|
|
source code, unit tests, dependency requirements,
|
|
a Dockerfile, and pipeline configuration.
|
|
|
|
Existing infrastructure credentials and unrelated
|
|
operational evidence were excluded from the
|
|
comparative repository.
|
|
|
|
GitLab issue \#1 documented automated application
|
|
validation requirements.
|
|
|
|
A feature branch was created, and the GitLab CI/CD
|
|
configuration was introduced through a merge request.
|
|
|
|
The comparative pipeline implemented three stages:
|
|
|
|
\begin{enumerate}
|
|
\item Application syntax validation.
|
|
\item JavaScript and Python unit testing.
|
|
\item Versioned release artifact generation.
|
|
\end{enumerate}
|
|
|
|
The initial pipeline was blocked by account
|
|
verification requirements. After verification,
|
|
the pipeline successfully executed all five jobs.
|
|
|
|
Two JavaScript and two Python unit tests passed.
|
|
|
|
Merge request \#1 was subsequently merged, and
|
|
an automatic main-branch pipeline completed
|
|
successfully.
|
|
|
|
\subsection{Practical Execution Results}
|
|
|
|
\begin{center}
|
|
\small
|
|
\begin{tabular}{|p{0.26\linewidth}|
|
|
p{0.29\linewidth}|
|
|
p{0.29\linewidth}|}
|
|
\hline
|
|
\textbf{Capability} &
|
|
\textbf{Gitea and Jenkins} &
|
|
\textbf{GitLab} \\
|
|
\hline
|
|
Hosting & DigitalOcean & GitLab.com \\
|
|
\hline
|
|
Issue tracking & Issue 15 & Issue 1 \\
|
|
\hline
|
|
Source control & Verified & Verified \\
|
|
\hline
|
|
Pipeline configuration &
|
|
Jenkinsfile & GitLab CI YAML \\
|
|
\hline
|
|
Automatic triggering & Verified & Verified \\
|
|
\hline
|
|
Unit tests & 5 passed & 4 passed \\
|
|
\hline
|
|
Versioned release & 1.0.4 & 1.0.2 \\
|
|
\hline
|
|
Artifact integrity & Verified & Verified \\
|
|
\hline
|
|
Cloud deployment & Demonstrated & Not tested \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
\subsection{Pipeline Execution Observations}
|
|
|
|
The initial successful dedicated Jenkins build
|
|
completed in approximately 152 seconds.
|
|
|
|
The successful GitLab main-branch pipeline
|
|
completed in approximately 83 seconds.
|
|
|
|
These measurements were obtained from different
|
|
execution environments and pipeline workloads.
|
|
They do not constitute a controlled performance
|
|
benchmark and cannot establish that one platform
|
|
is consistently faster than the other.
|
|
|
|
GitLab provided an integrated repository,
|
|
issue tracking, merge request, and CI/CD workflow.
|
|
|
|
The Gitea and Jenkins configuration provided
|
|
greater control over the underlying infrastructure,
|
|
but required additional operational maintenance.
|
|
|
|
\section{SWOT Analysis}
|
|
|
|
\subsection{Gitea with Jenkins}
|
|
|
|
\paragraph{Strengths}
|
|
|
|
\begin{itemize}
|
|
\item Direct control over repository hosting,
|
|
pipeline configuration, and infrastructure.
|
|
\item Flexible integration with existing Docker,
|
|
deployment, and monitoring services.
|
|
\item Customizable build and release workflows.
|
|
\item Reuse of existing self-hosted infrastructure.
|
|
\end{itemize}
|
|
|
|
\paragraph{Weaknesses}
|
|
|
|
\begin{itemize}
|
|
\item Separate administration of Gitea and Jenkins.
|
|
\item Limited CPU, memory, and storage on the
|
|
existing cloud server.
|
|
\item Additional configuration required for
|
|
repository integration and build triggering.
|
|
\item Greater infrastructure maintenance overhead.
|
|
\end{itemize}
|
|
|
|
\paragraph{Opportunities}
|
|
|
|
\begin{itemize}
|
|
\item Introduce dedicated build agents.
|
|
\item Automate infrastructure provisioning
|
|
and dependency management.
|
|
\item Improve workspace retention and cleanup.
|
|
\item Expand deployment and monitoring automation.
|
|
\end{itemize}
|
|
|
|
\paragraph{Threats}
|
|
|
|
\begin{itemize}
|
|
\item Cloud server outages and resource exhaustion.
|
|
\item Security exposure from outdated components
|
|
or incorrect access configuration.
|
|
\item Accidental duplicate pipeline execution.
|
|
\item Loss of operational data without adequate
|
|
backup and retention policies.
|
|
\end{itemize}
|
|
|
|
\subsection{GitLab}
|
|
|
|
\paragraph{Strengths}
|
|
|
|
\begin{itemize}
|
|
\item Integrated issue tracking, repository
|
|
management, merge requests, and CI/CD.
|
|
\item Hosted build execution reduces local
|
|
infrastructure requirements.
|
|
\item Declarative pipeline configuration.
|
|
\item Centralized pipeline and artifact visibility.
|
|
\end{itemize}
|
|
|
|
\paragraph{Weaknesses}
|
|
|
|
\begin{itemize}
|
|
\item Hosted execution may require account
|
|
verification.
|
|
\item Usage limits and feature availability may
|
|
depend on the subscription arrangement.
|
|
\item Reduced direct control over hosted
|
|
runner infrastructure.
|
|
\item Migration requires adapting existing
|
|
pipeline configurations.
|
|
\end{itemize}
|
|
|
|
\paragraph{Opportunities}
|
|
|
|
\begin{itemize}
|
|
\item Standardize team development workflows.
|
|
\item Expand integrated security and quality checks
|
|
where available under the selected plan.
|
|
\item Improve collaboration through merge requests.
|
|
\item Reduce self-hosted infrastructure maintenance.
|
|
\end{itemize}
|
|
|
|
\paragraph{Threats}
|
|
|
|
\begin{itemize}
|
|
\item Dependency on an external hosted provider.
|
|
\item Potential subscription and usage costs.
|
|
\item Hosted service interruptions.
|
|
\item Changes to service limits or feature access.
|
|
\end{itemize}
|
|
|
|
\subsection{Platform Recommendation}
|
|
|
|
Gitea with Jenkins remains the primary platform
|
|
for this project because it integrates with
|
|
the established DigitalOcean deployment and
|
|
monitoring infrastructure.
|
|
|
|
GitLab demonstrated a viable alternative with
|
|
an integrated development and CI/CD workflow.
|
|
|
|
The comparison supports retaining the existing
|
|
Gitea and Jenkins implementation while adopting
|
|
improvements in pipeline standardization,
|
|
artifact management, and operational automation.
|
|
|
|
This recommendation is specific to the project
|
|
environment and is not a universal ranking of
|
|
the two platforms.
|
|
|
|
\section{Reverse Documentation}
|
|
|
|
Reverse documentation was generated directly from
|
|
the existing Python application and unit-test source
|
|
code using Doxygen and Graphviz.
|
|
|
|
\subsection{Tool Configuration}
|
|
|
|
The documentation environment used Doxygen 1.18.0
|
|
and Graphviz 16.1.2 on the local MacBook.
|
|
|
|
The version-controlled configuration is stored in:
|
|
|
|
\begin{verbatim}
|
|
manual/reverse-docs/Doxyfile
|
|
\end{verbatim}
|
|
|
|
The selected source files were:
|
|
|
|
\begin{verbatim}
|
|
pricing-service/app.py
|
|
pricing-service/test_app.py
|
|
\end{verbatim}
|
|
|
|
The configuration enabled source browsing, HTML
|
|
generation, LaTeX generation, inheritance diagrams,
|
|
and collaboration diagrams.
|
|
|
|
\subsection{Documentation Generation}
|
|
|
|
The documentation was generated using:
|
|
|
|
\begin{verbatim}
|
|
doxygen manual/reverse-docs/Doxyfile
|
|
\end{verbatim}
|
|
|
|
The generation process successfully completed all
|
|
six Graphviz graph-generation tasks.
|
|
|
|
Both HTML and LaTeX documentation outputs were
|
|
produced. The generated documentation occupied
|
|
approximately 852 KB.
|
|
|
|
\subsection{Generated API Documentation}
|
|
|
|
Doxygen extracted the application namespace,
|
|
health and pricing functions, variables, and
|
|
source code references.
|
|
|
|
The generated documentation provides traceability
|
|
between the implementation and its technical
|
|
reference material.
|
|
|
|
\subsection{Generated Relationship Diagrams}
|
|
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\includegraphics[width=0.75\linewidth]
|
|
{img/chapter8-reverse-docs/test-inheritance.png}
|
|
\caption{Automatically generated inheritance
|
|
diagram for the PricingServiceTests class.}
|
|
\label{fig:chapter8-test-inheritance}
|
|
\end{figure}
|
|
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\includegraphics[width=0.75\linewidth]
|
|
{img/chapter8-reverse-docs/test-collaboration.png}
|
|
\caption{Automatically generated collaboration
|
|
diagram for the application test class.}
|
|
\label{fig:chapter8-test-collaboration}
|
|
\end{figure}
|
|
|
|
\begin{figure}[htbp]
|
|
\centering
|
|
\includegraphics[width=0.75\linewidth]
|
|
{img/chapter8-reverse-docs/class-hierarchy.png}
|
|
\caption{Class hierarchy generated directly
|
|
from the selected Python source files.}
|
|
\label{fig:chapter8-class-hierarchy}
|
|
\end{figure}
|
|
|
|
\subsection{Forward and Reverse Documentation}
|
|
|
|
Forward documentation describes the planned
|
|
architecture, toolchain, and delivery workflow.
|
|
|
|
Reverse documentation derives technical
|
|
reference material from the implemented source
|
|
code.
|
|
|
|
Together, these approaches support traceability
|
|
between system design and implementation.
|
|
|
|
The generated graphs represent the relationships
|
|
detected in the selected Python source files,
|
|
rather than the complete deployment infrastructure.
|
|
|
|
\clearpage
|
|
|
|
\section{Project References}
|
|
|
|
The following resources provide traceability between
|
|
the project requirements, source code, automated
|
|
builds, release artifacts, and monitoring results.
|
|
|
|
\begin{itemize}
|
|
|
|
\item Gitea source repository:
|
|
|
|
\url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}
|
|
|
|
\item Gitea final-project issue:
|
|
|
|
\url{https://git.nageshwaran.dev/SSW590-Startup/startup-product/issues/15}
|
|
|
|
\item Jenkins final-project pipeline:
|
|
|
|
\url{https://ci.nageshwaran.dev/job/startup-product-final-project/}
|
|
|
|
\item Verified Jenkins Build 4:
|
|
|
|
\url{https://ci.nageshwaran.dev/job/startup-product-final-project/4/}
|
|
|
|
\item GitLab comparative repository:
|
|
|
|
\url{https://gitlab.com/ssw590-devops-comparison/startup-product}
|
|
|
|
\item Grafana monitoring:
|
|
|
|
\url{https://monitor.nageshwaran.dev/}
|
|
|
|
\item Existing production Pricing API:
|
|
|
|
\url{https://pricing.nageshwaran.dev/health}
|
|
|
|
\end{itemize}
|
|
|
|
Access to private repositories, build records, and
|
|
monitoring dashboards requires appropriate permissions.
|
|
|
|
\section{Live Demonstration Procedure}
|
|
|
|
The final presentation demonstrates the relationship
|
|
between requirements, source changes, automated
|
|
verification, release packaging, documentation,
|
|
deployment, and operational monitoring.
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Open the project issue and review its
|
|
acceptance criteria.
|
|
|
|
\item Make a small, controlled source-code or
|
|
documentation change in the final-project branch.
|
|
|
|
\item Commit the change with an issue reference
|
|
and push it to Gitea.
|
|
|
|
\item Observe the automatically triggered Jenkins
|
|
pipeline and inspect its execution stages.
|
|
|
|
\item Verify JavaScript and Python unit-test results.
|
|
|
|
\item Inspect the generated versioned ZIP artifact
|
|
and its associated commit metadata.
|
|
|
|
\item Demonstrate automated LaTeX manual compilation
|
|
through the configured documentation workflow.
|
|
|
|
\item Verify isolated cloud deployment using
|
|
the generated application artifact.
|
|
|
|
\item Inspect the Grafana monitoring dashboard
|
|
and explain the recorded resource changes.
|
|
|
|
\item Present the Gitea and GitLab comparison,
|
|
SWOT analysis, and source-generated documentation.
|
|
|
|
\end{enumerate}
|
|
|
|
The demonstration must avoid replacing the existing
|
|
production services or generating excessive load
|
|
on the resource-constrained cloud server.
|
|
|
|
\section{Results and Limitations}
|
|
|
|
The final-project application pipeline successfully
|
|
executed nine stages and five automated unit tests.
|
|
|
|
Release 1.0.4 was generated, archived, verified,
|
|
and executed in an isolated cloud container.
|
|
|
|
Both HTTP smoke tests passed. Infrastructure
|
|
monitoring and a controlled workload were also
|
|
demonstrated.
|
|
|
|
The comparative GitLab implementation successfully
|
|
executed its validation, testing, and packaging
|
|
workflow.
|
|
|
|
The reverse documentation was generated directly
|
|
from the selected Python source files.
|
|
|
|
The application deployment demonstration was
|
|
performed separately from the Jenkins build.
|
|
It was not an automated production promotion.
|
|
|
|
The cloud workload results are observational
|
|
and do not establish a controlled performance
|
|
benchmark.
|
|
|
|
Automated documentation compilation must be
|
|
verified separately before final submission.
|
|
|
|
|
|
\section{Implementation Evidence}
|
|
|
|
The following figures preserve authentic implementation
|
|
evidence collected during the final-project activities
|
|
on November 30, 2026 (EST).
|
|
|
|
The screenshots document configuration, successful
|
|
execution, troubleshooting, verification, and results.
|
|
|
|
\clearpage
|
|
\subsection{Issue Tracking and Source Control}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/final-project-isolated-worktree-20261130.png}
|
|
\caption{Final project isolated worktree}
|
|
\label{fig:chapter8-evidence-1}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitea-issue-15-comment-20261130.png}
|
|
\caption{Gitea issue 15 comment}
|
|
\label{fig:chapter8-evidence-2}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitea-issue-15-created-20261130.png}
|
|
\caption{Gitea issue 15 created}
|
|
\label{fig:chapter8-evidence-3}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-issue-01-comment-20261130.png}
|
|
\caption{Gitlab issue 01 comment}
|
|
\label{fig:chapter8-evidence-4}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-issue-01-created-20261130.png}
|
|
\caption{Gitlab issue 01 created}
|
|
\label{fig:chapter8-evidence-5}
|
|
\end{figure}
|
|
|
|
\clearpage
|
|
\subsection{GitLab Comparative Implementation}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-all-jobs-passed-20261130.png}
|
|
\caption{Gitlab all jobs passed}
|
|
\label{fig:chapter8-evidence-6}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-artifact-download-20261130.png}
|
|
\caption{Gitlab artifact download}
|
|
\label{fig:chapter8-evidence-7}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-artifact-integrity-20261130.png}
|
|
\caption{Gitlab artifact integrity}
|
|
\label{fig:chapter8-evidence-8}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-artifact-version-verification-20261130.png}
|
|
\caption{Gitlab artifact version verification}
|
|
\label{fig:chapter8-evidence-9}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-javascript-tests-passed-20261130.png}
|
|
\caption{Gitlab javascript tests passed}
|
|
\label{fig:chapter8-evidence-10}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-main-pipeline-passed-20261130.png}
|
|
\caption{Gitlab main pipeline passed}
|
|
\label{fig:chapter8-evidence-11}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-merge-request-01-created-20261130.png}
|
|
\caption{Gitlab merge request 01 created}
|
|
\label{fig:chapter8-evidence-12}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-merge-request-01-diff-part1-20261130.png}
|
|
\caption{Gitlab merge request 01 diff part1}
|
|
\label{fig:chapter8-evidence-13}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-merge-request-01-diff-part2-20261130.png}
|
|
\caption{Gitlab merge request 01 diff part2}
|
|
\label{fig:chapter8-evidence-14}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-merge-request-01-merged-20261130.png}
|
|
\caption{Gitlab merge request 01 merged}
|
|
\label{fig:chapter8-evidence-15}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-merge-request-01-ready-20261130.png}
|
|
\caption{Gitlab merge request 01 ready}
|
|
\label{fig:chapter8-evidence-16}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-pipeline-passed-20261130.png}
|
|
\caption{Gitlab pipeline passed}
|
|
\label{fig:chapter8-evidence-17}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-pipeline-running-20261130.png}
|
|
\caption{Gitlab pipeline running}
|
|
\label{fig:chapter8-evidence-18}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-pipeline-verification-blocked-20261130.png}
|
|
\caption{Gitlab pipeline verification blocked}
|
|
\label{fig:chapter8-evidence-19}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/gitlab-python-tests-passed-20261130.png}
|
|
\caption{Gitlab python tests passed}
|
|
\label{fig:chapter8-evidence-20}
|
|
\end{figure}
|
|
|
|
\clearpage
|
|
\subsection{Jenkins Continuous Integration}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-build-4-success-artifacts-20261130.png}
|
|
\caption{Jenkins build 4 success artifacts}
|
|
\label{fig:chapter8-evidence-21}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-build4-stages-checkout-validation.png}
|
|
\caption{Jenkins build4 stages checkout validation}
|
|
\label{fig:chapter8-evidence-22}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-build4-stages-package-archive.png}
|
|
\caption{Jenkins build4 stages package archive}
|
|
\label{fig:chapter8-evidence-23}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-build4-stages-unit-tests.png}
|
|
\caption{Jenkins build4 stages unit tests}
|
|
\label{fig:chapter8-evidence-24}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-dashboard-restored-20261130.png}
|
|
\caption{Jenkins dashboard restored}
|
|
\label{fig:chapter8-evidence-25}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-existing-ci-history-20261130.png}
|
|
\caption{Jenkins existing ci history}
|
|
\label{fig:chapter8-evidence-26}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-existing-scm-configuration-20261130.png}
|
|
\caption{Jenkins existing scm configuration}
|
|
\label{fig:chapter8-evidence-27}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-existing-script-configuration-20261130.png}
|
|
\caption{Jenkins existing script configuration}
|
|
\label{fig:chapter8-evidence-28}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-python-dependencies-tests-passed-20261130.png}
|
|
\caption{Jenkins python dependencies tests passed}
|
|
\label{fig:chapter8-evidence-29}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-python-integration-commit-push-20261130.png}
|
|
\caption{Jenkins python integration commit push}
|
|
\label{fig:chapter8-evidence-30}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/jenkins-python-stage-git-diff-20261130.png}
|
|
\caption{Jenkins python stage git diff}
|
|
\label{fig:chapter8-evidence-31}
|
|
\end{figure}
|
|
|
|
\clearpage
|
|
\subsection{Release Packaging and Cloud Deployment}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/release-1.0.4-cloud-deployment-passed-20261130.png}
|
|
\caption{Release 1.0.4 cloud deployment passed}
|
|
\label{fig:chapter8-evidence-32}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/release-1.0.4-integrity-storage-verification-20261130.png}
|
|
\caption{Release 1.0.4 integrity storage verification}
|
|
\label{fig:chapter8-evidence-33}
|
|
\end{figure}
|
|
|
|
\clearpage
|
|
\subsection{Operational Monitoring and Resource Optimization}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/controlled-cloud-workload-completed-20261130.png}
|
|
\caption{Controlled cloud workload completed}
|
|
\label{fig:chapter8-evidence-34}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/droplet-disk-93-percent-before-cleanup-20261130.png}
|
|
\caption{Droplet disk 93 percent before cleanup}
|
|
\label{fig:chapter8-evidence-35}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/grafana-baseline-cloud-resource-metrics-20261130.png}
|
|
\caption{Grafana baseline cloud resource metrics}
|
|
\label{fig:chapter8-evidence-36}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/grafana-baseline-https-availability-20261130.png}
|
|
\caption{Grafana baseline https availability}
|
|
\label{fig:chapter8-evidence-37}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/grafana-post-workload-cloud-resources-20261130.png}
|
|
\caption{Grafana post workload cloud resources}
|
|
\label{fig:chapter8-evidence-38}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/grafana-post-workload-https-availability-20261130.png}
|
|
\caption{Grafana post workload https availability}
|
|
\label{fig:chapter8-evidence-39}
|
|
\end{figure}
|
|
|
|
\clearpage
|
|
\subsection{Reverse Documentation}
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/doxygen-generated-api-documentation-20261130.png}
|
|
\caption{Doxygen generated api documentation}
|
|
\label{fig:chapter8-evidence-40}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/doxygen-graphviz-generation-verified-20261130.png}
|
|
\caption{Doxygen graphviz generation verified}
|
|
\label{fig:chapter8-evidence-41}
|
|
\end{figure}
|
|
|
|
\begin{figure}[H]
|
|
\centering
|
|
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{img/chapter8-evidence/mac-doxygen-graphviz-installation-20261130.png}
|
|
\caption{Mac doxygen graphviz installation}
|
|
\label{fig:chapter8-evidence-42}
|
|
\end{figure}
|