Skip to content

pr7: Check out the WinUIGallery submodule in GitHub PR validation - #11359

Open
pranav-gupta-msft wants to merge 2 commits into
winui3/mainfrom
winuioss-winuigallery-pr7-v0.0003
Open

pr7: Check out the WinUIGallery submodule in GitHub PR validation#11359
pranav-gupta-msft wants to merge 2 commits into
winui3/mainfrom
winuioss-winuigallery-pr7-v0.0003

Conversation

@pranav-gupta-msft

Copy link
Copy Markdown
Member

Samples/WinUIGallery is a committed submodule on winui3/main (github.com/microsoft/WinUI-Gallery @ 29f62479), but build/WinUI-GitHub-PR.yml pins git.submodules to false, so PR builds get an empty directory. The internal WinUI-PR.yml sets no git: block at all and inherits the OneBranch default — which is exactly why MUXControls.Test's GenerateWinUIGalleryTestData target worked internally only.

Change

     git:
-      submodules: false
+      submodules: true

The lightweight ValidateGitHubPrContext job keeps checkout: self / submodules: false — it does no build and does not need the Gallery clone.

Validation

Reproduced locally in a winui3/main worktree with the submodule initialized and the paired csproj change applied:

Check Result
msb /restore controls\test\MUXControls.Test\MUXControls.Test.csproj (IsInternalWinUIBuild = false) Build succeeded; BuildOutput\bin\amd64chk\Test\WinUIGalleryTestData.xml produced — 44,897 bytes, 19 tables / 120 rows, byte-identical to the internal build
Same build with ControlInfoData.json removed Build succeeded, target skipped, no error
WinUI-GitHub-PR.yml YAML parse OK (git: {submodules: True})

Notes

  • git.submodules is global to this pipeline, so every job now clones WinUI-Gallery. Acceptable — it is a public, moderately sized repo.
  • This PR self-validates: it targets winui3/main, which triggers the very pipeline being edited.
  • Paired with internal PR 16290751, which re-gates the MSBuild target on Exists(...) instead of IsInternalWinUIBuild. Order does not matter; each is inert without the other.

AB#62718749


Supersedes #11345, which hit a transient agent failure (504 Gateway Timeout while installing the .NET SDK, causing MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found in the x64fre leg). Same commit, rebased onto the latest winui3/main.

Samples/WinUIGallery is a committed submodule on winui3/main, but build/WinUI-GitHub-PR.yml pinned git.submodules to false, so PR builds got an empty directory. Enable submodule checkout so MUXControls.Test's GenerateWinUIGalleryTestData target works in GitHub PR builds.

AB#62718749

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6c5e3c0f-d12b-42af-a821-9ebc768faeb3
@pranav-gupta-msft
pranav-gupta-msft requested a review from a team as a code owner July 30, 2026 06:59
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@pranav-gupta-msft

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

@pranav-gupta-msft

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-triage Issue needs to be triaged by the area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants