Skip to content

glaeda-cmux-runner-hook: compile-gui takes the gui token only for its tests - #1267

Merged
teamleaderleo merged 1 commit into
mainfrom
hook-compile-gui-late-gui
Sep 25, 2026
Merged

teamleaderleo merged 1 commit into
mainfrom
hook-compile-gui-late-gui

Conversation

@teamleaderleo

Copy link
Copy Markdown
Owner

Do not merge before manaflow-ai/cmux#14705 is on main. Until then the E2E build runs its tests without taking the token itself.

test-e2e's build (compile-gui) held the mini's gui token from job start, through its whole compile. Every other GUI job on that mini waited out GUI_WAIT_S (60 s) and was refused. Run 36184794966's own E2E build was refused on cmux11s that way (capacity: the gui token is taken (build is compile-gui)).

manaflow-ai/cmux#14705 moves the token to the build's test-decision step, which calls glaeda-canonical-root take-gui --wait 300 (from #1260, deployed). If take-gui gives way (exit 3) or times out (exit 1), that step hands the tests to the test job. With that in place, compile-gui here costs 2 units and a root, and no gui token.

Unchanged:

  • test-e2e's test (gui) still takes gui at job start.
  • ROOT_SWITCHERS, the root-1 preference and --switch are untouched.

Tests

  • test_capacity_e2e_build_takes_the_gui_token_for_its_tests_only replaces the old gui-at-admission test. It covers:
    • a shard running beside the compile
    • take-gui waiting for that shard, then taking the token
    • the token released with the job
    • the fallback test job
  • scripts/test-glaeda-cmux-runner.py: full suite OK.

Rollout

After the cmux PR merges: merge this, then scripts/glaeda-cmux-runner-fleet --apply --org manaflow-ai --group glaeda-minis, canary first.

🤖 Generated with Claude Code

… tests

test-e2e's build held the gui token from job start, through its compile, so
every other GUI job on the mini waited out GUI_WAIT_S and was refused while
it compiled (run 36184794966: an E2E build refused for the gui token on
cmux11s). cmux#14705 has the build's test-decision step take the token with
take-gui and hand the tests to the test job when it gives way or times out,
so compile-gui now costs 2 units and a root only.

Merge only after cmux#14705 is on main: a build without that step would run
its tests without the token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@teamleaderleo
teamleaderleo marked this pull request as ready for review September 25, 2026 20:43
@teamleaderleo
teamleaderleo merged commit f7bd1cf into main Sep 25, 2026
4 checks passed
@teamleaderleo
teamleaderleo deleted the hook-compile-gui-late-gui branch September 25, 2026 20:43
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