Skip to content

test: CI installs pullgate as the README says and runs a full loop under the real units - #40

Merged
groupsky merged 2 commits into
mainfrom
test/27-install-loop
Nov 17, 2026
Merged

groupsky merged 2 commits into
mainfrom
test/27-install-loop

Conversation

@groupsky

Copy link
Copy Markdown
Contributor

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:
    1. the binary (README block install-test:binary), or the binary that install.sh installed (--installed X.Y.Z);
    2. the users, directories and units (block install-test:setup);
    3. configs, a local bare repo as the remote, a fake Telegram that taps Apply;
    4. systemctl enable --now … (block install-test:start, NAME=config-repo);
    5. a good commit: run asks (check and summary as the check user) → tap → pullgate-apply@ applies → pullgate status shows it;
    6. listener restart, and it polls again;
    7. a commit whose apply fails → rollback, and the notice reaches the fake Telegram;
    8. every unit the README enables is enabled and active.
      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; --check fails when a block is missing or an install command is outside a marked block. Runs in the units job.
  • test/units/faketg.py --tap: records message texts and taps Apply.
  • New CI job install-loop (each PR and main).
  • New workflow install-release.yml: installs a release with the tag's own install.sh --version, then runs the loop with --installed. It runs on release: published, by hand, and is called by release.yml after publish (a release published with GITHUB_TOKEN starts no release event).
  • DESIGN.md section 14, README (markers and a note), docs/releasing.md.

Fixes #27

🤖 Generated with Claude Code

groupsky and others added 2 commits November 17, 2026 15:05
…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>
@groupsky
groupsky merged commit cc21e75 into main Nov 17, 2026
10 checks passed
@groupsky
groupsky deleted the test/27-install-loop branch November 17, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: CI installs pullgate as the README says and runs a full loop under the real units

1 participant