Skip to content

fix(coverage): hoist env prefixes off testCmd, refuse the unsafe ones - #97

Merged
omsherikar merged 2 commits into
mainfrom
fix/95-coverage-env-prefix
Aug 4, 2026
Merged

omsherikar merged 2 commits into
mainfrom
fix/95-coverage-env-prefix

Conversation

@omsherikar

@omsherikar omsherikar commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #95.

What

The coverage runner now understands a leading NAME=VALUE prefix on testCmd, and refuses the cases where honouring it would measure a different run than the gate verified.

Why

Refactron runs your suite twice, and the two paths disagreed about what a command is.

The tests gate hands it to a shell: src/verify/runners/detect.ts:27 spawns sh -c "<cmd>", so PYTHONPATH=. python3 -m pytest -q is an environment assignment and the tests run correctly.

The coverage runner spawns argv, because coverage run takes argv. Its classifier had no concept of an assignment, so PYTHONPATH=. fell through to the console-entry-point branch:

python3 -m pytest -q            ->  coverage run -m pytest -q                          correct
PYTHONPATH=. python3 -m pytest  ->  coverage run -m PYTHONPATH=. python3 -m pytest     broken
PYTHONPATH=./src python3 ...    ->  coverage run PYTHONPATH=./src python3 ...          broken (script branch, via the slash)
COVERAGE_CORE=sysmon python3 ...->  coverage run -m COVERAGE_CORE=sysmon python3 ...   broken

Nothing was imported, no data file was written, and the verdict capped at UNPROVEN. The tests gate stayed green, so nothing looked broken; you simply never reached SAFE, on every run.

That matters because PYTHONPATH= is our own documented remedy for shadow bypass (docs/verification/verdicts.mdx:209). Over MCP it is the only form available: src/mcp/tools/verify-change.ts:15 declares testCmd as a plain string with no env field, and nine pages under docs/mcp/ instruct agents to use the prefix.

Before and after, same repo, same edit, same suite, only testCmd differs:

before   SAFE      coverage.py            python3 -m pytest -q
         UNPROVEN  none                   PYTHONPATH=. python3 -m pytest -q
after    SAFE      coverage.py  4/4       python3 -m pytest -q
         SAFE      coverage.py  4/4       PYTHONPATH=. python3 -m pytest -q

Review found a false SAFE in the first commit. Read this part.

The first commit made verdicts that were previously UNPROVEN able to reach SAFE. That is the dangerous direction, and it went wrong exactly there. Reproduced on a flat-layout project with an edit that makes add(2, 3) return -1:

tree testCmd verdict
main PYTHONPATH=<repoRoot> pytest -q UNPROVEN (fail-safe)
first commit PYTHONPATH=<repoRoot> pytest -q SAFE — "Tests pass and the changed code is covered."
first commit python3 -m pytest -q (control) UNSAFE — the edit really does break the suite

Rewriting a console entry point to module form is not equivalent to the gate's spawn:

gate       sh -c "PYTHONPATH=<other> pytest -q"    console script: sys.path[0] is the
                                                   bin dir, so PYTHONPATH wins
this path  coverage run -m pytest -q               `-m` puts CWD FIRST, ahead of
                                                   PYTHONPATH, so the shadow wins

The gate proved the original tree green while coverage proved the shadow tree exercised. Both statements true, about different trees, fused into SAFE. Hoisting the environment is what made that pre-existing argv divergence reachable in-band.

That combination is now declined. Module form is equivalent on both sides, so PYTHONPATH=. python3 -m pytest -q — the form the docs teach and the issue's own repro — keeps working. Widening the decline can only lose capability; narrowing it loses soundness.

The rule this module now states

toCoverageRunArgs returns non-null only when the argv and env it produces are observationally equivalent to what sh -c <testCmd> would have run. Anything it cannot prove equivalent returns null and the verdict degrades to unknown.

It is written into the module header, because the alternative is learning one shell feature per bug report. Under it, this PR is not "the argv path grew a feature" but "a construct we can prove equivalent stopped being declined". An ADR should follow.

Also declined for the same reason: values containing $, and values where a shell would expand ~ (at the start, or after any :, since expansion applies per path segment).

Silent declines are the bug, so declines now explain themselves

reportCoverage computes cannot wrap test command for coverage: ..., and docs/mcp/tool-reference.mdx:103 promises agents that coverage.unknownReason says why coverage is unknown when we know it. verify-diff.ts discarded it. An agent writing PYTHONPATH=$PWD/src would have hit the new decline and received the identical unhelpful message it got before this fix, which is #95's failure mode reintroduced by #95's fix. The reason is now carried through.

