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 <noreply@anthropic.com>
This commit is contained in:
Alexander Kiselev
2026-02-07 10:10:42 -08:00
co-authored by Claude Opus 4.6
parent 24763e8328
commit d8d0e8a7fd
+7 -7
View File
@@ -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