Skip to content

Commit 0bfd11d

Browse files
test(bash-lint): cover 'Stage manual execution context' generator (#1062)
Add a `parameters:` block to execution-context-agent.md so the ManualContextContributor activates and its bash step 'Stage manual execution context (aw-context/manual/*)' is linted. Register the display name in REQUIRED_STEP_DISPLAY_NAMES. The manual contributor's bash body (set -euo pipefail + node call) is structurally identical to every other exec-context contributor, but it was not being exercised by any fixture and would silently drop out of lint coverage if it changed. 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 34a1b8a commit 0bfd11d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

tests/bash_lint_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ const REQUIRED_STEP_DISPLAY_NAMES: &[&str] = &[
121121
"ado-aw", // src/compile/extensions/ado_aw_marker.rs metadata marker step
122122
"Stage PR execution context (aw-context/pr/*)", // src/compile/extensions/exec_context/pr.rs
123123
"Stage workitem execution context (aw-context/workitem/*)", // src/compile/extensions/exec_context/workitem.rs (activated by PR trigger)
124+
"Stage manual execution context (aw-context/manual/*)", // src/compile/extensions/exec_context/manual.rs (activated by parameters: block)
124125
"Resolve synthetic PR context", // src/compile/extensions/ado_script.rs synthetic_pr_step()
125126
];
126127

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
---
22
name: "Execution Context Agent"
3-
description: "Agent exercising the execution-context PR contributor"
3+
description: "Agent exercising the execution-context PR contributor and manual contributor"
44
on:
55
pr:
66
branches:
77
include: [main]
8+
parameters:
9+
- name: topic
10+
type: string
11+
default: ""
12+
displayName: "Topic to work on"
813
---
914

1015
## Execution Context Agent
1116

12-
This fixture exercises the always-on `ExecContextExtension` with the PR
13-
contributor in its default configuration.
14-
15-
When triggered by a pull request, the precompute step stages
16-
`aw-context/pr/base.sha` and `aw-context/pr/head.sha` under
17-
`$(Build.SourcesDirectory)/aw-context/`, and appends a tailored prompt
18-
fragment to the agent prompt with literal PR id / project / repo values
19-
plus example `git diff $BASE..$HEAD` and Azure DevOps MCP tool calls.
20-
21-
On preparation failure the step writes `aw-context/pr/error.txt` and a
22-
failure-mode prompt fragment instead.
17+
This fixture exercises the always-on `ExecContextExtension` with:
18+
- The **PR contributor** (activated by `on.pr`) — stages `aw-context/pr/*`
19+
artefacts and appends a PR-context prompt fragment.
20+
- The **manual contributor** (activated by the `parameters:` block) — stages
21+
`aw-context/manual/*` artefacts when the pipeline is queued manually.
2322

0 commit comments

Comments
 (0)