Skip to content

fix(resources): make AddLookupAssembly transactional on parse failure - #23960

Merged
nickrandolph merged 4 commits into
servicing/6.8from
dev/nr/resourceloader-transactional-addlookup
Sep 3, 2026
Merged

nickrandolph merged 4 commits into
servicing/6.8from
dev/nr/resourceloader-transactional-addlookup

Conversation

@nickrandolph

@nickrandolph nickrandolph commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #23959

PR Type:

🐞 Bugfix

What changed? 🚀

Follow-up to #23707. AddLookupAssembly rolled back the _lookupAssemblies registration and parsed-resource markers when parsing threw, but ProcessResourceFile merges each key/value pair straight into the live loader dictionaries as it reads. A .upri with a valid header that declares two pairs, carries one complete pair, then truncates fails on the second pair — after the rollback, the unregistered assembly's first pair remained observable through GetString (permanently, when the loader context was already established, since no later lookup reloads).

Every path that mutates the live loader state now goes through a single transactional parse.

  • TransactionalParse (new private nested type) owns the temp dictionaries, the temp marker set, the loader resolver, and the two apply phases (MergeIntoLiveLoaders, ReplaceLiveLoaders). It replaces the three hand-rolled copies of the temp-then-apply pattern the file had grown.
  • AddLookupAssembly — single-assembly branch (changed loader context): ProcessAssemblyTransactionally parses into temporaries with the marker set seeded from the assembly's already-parsed markers, so skip semantics are unchanged, and merges only after every file parsed successfully.
  • AddLookupAssembly — full-reload branch: ReloadResources is itself transactional now, so the failure never touches the live state. That also makes the culture-change path (EnsureLoadersCultures → ReloadResources) transactional, which the earlier revision did not cover.
  • Consequently the liveLoadersTouched control flag, the RebuildLoaderResourcesFromSurvivors() recovery call in the catch, and the live-marker rollback (_parsedResources.RemoveWhere) are all gone: removing the list entry is the whole rollback. RebuildLoaderResourcesFromSurvivors keeps its per-assembly guard and is still used by the ALC sweep. ClearResources() and the two-argument ProcessAssembly overload became unused and were removed.
  • Rollback logging: the catch now names the exception and logs before rethrowing (gated on _log.IsEnabled(LogLevel.Error)), reporting the assembly whose registration was rolled back and whether the whole cache was being reloaded — in that branch the faulting .upri can belong to a pre-existing registration rather than to the assembly being rolled back.
  • Exception contract: a .upri truncated in the middle of its declared pairs surfaced BinaryReader's context-free EndOfStreamException. ProcessResourceFile now restates it as InvalidDataException($"Truncated resource file {fileName}: …", error), matching what it already does (and documents) for every other malformed-.upri case. InvalidDataException is already in the rebuild guard's filter, so recovery semantics are unchanged.
  • Allocation: the merge apply hands the parsed dictionary over on a TryGetValue miss instead of allocating an empty dictionary and copying every pair — the zero-copy ownership transfer RebuildLoaderResourcesFromSurvivors already used.
  • Documented narrowing: RebuildLoaderResourcesFromSurvivors re-derives values only for the last established context's language preferences, so with PreserveParsedResources enabled it drops values preserved for other cultures (they are re-parsed the next time those languages become active). That is now stated in its XML docs.

The HasContextChangedSignificantly branch selection in AddLookupAssembly is unchanged; the two comments describing those branches were swapped and are now accurate.

Red/green regression tests

Two new tests in Given_ResourceLoader_Alc emit (in memory, via ManagedPEBuilder) an assembly embedding a .upri with valid magic/version/name/culture, resourceCount = 2, one complete pair, truncated before the second pair. Both carry [Description] and [GitHubWorkItem]:

  • When_AddLookupAssembly_Truncated_Upri_Then_Throws_And_Partial_Value_Not_Observable — established loader context (full-reload branch): asserts AddLookupAssembly throws InvalidDataException, ContainsLookupAssembly is false, the truncated .upri's loader instance was never created, the first pair's value is not returned by GetString, and surviving registrations still resolve.
  • When_AddLookupAssembly_Truncated_Upri_With_Changed_Context_Then_Live_Loaders_Untouched — changed loader context (single-assembly branch): asserts the throw, the rollback, that the loader instance was never created (absence, not emptiness, so a regression to the full-reload branch cannot keep the test green), and that no value reached the live loaders.

