agent-browser: run tests sequentially to fix flakiness

Several tests share global state (env vars, files on disk) and race
when cargo runs them in parallel. Skipping individual tests is not
enough, so disable parallel test execution instead.

Hydra failure: https://hydra.nixos.org/build/345981617
This commit is contained in:
Baptiste Girardeau
2026-09-25 14:54:31 +02:00
parent 34ca302a95
commit 4f7130fa18

View File

@@ -103,12 +103,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
writableTmpDirAsHomeHook
];
# Flaky test: reads the AGENT_BROWSER_CDP env variable without using the
# shared test lock.
checkFlags = [
"--skip"
"native::actions::tests::test_execute_unknown_command"
];
# Some tests use a shared state that makes them flaky when run concurrently.
dontUseCargoParallelTests = true;
__darwinAllowLocalNetworking = true;