Skip to content

Fix download issues in pipelines#15901

Merged
vmoroz merged 2 commits intomicrosoft:mainfrom
vmoroz:PR/fix-download-issues-in-pipelines
Apr 3, 2026
Merged

Fix download issues in pipelines#15901
vmoroz merged 2 commits intomicrosoft:mainfrom
vmoroz:PR/fix-download-issues-in-pipelines

Conversation

@vmoroz
Copy link
Copy Markdown
Member

@vmoroz vmoroz commented Apr 1, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

  1. yarn validate-overrides hits GitHub's unauthenticated API rate limit (60 req/hr),
    causing intermittent linting failures.
  2. .NET Core Hosting Bundle and SDK downloads in Desktop builds fail due to transient
    network errors (The response ended prematurely), breaking builds.

What

  • Linting job (linting.yml): Pass PLATFORM_OVERRIDE_GITHUB_TOKEN to
    yarn validate-overrides to authenticate GitHub API calls (5,000 req/hr).
    • PR builds: token comes from the platform-override-zero-permission-token
      variable group (non-secret, works with fork PRs).
    • CI builds: token is extracted from the checkout OAuth credential via
      persistCredentials: true (stored as a secret pipeline variable).
  • Checkout template (checkout-shallow.yml): Add optional persistCredentials
    parameter (default: false, no impact on other jobs).
  • Desktop builds (desktop-single.yml): Add Invoke-WebRequestWithRetry helper
    (3 attempts, incremental backoff) for .NET hosting bundle and SDK downloads.

Screenshots

N/A — pipeline YAML changes only.

Testing

  • PR pipeline: Linting job passes, validate-overrides uses token from variable group
  • CI pipeline: Linting job passes, OAuth token extracted (length=40), validate-overrides succeeds
  • Fork PR: Linting job passes with variable group token
  • Desktop builds: .NET downloads succeed (retry logic)

Changelog

Should this change be included in the release notes: no

@vmoroz vmoroz requested review from a team as code owners April 1, 2026 23:18
@vmoroz vmoroz enabled auto-merge (squash) April 1, 2026 23:38
@vmoroz vmoroz disabled auto-merge April 2, 2026 04:15
@vmoroz vmoroz force-pushed the PR/fix-download-issues-in-pipelines branch 2 times, most recently from 9d1ee97 to 8219e00 Compare April 2, 2026 21:10
@vmoroz vmoroz force-pushed the PR/fix-download-issues-in-pipelines branch from 5cbbdf5 to f9b889a Compare April 3, 2026 16:11
@vmoroz vmoroz merged commit eb5546d into microsoft:main Apr 3, 2026
32 checks passed
@vmoroz vmoroz deleted the PR/fix-download-issues-in-pipelines branch April 3, 2026 19:17
vmoroz added a commit to vmoroz/microsoft-react-native-windows that referenced this pull request Apr 7, 2026
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.

2 participants