Registry Mirror
Skip to content

Conversation

@genwave-radio

Copy link
Copy Markdown
Collaborator

🐛 What

CI on #877 falsely failed FeatureVersionMarkers+ScenarioTheEngineEntrypoint.LiquidsoapNeverSeesTheVersionValue. The fake liquidsoap records its argv and env, and the script inherited the runner's environment. On a branch named chore/release-v5.14.0-pins, GITHUB_HEAD_REF alone contained v5.14.0. This affects tests only; nothing in engine/ or src/ changes.

🔧 Fix

  • ScriptProcess.RunWithEmptyEnvironment: starts the script with a cleared environment, with PATH set to the stub bin plus extraEnv. It shares CreateStartInfo, ApplyExtraEnv and StartAndDrain with Run/Start, whose behaviour is unchanged.
  • The Story485 entrypoint scenarios (the happy path, the forged-CR case and the ANSI case) use it.
  • New positive fact LiquidsoapWasHandedTheTuningKeys: GW_XFADE_MIN=2 reaches liquidsoap, so the never-contains facts can't pass on an empty dump.

✅ Proof

  • A real leak is still caught. Three leak shapes each turn the fact red: "$app_version" as an argument, GW_APP_VERSION=… exec, and export app_version. engine/ was reverted afterwards.
  • GITHUB_HEAD_REF=chore/release-v5.14.0-pins dotnet test … --filter FeatureVersionMarkers passes 22/22.
  • Full dotnet test GenWave.sln --filter "Category!=Integration" has 0 failed across 9 projects (Host 3232 passed / 13 skipped).

Unblocks #877.

The liquidsoap stub records its argv and env so the AC5 facts can prove the version never reaches the engine. The child inherited the runner's environment, so on a branch named chore/release-v5.14.0-pins CI's GITHUB_HEAD_REF alone carried v5.14.0 and falsely failed LiquidsoapNeverSeesTheVersionValue (PR #877).

ScriptProcess gains RunWithEmptyEnvironment (cleared env, PATH = stub bin + extraEnv) built on shared CreateStartInfo/ApplyExtraEnv/StartAndDrain; Run/Start behaviour is unchanged. A positive fact (GW_XFADE_MIN=2 reaches liquidsoap) keeps the never-contains facts from passing on an empty dump.
@genwave-radio
genwave-radio merged commit b3097f7 into main Sep 28, 2026
11 checks passed
@genwave-radio
genwave-radio deleted the test/story485-env-leak branch September 28, 2026 14:15
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant