Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A Ahad Mobile
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • holatech
  • Ahad Mobile
  • Merge requests
  • !124

ci(admin): cap jest workers in admin:test

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Khanh Pham requested to merge fix/admin-test-max-workers into develop Oct 15, 2026
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Fixes job 26203 (admin:test on develop): two tests that wait on async UI hit jest's 5s timeout.

  • funds-section.test.tsx › shows the error and retries
  • order-legs-panel.test.tsx › lifts a balance refusal…

Root cause: admin:test had no --maxWorkers. jest sized its worker pool from the host core count and started 11 jsdom workers (holapc reports 12 CPUs), but the job is capped at 4 CPUs. The job ran alongside be:test and took 812s; it usually takes 48–220s. Both tests pass in under 1s on their own.

Fix: pnpm test --ci --maxWorkers=4, the same cap be:test uses. The tests are unchanged.

Verification: full admin suite passes locally, 828/828 in 21.7s. --showConfig shows maxWorkers: 4. This MR pipeline's admin:test should come back in its normal time range.

Review: Opus gate PASS in round 1 with 2 NITs, both kept as-is:

  • The comment wording matches be.yml.
  • Workers stay at 4 rather than 3 to match be:test.

🤖 Generated with Claude Code

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/admin-test-max-workers