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

Specify source channel for asset validation #4183

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

garath
Copy link
Member

@garath garath commented Feb 7, 2024

Resolves dotnet/dnceng#1964.

The validation checks get confused if an asset with the same name and version is published more than once. This is rare, but can happen. This change adds the source-channel flag where appropriate for calls to darc.

@garath garath requested review from riarenas and missymessa February 7, 2024 23:27
@garath garath self-assigned this Feb 7, 2024
@garath
Copy link
Member Author

garath commented Feb 7, 2024

I'm not sure how to test this. The code is all mixed in with actual asset promotion, so it's not really safe to make "simple" cuts to the pipeline. I could add a whole "dry-run" flag that does everything except the permanent changes, but that seems like more work than worth. Though I'll certainly consider reviewer pushback if folks disagree.

@riarenas
Copy link
Member

riarenas commented Feb 7, 2024

I believe disabling this job: https://github.com/dotnet/arcade-validation/blob/main/azure-pipelines.yml#L299-L321 would let you run a validation build without the build being promoted.

EDIT: Or the entire stage 😛

@garath
Copy link
Member Author

garath commented Feb 7, 2024

I believe disabling this job

The test-publishing script in the Validate_Publishing job also makes Actual Changes in a few spots like these:

Git-Command $global:azdoRepoName push origin HEAD

& $darc add-build-to-channel --id $global:buildId --channel $global:targetChannel --source-branch $global:targetBranch --github-pat $global:githubPAT --azdev-pat $global:azdoToken --password $global:barToken --publishing-infra-version 3

Copy link
Member

@missymessa missymessa left a comment

Choose a reason for hiding this comment

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

LGTM shipit

@riarenas
Copy link
Member

riarenas commented Feb 8, 2024

I believe disabling this job

The test-publishing script in the Validate_Publishing job also makes Actual Changes in a few spots like these:

Git-Command $global:azdoRepoName push origin HEAD

& $darc add-build-to-channel --id $global:buildId --channel $global:targetChannel --source-branch $global:targetBranch --github-pat $global:githubPAT --azdev-pat $global:azdoToken --password $global:barToken --publishing-infra-version 3

These are fine. They just cause the arcade-validation build to get put in the general testing channel, and it pushes a branch to the internal repo that gets cleaned up when everything works.

I'm also pretty OK with you checking this in and fixing afterwards if something is off.

@garath garath enabled auto-merge (squash) February 8, 2024 17:47
@garath garath merged commit 460c15e into main Feb 9, 2024
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.

arcade-validation fails when multiple asset name+version instances involved
3 participants