From 6f8f3b38c3dcb9ed0a40f73f4c59bbd0baaecf1f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:52:41 +0000 Subject: [PATCH] test(bash-lint): cover 'Stage repo execution context' generator Add execution-context.repo.enabled: true to execution-context-agent.md so the RepoContextContributor's bash step is exercised by the lint. Track 'Stage repo execution context (aw-context/repo/*)' in REQUIRED_STEP_DISPLAY_NAMES so any future regression is caught. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- tests/bash_lint_tests.rs | 1 + tests/fixtures/execution-context-agent.md | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/bash_lint_tests.rs b/tests/bash_lint_tests.rs index d7ab2d7a..fdb5b4aa 100644 --- a/tests/bash_lint_tests.rs +++ b/tests/bash_lint_tests.rs @@ -125,6 +125,7 @@ const REQUIRED_STEP_DISPLAY_NAMES: &[&str] = &[ "Stage manual execution context (aw-context/manual/*)", // src/compile/extensions/exec_context/manual.rs (activated by parameters: block) "Stage pipeline execution context (aw-context/pipeline/*)", // src/compile/extensions/exec_context/pipeline.rs (activated by on.pipeline) "Resolve synthetic PR context", // src/compile/extensions/ado_script.rs synthetic_pr_step() + "Stage repo execution context (aw-context/repo/*)", // src/compile/extensions/exec_context/repo.rs (activated by execution-context.repo.enabled: true) ]; fn ado_aw_binary() -> PathBuf { diff --git a/tests/fixtures/execution-context-agent.md b/tests/fixtures/execution-context-agent.md index facae070..c4ae938f 100644 --- a/tests/fixtures/execution-context-agent.md +++ b/tests/fixtures/execution-context-agent.md @@ -1,6 +1,6 @@ --- name: "Execution Context Agent" -description: "Agent exercising the execution-context PR contributor and manual contributor" +description: "Agent exercising the execution-context PR contributor, manual contributor, and repo contributor" on: pr: branches: @@ -10,6 +10,9 @@ parameters: type: string default: "" displayName: "Topic to work on" +execution-context: + repo: + enabled: true --- ## Execution Context Agent @@ -19,4 +22,6 @@ This fixture exercises the always-on `ExecContextExtension` with: artefacts and appends a PR-context prompt fragment. - The **manual contributor** (activated by the `parameters:` block) — stages `aw-context/manual/*` artefacts when the pipeline is queued manually. +- The **repo contributor** (activated by `execution-context.repo.enabled: true`) — + stages `aw-context/repo/*` artefacts with repository identity info.