ci: install sharkd in the test workflow and make manager tests hermetic

The replay tests marked sharkd_present skip gracefully without the
binary, but four manager-level tests (cap eviction, in-use protection,
single spawn under concurrency, filter-error mapping) run entirely
against fakes and died on the acquire-time PATH check instead - install
wireshark-common (which ships /usr/bin/sharkd on the Ubuntu runner) so
the real-engine tests actually run in CI, and patch the which() check in
the fake-session tests so the suite stays green on machines without
sharkd.
This commit is contained in:
YueGuobin committed 2026-09-11 23:49:51 +08:00
1 parent 5d91ca0efc
commit 673253d848
2 files changed
+17 -3

No files matched your search

+4
View File
@@ -30,6 +30,10 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[ai-features,dev]
- name: Install sharkd (marker replay engine)
run: |
sudo apt-get update
sudo apt-get install -y wireshark-common
- name: Lint with flake8
run: |