Skip to content

runtime: drop debug stdout print when SKIP_CAPACITY is set#1252

Merged
mbouaziz merged 1 commit into
mainfrom
runtime-drop-capacity-print
May 27, 2026
Merged

runtime: drop debug stdout print when SKIP_CAPACITY is set#1252
mbouaziz merged 1 commit into
mainfrom
runtime-drop-capacity-print

Conversation

@mbouaziz
Copy link
Copy Markdown
Contributor

Summary

sk_create_mapping in skiplang/prelude/runtime/palloc.c:567-569 printed CAPACITY SET TO: <bytes> to stdout for every Skip process started with a non-default capacity.

This was harmless until #1246 set SKIP_CAPACITY on gen2 CI jobs to avoid MAP FAILED OOMs. Now every Skip process emits the line, and the skdb diff tests (test/diff/*.sql) — which compare runtime stdout to .expected golden files — fail on every test.

Observed in job 16738 (skdb on large.gen2, SKIP_CAPACITY=6G6442450944):

CAPACITY SET TO: 6442450944
04 - test/diff/select1_views.sql (part-2):              FAILED
...

Repeated for ~40 diff tests. The skdb workflow has been silently broken for any PR that triggers it (most don't, because of generate_config.sh's per-package diff heuristic; this PR triggered it because it touches a skiplang/prelude/ file).

Fix

Remove the print. If anyone needs to confirm the runtime's capacity at startup, /proc/self/maps or the --capacity CLI flag echo are cleaner channels — stdout is reserved for program output that golden-file tests can rely on.

Test plan

  • After merge, a PR that touches skiplang/prelude/ and triggers skdb should now pass.
  • compiler and skipruntime (also affected, since they run with SKIP_CAPACITY=12G / 6G) should remain green — they don't compare stdout, so they weren't failing visibly, but the line was still being emitted and cluttering logs.

🤖 Generated with Claude Code

sk_create_mapping printed "CAPACITY SET TO: <bytes>" to stdout for
every Skip process started with a non-default capacity. This was
debug output that escaped into normal stdout — fine when nothing
relied on stdout exactness, but the skdb diff tests
(test/diff/*.sql) compare runtime stdout to .expected golden files
and now fail on every test once SKIP_CAPACITY is set in CI (e.g. via
the gen2 fix in #1246).

Just remove the print. The value is observable via /proc/self/maps
or by recognising the cgroup limit; no observability is being lost
that needed to be on stdout.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mbouaziz mbouaziz force-pushed the runtime-drop-capacity-print branch from b36349a to a9c4e2d Compare May 27, 2026 16:36
@mbouaziz mbouaziz enabled auto-merge May 27, 2026 16:37
@mbouaziz mbouaziz merged commit 6ddc32e into main May 27, 2026
2 of 6 checks passed
@mbouaziz mbouaziz deleted the runtime-drop-capacity-print branch May 27, 2026 16:37
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