the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
ci: restore fast reliable checks
Ogulcan Celik012e819b5b8e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex ca1ebce8b..dc715802d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -92,6 +92,7 @@ jobs:uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1with:version: 0.15.2+ use-cache: ${{ matrix.kind != 'windows' }}- name: Restore Homebrew Zig cacheif: runner.os == 'macOS'@@ -107,8 +108,19 @@ jobs:run: |HOMEBREW_NO_AUTO_UPDATE=1 brew install [email protected]echo "$(brew --prefix [email protected])/bin" >> "$GITHUB_PATH"+ echo "ZIG_GLOBAL_CACHE_DIR=$GITHUB_WORKSPACE/.zig-cache" >> "$GITHUB_ENV"+ echo "ZIG_LOCAL_CACHE_DIR=$GITHUB_WORKSPACE/.zig-cache" >> "$GITHUB_ENV""$(brew --prefix [email protected])/bin/zig" version+ - name: Restore Zig build cache+ if: runner.os == 'macOS' || matrix.kind == 'windows'+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4+ with:+ path: .zig-cache+ key: zig-build-v1-${{ runner.os }}-${{ runner.arch }}-0.15.2-${{ github.run_id }}-${{ github.run_attempt }}+ restore-keys: |+ zig-build-v1-${{ runner.os }}-${{ runner.arch }}-0.15.2-+- name: Install macOS build toolsif: runner.os == 'macOS'run: HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja@@ -119,14 +131,6 @@ jobs:cache-bin: falsekey: ${{ matrix.os }}- - name: Remove Zig caches- if: matrix.kind == 'windows'- shell: pwsh- run: |- Remove-Item -Recurse -Force .zig-cache -ErrorAction SilentlyContinue- Remove-Item -Recurse -Force vendor/libghostty-vt/.zig-cache -ErrorAction SilentlyContinue- Remove-Item -Recurse -Force vendor/libghostty-vt/zig-out -ErrorAction SilentlyContinue-- name: Run checksif: matrix.kind == 'unix'run: just ci '${{ matrix.nextest_filter }}'@@ -143,8 +147,21 @@ jobs:throw "command failed with exit code $LASTEXITCODE`: $Command $($Arguments -join ' ')"}}+ function Invoke-CargoWithZigCacheRecovery {+ param([string[]]$Arguments)+ & cargo @Arguments+ if ($LASTEXITCODE -eq 0) {+ return+ }++ Write-Warning "cargo compile failed; clearing Zig build caches and retrying once"+ Remove-Item -Recurse -Force .zig-cache -ErrorAction SilentlyContinue+ Remove-Item -Recurse -Force vendor/libghostty-vt/.zig-cache -ErrorAction SilentlyContinue+ Remove-Item -Recurse -Force vendor/libghostty-vt/zig-out -ErrorAction SilentlyContinue+ Invoke-Checked cargo $Arguments+ }Invoke-Checked cargo @("fmt", "--check")- Invoke-Checked cargo @("clippy", "--bin", "herdr", "--locked", "--target", "x86_64-pc-windows-msvc", "--", "-D", "warnings")+ Invoke-CargoWithZigCacheRecovery @("clippy", "--bin", "herdr", "--locked", "--target", "x86_64-pc-windows-msvc", "--", "-D", "warnings")Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "windows_")Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "server::client_transport::tests")Invoke-Checked cargo @("build", "--locked", "--target", "x86_64-pc-windows-msvc")diff --git a/src/app/mod.rs b/src/app/mod.rsindex cd4024606..f32d7785c 100644--- a/src/app/mod.rs+++ b/src/app/mod.rs@@ -497,7 +497,12 @@ impl App {state::Mode::Navigate};+ #[cfg(not(test))]let agent_manifest_summaries = crate::detect::manifest::reload_manifests();+ // Nextest runs each unit test in a fresh process. Manifest-sensitive tests reload+ // explicitly; unrelated App tests should not recompile every bundled regex.+ #[cfg(test)]+ let agent_manifest_summaries = Vec::new();let theme_runtime = theme_runtime_config(config, true);let (theme_palette, theme_name) = resolve_effective_theme(&theme_runtime, None);