Skip to content

[NO-JIRA] cloudbox lgtm-mono unit for the containerized mono lgtm - #1069

Merged
johnnymo87 merged 2 commits into
mainfrom
lgtm-mono-unit
Dec 2, 2026
Merged

johnnymo87 merged 2 commits into
mainfrom
lgtm-mono-unit

Conversation

@johnnymo87

@johnnymo87 johnnymo87 commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Description

Jonathan OK'd the merge 2026-12-02.

Adds the lgtm-mono system unit on cloudbox: the container that runs mono's version of lgtm, repo by repo in place of lgtm-run (P2c-lgtm, bead lgtm-oqw2.20 in johnnymo87/lgtm).

  • lgtm-mono.service: runs ~/projects/lgtm/scripts/mono-service/run.sh as dev. Requires and After lgtm-mono-network.service (the firewall contract in lgtm-mono-network.nix), no docker restart policy, Restart=on-failure capped at 5 per hour, then lgtm-mono-failure pages through pigeon. Wanted by docker too, so a docker restart brings it back.
  • ConditionPathExists on the owned-repos file: the switch starts nothing. The unit runs only once the lgtm deploy tool arms it.
  • restartIfChanged = false: a stop drains review turns for up to 40 minutes, so a switch never cuts reviews.
  • lgtm-mono-token (+ timer every 20 min): mints the one-hour Vertex access token review turns use. It never passes the refresh token to the container. Same arming condition.

Switch impact (switch-impact.sh, system and home): four new units, no watched unit named, nothing restarted.

References

  • johnnymo87/lgtm#392 (image, deploy and arm tool), food-truck/mono#6228

@johnnymo87 johnnymo87 changed the title [NO-JIRA] HOLD: cloudbox lgtm-mono unit for the containerized mono lgtm [NO-JIRA] cloudbox lgtm-mono unit for the containerized mono lgtm Dec 2, 2026
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 2, 2026 03:36
@johnnymo87
johnnymo87 merged commit 761e33e into main Dec 2, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the lgtm-mono-unit branch December 2, 2026 03:46
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.

1 participant