Skip to content

Commit 9d8f445

Browse files
test(bash-lint): cover Python runtime bash generator in REQUIRED_STEP_DISPLAY_NAMES (#532)
Add python: true to runtime-coverage-agent.md so the lint exercises the 'Append Python prompt' bash step emitted by src/runtimes/python/extension.rs via wrap_prompt_append(). Track the step in REQUIRED_STEP_DISPLAY_NAMES so the coverage check catches regressions if the generator is renamed or removed. No fixture previously included the Python runtime, leaving this bash step completely outside the shellcheck quality gate. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 94408dd commit 9d8f445

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/bash_lint_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const REQUIRED_STEP_DISPLAY_NAMES: &[&str] = &[
103103
"Ensure nuget.config exists", // src/runtimes/dotnet/mod.rs
104104
"Restore previous agent memory", // src/tools/cache_memory/extension.rs
105105
"Initialize empty agent memory (clearMemory=true)",
106+
"Append Python prompt", // src/runtimes/python/extension.rs
106107
"Generate GITHUB_PATH file", // src/compile/common.rs (AWF path step)
107108
"Evaluate pipeline filters", // src/compile/extensions/trigger_filters.rs + src/compile/filter_ir.rs
108109
"Evaluate PR filters", // src/compile/filter_ir.rs (GateContext::PullRequest)

tests/fixtures/runtime-coverage-agent.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
schedule: daily
66
runtimes:
77
lean: true
8+
python: true
89
node:
910
version: "22.x"
1011
feed-url: "https://pkgs.dev.azure.com/example/example/_packaging/example/npm/registry/"
@@ -19,4 +20,5 @@ tools:
1920

2021
This agent enables every runtime that produces a code-generated bash step,
2122
plus the `cache-memory` tool. Its sole job is to compile cleanly so the
22-
bash-step lint can analyse those generated bodies.
23+
bash-step lint can analyse those generated bodies. Python is included to
24+
exercise the `Append Python prompt` step from `src/runtimes/python/extension.rs`.

0 commit comments

Comments
 (0)