Repository navigation
Fix build-analysis inputs and pipeline-triage issue typing - #12429
Amaury Levé (Evangelink) merged 1 commit into
Conversation
Use validated runtime manifests for build analysis and queue native Bug typing through scoped safe outputs. Preserve the aligned runtime and document validation limits. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Native issue-typing and deferred-retry contracts remain unverified because the seven regressions and hosted publication were not exercised, and access to the pinned upstream runtime was blocked.
No open issues 🎉
What changed in this PR
This PR repairs TestFx’s build-analysis and pipeline-triage automation: analysts receive explicit runtime inputs, and newly created triage issues receive the native GitHub Bug type. It remains separate from the apt startup fix in #12405.
Changes:
- Replace environment exports with validated, sandbox-visible manifests and clarify that binlog paths belong to the MCP container.
- Queue native issue typing through temporary IDs, with scope filters and a bounded deferred retry.
- Regenerate three workflow locks and add seven regression methods plus investigation documentation.
Test-value evidence: For candidate 71767f25d715f83fdc770f1b15e224bc8e47a39e, the PR reports successful strict compilation, ShellCheck, syntax checks, and action-pin validation. None of the seven new regression methods were executed; red/green sensitivity and hosted publication remain unverified.
Confidence at a glance — 🟡 Workflow behavior
Validation is limited to reported static/compiler checks. Execute the new regression methods and retained-test comparisons to establish behavioral evidence; hosted execution remains a separate validation gap.
| File | Description |
|---|---|
.github/workflows/shared/build-failure-analysis-shared.md |
Directs analysts to the manifest and MCP-only binlog paths. |
.github/workflows/README.md |
Records investigation, design decisions, and validation limits. |
.github/workflows/pipeline-test-triage.md |
Configures filtered native issue typing and retry budget. |
.github/workflows/pipeline-test-triage.lock.yml |
Regenerates runtime configuration for issue typing. |
.github/workflows/build-failure-analysis.md |
Writes validated inputs using isolated Python startup. |
.github/workflows/build-failure-analysis.lock.yml |
Regenerates automatic build-analysis delivery. |
.github/workflows/build-failure-analysis-command.md |
Adds manifest delivery to command-triggered analysis. |
.github/workflows/build-failure-analysis-command.lock.yml |
Regenerates command-triggered workflow delivery. |
.github/scripts/test_gh_aw_runtime_contracts.py |
Adds issue-typing, retry, creation-failure, and scope tests. |
.github/scripts/test_agentic_workflow_warning_contracts.py |
Adds manifest, identity, import-isolation, and delivery tests. |
.github/agents/pipeline-test-triage-analyst.agent.md |
Replaces custom-field typing with the temporary-ID recipe. |
.github/agents/build-failure-analyst.agent.md |
Documents manifest inputs and container-only log access. |
Review effort: Balanced
Pull request
Summary
Recent agentic runs can report missing build inputs after successful artifact collection, or fail while assigning an issue category. This repairs the Build Failure Analysis and Pipeline Test Triage workflow contracts:
Bugtyping through the created issue's temporary ID, with title/label/repository filters and a bounded deferred retry.Relates to #12385
The apt startup failure tracked there was already addressed by #12405; this PR does not duplicate that fix or close the automatically managed tracker.
Design and decision record
These are workflow repairs, not a new product feature. The maintained investigation and decisions explain the failing boundaries and preserved controls.
Host-side environment exports are not the analyst's input contract, and
/data/binlogsbelongs to the MCP container rather than the agent filesystem. The trusted exporter now serializes the resolved identities and inventory into/tmp/gh-aw; it uses isolated Python startup. Native Issue Type is handled byset_issue_type, not customfields.Type. The existing custom-field allowlist is retained because omission would allow all custom fields.The v1.2.2 upgrade was evaluated in an isolated snapshot but does not repair these authored contracts and requires separate checkout-policy review. This PR retains the matching v1.0.1 compiler/runtime instead of broadening the change.
Demonstration
This changes orchestration rather than rendered layout. The investigation used existing Build Failure Analysis run 43150146472 and Pipeline Test Triage run 43180889320. No workflow was dispatched or rerun to demonstrate the changes; hosted model behavior, issue categorization, and publication remain unverified. No screenshot is presented as proof.
Validation and regression proof
Source state: parent
29f8046dad20ec4d4cef871d63fb4d2000449c33, committed candidate71767f25d715f83fdc770f1b15e224bc8e47a39e. The checked working-tree patch was unchanged before committing. These are local static/compiler checks, not hosted workflow execution.gh-aw-v1.0.1.exe compile build-failure-analysis build-failure-analysis-command pipeline-test-triage --strict --no-check-update --shellcheck --jsonpython .github\scripts\check_action_pins.pygit --no-pager diff --check--checkof the embedded driverNo .NET build or package validation was applicable to these workflow-only changes. The final automated safety follow-up could not be completed because the synchronous reviewer could not accept a continuation. Offline regressions and retained-test comparisons were withheld; their behavior is not claimed as verified. Local evidence remains in session artifacts and has not been uploaded.
Test-value evidence
Seven regression methods were added; zero were executed. No red/green result is claimed.
BuildAnalysisInputTests.test_build_context_is_readable_without_environment_probesBuildAnalysisInputTests.test_build_context_ignores_checkout_and_python_path_modulesGhAwRuntimeContractTests.test_pipeline_triage_issue_recipe_creates_native_bugThe other new methods cover invalid or missing identity/inventory, optional merge identity and compiled delivery, failed/duplicate creation, and type-assignment scope filters. Regression sensitivity, hosted execution, and real GitHub publication are still explicit validation gaps.