Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #292 +/- ##
==========================================
+ Coverage 55.05% 58.48% +3.42%
==========================================
Files 33 45 +12
Lines 4299 5070 +771
==========================================
+ Hits 2367 2965 +598
- Misses 1932 2105 +173
🚀 New features to boost your workflow:
|
larsewi
force-pushed
the
release-command
branch
3 times, most recently
from
November 27, 2026 15:48
d72a414 to
dedeac8
Compare
A new command to release the packages built by build-in-container. For now it only parses its options and prints a summary. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Reads the build output directory, with one directory per platform label, and verifies it against its sha256sums.txt files. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Maps a build label like PACKAGES_x86_64_linux_debian_12 to how its packages appear in a release: title, arch, classexpr and release directory, as in the releases made by the legacy release.py. It also defines the order in which the packages are listed on the downloads page. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Plans where each .deb, .rpm and .msi of the build is published, its download URL, and how it is shown in the release data, and prints the plan. Nightlies copy nothing, and link to the build on buildcache. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Plans the masterfiles tarballs, the binary tarball and the Vagrant quickstart, and for community the source tarballs, in the same order as the legacy release.py lists them. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Copies the planned files to the release dir. Each file is written in a temporary directory in the output dir and then renamed, so a published file is always complete. Existing files are skipped, so a failed run can be run again. The output dir is locked while writing, and the disk space is checked first. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Signs the .rpm and .deb copies with the release key. Signing is reproducible: the signature time is the build time of the package, set from SOURCE_DATE_EPOCH by build-in-container, so signing the same build with the same key gives identical files. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
The formats of releases.json and the per-version documents, and the version rules behind them: sorting, LTS branches, support dates, titles and the latest flags. They give the same results as the legacy release.py. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Writes release-data/<project>/<version>.json with the checksums of the published files, and adds the version to releases.json. If there is no local releases.json yet, the published one is fetched. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Adds a community release to the APT and YUM repositories, and regenerates and signs their metadata, with the same settings as the legacy release.py, as both write to the same repositories. It adds the signed copies from the release dir, and refuses unsigned packages. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Uploads the release to S3. --bucket test uploads the repositories to the test bucket, to try installing from them. --bucket prod uploads the release files, the repositories, and the release data last, so it never links to files that are not uploaded yet. Nightlies only upload their release data. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Recreates published community and enterprise releases from small fake packages, with the real packaging and signing tools, and compares the release data with the published one. Also checks the signatures, that signing is reproducible, and a master nightly. Runs as its own CI job, as it needs tools that dev machines usually lack. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Explains what the commands do, how to run them for feature and patch releases, how the nightlies run them, and what each file is responsible for. Ticket: ENT-14700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
larsewi
force-pushed
the
release-command
branch
from
November 27, 2026 16:15
dedeac8 to
60dbede
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds three commands to release the packages built by build-in-container, for 3.30 and later. They replace the legacy release.py and sync-packages-to-s3.sh in infra, which stay in use for older LTS branches.
cfengine dev releasecopies and signs the release files, and writes the release data. Signing is reproducible.cfengine dev update-repoadds a community release to the APT and YUM repositories.cfengine dev publishuploads to S3.The commits build the commands up step by step, so they can be reviewed one at a time.
src/cfengine_cli/release/README.mdexplains how to make a release with them, and what each file does. The newrelease-e2eCI job recreates published releases with the real packaging and signing tools.🤖 Generated with Claude Code