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

Adjust how we enable dac signing to get it working on VMR release branches #47875

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

jkoritzinsky
Copy link
Member

@Copilot Copilot bot review requested due to automatic review settings March 25, 2025 19:00
@jkoritzinsky jkoritzinsky requested review from a team as code owners March 25, 2025 19:00
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Mar 25, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adjusts the logic for enabling DAC signing on VMR release branches. It introduces a new variable (signDacEnabled) and parameter (signDac) to control DAC signing based on the signing mode and branch type, and it updates job and stage templates to incorporate these changes.

  • Introduces conditional variable signDacEnabled in the variables file based on signing conditions.
  • Adds a new boolean parameter signDac and updates job templates to use it.
  • Updates stage templates to pass the DAC signing flag (signDacEnabled) to the build stages.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
eng/pipelines/templates/variables/vmr-build.yml Adds conditionals to enable/disable DAC signing based on branch details
eng/pipelines/templates/jobs/vmr-build.yml Introduces a new signDac parameter and updates condition checks for DAC signing
eng/pipelines/templates/stages/vmr-verticals.yml Propagates the signDac flag into stage definitions

@@ -85,6 +85,19 @@ variables:
- name: signEnabled
value: false

# If signing is disabled, don't sign the DAC.
- ${{ if eq(parameters.desiredSigning, 'Unsigned') }}:
Copy link
Member

Choose a reason for hiding this comment

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

I think I would base this on signEnabled rather than the desired signing parameter. Then you get the automatic translation for default state to true/false. If false, turn off. If true, then further check against the branches like you did below.

It's probably about the same today, but would work more seamlessly if we ever had a feature/* branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried basing it on signEnabled, but the YAML expansion didn't expand it right for it to be respected.

@jkoritzinsky
Copy link
Member Author

/ba-g failures unrelated

@jkoritzinsky jkoritzinsky merged commit 90299c3 into dotnet:main Mar 26, 2025
33 of 39 checks passed
@jkoritzinsky jkoritzinsky deleted the dac-sign-fixes branch March 26, 2025 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VMR untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify DAC signing works in preview VMR branches
2 participants