Evidence

Run on 8bd0d88:

typecheck                                       OK
lint (--max-warnings 0)                         OK
format:check                                    OK
npm test                    137 files, 977 tests, 0 failures
analyze src/ --fail-on high                     No findings (exit 0)

Locked contracts untouched. VerdictReport unchanged: no field added, renamed, retyped or removed, no reportVersion bump. toCoverageRunArgs changes return type, but there is no src/index.ts at all and package.json exports has no subpath patterns, so it is unreachable by any consumer. reportCoverage's other caller, src/analyze/engine.ts:99, passes no testCmd; confirmed unaffected by tests/integration/preflight.test.ts, which reaches it with no testCmd and asserts coverageAvailable.

Red-first, by mutation

Diffing against main cannot prove the classifier tests red: the return shape changed, so every assertion fails on main whether or not it tests anything. Each guard was verified by mutating this branch instead:

remove the import-affecting decline
  -> "a change that BREAKS the suite can never read SAFE"    FAILS  expected 'SAFE' not to be 'SAFE'

neuter the shadow-bypass guard (unmeasured.length > 0 && false)
  -> "a PYTHONPATH pointing OUTSIDE the shadow tree
      reads unknown, never uncovered"                        FAILS  expected 'coverage.py' to be 'none'

Genuinely red on main for behavioural reasons: hoists a leading NAME=VALUE prefix (received ["-m","PYTHONPATH=.","python3","-m","pytest","-q"]), PYTHONPATH= prefix still measures coverage (expected 'none' to be 'coverage.py'), and the env-merge test against stashed pre-fix source.

Four further guards were added because a mutation run showed the suite survived without them: quoted assignment values with whitespace, later-assignment-wins, non-identifier names such as 1BAD=x, and a pin on the default pytest -q classification.

A note on the shadow-bypass guard