Live state is observed through two new internal test seams next to ContainsLookupAssembly — TryGetMergedResourceForTests and ContainsNamedLoader — replacing the private-field reflection helper the earlier revision used. GetString cannot be used for these assertions: it re-establishes the loader context and would reload (and wipe) the loaders, masking the leak.

Both tests fail on the pre-fix code with the leaked TruncatedValue observable in both branches, and on the loader-instance assertions, and pass with the fix. Full Given_ResourceLoader_Alc (8 tests) and Given_AlcCacheSweep (4 tests) pass; the full Uno.UI.UnitTests run is 4074 total / 12 failed, and those 12 When_Gregorian_FixedDate* failures reproduce identically on the unmodified merge commit 2fc0049a256 (4072 total / same 12) — environment-dependent, unrelated.

PR Checklist ✅

🤖 Generated with Claude Code

@CLAassistant

CLAassistant commented Aug 4, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ agneszitte
❌ Nick Randolph


Nick Randolph seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Aug 4, 2026

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

This PR fixes a correctness bug in Windows.ApplicationModel.Resources.ResourceLoader.AddLookupAssembly where a malformed/truncated .upri could partially merge values into live loader dictionaries before throwing, leaving those values observable even after the lookup-assembly registration rollback. The change makes AddLookupAssembly transactional across both code paths so that failed registrations leave no observable resource values or parsed markers behind.

Changes:

  • Make the “single-assembly” parse path transactional by parsing .upri content into temporary dictionaries/marker sets and applying only after all files parse successfully.
  • Strengthen rollback for the “full-reload” path by rebuilding merged loader state from surviving registrations after a parse failure.
  • Add regression tests that embed a truncated-but-valid .upri payload and assert no partial values leak across both AddLookupAssembly branches.

Reviewed changes

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

File Description
src/Uno.UWP/ApplicationModel/Resources/ResourceLoader.static.cs Adds transactional assembly parsing and robust rollback via rebuild-from-survivors when reload-path parsing fails.
src/Uno.UI.UnitTests/ResourceLoader/Given_ResourceLoader_Alc.cs Adds red/green coverage for truncated .upri partial-merge leaks and introduces a reusable helper to emit assemblies embedding arbitrary .upri payloads.

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

@unodevops

Copy link
Copy Markdown
Contributor

