Skip to content

docs(osapi-lab): lab_agent adds the rescue units - #757

Merged
retr0h merged 3 commits into
mainfrom
docs/osapi-lab-agent-units
Dec 5, 2026
Merged

retr0h merged 3 commits into
mainfrom
docs/osapi-lab-agent-units

Conversation

@retr0h

@retr0h retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #750 (merged). A VM that upgrades in place, such as debian-lts, is never baked again, so the lab_agent role installs the three rescue units on each VM it reaches (osapi-io/osapi-lab#114). The lab page said lab_agent installs nothing.

🤖 Generated with Claude Code

retr0h and others added 2 commits December 5, 2026 12:38
A VM that upgrades in place is never baked again, so lab_agent writes
the three units on each VM that a run reaches.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Code review: approved (head c1b7121). The text matches osapi-lab#114 at 83d795a: lab_agent copies the three units from packer/ (owner root, mode 0644), reloads systemd only when one changed, and enables the boot unit; a restart run still installs them and otherwise only restarts the agent; just bump and just deploy both run the role, so both reach a VM that upgrades in place.

@retr0h retr0h added the code-reviewed An independent reviewer checked correctness, bugs and edge cases label Dec 5, 2026
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards review at c1b7121. Changes requested.

The two edited paragraphs agree with osapi-lab#114 at 83d795a. lab_agent installs the three units from packer/ on each run, in restart too, with owner root and mode 0644, and enables the boot unit. The PR links osapi-lab#114. Lint passes, the page has no em dash, and each commit has its trailer.

Open:

  1. The squash subject is too long. The PR has two commits, so the squash uses the title. "docs(osapi-lab): lab_agent installs the rescue units" has 52 characters, and the rule is 50 or fewer. For example, "docs(osapi-lab): lab_agent adds the rescue units" has 48.
  2. The debian-lts paragraph is now partly false. Near line 602 the page says: "It keeps the config and the packages of its first image. A change to packer/ does not get to it." The three rescue units in packer/ now get to it through lab_agent. Name them as the exception.

I added needs-standards-review.

@retr0h retr0h added the needs-standards-review The author asks for the independent standards review label Dec 5, 2026
@retr0h retr0h changed the title docs(osapi-lab): lab_agent installs the rescue units docs(osapi-lab): lab_agent adds the rescue units Dec 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h

retr0h commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Standards re-review at 090627d. Approved.

The title has 48 characters. The debian-lts paragraph now names the three rescue units as the exception, which agrees with osapi-lab#114. The new commit has its trailer. One lint job was still pending when I checked, and the other checks pass.

@retr0h retr0h added standards-reviewed An independent reviewer checked this PR against the standards and removed needs-standards-review The author asks for the independent standards review labels Dec 5, 2026
@retr0h
retr0h merged commit b0bc042 into main Dec 5, 2026
3 checks passed
@retr0h
retr0h deleted the docs/osapi-lab-agent-units branch December 5, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-reviewed An independent reviewer checked correctness, bugs and edge cases standards-reviewed An independent reviewer checked this PR against the standards

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant