From d8d0e8a7fd627c43906c256ad96e46a0d767e158 Mon Sep 17 00:00:00 2001 From: Alexander Kiselev Date: Sat, 7 Feb 2026 10:10:42 -0800 Subject: [PATCH] ci: fix Windows project cache path and add --nocapture for diagnostics The CI was caching ~/AppData/Local/ghidra-cli/cache/projects but the code uses dirs::cache_dir()/ghidra-cli/projects which on Windows resolves to AppData/Local/ghidra-cli/projects (no extra cache/ subdirectory). This mismatch meant the project cache was never restored on Windows, forcing every test run to import+analyze from scratch via bridge startup - which compounds with bridge startup issues to exceed the 80-minute timeout. Also add -- --nocapture to all integration test commands so eprintln output from test harness and bridge startup is visible in CI logs. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9e8c39..499e106 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,7 +89,7 @@ jobs: path: | ~/.cache/ghidra-cli/projects ~/Library/Caches/ghidra-cli/projects - ~/AppData/Local/ghidra-cli/cache/projects + ~/AppData/Local/ghidra-cli/projects key: ghidra-projects-${{ matrix.os }}-${{ hashFiles('tests/fixtures/sample_binary.rs') }} - name: Build @@ -161,7 +161,7 @@ jobs: path: | ~/.cache/ghidra-cli/projects ~/Library/Caches/ghidra-cli/projects - ~/AppData/Local/ghidra-cli/cache/projects + ~/AppData/Local/ghidra-cli/projects key: ghidra-projects-${{ matrix.os }}-${{ hashFiles('tests/fixtures/sample_binary.rs') }} - name: Build @@ -181,7 +181,7 @@ jobs: shell: bash - name: Run read-only integration tests - run: cargo test --test readonly_tests --verbose + run: cargo test --test readonly_tests --verbose -- --nocapture timeout-minutes: 80 env: RUST_LOG: info @@ -231,7 +231,7 @@ jobs: path: | ~/.cache/ghidra-cli/projects ~/Library/Caches/ghidra-cli/projects - ~/AppData/Local/ghidra-cli/cache/projects + ~/AppData/Local/ghidra-cli/projects key: ghidra-projects-${{ matrix.os }}-${{ hashFiles('tests/fixtures/sample_binary.rs') }} - name: Build @@ -251,7 +251,7 @@ jobs: shell: bash - name: Run mutation integration tests - run: cargo test --test comment_tests --test symbol_tests --test patch_tests --test type_tests --test script_tests --verbose + run: cargo test --test comment_tests --test symbol_tests --test patch_tests --test type_tests --test script_tests --verbose -- --nocapture timeout-minutes: 80 env: RUST_LOG: info @@ -301,7 +301,7 @@ jobs: path: | ~/.cache/ghidra-cli/projects ~/Library/Caches/ghidra-cli/projects - ~/AppData/Local/ghidra-cli/cache/projects + ~/AppData/Local/ghidra-cli/projects key: ghidra-projects-${{ matrix.os }}-${{ hashFiles('tests/fixtures/sample_binary.rs') }} - name: Build @@ -321,7 +321,7 @@ jobs: shell: bash - name: Run infrastructure tests - run: cargo test --test daemon_tests --test reliability_tests --test project_tests --verbose + run: cargo test --test daemon_tests --test reliability_tests --test project_tests --verbose -- --nocapture timeout-minutes: 80 env: RUST_LOG: info