update: the history of the package is CHANGELOG.md, from which the build writes debian/changelog, the build, publish and development scripts are in Python, and the development tools keep their settings and credentials in .lm-dev-config.
Release / release (push) Failing after 14m43s
Release / release (push) Failing after 14m43s
This commit is contained in:
1 parent
a7bfabcb89
commit
6911d16fa3
26 files changed
+1966
-2105
No files matched your search
@@ -1408,19 +1408,30 @@ one line with its type and message.
|
||||
Consequences: The logs hold one line per failure, without its stack. A failure that reaches the
|
||||
last line of defence is found by its message and fixed where it occurs, with its own handling.
|
||||
|
||||
## ADR-49: A changelog summary is a paragraph wrapped at 80 columns
|
||||
## ADR-49: CHANGELOG.md is the history, and debian/changelog is written from it by the build
|
||||
|
||||
Status: Accepted
|
||||
|
||||
Context: The summary of an entry of `debian/changelog` is the commit message of its release,
|
||||
which `release.py` reads from the changelog. Summaries are often longer than the 80 columns
|
||||
Debian's tools expect of a changelog line.
|
||||
Context: The history of the package is also the source of each release's commit message and tag:
|
||||
`release.py` commits with the summary of the newest entry and tags its version. A Debian changelog
|
||||
needs a package name, a maintainer, an RFC 2822 date and lines of at most 80 columns in every entry,
|
||||
which a history written by hand gets wrong and which repeat in every entry. Summaries are often
|
||||
longer than one line.
|
||||
|
||||
Decision: The summary is the entry's first paragraph, indented by two spaces and wrapped at 80
|
||||
columns. `release.py` joins its lines with single spaces into the commit message.
|
||||
Decision: `CHANGELOG.md` at the repository's root is the only history kept by hand. An entry is a
|
||||
`## x.y.z` heading, a summary paragraph wrapped at 100 columns and `-` items; `release.py` writes
|
||||
the release time into the heading, `## x.y.z - YYYY-MM-DD HH:MM:SS +ZZZZ`, when it commits the
|
||||
entry, joining the summary's lines with single spaces into the commit message. `bin/changelog.py`
|
||||
writes `debian/changelog` from it in the build image, with the package name and the maintainer of
|
||||
`debian/control`, the time of the build for an entry without a date, and `DEB_VERSION` as the
|
||||
newest entry's version for a dev build. `x.y.z` is the Debian version `x.y.z-1`, and `x.y.z-n` is
|
||||
itself. `debian/changelog` is not kept in the repository.
|
||||
|
||||
Consequences: The commit message is one line however the summary is wrapped, so a summary
|
||||
rewrapped later still matches the commit of its release.
|
||||
Consequences: The commit message is one line however the summary is wrapped, so a summary rewrapped
|
||||
later still matches the commit of its release, and an entry with a date in its heading is
|
||||
released. Every entry of the generated `debian/changelog` has the current package name and
|
||||
maintainer, also the entries made under the package's earlier name. The builder image has Python
|
||||
for the script.
|
||||
|
||||
## ADR-50: The help is Markdown rendered in the browser, in a panel that pushes the page
|
||||
|
||||
@@ -1473,7 +1484,7 @@ Status: Accepted
|
||||
|
||||
Context: With `terraform_dir`, the manager built `http://<router_private_ip_addresses.int>:7081`.
|
||||
The port of the server's web service is `web.port` and the interfaces it listens on are `web.listen`,
|
||||
which the platform sets from its variables; the manager that `dev.sh` runs on a workstation cannot read them.
|
||||
which the platform sets from its variables; the manager that `dev.py` runs on a workstation cannot read them.
|
||||
|
||||
Decision: `router_url` is the output `router_web_url` of the platform, which derives the URL from
|
||||
the same variables that configure the server.
|
||||
@@ -1559,7 +1570,7 @@ programs are in `/usr/lib/linux-manager`, the Manager's application and help in
|
||||
state of the upgrades in `/var/lib/linux-manager`. The Manager's unit is
|
||||
`linux-manager-ui.service`. The debconf questions of its first administrator are
|
||||
`linux-manager/admin_username` and `admin_password`. The server's bootstrap page shows the
|
||||
Manager, which has no bootstrap service of its own. `dev.sh` runs the Manager on a workstation,
|
||||
Manager, which has no bootstrap service of its own. `dev.py` runs the Manager on a workstation,
|
||||
with `terraform_dir` and `bind`.
|
||||
|
||||
Consequences: The repository holds the Manager's `web/` and `docs/`, and its build runs from the
|
||||
@@ -1621,16 +1632,16 @@ own (`features.networks`), a WAN and two LANs, and a container `repo` that serve
|
||||
repository, `resolute main`, built with `apt-ftparchive` and signed by its own key. The networks
|
||||
are OVN networks on an uplink bridge of the remote, as OVN is the only network type LXD creates
|
||||
inside a project; they belong to the project and go with it. `bin/lm-dev-build.py` builds the newest
|
||||
changelog entry as `<upstream>~dev<N>-<revision>`, `N` counted in `.dev-build.serial`, which a
|
||||
release sets to 0, by passing `DEB_VERSION` to the build, which rewrites the version in the image
|
||||
only, and publishes the build in that repository. `bin/lm-dev-vm.py` gives a VM of the project
|
||||
that repository as its apt source. The project also has a Vault, through which secrets reach its
|
||||
instances (ADR-61). The scripts keep their state in `.lm-dev-config/`, which outlives clean-ups of
|
||||
`tmp/`. The automated tests (`lm-dev-run.py`) keep their own project for one run and install from a
|
||||
file.
|
||||
changelog entry as `<upstream>~dev<N>-<revision>`, `N` counted in `LXD_DEV_BUILD_SERIAL` of
|
||||
`.lm-dev-config/settings.json`, which a release sets to 0, by passing `DEB_VERSION` to the build,
|
||||
which rewrites the version in the image only, and publishes the build in that repository.
|
||||
`bin/lm-dev-vm.py` gives a VM of the project that repository as its apt source. The project also
|
||||
has a Vault, through which secrets reach its instances (ADR-61). The scripts keep their state in
|
||||
`.lm-dev-config/`, which outlives clean-ups of `tmp/`. The automated tests (`lm-dev-run.py`) keep
|
||||
their own project for one run and install from a file.
|
||||
|
||||
Consequences: Every dev build is an apt update of the one before, and the release of the entry,
|
||||
which sorts above all of its `~dev` builds, is an update of them all. The changelog is not
|
||||
which sorts above all of its `~dev` builds, is an update of them all. `CHANGELOG.md` is not
|
||||
changed by a dev build. Dev builds go to `out/dev/`, so `out/` holds only release builds.
|
||||
|
||||
## ADR-59: A Simple CA root signs the issuing CAs through a sign-ca token of its issuing CA
|
||||
|
||||
Reference in new issue
Block a user