Skip to content

ci: [TEST] use larger runners for compilation-heavy jobs#7038

Open
huth-stacks wants to merge 3 commits into
stacks-network:developfrom
huth-stacks:ci/P3-larger-runners
Open

ci: [TEST] use larger runners for compilation-heavy jobs#7038
huth-stacks wants to merge 3 commits into
stacks-network:developfrom
huth-stacks:ci/P3-larger-runners

Conversation

@huth-stacks

Copy link
Copy Markdown

DO NOT MERGE — Test PR for CI timing validation

This PR exists solely to validate the impact of larger runners on CI compilation jobs.
It cannot be tested on a personal fork because ubuntu-latest-m runners are only
available on org accounts with GitHub Team/Enterprise plans.

This PR will be closed after timing data is collected.


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. These three jobs are the longest-running compilation tasks:

  • 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 (release-build.yml) already uses ubuntu-latest-m, confirming
these runners are available to the org.

The Change

One word change in each of 3 files (ubuntu-latestubuntu-latest-m):

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

3 lines changed across 3 files. Other jobs untouched.

Metrics to Collect

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

Security Checklist

  • No new permissions
  • No secrets exposure
  • Same GitHub-hosted runner images, just more resources
  • Release workflow already uses ubuntu-latest-m

@CLAassistant

CLAassistant commented Mar 25, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@huth-stacks

Copy link
Copy Markdown
Author

⚠️ DO NOT REVIEW — CI PERFORMANCE TEST RUN ⚠️

This PR exists solely to measure CI timing impact of larger runners. It cannot be tested on a personal fork because ubuntu-latest-m is only available on org accounts.

Will be closed after timing data is collected. Not a real PR.

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 force-pushed the ci/P3-larger-runners branch from d475be2 to feba8c5 Compare March 25, 2026 11:44
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.

2 participants