sespinal 6cfac4ec1e
startup-product-ci/pipeline/head This commit looks good
Merge PR #9: Chapter 4 Jenkins failure and repair
Peer review was not completed before the deadline. Sergio authorized this merge with the missing review explicitly disclosed. The required Jenkins check passed for the exact repaired head. No reviewer approval is claimed; the one-approval policy is restored after this merge.
2026-10-24 00:05:25 +00:00

SSW 590 Startup Product

This repository supports the Chapter 2 Gitea foundation assignment. It is used to demonstrate startup work tracking, issue-linked branches, pull requests, peer review, merges, and persistence on Sergio Espinal's DigitalOcean-hosted Gitea instance.

Operating Notes

  • Gitea is running from a pinned official container image.
  • SQLite data and repositories are stored in persistent host-mounted storage.
  • Gitea uses https://git.sespinal590.dev/ through the Caddy TLS proxy.

Product Vision

The startup product will help a small student team practice disciplined DevOps work by tracking product ideas, operations tasks, reviews, and deployment evidence in a self-hosted Gitea environment.

Target users are SSW 590 team members who need a shared place to plan, review, and preserve technical work. The first milestone is to keep the repository, issues, and pull request history available after container replacement.

Initial Feature Backlog

  1. Issue tracking workflow: maintain product and operations issues with clear acceptance criteria.
  2. Pull request review workflow: require changes to be proposed on branches and reviewed before merge.
  3. Operations evidence workflow: record restart, persistence, DNS, HTTPS, and firewall verification evidence in the IT manual.

Chapter 4 tested application

This repository uses the assignment manual's permitted minimal Python pricing application. total_price multiplies a unit price by a positive quantity and rejects zero/negative quantities. It is a course CI example, not a claim of a production pricing system.

Requirements: Python 3 (the Jenkins executor records its exact version), Git, and the Python standard library. No pip packages, Docker daemon, or Docker socket are needed for these checks.

From a clean clone, reproduce the Jenkins checks with:

python3 -m py_compile pricing.py tests/test_pricing.py
python3 -m unittest discover -s tests -v

Expected: syntax check exits 0; three unit tests pass. The controlled demonstration changes multiplication to addition, causing the total and single-item tests to fail. The repair restores multiplication on the same PR.

Jenkins polls Gitea for PR updates. Its multibranch source tests PR heads (not synthetic merge commits) and publishes startup-product-ci/pipeline/pr-main for this PR to main. Branch protection requires that check and one real peer approval, dismisses stale approvals, and disallows direct pushes and admin merge bypass. Only trusted team members may change pipeline code. Builds execute on the controller in this resource-constrained course deployment; untrusted fork PR discovery is disabled.

S
Description
Product repository for the SSW 590 startup workflow demonstration.
Readme
101 KiB
Languages
Python 100%