Repository navigation
ci: skip unit tests on Markdown-only changes - #20
Merged
Merged
Conversation
Add a paths-filter gate so docs-only commits don't consume CI time on the test matrix, while the workflow still completes (preserving required checks). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The dorny/paths-filter action calls the GitHub API to list PR files, which requires pull-requests:read. Without it the job fails with "Resource not accessible by integration". Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Declaring any permission drops unlisted ones to none, which stripped contents:read and broke actions/checkout on the private repo. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Chris Anderson (codemonkeychris)
added a commit
that referenced
this pull request
May 22, 2026
Resolves the 22 findings from the docking feature-branch review + two test failures that surfaced while running the full suite. Behavior fixes (Native docking host): - Tear-out / FloatOp: open the floating window BEFORE removing the pane from the docked tree. Layout mutation + OnContentFloated fire only when a real ReactorWindow was produced (review #1 — the previous broad catch around Open turned a failed transition into a success-shaped event). - Drop-overlay global Esc handler now detaches on reconciler unmount in addition to WinUI Unloaded (review #2). - Floating-window observer callbacks, BeforeInsertToolWindow strategy hook, drag-session SessionChanged broadcast, navigator commit callback, and theme/resource lookup catches all surface failures via Debug.WriteLine or narrow to the expected exception type instead of swallowing everything (reviews #3, #4, #5, #7, #8). - Splitter OnPointerCaptureLost now calls RestorePairToGrow() before the final ResizeDelta to converge with the normal release path (review #6). Persistence: - DockLayoutSerializer.Load now routes pre-current-schema documents through DockLayoutMigrationRegistry: parse to JsonNode, detect schema (absent $schema = v1 per §5.4.4), TryUpgrade, then deserialize. Adds a Load(json, registry) overload and emits a PII-safe schema-newer ETW category for forward-tolerant inputs (reviews #9 + #10). - PreviousContainerTracker.ClearAll now actually clears by swapping in a fresh ConditionalWeakTable under a lock (review #11). Surface honesty: - DockHostModel.Floating is populated by the host renderer from a per-manager floating-window tracker; doc comment makes the initial-bounds-only limitation explicit (review #12). - UseDockPanePersisted uses a canonical persisted-key encoder (pane:<typeName>|<keyText>:<userKey> with %/colon/pipe escaping) so two panes whose Key.ToString() collide get independent slots (review #13). - docking.dock detects ambiguous Key.ToString() matches and returns an explicit ambiguous-pane error (review #18). Test isolation: - New DockingGlobalsCollection ([Collection("DockingGlobals")] + DisableParallelization=true) covers DockingStringsTests, DockA11yTests, and DevtoolsDockingToolsTests — three classes that mutate process-global state (review #14). DockA11yTests now restores DockingStrings.Resolver in Dispose. - The known-failing UseEffect cleanup assertion is emitted as TAP "# SKIP" via a new Harness.Skip helper, with a back-flip to a real Check the moment the §2.25 product gap closes (review #15). - EffectCounterComponent moved off static counters; the fixture owns per-run counters and passes mount/cleanup callbacks via props (review #16). - EventListener category assertions in LayoutSerializerTests use a bounded retry helper to tolerate occasional async dispatch (review #17). Documentation: - docs/_pipeline/apps/docking/{api,overview}.md updated for the P2 reality (core Microsoft.UI.Reactor ship vehicle, DockingNativeInterop.Register, deleted vendored WinUI.Dock link) (reviews #19, #22). - DockingStrings.cs + dock-showcase sample comments updated to reflect that no .resw resource ships today; DefaultEnglish + the resolver are the localization surface (review #20). - Reactor.csproj stale "stays on disk for reference" comment about src/Reactor.Docking.Xaml/ replaced with current state (review #21). Tests / fluents: - Added 22 fluent extensions in ElementExtensions.Events.cs for DockManager event callbacks + TabViewElement.OnTabDragStarting / OnTabDragCompleted so PublicApiSurfaceGuardTests passes; the guard test itself is now scoped to public element records only (internal overlay/splitter elements aren't part of the public surface contract). - Two stale Phase-1-wrapper fixture names removed from SelfTestFixtureRegistry.AllFixtures (they had no factory case and surfaced as MSTest "fixture not found" failures). - NativeDocking_PerGroupDropTargetVisualDemo: observer-pause delays cut from 500ms/step to 50ms/step so the 20-step walk stays well inside the 15s fixture timeout under CI load; eliminates the cascading NRE in DragSessionConfirmMutatesLayout that was caused by the timed-out fixture leaving stale host state. - Mutations_OffOwnerThread_Throw uses an explicit new Thread() instead of Task.Run, so the assert can never observe a thread-id match by chance. - Load_MissingSchemaField_FallsBack renamed to Load_MissingSchemaField_TreatedAsV1AndMigrated and rewritten — empty {} now migrates as v1 (matches the integrated registry). Validation: - dotnet test tests/Reactor.Tests -p:Platform=x64 → 8720 passed, 46 skipped, 0 failed - dotnet test tests/Reactor.SelfTests -p:Platform=x64 → 813 passed, 0 failed Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
6 of 7 tasks
Chris Anderson (codemonkeychris)
added a commit
that referenced
this pull request
May 22, 2026
Resolves the 22 findings from the docking feature-branch review + two test failures that surfaced while running the full suite. Behavior fixes (Native docking host): - Tear-out / FloatOp: open the floating window BEFORE removing the pane from the docked tree. Layout mutation + OnContentFloated fire only when a real ReactorWindow was produced (review #1 — the previous broad catch around Open turned a failed transition into a success-shaped event). - Drop-overlay global Esc handler now detaches on reconciler unmount in addition to WinUI Unloaded (review #2). - Floating-window observer callbacks, BeforeInsertToolWindow strategy hook, drag-session SessionChanged broadcast, navigator commit callback, and theme/resource lookup catches all surface failures via Debug.WriteLine or narrow to the expected exception type instead of swallowing everything (reviews #3, #4, #5, #7, #8). - Splitter OnPointerCaptureLost now calls RestorePairToGrow() before the final ResizeDelta to converge with the normal release path (review #6). Persistence: - DockLayoutSerializer.Load now routes pre-current-schema documents through DockLayoutMigrationRegistry: parse to JsonNode, detect schema (absent $schema = v1 per §5.4.4), TryUpgrade, then deserialize. Adds a Load(json, registry) overload and emits a PII-safe schema-newer ETW category for forward-tolerant inputs (reviews #9 + #10). - PreviousContainerTracker.ClearAll now actually clears by swapping in a fresh ConditionalWeakTable under a lock (review #11). Surface honesty: - DockHostModel.Floating is populated by the host renderer from a per-manager floating-window tracker; doc comment makes the initial-bounds-only limitation explicit (review #12). - UseDockPanePersisted uses a canonical persisted-key encoder (pane:<typeName>|<keyText>:<userKey> with %/colon/pipe escaping) so two panes whose Key.ToString() collide get independent slots (review #13). - docking.dock detects ambiguous Key.ToString() matches and returns an explicit ambiguous-pane error (review #18). Test isolation: - New DockingGlobalsCollection ([Collection("DockingGlobals")] + DisableParallelization=true) covers DockingStringsTests, DockA11yTests, and DevtoolsDockingToolsTests — three classes that mutate process-global state (review #14). DockA11yTests now restores DockingStrings.Resolver in Dispose. - The known-failing UseEffect cleanup assertion is emitted as TAP "# SKIP" via a new Harness.Skip helper, with a back-flip to a real Check the moment the §2.25 product gap closes (review #15). - EffectCounterComponent moved off static counters; the fixture owns per-run counters and passes mount/cleanup callbacks via props (review #16). - EventListener category assertions in LayoutSerializerTests use a bounded retry helper to tolerate occasional async dispatch (review #17). Documentation: - docs/_pipeline/apps/docking/{api,overview}.md updated for the P2 reality (core Microsoft.UI.Reactor ship vehicle, DockingNativeInterop.Register, deleted vendored WinUI.Dock link) (reviews #19, #22). - DockingStrings.cs + dock-showcase sample comments updated to reflect that no .resw resource ships today; DefaultEnglish + the resolver are the localization surface (review #20). - Reactor.csproj stale "stays on disk for reference" comment about src/Reactor.Docking.Xaml/ replaced with current state (review #21). Tests / fluents: - Added 22 fluent extensions in ElementExtensions.Events.cs for DockManager event callbacks + TabViewElement.OnTabDragStarting / OnTabDragCompleted so PublicApiSurfaceGuardTests passes; the guard test itself is now scoped to public element records only (internal overlay/splitter elements aren't part of the public surface contract). - Two stale Phase-1-wrapper fixture names removed from SelfTestFixtureRegistry.AllFixtures (they had no factory case and surfaced as MSTest "fixture not found" failures). - NativeDocking_PerGroupDropTargetVisualDemo: observer-pause delays cut from 500ms/step to 50ms/step so the 20-step walk stays well inside the 15s fixture timeout under CI load; eliminates the cascading NRE in DragSessionConfirmMutatesLayout that was caused by the timed-out fixture leaving stale host state. - Mutations_OffOwnerThread_Throw uses an explicit new Thread() instead of Task.Run, so the assert can never observe a thread-id match by chance. - Load_MissingSchemaField_FallsBack renamed to Load_MissingSchemaField_TreatedAsV1AndMigrated and rewritten — empty {} now migrates as v1 (matches the integrated registry). Validation: - dotnet test tests/Reactor.Tests -p:Platform=x64 → 8720 passed, 46 skipped, 0 failed - dotnet test tests/Reactor.SelfTests -p:Platform=x64 → 813 passed, 0 failed Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Chris Anderson (codemonkeychris)
added a commit
that referenced
this pull request
May 23, 2026
Resolves the 22 findings from the docking feature-branch review + two test failures that surfaced while running the full suite. Behavior fixes (Native docking host): - Tear-out / FloatOp: open the floating window BEFORE removing the pane from the docked tree. Layout mutation + OnContentFloated fire only when a real ReactorWindow was produced (review #1 — the previous broad catch around Open turned a failed transition into a success-shaped event). - Drop-overlay global Esc handler now detaches on reconciler unmount in addition to WinUI Unloaded (review #2). - Floating-window observer callbacks, BeforeInsertToolWindow strategy hook, drag-session SessionChanged broadcast, navigator commit callback, and theme/resource lookup catches all surface failures via Debug.WriteLine or narrow to the expected exception type instead of swallowing everything (reviews #3, #4, #5, #7, #8). - Splitter OnPointerCaptureLost now calls RestorePairToGrow() before the final ResizeDelta to converge with the normal release path (review #6). Persistence: - DockLayoutSerializer.Load now routes pre-current-schema documents through DockLayoutMigrationRegistry: parse to JsonNode, detect schema (absent $schema = v1 per §5.4.4), TryUpgrade, then deserialize. Adds a Load(json, registry) overload and emits a PII-safe schema-newer ETW category for forward-tolerant inputs (reviews #9 + #10). - PreviousContainerTracker.ClearAll now actually clears by swapping in a fresh ConditionalWeakTable under a lock (review #11). Surface honesty: - DockHostModel.Floating is populated by the host renderer from a per-manager floating-window tracker; doc comment makes the initial-bounds-only limitation explicit (review #12). - UseDockPanePersisted uses a canonical persisted-key encoder (pane:<typeName>|<keyText>:<userKey> with %/colon/pipe escaping) so two panes whose Key.ToString() collide get independent slots (review #13). - docking.dock detects ambiguous Key.ToString() matches and returns an explicit ambiguous-pane error (review #18). Test isolation: - New DockingGlobalsCollection ([Collection("DockingGlobals")] + DisableParallelization=true) covers DockingStringsTests, DockA11yTests, and DevtoolsDockingToolsTests — three classes that mutate process-global state (review #14). DockA11yTests now restores DockingStrings.Resolver in Dispose. - The known-failing UseEffect cleanup assertion is emitted as TAP "# SKIP" via a new Harness.Skip helper, with a back-flip to a real Check the moment the §2.25 product gap closes (review #15). - EffectCounterComponent moved off static counters; the fixture owns per-run counters and passes mount/cleanup callbacks via props (review #16). - EventListener category assertions in LayoutSerializerTests use a bounded retry helper to tolerate occasional async dispatch (review #17). Documentation: - docs/_pipeline/apps/docking/{api,overview}.md updated for the P2 reality (core Microsoft.UI.Reactor ship vehicle, DockingNativeInterop.Register, deleted vendored WinUI.Dock link) (reviews #19, #22). - DockingStrings.cs + dock-showcase sample comments updated to reflect that no .resw resource ships today; DefaultEnglish + the resolver are the localization surface (review #20). - Reactor.csproj stale "stays on disk for reference" comment about src/Reactor.Docking.Xaml/ replaced with current state (review #21). Tests / fluents: - Added 22 fluent extensions in ElementExtensions.Events.cs for DockManager event callbacks + TabViewElement.OnTabDragStarting / OnTabDragCompleted so PublicApiSurfaceGuardTests passes; the guard test itself is now scoped to public element records only (internal overlay/splitter elements aren't part of the public surface contract). - Two stale Phase-1-wrapper fixture names removed from SelfTestFixtureRegistry.AllFixtures (they had no factory case and surfaced as MSTest "fixture not found" failures). - NativeDocking_PerGroupDropTargetVisualDemo: observer-pause delays cut from 500ms/step to 50ms/step so the 20-step walk stays well inside the 15s fixture timeout under CI load; eliminates the cascading NRE in DragSessionConfirmMutatesLayout that was caused by the timed-out fixture leaving stale host state. - Mutations_OffOwnerThread_Throw uses an explicit new Thread() instead of Task.Run, so the assert can never observe a thread-id match by chance. - Load_MissingSchemaField_FallsBack renamed to Load_MissingSchemaField_TreatedAsV1AndMigrated and rewritten — empty {} now migrates as v1 (matches the integrated registry). Validation: - dotnet test tests/Reactor.Tests -p:Platform=x64 → 8720 passed, 46 skipped, 0 failed - dotnet test tests/Reactor.SelfTests -p:Platform=x64 → 813 passed, 0 failed Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Jun 25, 2026
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Jun 25, 2026
Review-pass fixes for PR #666 (issue #654), all behavior-preserving and within the assigned reconcile-path files: - Context #25 (H1): CurrentValueEquals now reproduces the old object.Equals semantics EXACTLY — reference types use the virtual object.Equals (so an IEquatable<T> type without an object.Equals override keeps reference-equality change detection instead of collapsing distinct instances and skipping a required context rerender), value types keep the no-box EqualityComparer<T> path but guard the unbox with `is T` so a same-slot context-type swap returns false (as before) rather than throwing InvalidCastException. - #26 ApplyResourceOverrides (CO2): removal is driven by `managed` vs new overrides, not an old-vs-new ref comparison; the shallow-skip fast path calls this with old===new yet still must reconcile away stale managed keys. - #20 self-triggered set (CO3): add an Unmounted tombstone so a cached rerender closure firing after teardown can't resurrect the node into _selfTriggeredNodes (which the dirty-path pass would never clear again). - #16/#17 unmount tag re-read (CO4): the V1/type unmount dispatch re-reads the attached tag AFTER the user .OnUnmount/RunCleanups callbacks (which may detach state via the public APIs), matching the pre-coalesce per-site reads; pre-callback branches still share the single top-of-method read. - #23 ClearThemeBindings (AS1): clear the companion effective-theme marker DP alongside the style marker so the pair stays consistent across pool/reuse. Tests (tests/Reactor.Tests/ReconcilerInteropPerfTests.cs): - #15 rerender-delegate caching: identity reuse vs source-identity recreate; invocation marks SelfTriggered and bubbles to the source; post-unmount tombstone refuses a late self-trigger (#20). - #25 (H1) reference-IEquatable keeps reference-equality; value-type type mismatch returns false without throwing. - Scanner output parity pinned to exact literal messages (#62-#66). GetOrCreateComponentRerender made internal (InternalsVisibleTo Reactor.Tests) as a test seam. Validation: dotnet build src/Reactor -c Release 0/0; tests 9687 passed. Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Jun 25, 2026
Addresses a Copilot review comment on #666: a cached rerender closure (perf #15) handed to a long-lived or cross-thread subscriber can outlive unmount and keep its ComponentNode alive. Drop ComponentNode.Control in ClearSelfTriggered(unmounting:true) so a leaked closure can't also pin the unmounted visual subtree. The dirty-path pass (perf #20) is the only reader of Control and never visits an unmounted node, so this is observably a no-op — it only releases the subtree for GC, reinforcing the #20 tombstone. Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Jun 26, 2026
Reduces redundant WinRT/COM-RCW boundary crossings and per-element allocations on the diff/reconcile/patch hot path (data-grid stress workload, StocksGrid). Targets the dominant Reconcile gap. Reconciler.cs / Update.cs / Mount.cs: - #16 UnmountRecursive: read ReactorAttached.State once (was 5x GetValue). - #17 UnmountAndCollect: read element tag once (was 5x GetElementTag). - #14 Update: coalesce repeated `is FrameworkElement` RCW type-tests to one. - #15 Cache the component rerender delegate on ComponentNode; recreate only when the requestRerender identity changes. - #18 UpdateDefaultAutomationName: ref/ordinal short-circuit before the AutomationProperties.GetName COM read. - #19 ApplyModifiers accepts null = clear-all (no fresh ElementModifiers). - #20 PopulateDirtyAncestorPath iterates a tracked self-triggered set instead of the whole _componentNodes dict. - #21 UnmountAndPool reuses a borrowed scratch list (reentrant calls fall back to a fresh list). - #22 RefreshRealizedContainers reuses a cleared field list. - #23 ApplyStyleToElement ref-equal + ActualTheme guard; ApplyThemeBindings gated on the ShallowEquals fast path. - #24 BuildCacheKey: thread-static StringBuilder + pair buffer, single pass. - #25 HasConsumedContextChanged compares via Context<T>/EqualityComparer<T> (no boxing of value-type context). - #26 ApplyResourceOverrides: no ToHashSet/ToArray, ref-equal fast path. - #27 WireReferenceListEdge: static loop, no per-edge List/closures. - #28 ApplyStaggerDelays: hoisted static animation-key array. - #29 PushContextDisposable: single-pair push overload, pooled PopOnDispose. Reconciler.KeyedItemsBinding.cs: - #39 ref-equality cache; only realloc + SetItemViewSource on change. Reconciler.Mount.cs: - #40 LayoutFootgunDetector gated by GridElement pre-filter. AccessibilityScanner.cs (debug-only scan path): - #62 compute GetChildren once in Walk, pass into Push. - #63 cache sibling-text array in ScanContext, invalidate on Push. - #64 BuildContext single-pass with pooled scratch (no LINQ chains). - #65 IsLikelyEmoji explicit span loop (no LINQ). - #66 CheckTabIndexGaps sorts a rented buffer (no OrderBy/ToList). Behavior preserved exactly: coalesced COM reads observe the same values at the same times; unmount/cleanup ordering unchanged; scanner emits identical findings. AOT/trim clean (no new reflection). Adds tests/Reactor.Tests/ReconcilerInteropPerfTests.cs (11 tests: rerender-delegate caching, context-change compare, cache-key reuse, single-pair context push, scanner output parity). Closes #654 Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Jun 26, 2026
Review-pass fixes for PR #666 (issue #654), all behavior-preserving and within the assigned reconcile-path files: - Context #25 (H1): CurrentValueEquals now reproduces the old object.Equals semantics EXACTLY — reference types use the virtual object.Equals (so an IEquatable<T> type without an object.Equals override keeps reference-equality change detection instead of collapsing distinct instances and skipping a required context rerender), value types keep the no-box EqualityComparer<T> path but guard the unbox with `is T` so a same-slot context-type swap returns false (as before) rather than throwing InvalidCastException. - #26 ApplyResourceOverrides (CO2): removal is driven by `managed` vs new overrides, not an old-vs-new ref comparison; the shallow-skip fast path calls this with old===new yet still must reconcile away stale managed keys. - #20 self-triggered set (CO3): add an Unmounted tombstone so a cached rerender closure firing after teardown can't resurrect the node into _selfTriggeredNodes (which the dirty-path pass would never clear again). - #16/#17 unmount tag re-read (CO4): the V1/type unmount dispatch re-reads the attached tag AFTER the user .OnUnmount/RunCleanups callbacks (which may detach state via the public APIs), matching the pre-coalesce per-site reads; pre-callback branches still share the single top-of-method read. - #23 ClearThemeBindings (AS1): clear the companion effective-theme marker DP alongside the style marker so the pair stays consistent across pool/reuse. Tests (tests/Reactor.Tests/ReconcilerInteropPerfTests.cs): - #15 rerender-delegate caching: identity reuse vs source-identity recreate; invocation marks SelfTriggered and bubbles to the source; post-unmount tombstone refuses a late self-trigger (#20). - #25 (H1) reference-IEquatable keeps reference-equality; value-type type mismatch returns false without throwing. - Scanner output parity pinned to exact literal messages (#62-#66). GetOrCreateComponentRerender made internal (InternalsVisibleTo Reactor.Tests) as a test seam. Validation: dotnet build src/Reactor -c Release 0/0; tests 9687 passed. Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
added a commit
that referenced
this pull request
Jun 26, 2026
Addresses a Copilot review comment on #666: a cached rerender closure (perf #15) handed to a long-lived or cross-thread subscriber can outlive unmount and keep its ComponentNode alive. Drop ComponentNode.Control in ClearSelfTriggered(unmounting:true) so a leaked closure can't also pin the unmounted visual subtree. The dirty-path pass (perf #20) is the only reader of Control and never visits an unmounted node, so this is observably a no-op — it only releases the subtree for GC, reinforcing the #20 tombstone. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
changesjob that usesdorny/paths-filterto detect non-Markdown file changes.unit-testsjob onneeds.changes.outputs.non-md == 'true'so docs-only commits skip the .NET test run.Test plan
unit-testsis skipped while the workflow reports success.unit-testsruns as before.unit-testsruns.🤖 Generated with Claude Code