Skip to content

Remove self-reference from microbuild install and renovate templates#16558

Merged
MiYanni merged 4 commits intomainfrom
MiYanni-no-self
Mar 9, 2026
Merged

Remove self-reference from microbuild install and renovate templates#16558
MiYanni merged 4 commits intomainfrom
MiYanni-no-self

Conversation

@MiYanni
Copy link
Member

@MiYanni MiYanni commented Mar 2, 2026

Summary

For templates that reference other templates in Arcade, you cannot use @self as multi-repository scenarios may have self be a repository without Arcade in it. Therefore, the literal path here should be used. The @ syntax should only be used if you're crossing a repository boundary (meaning, you need to explicitly denote files from a different repository).

@akoeplinger
Copy link
Member

there are a lot more template inclusions with @self, should we fix them all?

@MiYanni
Copy link
Member Author

MiYanni commented Mar 3, 2026

@akoeplinger Technically, yes. I just know that this one that was added currently blocks dotnet/workload-versions from building.

@akoeplinger
Copy link
Member

@MiYanni I think I'd prefer being consistent and removing the @self everywhere then

@mmitche
Copy link
Member

mmitche commented Mar 4, 2026

@MiYanni I think I'd prefer being consistent and removing the @self everywhere then

Yep agreed.

mmitche
mmitche previously requested changes Mar 4, 2026
Copy link
Member

@mmitche mmitche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be consistent and change these throughout the repo.

For my education...when the template path is rooted like /<> and you have multiple repos checked out, does the YAML expansion know that / is related to arcade and not to the root source directory?

@MiYanni
Copy link
Member Author

MiYanni commented Mar 4, 2026

Let's be consistent and change these throughout the repo.

For my education...when the template path is rooted like /<> and you have multiple repos checked out, does the YAML expansion know that / is related to arcade and not to the root source directory?

It depends who's activating it. In a majority of cases, your pipeline template (top-level yml file) needs to care about using @ notation. But if you reference template: /foo/bar/baz.yml@ABC, you're setting the context of that template to the repo alias of ABC. Then, any other template: /whatever calls will be in the context of ABC.

It is kinda like using cd in command prompt. If your working directory is C:\foo\bar which is the C drive, you cannot cd to D:\bim\bam on the D drive because you're going across a drive boundary. You gotta change the context to cd D: and then you can move to that directory or any directories on D. If you need stuff from C, you gotta move back to the C context again. It isn't a 1-to-1 comparison, but it is similar to that in operation.

@ symbol indicates a context change for templates. So, everything in Arcade references only directories within Arcade, it doesn't need to use @.

@MiYanni
Copy link
Member Author

MiYanni commented Mar 4, 2026

@copilot Please remove all @self references from Azure Pipeline yml files for template: nodes within the repo.

Copy link
Contributor

Copilot AI commented Mar 4, 2026

@MiYanni I've opened a new pull request, #16568, to work on those changes. Once the pull request is ready, I'll request review from you.

…ntation (#16568)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MiYanni <17788297+MiYanni@users.noreply.github.com>
Co-authored-by: akoeplinger <1376924+akoeplinger@users.noreply.github.com>
@akoeplinger akoeplinger requested a review from mmitche March 5, 2026 18:12
akoeplinger
akoeplinger previously approved these changes Mar 5, 2026
@MiYanni MiYanni enabled auto-merge March 5, 2026 18:59
@MiYanni
Copy link
Member Author

MiYanni commented Mar 5, 2026

@mmitche Had copilot do all the @self references. Put a comment above for ya explaining how it works. Need a re-review to merge. I've set the PR to auto-merge.

Copy link
Contributor

Copilot AI commented Mar 6, 2026

@mmitche I've opened a new pull request, #16572, to work on those changes. Once the pull request is ready, I'll request review from you.

…YAML files (#16572)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mmitche <8725170+mmitche@users.noreply.github.com>
@akoeplinger akoeplinger changed the title Remove self-reference from microbuild install templates Remove self-reference from microbuild install and renovate templates Mar 9, 2026
@akoeplinger
Copy link
Member

turns out we really only had renovate.yml and the microbuild one that fell into the templates-extending-templates case

@MiYanni MiYanni merged commit 97f5d8a into main Mar 9, 2026
9 checks passed
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.

4 participants