45 lines
3.2 KiB
Markdown
45 lines
3.2 KiB
Markdown
# 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:
|
|
|
|
```sh
|
|
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.
|
|
|
|
|
|
## Chapter 5 monitoring handoff
|
|
|
|
The monitoring deployment, recovery runbook, and measured exercise evidence live in the [team IT manual Chapter 5 branch](https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring). Jenkins uses automatic repository polling to discover this application branch and run its unchanged syntax and three-test pricing pipeline. This documentation change provides a traceable post-recovery trigger check; it does not change application or pipeline behavior. Main remains protected and unmerged during the exercise.
|