Skip to content

unicode_gauntlet: parallel scans each start their own worker pool (set GALAXYSCOPE_MAX_WORKERS=1) — one gate ran load 79 on 12 cores #4896

Closed

Description

@squid-protocol

Measured 2026-10-11 (box_status.py, after #4882 merged): one pr_gates --fast alone drove load to 79 on 12 cores (CPU pressure 87%); its unicode gauntlet used 11.6 cores and every other process waited.

Cause: tests/tools/unicode_gauntlet.py runs --jobs N galaxyscope scans in parallel (N = GG_JOB_CORES or every core), but does not set GALAXYSCOPE_MAX_WORKERS=1 for them. Each scan then starts its own extraction worker pool, so N scans × N workers run at once. The test suite already guards against exactly this: tests/conftest.py sets GALAXYSCOPE_MAX_WORKERS=1 under xdist (#3913: "a scan's own worker pool on top of that only oversubscribes them").

Fix: set GALAXYSCOPE_MAX_WORKERS=1 in the gauntlet's scan environment (where it sets GITGALAXY_DISABLE_GIT_HISTORY), and the same for any other tool that runs scans in parallel (grep for --jobs / ProcessPool around galaxyscope). Check the gauntlet's results are identical (it compares scan output, so worker count must not change it) and record the gate's wall time and load before/after.

Related: #4882 (box-capacity, GG_JOB_CORES), #3913.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    ci-cd
    priority: high
    on Oct 11, 2026
  2. added a commit that references this issue on Oct 11, 2026
    3571eb5
  3. added
    scope:infra
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugci-cdpriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions