Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# AGENTS.md

**overpressure/repository** builds [packages.overpressure.org](https://packages.overpressure.org): signed apt and
dnf repositories of [overpressure](https://github.com/overpressure/overpressure)'s app, with a stable and a beta
channel, made from the .deb and .rpm each release carries and deployed to GitHub Pages by the Pages workflow. How it
works: [README.md](README.md).

The project's rules for issues, documents, code and changes:
[conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md).

## Setup and commands

Python 3.12 or newer through [uv](https://docs.astral.sh/uv/); building and the repository tests need Debian or
Ubuntu with `apt-utils dpkg-dev createrepo-c rpm gnupg` ([building it](README.md#building-it)):

```sh
uv run python -m pkgrepo plan # which releases the channels take now
uv run python -m pkgrepo build --test-key # the site in _site/, signed with a key made for it
uv run python -m unittest # the tests; the repository tests need the tools above
uv run ruff format --check . && uv run ruff check . && uv run ty check
python OVERPRESSURE/scripts/check-docs.py --repo . # links, AGENTS.md; OVERPRESSURE: a checkout of it
python OVERPRESSURE/scripts/check-private.py --repo . --history # nothing private in any commit
```

## Layout

- `pkgrepo/`: `build.py` (the plan, the apt suites, the dnf folders, signing). `tests/`: unittest, with stand-in
packages and a key made for the run.
- `page/`: the site's page (text, colours, Inter, the logo copied from
[overpressure/brand](https://github.com/overpressure/brand)). `keys/overpressure.asc`: the public key.
- `.github/workflows/pages.yml`: tests on a pull request; build and deploy on `main` and hourly when a channel moved.
`_site/`: the build's output, ignored.

## Hard rules

- **The signing key's secret half never leaves its secret** (`PACKAGES_SIGNING_KEY` in the `packages`
environment, which only `main` deploys). Never print, commit or ask for it; local builds use `--test-key`.
- **A new key** changes `keys/overpressure.asc` and the secret in the same change, and overpressure's release notes
say so ([a new key](README.md#a-new-key)): every owner has to fetch it once.
- **The channels are the app's:** `stable` never takes a beta; each channel holds one version.

## Changes

A branch and a pull request against `main`, titled as a conventional commit; merged by rebase or squash once `ci`
(tests, lint, links, private data) passes and the code owners approved
([conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md#changes)). A
merge deploys at once; every hour the workflow rebuilds when a channel moved to another release.
1 change: 1 addition & 0 deletions CLAUDE.md