-
Notifications
You must be signed in to change notification settings - Fork 74
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
Exclude uap in WinUI package, wasdk in UWP package #500
Exclude uap in WinUI package, wasdk in UWP package #500
Conversation
Ah, I see, our old setup used to do this at one point, as we had discussed whether packages should contain the other framework for Windows developers, and then hit an issue with that scenario, so we removed it at one point. That was this issue here: #220 (I added this comment to this new issue, we can classify this as a regression at least.) |
That's right @michael-hawker. In the local solution, we allow |
Checking from the PR feed, it looks like this didn't change the TFMs produced 🤔 Need to investigate why. It's either a variable not being passed into the CI step, or the value is being passed and it's an issue with the underlying script. |
Found the issue, easy mistake. Should work now. |
@michael-hawker Looks like that did the trick, we should be good to go! |
Curious why UWP is missing symbols though 🤔 Should we do a follow-up patch PR or try fixing it here? Seems priority to ship this patch for Windows Application Packaging project users. |
Hmm, I see the UWP ones from the main latest feed missing it too: Though our released 8.1.240821 seems fine for both on our MainLatest feed. We should try and understand what's happened here. Looks like it started in the first build of 8.2 (above) Ugh, looks like our 1148 with just the version got stuck 😡 https://github.com/CommunityToolkit/Windows/actions/runs/10514400206/job/29135997093 - going to re-kick that if I can to see what that looks like for comparison as that should just be the version number change. 1153 corresponds from this PR here: #457 with our update to WASDK 1.6, so somehow the flags are getting changed because of that. Our goal is to patch this into 8.1 though, so this should be unaffected and something we can do still. But, I thought you were planning to branch this PR from main before we switched to 8.2? Why are we getting the 8.2 version numbers/changes? Our plan should be either:
@azchohfi we haven't done a hotfix in our new branching model like this, so would appreciate any insights, recommendations, or feedback you have with these approaches. |
Good catch @michael-hawker, it should still be 8.1, not 8.2. I branched off of b99aa1f, which is tagged as our 8.1 release and is the commit just before we bumped our version to 8.2 4b6c77a on |
Built this branch locally at the current head 952b239, no issue with version or symbols. Must be something in the CI 🤔 |
Looks like the CI is checking out f054447 (see run), which is a merge commit of 952b239 (the commit we intended to build) into 3e6703b (latest from main). The commit checked out by Actions does not match my local branch, which still has this branch and If we browse the repo at the current branch Using GitHub's compare tool fix/nupkg/uap-in-winui-package...main, we can see the 8.2 bump hasn't been merged into this branch yet. GitHub Actions is checking out with a detached merge between this branch and |
Found an open issue: actions/checkout#1359 This is one potential workaround, but we'd need variations for each job and ref source (main, pr, release, other).
Maybe there's a better way, some other variable we can use. Will skim the docs. |
Looks like this setup:
is checking out via:
using the branch ref instead of the commit hash:
Which tells us that this variable Either way, this resolves to an unexpected merge commit 8fc117d, a different hash but the same problem as before. It's a merge of 3e6703b and a9cb1b6. It stands to reason that the ref @michael-hawker What now? Is this something we can even fix, or do we try to work around it for now by setting this branch to merge elsewhere? |
@michael-hawker I've created a If all looks good here, we can:
|
Looks like some checks aren't appearing in CI now, closing and re-opening to fix. |
@michael-hawker CI ran once through without the detached merge from Windows/.github/workflows/build.yml Line 13 in 3e6703b
For moving forward:
|
Checks still aren't running, maybe c859b6e needs to be in the target branch? 🤔 |
That didn't help... Need to figure out where GitHub is getting the policy from for this. |
I think you need it duplicated in the push trigger as well? Not 100% sure, but that's what I'd try next. |
We merged both #504 and #505 into This should have allowed CI checks to run for merging into a |
@michael-hawker For now, I've manually kicked off CommunityToolkit/Windows/actions/runs/10853721313. It's still not clear why checks aren't running here. |
As discussed, squashed into the prep branch. Next step is to merge into |
* Update build.yml to include 'dev/*' branches in pull_request event * Update CI to trigger on branch push to 'dev/*' * Exclude uap in WinUI package, wasdk in UWP package (#500) * Exclude uwp target under WinUI 3 build and wasdk under WinUI 2 build. * Fixed typo in param name * Checkout repo at ref that triggered workflow run. * Revert "Checkout repo at ref that triggered workflow run." This reverts commit a9cb1b6. * Fix incorrect step name when run under matrix * Update build.yml to include 'dev/*' branches in pull_request event
This PR fixes an issue with our CI where the built UWP and WinUI packages included "All" multitargets.
Including both doesn't cause issues in UWP or WinUI projects normally as the correct TFM is picked up. However, in certain scenarios uap may be picked up when the winappsdk TFMs were intended, such as in the packaging project for applications using the Windows Application Packaging setup.
Closes #490 (comment)