Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chg(ci): decrease runner size for web app checks (#5309)

teo8d0d9dbf0d52
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index 8065287087..194d16345e 100644
--- a/.github/workflows/web-app-check-main.yml
+++ b/.github/workflows/web-app-check-main.yml
@@ -12,7 +12,7 @@ name: Web App Pr Checks
- main
jobs:
path-check:
- runs-on: namespace-profile-linux-small
+ runs-on: namespace-profile-linux-tiny-no-cache
outputs:
should_run: ${{ steps.filter.outputs.should_run }}
api_changed: ${{ steps.filter.outputs.api_changed }}
@@ -121,7 +121,7 @@ jobs:
- path-check
if: needs.path-check.outputs.should_run == 'true'
name: Biome Check
- runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci
+ runs-on: namespace-profile-linux-small;overrides.cache-tag=web-ci
steps:
- name: Checkout Repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
@@ -147,7 +147,7 @@ jobs:
- path-check
if: needs.path-check.outputs.should_run == 'true'
name: Theme Hygiene Inspector
- runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci
+ runs-on: namespace-profile-linux-small;overrides.cache-tag=web-ci
steps:
- name: Checkout Repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
@@ -171,7 +171,7 @@ jobs:
- path-check
if: needs.path-check.outputs.should_run == 'true'
name: Test
- runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci
+ runs-on: namespace-profile-linux-small;overrides.cache-tag=web-ci
steps:
- name: Checkout Repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
@@ -195,7 +195,7 @@ jobs:
- path-check
if: needs.path-check.outputs.should_run == 'true'
name: Cycles Import Check
- runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci
+ runs-on: namespace-profile-linux-small;overrides.cache-tag=web-ci
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
@@ -219,7 +219,7 @@ jobs:
- path-check
if: needs.path-check.outputs.should_run == 'true'
name: Build
- runs-on: namespace-profile-linux-mid;overrides.cache-tag=web-ci
+ runs-on: namespace-profile-linux-small;overrides.cache-tag=web-ci
steps:
- name: Checkout Repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
@@ -247,7 +247,7 @@ jobs:
- build
if: always()
name: Web App Status Check
- runs-on: namespace-profile-linux-small
+ runs-on: namespace-profile-linux-tiny-no-cache
steps:
- name: Check job results
run: |
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main.rs
index b244732089..274b58f6eb 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/web_app_check_main.rs
@@ -11,11 +11,15 @@ use crate::workflows::{
vars,
};
-/// All the real web jobs share one mid-size Namespace profile with a dedicated
-/// cache tag, so the frontend's Nix/Bun/Cargo state lives on its own volume.
-/// The `gen-api` Rust objects use [`vars::WEB_SCCACHE_NAME`] through Namespace's
-/// official remote sccache.
+/// Frontend-only jobs share one small Namespace profile with a dedicated cache
+/// tag, so their Nix/Bun state lives on its own volume.
fn web_runner() -> String {
+ runners::Runner::Small.with_cache_tag(vars::WEB_CI_CACHE_TAG)
+}
+
+/// Typechecking can compile the Rust binaries used by `gen-api`, so retain the
+/// mid-size profile while sharing the web CI cache volume and remote sccache.
+fn typecheck_runner() -> String {
runners::Runner::Mid.with_cache_tag(vars::WEB_CI_CACHE_TAG)
}
@@ -48,7 +52,7 @@ pub fn web_app_check_main() -> Workflow {
fn path_check() -> Job {
Job::default()
- .runs_on(runners::Runner::Small.to_string())
+ .runs_on(runners::Runner::TinyNoCache.to_string())
.add_output("should_run", "${{ steps.filter.outputs.should_run }}")
.add_output("api_changed", "${{ steps.filter.outputs.api_changed }}")
.add_step(checkout("Checkout Repo", false))
@@ -62,7 +66,7 @@ fn typescript() -> Job {
"needs.path-check.outputs.should_run == 'true' || needs.path-check.outputs.api_changed == 'true'",
))
.name("Typecheck")
- .runs_on(web_runner())
+ .runs_on(typecheck_runner())
.add_step(checkout("Checkout Repo", false))
.add_step(steps::mount_web_cache_volume(true))
.add_step(steps::setup_nix())
@@ -139,7 +143,7 @@ fn status_check() -> Job {
"cycles".to_string(),
"build".to_string(),
])
- .runs_on(runners::Runner::Small.to_string())
+ .runs_on(runners::Runner::TinyNoCache.to_string())
.add_step(check_job_results())
}