TikZRefinery DevOps demo baseline
This directory imports the exact source checkpoint
f4e3193d49a98efcf2f16c2aa22d6085ebe70f36 from
https://github.com/Generic-Sun/TikZRefinery.git. Its application/report baseline
is 0.1.4-alpha. The senior-design repository remains the development home.
Its notices, author attribution and historical evidence are retained. No new
project-wide licence is granted by this import.
snapshot.json records all 435 original Git blob IDs, SHA-256 hashes and sizes.
tikzrefinery/ contains raw committed blobs, not the senior checkout's untracked
work or old package binaries. Git attributes preserve those bytes on Windows
and Linux. Run python demo/ci/verify-snapshot.py before and after a build.
Do not regenerate canonical PDFs or change product source during baseline verification.
The proposed provider-class naming correction remains reserved for a separate issue-linked demo increment after the baseline pipeline is verified. It is not part of this import. Keep that increment and the import distinguishable in Git. Neither a repository rename nor a commit/push is performed by these scripts.
Build identities
The upstream 0.1.4-alpha version and full source commit remain separate from
the demo's major.minor.changelist delivery identifier. Jenkins uses
1.0.<BUILD_NUMBER>. A command-line rehearsal defaults to 1.0.0 and explicitly
records that it is not a Jenkins run. It uses a separate rehearsal image name.
Keep build-info.json, delivery-info.json and upstream-snapshot.json with
the built application. BuildInfo reports the actual checkout seen by CMake;
an exported cloud rehearsal with no Git checkout truthfully reports that identity
as unavailable. Delivery metadata separately retains the upstream commit,
downstream commit or parent, modified state, input hashes and execution kind.
An old binary is never relabelled as the frozen source build.
Windows application and report checks
Use the already-installed matching Qt kit, CMake, Ninja, MinGW and TinyTeX:
./demo/ci/build-windows.ps1 -DeliveryVersion 1.0.0
The helper builds Release, runs all eight CTests, bundles the real rectangle DLL,
uses windeployqt for compiler/Qt dependencies and includes the matching offscreen
platform plugin for automated package checks. It refuses to overwrite a previous
package. Override tool paths or -OutputDirectory for another workstation.
The normal Windows platform plugin remains included for interactive use.
For a report rehearsal, copy the frozen tree into one task-local work directory
and run its documents/build-report.ps1 there with an explicit output directory.
Its diagram-index generation writes to that disposable copy. Use the existing
shared TinyTeX installation and the complete upstream sequence. Do not replace
the imported canonical PDFs or historical index.
Existing Droplet worker
The artifact-only Jenkinsfile uses the existing trusted delivery agent. It
does not bind registry or deployment credentials and does not deploy to the
pricing application environments. Its SCM definition must select reviewed
main; its first stage verifies ancestry before executing the build scripts.
Existing pricing release/recovery and manual-build jobs remain separate.
One-time administrator preparation:
sh demo/ci/prepare-images.sh
This verifies the existing manual compiler's full image ID, then builds a
Qt/CMake/compiler/Doxygen image and a separate runtime base on the existing
Droplet. Debian package versions are inventoried; rebuilding later may resolve
newer packages and produce different image IDs. toolchain.json records the
images actually verified for this baseline. The preparation output goes to
build/demo/toolchain-observed.json; review it before updating that record.
The ordinary pipeline refuses an unexpected local toolchain/runtime image ID.
Run stages sequentially from the checkout root:
sh demo/ci/run-cloud.sh native
sh demo/ci/run-cloud.sh report
sh demo/ci/run-cloud.sh architecture
DELIVERY_VERSION=1.0.0 sh demo/ci/run-cloud.sh package
The wrapper accounts for the delivery agent's named-volume workspace: Docker bind sources must use the volume's host path, not its container-visible path. Application/report containers have no network, a read-only checkout/root, dropped capabilities, a private temporary filesystem and bounded CPU/RAM/PIDs. Only their dedicated output directory is writable. Each run clears its staging artifacts and reports, retaining compiled caches and Jenkins' archived history; a failure must not upload an older run's successful output. Heavy stages are sequential; do not overlap them with another manual or delivery build on this single-CPU host.
The native stage compiles the application and real provider and runs all eight offscreen suites, including incompatible-module rejection. The report stage builds both editions with latexmk's bibliography/index/reference passes and checks the upstream source/figure index. Architecture output comes from C++ via Doxygen/Graphviz, distinct from the authored TikZ diagrams.
Packaging requires the eight passing suites, compiled report and generated
architecture. It builds a non-root application image, checks that its offscreen
event loop stays running, and emits an image archive, architecture ZIP, reports,
provenance and checksums under build/demo/artifacts/. Image names are immutable
within this workflow; select a new delivery version instead of overwriting one.
verify-artifacts.py checks every downloaded/staged checksum and the saved OCI
manifest, configuration and layer digests, plus the architecture ZIP's entry point.
It targets the existing Docker 29/containerd archive format and does not confuse
the engine's manifest ID with the separate configuration digest.
The Linux image is a desktop application container, not a web service. Its default offscreen backend permits headless checks; displaying a real Linux GUI requires an appropriate display backend. Use the freshly built Windows package for the classroom's interactive application view. GUI-process and automated tests do not establish complete product acceptance. The application image directs its writable home/font cache into the bounded temporary mount; its root filesystem remains read-only during the smoke check.
Verification boundary and current evidence
The task's ignored records are under build/evidence/demo-baseline-20261125/.
Windows Release passed eight suites. The fresh portable package loaded its
bundled Qt and rectangle module with the development toolchain absent from PATH.
Both report editions rebuilt and all 585 rendered pages matched the frozen
baseline at the comparison resolution. Cloud stage results are recorded as they
actually complete; command-line execution is not labelled as a Jenkins build.
A real Jenkins run must additionally prove SCM checkout, stage scheduling, JUnit display, artifact archiving/download and the corresponding source/version identity. Publish the reviewed baseline before selecting it in a job. The provider rename remains pending until that verification succeeds.
Demonstration and ownership
Use the timed demonstration script for the proposed speaker handoffs, configuration tour, two-tool SWOT and rubric evidence checklist. Finalize its live issue/change and build references after the baseline Jenkins run passes. The November 25 web-access record captures the authorized home-source addition without publishing the address.
The professor's stated evaluation scope is the DevOps workflow. Zammad remains a separate assignment and the unfinished VPN is not represented as implemented. The final demonstration must show an existing issue and planned-change comment, meaningful source change, commit/push, visible pipeline build/test/package, versioned output, configuration explanations and cloud load. Present a SWOT comparison of two tools actually used, such as Gitea Actions and Jenkins. Doxygen output is a candidate for the optional source-extraction bonus.
Per-stage CSVs sample the host CPU counters and memory available through the
cloud agent's /proc, plus free space on its workspace filesystem. These are
observations of the shared host, not proof every change was caused by this job.
Use the existing Grafana dashboard during rehearsal to show the build window.
Keep the complete demonstration, explanation and questions within 20 minutes.
No new Droplet or plan is required by this preparation; the existing paid host incurs transient build, storage and network use. Vincent owns the host and local runtime availability; Billy reviews group changes. Retain source, artifacts, test reports and required grading evidence. Remove only identified current-task build scratch after review. Never prune shared images/volumes, runner identities, older packages or unrelated coursework as part of demo cleanup.