Skip to content

Revert #17185: restore AzureDevOpsFeedsKey (task NREs on null FeedKeys, breaking prod promotions) - #17186

Merged
missymessa merged 1 commit into
dotnet:mainfrom
missymessa:revert-17185-restore-feeds-key
Jul 24, 2026
Merged

missymessa merged 1 commit into
dotnet:mainfrom
missymessa:revert-17185-restore-feeds-key

Conversation

@missymessa

Copy link
Copy Markdown
Member

Live-site mitigation — revert #17185

Reverts #17185 (b7d4e1500), which removed AzureDevOpsFeedsKey from the Build Promotion publish.yml (keyless Entra publishing). That change broke production Build Promotion.

Why

Keyless publish exposed an unguarded null-reference in the arcade publishing task itself. With no feeds key, PublishArtifactsInManifest.proj omits the FeedKey item, so the task's FeedKeys parameter arrives null, and SetupTargetFeedConfigV3 (line 74) calls .ToImmutableDictionary() on it with no null guard → crash before auth even runs:

PublishArtifactsInManifest.proj(129,5): error : Value cannot be null. (Parameter 'source')
   at ...SetupTargetFeedConfigV3..ctor line 74

Confirmed production impact

  • roslyn promotion 3030919 — FAILED
  • dnceng-shared promotion 3030947 — FAILED

Both fail with the identical crash. The earlier General Testing test passed only because it promoted an arcade build that didn't hit the null path — it was not a representative test.

Follow-up

A durable fix (null-guard in SetupTargetFeedConfigV3/V4, then re-apply keyless) will follow in a separate PR. Do not go keyless again until the task handles null FeedKeys.

Copilot AI review requested due to automatic review settings July 24, 2026 22:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reverts the earlier “keyless Entra publishing” change in the Build Promotion pipeline by restoring use of the AzDO feeds PAT, mitigating production failures caused by null FeedKeys in the publishing task path.

Changes:

  • Re-adds the enable-cross-org-publishing.ps1 step to configure cross-org feed publishing with the PAT.
  • Restores passing /p:AzureDevOpsFeedsKey='$(dn-bot-all-orgs-artifact-feeds-rw)' to the publish MSBuild invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +101 to +106
- task: PowerShell@2
displayName: Enable cross-org publishing
inputs:
filePath: $(System.DefaultWorkingDirectory)/eng/common/enable-cross-org-publishing.ps1
arguments: -token $(dn-bot-all-orgs-artifact-feeds-rw)

@missymessa
missymessa enabled auto-merge (squash) July 24, 2026 22:46
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