It shipped in round-4 (#86) with no test, and the whole suite passed with it neutered. It now has one. Its contract is not the verdict — a file missing from measuredFiles has no covered lines, so the per-file AND in coverage-attribution.ts already forces UNPROVEN. What only the guard delivers is refusing to say "the changed code is not exercised by any test" about code the suite was never given the chance to load. That sentence is the assertion now pinned.

Not verified locally

Windows. sh -c strips backslashes in an assignment value, so the new tests normalise fixture paths to forward slashes and assert gates.tests.passed to stop a mangled path from passing the UNPROVEN assertions for the wrong reason. Whether backslash-bearing hoisted values should be declined outright is a follow-up.

Follow-ups, deliberately not in this PR

  • Reconcile PYTHONPATH guidance across verification and MCP docs #96, docs reconciliation, unblocked by this merging.
  • A pre-existing false SAFE on main by the same mechanism out of band: export PYTHONPATH=<repoRoot> plus testCmd: pytest -q. This PR does not create or widen it; it needs its own issue.
  • Extending the $ decline to all tokens, not just hoisted values, plus an sh-differential test harness that compares toCoverageRunArgs against a real shell.
  • Guard degradations carrying an unknownReason of their own.
  • package.json advertises a . export resolving to a file the build never produces.
  • Five pre-existing early-return skips in coverage-reporter.test.ts that report PASSED.

Summary by CodeRabbit

  • Bug Fixes
    • Coverage checks now correctly handle commands with environment-variable prefixes, quoting, scripts, and module invocations.
    • Inherited environment settings are preserved while coverage output continues to use the appropriate temporary data file.
    • Coverage failures now include a specific explanation instead of reporting only unknown coverage.
    • Verification avoids incorrectly marking changes as safe when commands access external or different source trees.
  • Tests
    • Expanded integration coverage for command parsing, environment handling, subprocess execution, and shadow-tree safety.

The tests gate runs testCmd through `sh -c`, where `PYTHONPATH=. pytest`
is an environment assignment. The coverage runner spawns argv directly
and had no concept of one, so it classified the assignment as a module
name and emitted `coverage run -m PYTHONPATH=. python3 ...`. Nothing was
imported, no data file was written, and the verdict capped at UNPROVEN.

The tests gate stayed green throughout, so the failure was invisible,
and `PYTHONPATH=` is our own documented remedy for shadow bypass. Every
project following that advice could never reach SAFE.

Leading assignments are now hoisted into the child environment and the
remainder classifies as before. Hoisting stops at the first token that
is not an assignment, so `pytest -k a=b` keeps its argument. COVERAGE_FILE
is applied after the hoisted vars so a test command cannot redirect the
data file, which would look exactly like measuring nothing.

A value containing `$` is declined rather than hoisted. The shell would
expand it and this path would not, and a coverage run over a different
sys.path than the verified run is worse than no measurement.

Closes #95
Review found that the previous commit introduced a false SAFE, which is
the one defect this project treats as unforgivable. Reproduced: an edit
making add(2, 3) return -1 read SAFE with 'PYTHONPATH=<repoRoot> pytest
-q' while the module-form control read UNSAFE.

Rewriting a console entry point to module form is not equivalent to the
gate's spawn. `-m` puts CWD first on sys.path, ahead of PYTHONPATH, while
the console script the gate runs does not. With an import-affecting
variable set, that selects a different copy of the code: the gate proved
the original tree green, coverage proved the shadow tree exercised, and
fusing two true statements about two trees yielded SAFE.

That combination is now declined. The form the docs teach, module form on
both sides, stays equivalent and keeps working.

Tilde is declined alongside $, since a shell expands it per path segment
in an assignment value. Measurement failures now carry their reason
through to coverage.unknownReason, which tool-reference already promises
and which made this class of failure indistinguishable from a suite that
simply never ran the code.

The rule the module is governed by is now stated as a rule: return
non-null only when the argv and env are observationally equivalent to
what the gate's shell would have run.

Tests: the adversarial case moves to a flat layout, where the divergence
is reachable at all, and asserts a breaking edit can never read SAFE.
Both new guards proven by mutation rather than by diffing against main,
which cannot work here because the return shape changed. The
shadow-bypass guard gets its first test since it shipped.
Copilot AI lite review requested due to automatic review settings August 4, 2026 08:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Coverage commands now preserve leading environment assignments during Python coverage execution. Unsupported shell expansion and import-affecting console-command prefixes remain unwrapped. Verification retains coverage failure reasons and tests shadow-tree attribution.

Changes

Coverage environment and verification

Layer / File(s) Summary
Command plan and coverage execution
src/analyze/coverage/python-line-coverage.ts, tests/integration/coverage-reporter.test.ts
toCoverageRunArgs returns arguments and environment assignments. Coverage merges those assignments with inherited variables, forces COVERAGE_FILE, and preserves supported module and script command forms. Tests cover parsing, quoting, rejection, environment inheritance, and subprocess execution.
Verification failure and shadow-tree checks
src/verify/verify-diff.ts, tests/integration/verify-diff.test.ts
Coverage failures retain measurementFailureReason. Integration fixtures and tests validate prefixed command measurement, external PYTHONPATH handling, coverage attribution, and safe verdict behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant TestCommand
  participant toCoverageRunArgs
  participant CoverageRunner
  participant CoverageData
  TestCommand->>toCoverageRunArgs: command text with leading assignments
  toCoverageRunArgs->>CoverageRunner: args and merged environment
  CoverageRunner->>CoverageData: run coverage with forced COVERAGE_FILE
  CoverageData-->>CoverageRunner: coverage measurement result
Loading

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 55.56% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary coverage fix: hoisting environment prefixes and rejecting unsafe assignments.
Linked Issues check ✅ Passed The implementation and tests address issue #95 objectives, including environment hoisting, safety rejection, coverage attribution, and shadow-tree protection.
Out of Scope Changes check ✅ Passed The changes remain within issue #95 scope and cover coverage execution, failure reasons, shadow-tree safety, and related tests.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/95-coverage-env-prefix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (4)
tests/integration/coverage-reporter.test.ts (2)

388-392: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Pin args too, not only env, for the invalid-name cases.

Lines 391-392 assert only .env. For 1BAD=x python3 -m pytest -q, a shell reads 1BAD=x as the command name. This implementation keeps it as the first token and classifies it as a console entry point, so args becomes ['-m', '1BAD=x', 'python3', '-m', 'pytest', '-q']. The current assertion passes for that argv. The comment above it claims the case protects against running a command the tests gate could never run, so the assertion should cover args.

The resulting run still degrades honestly to unknown, so this is a test-strength gap rather than a false SAFE.

💚 Proposed fix
-      expect(toCoverageRunArgs('1BAD=x python3 -m pytest -q')?.env).toEqual({});
-      expect(toCoverageRunArgs('-k=v python3 -m pytest -q')?.env).toEqual({});
+      // Neither token is an assignment, so BOTH stay in argv and nothing is
+      // hoisted. Pinning `args` as well as `env` keeps a future change from
+      // quietly hoisting them or reclassifying the remainder.
+      expect(toCoverageRunArgs('1BAD=x python3 -m pytest -q')).toEqual({
+        args: ['-m', '1BAD=x', 'python3', '-m', 'pytest', '-q'],
+        env: {},
+      });
+      expect(toCoverageRunArgs('-k=v python3 -m pytest -q')).toEqual({
+        args: ['-m', '-k=v', 'python3', '-m', 'pytest', '-q'],
+        env: {},
+      });
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/coverage-reporter.test.ts` around lines 388 - 392,
Strengthen the invalid-name cases in toCoverageRunArgs by asserting both env and
args. For `1BAD=x python3 -m pytest -q` and `-k=v python3 -m pytest -q`, pin
args to the expected unknown/degraded result so the tests reject treating the
invalid assignment token as a runnable console entry point.

23-34: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consolidate the two prerequisite probes.

pythonHasCoverage() at lines 14-21 probes only coverage. The new IIFE probes coverage and pytest. Two probes with different prerequisites now gate tests in the same file. A reader cannot tell which gate applies to which test, and a later edit can attach the weaker gate to a test that needs pytest. That combination reports green while proving nothing, which is the exact failure the comment at line 25 warns about.

Derive both from one probe, or drop pythonHasCoverage() if the remaining callers need pytest as well.

#!/bin/bash
# Find the remaining callers of pythonHasCoverage in this file.
set -euo pipefail

rg -n -C3 '\bpythonHasCoverage\b|\bNO_COVERAGE\b' tests/integration/coverage-reporter.test.ts
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/coverage-reporter.test.ts` around lines 23 - 34,
Consolidate the prerequisite detection in the coverage reporter tests by
removing the weaker pythonHasCoverage() probe if all remaining callers require
pytest, and use the single coverage-plus-pytest result for every relevant skipIf
gate. Update references to pythonHasCoverage and NO_COVERAGE consistently so
each gated test uses the same prerequisite contract.
tests/integration/verify-diff.test.ts (2)

212-215: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

The negative string assertion can pass vacuously.

Line 215 asserts that reason does not contain not exercised by any test. If a later change reworders that phrase in the verdict text, then this assertion passes without testing anything, and the comment above it presents this as the property that only the shadow-bypass guard delivers.

Bind the phrase to a constant that the production code also uses, or add a positive control that proves the phrase does appear for a genuinely uncovered change. Then a rewording breaks the control instead of silently retiring this assertion.

#!/bin/bash
# Locate the source of the 'not exercised by any test' phrase and check whether it is exported.
set -euo pipefail

rg -n -C4 'not exercised by any test' --type=ts
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/verify-diff.test.ts` around lines 212 - 215, Make the
assertion in the shadow-bypass verification test non-vacuous by reusing the
production symbol for the uncovered-change verdict phrase, or add a positive
control that verifies the phrase appears for a genuinely uncovered change.
Update the test around intoOriginal.reason so production rewording causes the
test suite to fail rather than silently weakening coverage.

241-259: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

The skip gate does not prove that a pytest console script exists.

NO_COVERAGE at line 25 probes python3 -c "import coverage, pytest". That proves the modules import. It does not prove that a pytest executable is on PATH. This test is the only one that runs pytest as a console script, at line 244.

If pytest is importable but its entry point is not resolvable, then the gate command fails to start, result.passed is false, assessCoverage never runs, and coverage.unknownReason stays undefined. Line 259 then fails on String(undefined) for an environment reason, not for the behavior under test.

Add a console-script probe and gate this test on it.

💚 Proposed fix
+// This suite's console-script case spawns `pytest` as an EXECUTABLE, which
+// `import pytest` does not prove is on PATH.
+function hasPytestScript(): boolean {
+  try {
+    execSync('pytest --version', { stdio: 'ignore' });
+    return true;
+  } catch {
+    return false;
+  }
+}
+const NO_PYTEST_SCRIPT = !hasPytestScript();
-  it.skipIf(NO_COVERAGE)(
+  it.skipIf(NO_COVERAGE || NO_PYTEST_SCRIPT)(
     'a change that BREAKS the suite can never read SAFE, whatever the prefix',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/verify-diff.test.ts` around lines 241 - 259, Update the
skip setup for this integration test to probe whether the pytest console script
is resolvable on PATH, in addition to the existing NO_COVERAGE module-import
check. Gate the test using that console-script probe so it is skipped when
`pytest` cannot be launched, while preserving the existing `viaConsoleScript`
and `viaModuleForm` assertions when the command is available.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/integration/coverage-reporter.test.ts`:
- Around line 266-268: Update the skipped integration test “hoists through a
real coverage run, keeping the inherited env” to provide an explicit timeout
matching the nearby integration test pattern, ensuring the full subprocess flow
including coverage json is covered by the 30000ms budget.

---

Nitpick comments:
In `@tests/integration/coverage-reporter.test.ts`:
- Around line 388-392: Strengthen the invalid-name cases in toCoverageRunArgs by
asserting both env and args. For `1BAD=x python3 -m pytest -q` and `-k=v python3
-m pytest -q`, pin args to the expected unknown/degraded result so the tests
reject treating the invalid assignment token as a runnable console entry point.
- Around line 23-34: Consolidate the prerequisite detection in the coverage
reporter tests by removing the weaker pythonHasCoverage() probe if all remaining
callers require pytest, and use the single coverage-plus-pytest result for every
relevant skipIf gate. Update references to pythonHasCoverage and NO_COVERAGE
consistently so each gated test uses the same prerequisite contract.

In `@tests/integration/verify-diff.test.ts`:
- Around line 212-215: Make the assertion in the shadow-bypass verification test
non-vacuous by reusing the production symbol for the uncovered-change verdict
phrase, or add a positive control that verifies the phrase appears for a
genuinely uncovered change. Update the test around intoOriginal.reason so
production rewording causes the test suite to fail rather than silently
weakening coverage.
- Around line 241-259: Update the skip setup for this integration test to probe
whether the pytest console script is resolvable on PATH, in addition to the
existing NO_COVERAGE module-import check. Gate the test using that
console-script probe so it is skipped when `pytest` cannot be launched, while
preserving the existing `viaConsoleScript` and `viaModuleForm` assertions when
the command is available.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6dec2792-0637-4f54-9fb5-5bf4ca0c543f

📥 Commits

Reviewing files that changed from the base of the PR and between 63118a3 and 8bd0d88.

📒 Files selected for processing (4)
  • src/analyze/coverage/python-line-coverage.ts
  • src/verify/verify-diff.ts
  • tests/integration/coverage-reporter.test.ts
  • tests/integration/verify-diff.test.ts

Comment on lines +266 to +268
it.skipIf(NO_COVERAGE)(
'hoists through a real coverage run, keeping the inherited env',
async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the configured Vitest test timeout for integration tests.
set -euo pipefail

fd -i 'vitest*.config.*|vite.config.*' --exec rg -n -C5 'testTimeout|hookTimeout|include|projects|workspace' {}
rg -n -C2 'testTimeout' --iglob 'package.json'

Repository: Refactron-ai/Refactron_Lib_TS

Length of output: 1714


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== candidate integration test files =="
fd -i 'verify-diff\.test\.ts|coverage-reporter\.test\.ts|package\.json|vitest.*config.*|vite.*config.*' .

echo
echo "== package test scripts =="
python3 - <<'PY'
import json
from pathlib import Path
p=Path('package.json')
data=json.load(open(p))
print(json.dumps(data.get('scripts', {}), indent=2))
PY

echo
echo "== testTimeout declarations =="
rg -n -C3 '"vitest"|"testTimeout|testTimeout|scripts"
testTimeout|vite.config|vitest.config' -S package.json tests .github 2>/dev/null || true

Repository: Refactron-ai/Refactron_Lib_TS

Length of output: 1775


Set an explicit timeout on this subprocess test.

This test spawns coverage run over pytest; configure timeout is 30000, but the related coverage json subprocess is not part of that budget. Add the explicit timeout, matching the nearby integration test pattern.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/integration/coverage-reporter.test.ts` around lines 266 - 268, Update
the skipped integration test “hoists through a real coverage run, keeping the
inherited env” to provide an explicit timeout matching the nearby integration
test pattern, ensuring the full subprocess flow including coverage json is
covered by the 30000ms budget.

@omsherikar
omsherikar merged commit 1925042 into main Aug 4, 2026
15 checks passed
@omsherikar
omsherikar deleted the fix/95-coverage-env-prefix branch August 4, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage silently fails when testCmd has a leading NAME=VALUE prefix

2 participants