@carldebilly carldebilly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Review of 8fbeb65 (head unchanged since analysis). The core fix holds up under inspection: both AddLookupAssembly branches are now genuinely transactional, the removed RemoveWhere rollback is indeed dead in both branches, the temp-marker seeding preserves skip semantics (markers are per-(assembly, fileName)), the temp/live dictionary comparers match, and the two regression tests deterministically pin the two distinct branches (PrimaryLanguageOverride's setter never re-enters the loader). No public API change; a hostile .upri cannot pre-size any allocation from its declared resourceCount, and the PE-emission helper is test-scoped — nice exotic-code hygiene overall.

Findings below: 1 high (diagnosability of the rollback path), 6 medium (recovery robustness + PreserveParsedResources semantics, a third copy of the temp-then-apply pattern, a contradictory/overclaiming comment block, test metadata, exception contract, test-seam fidelity), 2 low. Two notes not anchored inline: several of the new comment blocks run 4–6 lines where repo guidance is one or two — worth a trim; and setting liveLoadersTouched = true just before the apply loop in ProcessAssemblyTransactionally would extend the recovery to a (pathological) mid-apply failure for free.

Overall: fix-first — the logging gap and the unguarded recovery call are cheap to address and materially change how a production failure gets investigated.

@nickrandolph
nickrandolph enabled auto-merge August 14, 2026 08:44
Copilot AI review requested due to automatic review settings August 14, 2026 09:27
@nickrandolph

Copy link
Copy Markdown
Contributor Author

@carldebilly — thanks for the review, this was a genuinely useful one. All 10 threads addressed and resolved in da42cfe3e3c; each thread has its own reply with specifics.

Your :157 refactor request was the right call and I took it in full. Extracting TransactionalParse (temp dictionaries + temp marker set + resolver + apply) and routing ReloadResources itself through it collapsed four of your findings at once: it deleted the ResolveParsedLoader/ResolveRebuiltLoader duplication, deleted the liveLoadersTouched flag, deleted the rebuild-recovery call in the catch (so the unguarded-call half of :118 is moot), and made the EnsureLoadersCultures → ReloadResources culture-change path transactional — which is what turned the :89 "can never leave a partially parsed value" claim from an overclaim into something literally true. Net −194 / +235 lines including two new test seams and the new logging.

Verification (base = 2fc0049a256):

  • Uno.UWP Debug + Release (warnings-as-errors): 0 warnings, 0 errors.
  • Given_ResourceLoader_Alc + Given_AlcCacheSweep: 12/12 pass.
  • Full Uno.UI.UnitTests: 4074 total / 12 failed on the branch vs 4072 / 12 on the base — identical failing set, all When_Gregorian_FixedDate* (pre-existing, environment-dependent). No new failures.
  • Red/green re-verified after the exception-contract change, since that was the one fix that could have weakened the tests: on the pre-fix code both regression tests still fail (Expected: "" But was: "TruncatedValue"), and with the new branch-pinning assertion in place they fail on ContainsNamedLoader first.

Two things are your call, and I deliberately did not decide them unilaterally:

  1. PreserveParsedResources (your :118 point 2) — you were right, and I documented rather than fixed. Confirmed by reading the code: RebuildLoaderResourcesFromSurvivors derives values only for _loaderContext.LanguagePreferences and ProcessResourceFile early-returns for cultures outside them, so values accumulated for other cultures across earlier language changes are dropped and _parsedResources is replaced wholesale. I stopped short of fixing it because after the refactor its only caller is the ALC sweep from fix(alc): sweep collectible-ALC static-cache pins (WASM batch 1) #23707 rather than anything in this PR, and honouring the flag means re-deriving for the union of previously-parsed cultures — a behaviour change to the sweep with no coverage today. Added a <remarks> stating the narrowing. Want a follow-up issue with the union-of-cultures fix and a test, or is the documented caveat enough?

  2. A diagnostics-only try-scoped local survives. reloadedEverything superficially resembles the liveLoadersTouched pattern you objected to, but it is read solely by the new error log and never by the rollback (and is commented as such). I kept it because dropping it loses the "the faulting .upri may belong to a pre-existing registration while the innocent just-added assembly is rolled back" signal that motivated your HIGH finding. The alternative — hoisting HasContextChangedSignificantly out of the try — would stop covering a throw from that call. Say the word and I'll fold the caveat into one unconditional sentence instead.

One process note in the interest of honesty about provenance: the AST index I normally use for impact analysis isn't configured for this repo in my environment, so the "single caller of ProcessResourceFile", "EndOfStreamException appears nowhere else in src/", and GitHubWorkItemAttribute provenance checks were done by grepping src/ and reading the call sites rather than from an index. They're single-caller/single-file cases that grep resolves unambiguously, but flagging it so you can weigh the claims accordingly.

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

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

Suppressed comments (1)

src/Uno.UWP/ApplicationModel/Resources/ResourceLoader.static.cs:540

  • resourceCount is read before the try that converts EndOfStreamException into InvalidDataException, so a stream truncated right before/inside the count read will still surface as EndOfStreamException instead of the documented InvalidDataException that names the file. Move the ReadInt32() into the try so all truncation points in the entry list are normalized consistently.
			var resourceCount = reader.ReadInt32();
			StringBuilder sb = new();
			try
			{
				for (var i = 0; i < resourceCount; i++)

@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings August 14, 2026 10:08
@nickrandolph

Copy link
Copy Markdown
Contributor Author

Follow-up: acting on the suppressed Copilot comment from the review of da42cfe3e3c, because it was correct and it undercut the very contract I'd just claimed on the :366 thread.

resourceCount was read outside the try that restates EndOfStreamException as InvalidDataException, so a .upri truncated at its count still surfaced BinaryReader's context-free exception while every other truncation point was named. Fixed in 99a89d5aec2: the count read moved inside the try, the declared count stays in the message when it was read, and there's an explicit message for the case where truncation preceded it.

Red/green, run both ways:

# pre-fix source, new test only
failed When_AddLookupAssembly_Upri_Truncated_Before_ResourceCount_Then_Throws_InvalidDataException
  Assert.ThrowsExactly failed. Expected exception type:<System.IO.InvalidDataException>.
  Actual exception type:<System.IO.EndOfStreamException>.

# with the fix
Given_ResourceLoader_Alc + Given_AlcCacheSweep: total: 13  failed: 0  succeeded: 13

Uno.Skia Release (warnings-as-errors): 0 warnings, 0 errors.

Two notes on scope, since I checked before deciding how far to take this:

  • It was a diagnostics-quality issue, not a functional one. EndOfStreamException derives from IOException, and the per-assembly guard in RebuildLoaderResourcesFromSurvivors catches IOException, so the skip-the-offending-assembly behaviour was never at risk either way. Worth stating plainly rather than implying the fix was more load-bearing than it is.
  • I deliberately did not widen the try over the header reads (version / name / culture). Those are also EndOfStreamException sources, but covering them means wrapping resolveLoaderResources — a caller-supplied delegate — and relabeling exceptions thrown by code that isn't reading this file. Same guard already catches them via IOException. Happy to normalize those too if you'd rather the method's message contract be exhaustive; it'd want the reads hoisted above the delegate call first.

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

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

@unodevops

Copy link
Copy Markdown
Contributor

@autocarl autocarl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Follow-up review — fix-first

The refactor makes AddLookupAssembly and ReloadResources transactional, but the survivor-rebuild path can still commit partial state from an assembly that its catch block says it skipped.

Validated locally on the exact head 99a89d5aec225f128414de33b339420cb2033cd2:

  • the existing bad-magic survivor test passes (1/1), because it fails before mutating the temporary parse state;
  • a disposable regression using a valid header, resourceCount = 2, one complete pair, then truncation before the second pair fails (1/1);
  • after ClearAlcAssemblies, TryGetMergedResourceForTests still finds TruncatedKey = TruncatedValue.

Technical verdict: HIGH / fix-first. I am submitting a COMMENT review rather than CHANGES_REQUESTED because this account has read-only repository permission; the maintainers retain the formal Go/No-Go decision.

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.

🟢 Approval recommended

The transactional refactor is localized, maintains existing semantics, and is backed by targeted regression tests for the previously leaking truncation scenario.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unodevops

Copy link
Copy Markdown
Contributor

@nickrandolph

Copy link
Copy Markdown
Contributor Author

CI is green on 3c553094 — ADO build 231549 finished succeeded with zero non-succeeded jobs, so the fix is now CI-verified rather than only locally verified.

One check went red mid-run and is worth explaining, in case anyone saw it: Tests - Desktop Skia Linux Framebuffer Runtime Tests reported CANCELLED, from a job timeout rather than a test failure —

The job running on agent Azure Pipelines 39 ran longer than the maximum time of 60 minutes.

The log shows the last test started was When_MsAppData() at 14:23:49, then ~52 minutes of silence to the cutoff. It was not a fail-fast cancellation: nothing else in the build failed. The stage passed on attempt 2, where the same job ran 15:35:46 → 15:56:48 — 21 minutes, comfortably inside the limit. Runtime Tests 1 in another leg also needed a second attempt.

For the record, that leg cannot reach this change: When_MsAppData is a BitmapSource/ms-appdata: image test, and ClearAlcAssemblies — the only entry point into RebuildLoaderResourcesFromSurvivors — is called from just two places, Application.Alc.cs (which needs a dying collectible ALC) and the Uno.UI.UnitTests ALC tests. Nothing under Uno.UI.RuntimeTests calls it, or AddLookupAssembly at all. The remainder of the diff is MergeInto, a pure extraction of the loop MergeIntoLiveLoaders already ran.

@carldebilly — green and ready whenever you have a moment.

- parse a newly registered assembly's .upri files into temporary
  dictionaries and merge into the live loaders only after every file
  parsed successfully (same temp-then-apply pattern as
  RebuildLoaderResourcesFromSurvivors)
- when the failing registration went through the full reload path,
  re-derive the merged values and parsed markers from the surviving
  registrations so a truncated .upri's partially parsed pairs cannot
  remain observable after the rollback
- drop the now-dead live marker rollback (a failing parse no longer
  writes markers into the live set)
- add red/green regression tests covering both AddLookupAssembly parse
  branches with a .upri that declares two pairs and truncates after
  the first

Fixes #23959

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Nick Randolph and others added 3 commits September 3, 2026 16:44
…actional parse

Review follow-up on the transactional `AddLookupAssembly` fix.

- Extract `TransactionalParse` (temp dictionaries + marker set + resolver +
  merge/replace apply) and route `AddLookupAssembly`, `ReloadResources` and
  `RebuildLoaderResourcesFromSurvivors` through it, replacing three hand-rolled
  copies of the temp-then-apply pattern.
- `ReloadResources` is now transactional too, so the culture-change path via
  `EnsureLoadersCultures` no longer leaks partial state; the `liveLoadersTouched`
  control flag and the rebuild-on-failure recovery in the catch are both gone.
- Log the rollback before rethrowing (gated on `LogLevel.Error`), naming the
  assembly and whether the whole cache was being reloaded.
- Restate a `.upri` truncated mid key/value pair as `InvalidDataException`
  naming the file, matching every other malformed-`.upri` case, instead of
  surfacing `BinaryReader`'s context-free `EndOfStreamException`.
- Hand the parsed dictionary over on a `TryGetValue` miss instead of allocating
  an empty one and copying every pair.
- Document the language-preference narrowing `RebuildLoaderResourcesFromSurvivors`
  applies when `PreserveParsedResources` is enabled.
- Tests: add `[Description]` + `[GitHubWorkItem]`, assert the documented
  exception type, assert the truncated loader instance is never created, and
  replace the private-field reflection helper with the
  `TryGetMergedResourceForTests` / `ContainsNamedLoader` internal seams.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- Move the resource-count read inside the try that restates
  EndOfStreamException as the documented InvalidDataException, so a stream
  ending at the count is named like every other truncation point instead of
  leaking BinaryReader's context-free exception.
- Keep the declared count in the message when it was read, and say so
  explicitly when the truncation preceded it.
- Add a red/green regression test for a .upri truncated before its count
  (fails with EndOfStreamException on the previous code).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- give each survivor in RebuildLoaderResourcesFromSurvivors its own scratch
  TransactionalParse, folded into the aggregate only once its Parse returned
- the shared parse let a survivor add a marker and its first key/value pair
  before throwing on a later pair; the guard caught, the loop continued, and
  the apply phase published the rejected survivor's partial state
- roll values AND markers back together: a leaked marker makes a later parse
  skip a file it should have read
- factor the temp-to-live merge loop into MergeInto so the new temp-to-temp
  fold reuses the same last-writer-wins-per-key semantics
- add the truncated-after-first-pair rebuild regression, plus the counterpart
  assertion that a good survivor's values are still published

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 3, 2026 06:44
@nickrandolph
nickrandolph force-pushed the dev/nr/resourceloader-transactional-addlookup branch from 3c55309 to 09ad807 Compare September 3, 2026 06:44
@nickrandolph
nickrandolph changed the base branch from master to servicing/6.8 September 3, 2026 06:44
@nickrandolph
nickrandolph merged commit d6055f5 into servicing/6.8 Sep 3, 2026
8 of 12 checks passed
@nickrandolph
nickrandolph deleted the dev/nr/resourceloader-transactional-addlookup branch September 3, 2026 06:45
@nickrandolph

Copy link
Copy Markdown
Contributor Author

Retargeted to servicing/6.8 and rebased onto it — 09ad8076, 4 commits, 2 files. Same branch and same PR, so the review history above (the HIGH survivor-rollback thread and its fix, and the approval-recommended pass) carries over rather than being re-opened somewhere else.

This also explains the conflict, and corrects something I said earlier. The PR reported CONFLICTING/dirty against master while git merge-tree and a 4-commit rebase both applied cleanly locally, and I leaned toward GitHub's cache being stale. Retargeting settles it: against servicing/6.8 GitHub now reports mergeable=true. GitHub was right that the merge into master was dirty — a clean rebase and a clean merge are different operations and I conflated them. master has moved to .NET 11, which is also why I could not build a master-rebased branch locally at all (NETSDK1045 against SDK 10.0.204).

servicing/6.8 still targets net9/net10, so the verification I could not do on master is now done:

Check Result
Rebase of all 4 commits onto servicing/6.8 clean, no conflicts
dotnet build src/Uno.UI.UnitTests -c Debug 0 warnings, 0 errors
Given_ResourceLoader* 45 / 45 pass
Full src/Uno.UI.UnitTests 4148 total, 12 failed
Control: same 12 on clean servicing/6.8 with none of these commits 12 failed — identical set

The 12 are Windows_Globalization.When_Calendar.When_Gregorian_FixedDate* — ICU/timezone-sensitive date assertions, pre-existing on the target branch and unrelated to resources.

And the red proof now runs on the branch that will actually ship it. Reverting only ResourceLoader.static.cs to the servicing/6.8 baseline, keeping the tests, fails four:

When_ClearAlcAssemblies_With_Truncated_Survivor_Then_Partial_Value_Not_Published
When_AddLookupAssembly_Truncated_Upri_Then_Throws_And_Partial_Value_Not_Observable
When_AddLookupAssembly_Truncated_Upri_With_Changed_Context_Then_Live_Loaders_Untouched
When_AddLookupAssembly_Upri_Truncated_Before_ResourceCount_Then_Throws_InvalidDataException

so every one of the four commits is load-bearing here, not just on the branch it was written against. Restoring the file returns 10/10.

CI is running on the new base; nothing has failed yet (the rollup briefly read FAILURE while every context was still queued or in progress). Reviewers unchanged: @carldebilly, autocarl, copilot.

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.

🟢 Approval recommended

The transactional parsing change is consistent across all mutation paths described, and the added tests directly cover the previously leaking partial-parse scenarios.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@unoplatform unoplatform deleted a comment from mergify Bot Nov 3, 2026
@nickrandolph

Copy link
Copy Markdown
Contributor Author

@mergify backport master

@mergify

mergify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

backport master

✅ Backports have been created

Details

Cherry-pick of a44268e has failed:

On branch mergify/bp/master/pr-23960
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit a44268e.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.UnitTests/ResourceLoader/Given_ResourceLoader_Alc.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.WinRT/ApplicationModel/Resources/ResourceLoader.static.cs

Cherry-pick of 4488087 has failed:

On branch mergify/bp/master/pr-23960
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 4488087.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.UnitTests/ResourceLoader/Given_ResourceLoader_Alc.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.WinRT/ApplicationModel/Resources/ResourceLoader.static.cs

Cherry-pick of 09ad807 has failed:

On branch mergify/bp/master/pr-23960
Your branch is ahead of 'origin/master' by 3 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 09ad807.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.UnitTests/ResourceLoader/Given_ResourceLoader_Alc.cs

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   src/Uno.UWP/ApplicationModel/Resources/ResourceLoader.static.cs

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

nickrandolph pushed a commit that referenced this pull request Nov 3, 2026
The backport recreated ResourceLoader.static.cs under the removed
Uno.UWP folder and deleted the live Uno.WinRT copy; move it back.
Port the transactional-parse changes onto master's Uno.WinRT file,
keeping its UPRI v3 parser, and reject an unreadable stream or an
out-of-range name length as InvalidDataException.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResourceLoader.AddLookupAssembly rollback can leave partially parsed .upri values observable

6 participants