Add inherit = false to all trycmd test envs to prevent CI flakiness

The doctor dry-run test was failing in CI because it inherited the host
environment. With no LLM API keys set, the doctor reported errors and
exited non-zero. Adding `inherit = false` to all 18 .toml test files
ensures deterministic behavior regardless of the host environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-14 16:43:23 -04:00
parent 06f8fcef06
commit 1806aa86d6
18 changed files with 52 additions and 0 deletions

View file

@ -3,3 +3,4 @@ args = ["doctor", "--dry-run"]
[env]
inherit = false
ANTHROPIC_API_KEY = "sk-test-dummy"

View file

@ -2,3 +2,6 @@ bin.name = "fabro"
args = ["llm", "prompt", "-o", "bad_option", "hello"]
status = "failed"
stderr-to-stdout = true
[env]
inherit = false

View file

@ -2,3 +2,6 @@ bin.name = "fabro"
args = ["llm", "prompt"]
status = "failed"
stderr-to-stdout = true
[env]
inherit = false

View file

@ -2,3 +2,6 @@ bin.name = "fabro"
args = ["llm", "prompt", "--no-stream", "-m", "test-model", "--schema", "not json", "hello"]
status = "failed"
stderr-to-stdout = true
[env]
inherit = false

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/branching.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/conditions.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/legacy_tool.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/parallel.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/simple.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["run", "--dry-run", "--auto-approve", "../../../test/styled.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -2,3 +2,6 @@ bin.name = "fabro"
args = ["--no-dotenv", "doctor"]
status = "failed"
stderr-to-stdout = true
[env]
inherit = false

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/branching.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/conditions.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -2,6 +2,9 @@ bin.name = "fabro"
args = ["validate", "../../../test/invalid.fabro"]
status = "failed"
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/legacy_tool.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/parallel.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/simple.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."

View file

@ -1,6 +1,9 @@
bin.name = "fabro"
args = ["validate", "../../../test/styled.fabro"]
[env]
inherit = false
[fs]
sandbox = false
cwd = "../../.."