Skip to content

fix(event): align gesture debug logging - #1064

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/gesture_debug
Sep 9, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
feature/gesture_debug

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Route gesture event logs through the Events category for the 2025 API configuration and preserve legacy routing for earlier configurations.
  • Select log filters from the OpenSwiftUI API configuration and SwiftUI runtime version when comparing formatted tree output.
  • Expand regression coverage for mixed node kinds, sibling indentation, larger collections, property order, and reset seeds.

@github-actions github-actions Bot added area: event-gesture Events, gestures, tracing, or interaction plumbing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: bug Something is not working correctly. labels Sep 9, 2026
@Kyle-Ye
Kyle-Ye force-pushed the feature/gesture_debug branch from 1c064c8 to 7bcac35 Compare September 9, 2026 13:20

@augmentcode augmentcode Bot 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.

Deep Code Review Agent🐛

Review completed with 0 suggestions.

Reviewed commit: 1c064c8

@tuist

tuist Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 1187 0 1187 289de195d

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 2m 13s 289de195d

@augmentcode augmentcode Bot 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.

PR Risk Analyzer Agent 🛡️

Low risk

Justification

This PR aligns gesture debug logging and expands its regression coverage. Scope by file:

  • Sources/OpenSwiftUICore/Event/Gesture/GestureDebug.swift — comment/status cleanup only (WIP→Complete, MARK [TBA] removal, one blank-line removal); no logic change.
  • Sources/OpenSwiftUICore/Log/Logging.swift — adds an events logger (subsystem, category Events) and routes Log.eventDebug through it under OPENSWIFTUI_SUPPORT_2025_API, preserving the legacy eventDebuggingLog routing for earlier configurations. Behavior change is limited to debug-log category/subsystem routing.
  • Tests/OpenSwiftUICoreTests/.../GestureDebugTests.swift and Tests/OpenSwiftUISymbolDualTests/.../GestureDebugDualTests.swift — select log filters by API configuration / SwiftUI runtime version and add regression cases (nested kinds with siblings, heap-backed children/properties, property order, reset seeds).

Risk factors: no security, auth, billing, infrastructure, deploy, .github, .augment, or AGENTS.md paths are touched, and this repository is not on the opted-out list. There is no production behavior change beyond debug-logging routing.

Specialist evidence: Deep Code Review completed with 0 findings on commit 1c064c8. The only delta from that reviewed tree to the approved head 7bcac35 is two comment-only lines in Logging.swift (// Added in v7 to replace eventDebuggingLog); all other file contents are identical. No unaddressed medium or high findings are present.

Reviewed commit 7bcac35

@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 29.90%. Comparing base (1d50460) to head (7bcac35).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1064   +/-   ##
=======================================
  Coverage   29.90%   29.90%           
=======================================
  Files         787      787           
  Lines       62250    62250           
=======================================
+ Hits        18613    18617    +4     
+ Misses      43637    43633    -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@augmentcode

augmentcode Bot commented Sep 9, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Align gesture debug-tree logging with the logging layout used by newer SwiftUI releases.

Changes:

  • Routes `Log.eventDebug` through the OpenSwiftUI Events category when the 2025 API configuration is enabled.
  • Preserves the legacy event-debugging logger for earlier API configurations.
  • Defines the new logger for both swift-log and OSLog build paths.
  • Marks the gesture debug-tree implementation as complete.
  • Expands tree-format fixtures with nested gesture/modifier/combiner siblings.
  • Adds coverage for heap-backed child/property collections and reset-seed rendering.
  • Updates OSLog-store filters for the newer OpenSwiftUI category.
  • Updates symbol-dual tests to separately collect OpenSwiftUI and SwiftUI logs.
  • Selects SwiftUI’s expected log route from the runtime OS version.

Technical Notes: The dual test now verifies both parity with SwiftUI output and the fixed expected formatted lines.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot 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.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@Kyle-Ye
Kyle-Ye merged commit 0f56cdf into main Sep 9, 2026
6 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/gesture_debug branch September 9, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: event-gesture Events, gestures, tracing, or interaction plumbing. area: tests Test suites, UI tests, fixtures, snapshots, and test support code. type: bug Something is not working correctly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant