Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate official and unofficial pipelines #334

Open
wants to merge 4 commits into
base: microbuild
Choose a base branch
from

Conversation

matteo-prosperi
Copy link

Separate official and unofficial pipelines.
This is to satisfy the requirement that pipelines marked as production never use the unofficial templates.

Copy link
Owner

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

This is going to need some changes to the in-house wiki for the template as well, which documents pipelines and their purposes.
And we'll probably want to send a notification within VS Core template users so they know to merge the latest template and adjust their pipelines manually.
Can you take care of all that in tandem with this, and let me know when you're ready for this to merge?

azure-pipelines/official.yml Outdated Show resolved Hide resolved
azure-pipelines/official.yml Show resolved Hide resolved
Matteo Prosperi added 2 commits January 6, 2025 14:06
@matteo-prosperi
Copy link
Author

This is going to need some changes to the in-house wiki for the template as well, which documents pipelines and their purposes. And we'll probably want to send a notification within VS Core template users so they know to merge the latest template and adjust their pipelines manually. Can you take care of all that in tandem with this, and let me know when you're ready for this to merge?

I will first test these changes on the Gladstone repo. Then update the wiki, notify users and finally complete this PR. Thanks for confirming that these changes are reasonable, so I can go ahead with my testing :-)

@AArnott
Copy link
Owner

AArnott commented Jan 6, 2025

@matteo-prosperi You're going to need to set up git commit signing and rebase your commits for them to be merged. Repos exist that merge from this template that require commits to be signed, so this repo similarly requires this.

Copy link

@adrianvmsft adrianvmsft left a comment

Choose a reason for hiding this comment

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

Shouldn't the Expand script replace placeholders in both official.yml and unofficial.yml?

@@ -150,7 +150,7 @@ try {
$YmlReplacements = @{
"(?m)^\s+- microbuild`r?`n"=""
}
Replace-Placeholders -Path "azure-pipelines\official.yml" -Replacements $YmlReplacements
Replace-Placeholders -Path "azure-pipelines\unofficial.yml" -Replacements $YmlReplacements

Choose a reason for hiding this comment

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

Shouldn't this replace place-holders in both official.yml and unofficial.yml?

Copy link
Owner

Choose a reason for hiding this comment

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

Only if there are placeholders to be replaced. official.yml no longer has tokens to replace, and the script fails with an error in that case, so that's probably what prompted removing the old one.

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.

3 participants