Skip to content

fix(cli): berth test boots production images again - #301

Merged
Ash20pk merged 1 commit into
mainfrom
fix/berth-test-app-cgroups
Oct 25, 2026
Merged

Ash20pk merged 1 commit into
mainfrom
fix/berth-test-app-cgroups

Conversation

@Ash20pk

@Ash20pk Ash20pk commented Oct 25, 2026

Copy link
Copy Markdown
Owner

berth test has been failing on every new single app since per-app cgroups landed in #222, and that's also why the 0.3.0 release dry run fails.

Production images set BERTH_REQUIRE_APP_CGROUPS=1. berth test's single-app path is a plain docker run that doesn't delegate a cgroup subtree, so the entrypoint refuses to boot. Its refusal is a JSON event line, which berth test then took as the check's result. That result has no ok, so it reported "contracts failed:" with nothing after it.

Three changes:

  • run the check with BERTH_REQUIRE_APP_CGROUPS=0. A test run checks exports, not per-app limits, and the entrypoint still warns.
  • only accept a JSON line with a boolean ok as the result, so an event line can't stand in for it.
  • print the result's error, which was never shown.

Checked on Linux (Docker 29, Node 22.23) with the release workflow's own steps: scaffold hello-world against the packed SDK, build, berth test. Before: exportCheck is the cgroup_delegation_refused event. After: ✓ manifest + export contracts (1 exports checked).

Production images set BERTH_REQUIRE_APP_CGROUPS=1 since per-app cgroups
landed (#222), and berth test's single-app path is a plain docker run
that delegates no cgroup subtree. The entrypoint refused every boot, so
berth test failed on every new single app, and the release dry run did
too. Its refusal event was then read as the check's result, which had no
ok field, so the failure printed no reason.

Run the check with BERTH_REQUIRE_APP_CGROUPS=0, accept only a JSON line
with a boolean ok as the result, and print the result's error.
@Ash20pk
Ash20pk merged commit f01b641 into main Oct 25, 2026
36 checks passed
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