Repository navigation
test: CI installs pullgate as the README says and runs a full loop under the real units - #40
Merged
Merged
Conversation
…der the real units The install commands come from README.md itself (marked blocks). Root and the listener are different users, under the units of contrib/systemd/. A fake Telegram taps Apply; a good commit is applied, a failing one rolls back. A new workflow runs the same loop against each published release. Fixes #27 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks done
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.
What
test/units/full-loop.sh: as root on the CI runner, it runs the README install from README.md itself, then one full loop under the real units, with root and the listener as different users:install-test:binary), or the binary thatinstall.shinstalled (--installed X.Y.Z);install-test:setup);systemctl enable --now …(blockinstall-test:start,NAME=config-repo);pullgate-apply@applies →pullgate statusshows it;enabledandactive.After each loop the outbox must be empty and the listener must log no error or warning, so a message root writes that the listener cannot read fails the job.
test/units/readme-block.sh: prints a marked README block;--checkfails when a block is missing or an install command is outside a marked block. Runs in theunitsjob.test/units/faketg.py --tap: records message texts and taps Apply.install-loop(each PR andmain).install-release.yml: installs a release with the tag's owninstall.sh --version, then runs the loop with--installed. It runs onrelease: published, by hand, and is called byrelease.ymlafter publish (a release published withGITHUB_TOKENstarts noreleaseevent).Fixes #27
🤖 Generated with Claude Code