Files
vpn-dns-gateway/demo/DEMO_SCRIPT.md
T
vsun1 d9a616cdfb
vpn-dns-gateway/pipeline/pr-main This commit looks good
Merge security updates into demo baseline and add rehearsal guide
2026-11-26 00:04:59 -05:00

296 lines
18 KiB
Markdown

# TikZRefinery DevOps demonstration script
Vincent Sun and Billy Ye | SSW 590 | December 2, 2026
Plan for **16 minutes of presentation and 4 minutes for questions or delays**.
Demonstrate an issue becoming a reviewed source change, a cloud build, automated
test results and a versioned application artifact. TikZRefinery supplies the C++/Qt
workload; Gitea, Jenkins and Grafana supply the workflow and operational view.
This is a rehearsal plan. Before the final rehearsal, complete the reviewed
baseline Jenkins run and record the actual issue, change, job URL and build number.
The proposed provider naming refactor remains a candidate from the senior-project
handoff. Prepare its issue/comment and patch only after that baseline succeeds.
Zammad is a separate assignment. The unfinished VPN is outside this demonstration.
## Preparation before the presentation
Suggested roles: Vincent operates Git, Jenkins and the application; Billy explains
configuration and the tool comparison, and performs his own peer review. Agree on
the split together and rehearse the handovers. Approval must reflect Billy's actual
review, even during the timed demonstration.
Complete these steps before calling the walkthrough ready:
- Merge the reviewed security and baseline PRs, preserving both manual records.
Their current references are [security PR 30](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/30)
and [baseline PR 31](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/31).
- Configure the separate artifact job to load `demo/Jenkinsfile` from reviewed
`main`. Run it once and verify SCM checkout, stage execution, JUnit display,
artifact archiving, a downloaded artifact and its provenance/checksum. The
existing PR check and the new artifact job are separate checks.
- After that baseline passes, agree on the live issue/change and rehearse the
feature-branch, review, merge and artifact-build sequence. Reserve the actual
demonstration commit/push for the assessed workflow.
- Preserve the original snapshot manifest. The current verifier deliberately
rejects any changed imported byte. An intentional product increment needs an
explicit, tested provenance record for its changed files; do not simply disable
verification or continue claiming all files are unchanged from the original.
- Record the real demo issue URL, branch, expected behavior, baseline build URL,
artifact job URL and last successful fallback build. These values are pending.
- Sign in to Gitea, Jenkins and Grafana privately before screen sharing. Check Git
authentication beforehand; pause sharing if a password/token prompt appears.
- Test HTTPS from the actual classroom network. The cloud workers avoid the
laptop-to-Droplet SSH connection that previously failed on school Wi-Fi.
- Ensure the trusted agent is online and idle, toolchain images are present and
disk/memory headroom is adequate. Avoid overlapping manual and delivery builds
on this single-CPU host. Use normal build settings; do not clear shared caches.
- Open the issue, source diff, PR, artifact job, Grafana dashboard and artifact
output tabs in advance. Use the same build number throughout the presentation.
- Keep a completed Jenkins run and its downloaded artifacts available as a
clearly labelled fallback. Earlier SSH rehearsals are not Jenkins results.
The November 25 cloud rehearsal sampled approximately 146 seconds for native
build/tests, 75 seconds for reports, 10 seconds for architecture and 49 seconds for
the final package. These are sampled phase spans, not a measured Jenkins duration.
Measure the real job before accepting this timing plan.
## Timed walkthrough
| Time | Lead | Show and do |
| --- | --- | --- |
| 0:00-1:00 | Vincent | Introduce the application and the issue-to-artifact workflow. |
| 1:00-2:00 | Vincent | Select the existing demo issue and post the planned-change comment. |
| 2:00-4:00 | Both | Make the agreed meaningful change, inspect the diff, commit/push, then review and merge through Gitea. |
| 4:00-4:30 | Vincent | Trigger the artifact job from the reviewed main revision. |
| 4:30-6:45 | Billy | Explain configuration while the build runs. |
| 6:45-8:45 | Billy | Present the two-tool SWOT chart below. |
| 8:45-10:00 | Vincent | Show live stages and cloud CPU/memory observations. |
| 10:00-12:00 | Vincent | Show tests, compiled report, versioned image archive and source identity. |
| 12:00-13:15 | Billy | Open the source-generated architecture output for the bonus. |
| 13:15-14:30 | Vincent | Illustrate the desktop workload using the verified Windows package. |
| 14:30-16:00 | Both | Recap traceability, protections and measured limits. |
| 16:00-20:00 | Both | Questions and timing reserve. |
### Opening and issue tracking
**Vincent:** "TikZRefinery is a desktop editor for a supported subset of TikZ. We
use a frozen senior-project checkpoint as the application workload in our DevOps
repository. The application's upstream baseline is 0.1.4-alpha. Our delivery
artifact has a separate version, so we can trace a build without rewriting the
senior project's history."
"We will follow one issue through a source change, Git review, cloud compilation,
automated tests and a packaged result. This lets us explain how the tools work
together using a real application."
Open the agreed existing issue. Show its acceptance criterion and submit a short
comment describing the work about to happen and how it will be checked. Prepare
the final wording after baseline verification, using the actual agreed change.
Read its intent aloud rather than reading every field.
### Source update and review
Perform the rehearsed edit after the issue comment. Show the meaningful source
diff and explain the effect in one sentence. Run these checks from the demo
checkout, then stage only the agreed files:
```powershell
git status --short --branch
git diff --check
git diff --stat
```
Use a commit message that describes the actual change and references the real
issue. Push the feature branch using the established Gitea login flow. Keep
credentials off screen. Show the pushed commit and PR. Billy reviews it, checks
the configured checks and submits his own decision. Vincent merges only after
the required approval and successful checks.
**Billy:** "Gitea keeps the issue, source revision, review and merge connected.
The required PR checks protect main. Our artifact job then builds from that
reviewed main revision on the trusted cloud worker."
If review or checks take longer than rehearsed, use the explanation/SWOT slots
while waiting. Keep their actual result visible; do not force a merge or present
an earlier green result as the current one.
### Trigger and configuration explanation
Open the separate artifact job and trigger its normal build after main contains
the reviewed increment. Show the build URL and checked-out revision.
**Vincent:** "The job checks source provenance before compiling. It runs the
application tests, builds both LaTeX report editions, extracts diagrams from C++
and packages an application image. A failed gate prevents a successful package."
**Billy:** "We keep the orchestration in source control, so a reviewer can see
the build policy alongside the application. The job uses our existing trusted
agent. Docker access makes that worker privileged with respect to the host, so
unreviewed source does not belong on it."
Use this configuration tour; explain purpose rather than reading syntax aloud:
| File | Point to explain |
| --- | --- |
| `demo/Jenkinsfile` | Reviewed-main ancestry check, named stages, one concurrent build per job, timeout, JUnit and archived artifacts. |
| `demo/ci/run-cloud.sh` | Agent-volume path mapping; sequential work; offline, read-only build containers with CPU, RAM and PID limits. The native/report/architecture limit is 768 MiB RAM and 0.75 CPU. |
| `demo/toolchain.json` and `demo/ci/toolchain.Dockerfile` | Verified image IDs plus the compiler, Qt, LaTeX, Doxygen and Graphviz environment. Package inventory records what was installed. |
| `demo/ci/build-report.sh` | Disposable report build, bibliography/index/reference work and figure-index validation. Historical canonical PDFs remain preserved. |
| `demo/ci/package.py` and `demo/ci/application.Dockerfile` | Eight required passing suites, versioned image, real provider module, non-root runtime and bounded headless smoke check. |
| `.gitea/workflows/manual.yml` | The existing Actions job builds the cumulative manual on main using `latex-local` and uploads its PDF and diagnostics. Its pinned action revisions make dependencies explicit. |
### Gitea Actions and Jenkins SWOT comparison
Use this as the required chart. The tradeoffs describe this group's deployment;
they do not claim one tool is universally better.
| SWOT | Gitea Actions in this project | Jenkins in this project |
| --- | --- | --- |
| Strengths | Workflow YAML, source history and PDF artifacts are reached from the same Gitea project. The existing manual build is a compact, repeatable use case. | Named stages, test reports and artifacts make the multi-stage Qt/report/package workflow visible. The group also has established release and approval workflows. |
| Weaknesses | The workflow depends on the runner label and compiler image being available. Our pinned legacy artifact action needs deliberate compatibility maintenance. | The controller, agents, plugins and Java runtime add maintenance work. The trusted worker's Docker access needs careful separation from unreviewed builds. |
| Opportunities | Reuse the manual workflow for other course documents and strengthen source/artifact traceability without adding another control service. | Extend the verified baseline into rehearsed issue-linked increments and retain test, load and provenance records for each release. |
| Threats | Runner outages or incompatible action changes can block builds. Overlapping heavy jobs compete for the same Droplet resources. | Runtime/plugin vulnerabilities, resource contention and an incorrectly scoped trusted job can affect the shared host. The team must keep review and runtime updates effective. |
**Billy:** "We use Actions for the cumulative manual and Jenkins for the richer
application workflow. Both delegate work to separately operated workers, so
availability, maintenance and trust still belong to us. We compare them using the
work we actually operate."
For the tool mechanics, see the official
[Gitea Actions overview](https://docs.gitea.com/usage/actions/overview/) and
[Jenkins Pipeline handbook](https://www.jenkins.io/doc/book/pipeline/).
The chart's deployment tradeoffs are the group's engineering assessment.
### Cloud execution and load
Open [the Group 1 SRE dashboard](https://metrics.yebilly.me/d/group1-sre/group-1-sre)
with a time window covering the build. Show Jenkins' executing stage alongside
the CPU and available-memory panels. If a panel refresh is too coarse, show the
job's per-phase load CSV as additional evidence.
**Vincent:** "These processes run on The-Ocean, our 2 GiB, single-CPU Droplet.
The stage limits bound the build containers while Gitea, Jenkins, monitoring and
the earlier applications share the host. We observe CPU and available memory
before and during the build, and check available disk for the output."
"The measurements describe the shared host. Other services and dashboard refresh
intervals affect what we see, so we do not attribute every change solely to this
job. We keep the actual build times and samples together."
Do not promise a particular peak or a cold build. Use the real chart and CSV
values, units and timestamps; identify cache reuse if it affects the duration.
### Tests and deployment artifact
Open the current build's JUnit page. Explain the actual result. The baseline
registers eight suites covering the provider contract, core foundations,
rectangle/segment display, whole-element movement, rectangle resize, sidebar and
session history. Module loading and compatibility checks exercise the real
provider. These automated checks do not establish complete interactive acceptance.
Open the compiled `TikZRefinery-report.pdf` from that build. Then show:
- `TikZRefinery-1.0.N-linux-image.tar.gz`, using the actual Jenkins build number
in place of `N`, and the matching `ssw590-tikzrefinery:1.0.N` image tag.
- `delivery-info.json`: actual delivery version, upstream identity, downstream
commit, execution kind and image ID.
- `SHA256SUMS` and the package verification result.
- The same build's test and load records.
**Vincent:** "Here major and minor identify the delivery line; the final component
is the Jenkins build number. This is the required major.minor.changelist format.
The metadata connects the artifact to its source and toolchain. SHA-256 checks
detect byte changes during transfer; they do not establish authenticity by
themselves."
"The image is a deployable Linux desktop application package with a headless
runtime check. It is not a new website. The source is reviewed, the tests passed
and the saved image's manifest, configuration and layers were verified."
Download the small metadata/report files live. Downloading the full image during
the timed presentation is optional; its download/checksum procedure must already
have passed in the baseline rehearsal. Cite the current build's real results.
### Source architecture bonus
Open the current `TikZRefinery-1.0.N-architecture.zip`, extract it and open
`html/index.html`. Show one generated provider relationship graph and explain the
interface/implementation relationship. The baseline rehearsal produced 25 source
graphs; quote the current build's actual count if the increment changes it.
**Billy:** "Doxygen reads the C++ declarations and Graphviz draws the relationships.
These graphs are included with the build output. The separately authored TikZ/UML
report diagrams communicate the design; this output supplies source extraction."
### Windows application illustration
Use the verified portable Windows package to illustrate the workload. It is a
separate Windows baseline build, not the Linux artifact just produced by Jenkins.
Keep its `build-info.json` and source identity available if asked.
Before presenting, copy `demo/tikzrefinery/code/examples/explicit-coordinates/boxes-initial.tex`
to an ignored rehearsal folder. Open that copy, move the right rectangle, resize a
corner and use session undo/redo. Show how the source pane follows a committed
edit. Save only the disposable copy if demonstrating Save.
**Vincent:** "The application edits existing supported shapes. The rectangle
implementation is loaded as a separate module. Creation, folder browsing, plugin
updating and an integrated LaTeX/PDF viewer remain planned. Our DevOps workflow
builds and tests the implemented subset."
### Closing and questions
**Billy:** "We can trace the issue comment to a source change, reviewed main
revision, cloud run, automated result and versioned artifact. The configuration
and observed resource use explain how that workflow runs on our host."
**Vincent:** "We preserve failed results and prior artifacts rather than rewriting
them. The next increments can use the same review and artifact trail. We have
four minutes for questions."
Useful short answers:
- **Why two CI tools?** Actions builds the group manual; Jenkins orchestrates the
application, report, tests and package with the group's established agent model.
- **Does the laptop need Docker during the presentation?** The build workers run
on the Droplet. The Windows GUI package runs natively on the laptop.
- **What happens when a test fails?** The job stops before successful packaging;
Jenkins retains available test results and diagnostics. Inspect that failure.
- **Is the Linux GUI running in the browser?** No. The container is checked
offscreen; the classroom GUI illustration uses the separate Windows package.
- **Why keep two versions?** Upstream identifies the imported application
checkpoint; the delivery version identifies an artifact produced by this job.
## Recovery within the time limit
| Observed problem | Response |
| --- | --- |
| Jenkins waits for the agent or another job | Show the queue/agent state, continue the explanation and retain the real timing. Do not start competing heavy jobs. |
| Current build fails | Show the failed stage and diagnostics. Use the identified previous successful Jenkins build to explain the later stages, clearly distinguishing both runs. |
| Classroom web request returns 403 | Check the actual source network against the approved web allowlist through the established maintenance procedure. Keep authentication and source restrictions enabled. |
| Network or artifact download stalls | Show the completed run and pre-downloaded fallback files with their matching build/version. Do not label them as this live run. |
| Live review takes longer than planned | Continue the configuration/SWOT explanation. Preserve the real review requirement and use the timing reserve. |
| Time reaches 16 minutes | Stop optional GUI detail and additional graphs. Preserve time for questions. |
## Rubric evidence checklist
| Assessed area | Visible evidence |
| --- | --- |
| Issue tracking | Existing issue and newly posted plan comment before the edit. |
| Version control | Meaningful diff, purpose-specific commit, push and real review/merge. |
| Pipeline trigger | Current artifact build URL and triggering action. |
| Build visibility | Native compilation, LaTeX and packaging stage progress. |
| Automated tests | Current JUnit pass/fail page. |
| Versioned deployment artifact | Current `1.0.N` image archive and provenance. |
| Two-tool SWOT | The complete four-row comparison above. |
| Configuration | Explain the Jenkins, workflow, Docker and build-script roles. |
| Demo quality | Rehearsed handovers, clear source identities and timing. |
| Cloud execution | Droplet worker, stage timing and real load observations. |
| Architecture bonus | Source-generated graph opened from the current artifact. |
Assignment source: [Canvas Final Project Demo](https://sit.instructure.com/courses/188774/assignments/703597),
checked November 25, 2026. Canvas lists December 2 at 11:59 p.m.; the demonstration
itself has a 20-minute limit including questions. The script's speaker split and
minute-by-minute allocation are rehearsal choices.