Skip to content

ci: use larger runners for compilation-heavy jobs#4

Closed
huth-stacks wants to merge 1 commit into
developfrom
ci/P3-larger-runners
Closed

ci: use larger runners for compilation-heavy jobs#4
huth-stacks wants to merge 1 commit into
developfrom
ci/P3-larger-runners

Conversation

@huth-stacks

Copy link
Copy Markdown
Owner

What

Switch three compilation-heavy CI jobs from ubuntu-latest (2 vCPU, 7GB RAM) to ubuntu-latest-m (4 vCPU, 16GB RAM).

Why

Rust compilation is CPU-bound and scales well with core count. These three jobs are the longest-running compilation tasks in the pipeline:

  • nextest-archive: 15m33s (median) — builds all test binaries
  • cargo-hack native-targets: 13m14s — checks feature combinations
  • constants-check: 4m10s — compiles stacks-inspect from scratch

The release workflow (github-release.yml) already uses ubuntu-latest-m, confirming these runners are available to the org. Larger runners cost ~2x/min but complete in ~half the time, netting similar total cost.

The Change

One word change in each of 3 files:

  • .github/workflows/create-cache.yml: nextest-archive job runs-on: ubuntu-latest-m
  • .github/workflows/cargo-hack-check.yml: native-targets job runs-on: ubuntu-latest-m
  • .github/workflows/constants-check.yml: check-consts job runs-on: ubuntu-latest-m

3 lines changed across 3 files. Other jobs in these files are untouched.

Metrics to Track

Job Baseline Expected
nextest-archive 15m33s ~8-10m
native-targets 13m14s ~7-8m
check-consts 4m10s ~2-3m

Security Checklist

  • No new permissions granted
  • No secrets exposure
  • Same GitHub-hosted runner images, just more resources

Part of CI Optimization Series

PR 3 of 7. Expected impact: ~30-50% faster compilation on critical path jobs.

Switch nextest-archive, cargo-hack native-targets, and constants-check
to ubuntu-latest-m (4 vCPU, 16GB RAM) for faster compilation. The
release workflow already uses these runners. Expected ~30-50% faster
compilation with negligible cost difference.
@huth-stacks huth-stacks added the no changelog Skip changelog fragment check label Mar 24, 2026
@huth-stacks huth-stacks reopened this Mar 24, 2026
@huth-stacks

Copy link
Copy Markdown
Owner Author

Closing: ubuntu-latest-m runners are not available on personal fork accounts (requires GitHub Team/Enterprise org plan). This PR can only be validated on the upstream stacks-network org. The combined PR (#8) has been rebuilt without this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog Skip changelog fragment check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant