Skip to content

docs: document reserved dependsOn/condition parameter names for target job/stage - #2190

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/reserved-template-parameter-names-727206989ce21b70
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
docs/reserved-template-parameter-names-727206989ce21b70

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Agent Documentation Update

Findings

Area Issue File(s)
accuracy build_parameters() (src/compile/common.rs) auto-injects dependsOn and condition template parameters for target: job / target: stage, and agentic_pipeline.rs::build_parameters rejects (compile-time error) any user-defined front-matter parameters: entry with either reserved name. Neither docs/targets.md nor docs/parameters.md documented this collision/error, only the successful auto-injection behavior. docs/targets.md, docs/parameters.md

Applied Fixes

  • Added a note to the target: job "Notes" section in docs/targets.md stating dependsOn/condition are reserved parameter names and reusing either in front-matter parameters: is a compile-time error.
  • Added the matching note to the target: stage "Notes" section in docs/targets.md.
  • Added a new "Reserved names on target: job / target: stage" subsection to docs/parameters.md, cross-linked to docs/targets.md.

Notes

Verified against src/compile/common.rs::build_parameters (auto-injection of dependsOn/condition for template targets) and src/compile/agentic_pipeline.rs::build_parameters (the is_template_target derivation for CompileTarget::Job | CompileTarget::Stage, and the anyhow::bail! reserved-name check). Confirmed the check applies identically to both job and stage targets.

Checked open PRs first via search_pull_requests for overlap — found ~15 open PRs already targeting the well-known container_runtime.rs-missing-from-AGENTS.md gap and several other known drift items (network ecosystems, ir.md, ado-script.md, azure-cli smoke links, export-bash-scripts flag, prompts permissions-required, sample-agent), so this run targeted a distinct, previously unaddressed gap instead.


Created by the agent-documentation maintainer workflow.

Generated by Agent Documentation Maintainer · auto · 93.2 AIC · ⌖ 6.64 AIC · ⊞ 11.9K · ◷

…t job/stage

Front matter parameters named dependsOn or condition on target: job or
target: stage collide with the compiler's auto-injected template
parameters and fail compilation, but this was undocumented in both
docs/targets.md and docs/parameters.md. Add the compile-time error
behavior to both pages, cross-linked.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@jamesadevine

Copy link
Copy Markdown
Collaborator

Integrated into #2238 and validated there. Closing this source PR as superseded by the aggregate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant