fix(compile): anchor source/pipeline paths to trigger repo, not workspace#342
fix(compile): anchor source/pipeline paths to trigger repo, not workspace#342jamesadevine merged 2 commits intomainfrom
Conversation
…pace Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/97c1330d-1888-4fce-ab93-54662ec5bac8 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
/rust-review |
1 similar comment
|
/rust-review |
|
✅ Rust PR Reviewer completed successfully! |
🔍 Rust PR ReviewSummary: Looks good — clean, targeted fix with thorough tests and correct two-pass expansion ordering. Findings✅ What Looks Good
No bugs, security concerns, or missing test coverage found.
|
|
@copilot resolve the merge conflicts in this pull request |
…file-path # Conflicts: # AGENTS.md Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Summary
{{ source_path }}and{{ pipeline_path }}were emitted as{{ workspace }}/<file>, but{{ workspace }}now follows the user'sworkspace:setting. Whenworkspace:points at a checked-out alias, the integrity check and Stage 3--sourcelook in the alias repo for files that only exist in the trigger ("self") repo:The two concepts were conflated — where the agent runs vs. where the source/compiled yaml live. This PR separates them.
{{ trigger_repo_directory }}placeholder insrc/compile/common.rs, computed fromfront_matter.checkoutindependently ofworkspace::$(Build.SourcesDirectory)$(Build.SourcesDirectory)/$(Build.Repository.Name)generate_source_path/generate_pipeline_pathto emit"{{ trigger_repo_directory }}/<relative>".{{ working_directory }}/{{ workspace }}are unchanged — agentworkingDirectoryand AWF--container-workdirstill honorworkspace:.{{ source_path }}/{{ pipeline_path }}, matching the existing two-pass expansion pattern ({{ integrity_check }}→{{ pipeline_path }}→{{ trigger_repo_directory }}).generate_source_path/generate_pipeline_pathassertions; added coverage forgenerate_trigger_repo_directory(with and without additional checkouts) plus a regression test asserting trigger-repo dir ≠ working dir whenworkspace:resolves to an alias.AGENTS.mdsections for{{ source_path }}and{{ pipeline_path }}rewritten to reflect trigger-repo anchoring; new{{ trigger_repo_directory }}section added.Test plan
cargo build,cargo test,cargo clippy --all-targets --all-features— all pass with no new warnings.