Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Fusion] Refactor satisfiability validator - #9495

#9495
Merged
glen-84 merged 2 commits into
mainChilliCream/graphql-platform:mainfrom
gai/refactor-satisfiability-validatorChilliCream/graphql-platform:gai/refactor-satisfiability-validatorCopy head branch name to clipboard
Apr 1, 2026
Merged

[Fusion] Refactor satisfiability validator#9495
glen-84 merged 2 commits into
mainChilliCream/graphql-platform:mainfrom
gai/refactor-satisfiability-validatorChilliCream/graphql-platform:gai/refactor-satisfiability-validatorCopy head branch name to clipboard

Conversation

@glen-84

@glen-84 glen-84 commented Apr 1, 2026

Copy link
Copy Markdown
Member

Summary of the changes (Less than 80 chars)

  • [Fusion] Refactor satisfiability validator.

Copilot AI review requested due to automatic review settings April 1, 2026 10:44

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 refactors the Fusion satisfiability validator to avoid deep recursion by switching to an iterative worklist-based traversal and introducing a lightweight linked-list path representation for cycle/path handling.

Changes:

  • Replaced recursive traversal in SatisfiabilityValidator with an iterative queue + visited set to prevent stack overflows.
  • Introduced WorkItem and PathNode to model pending validation work and path ancestry without mutable stacks.
  • Updated tests and removed the “max recursion depth reached” warning/resource that was tied to the previous recursion guard.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SatisfiabilityValidatorTests.cs Updates inline snapshots for new log ordering and adjusts the large-cycle test expectation after iterative refactor.
src/HotChocolate/Fusion/src/Fusion.Composition/SatisfiabilityValidator.cs Core refactor from recursion/context stacks to iterative worklist + PathNode ancestry.
src/HotChocolate/Fusion/src/Fusion.Composition/Satisfiability/WorkItem.cs Adds work item type for queued traversal.
src/HotChocolate/Fusion/src/Fusion.Composition/Satisfiability/PathNode.cs Adds linked path node type to represent ancestor chain.
src/HotChocolate/Fusion/src/Fusion.Composition/Extensions/PathNodeExtensions.cs Adds helpers for ancestor membership checks and path string rendering.
src/HotChocolate/Fusion/src/Fusion.Composition/Properties/CompositionResources.resx Removes recursion-depth warning resource string.
src/HotChocolate/Fusion/src/Fusion.Composition/Properties/CompositionResources.Designer.cs Removes generated accessor for deleted resource.
dictionary.txt Adds “worklist” to spelling dictionary and reorders “csclient”.
Files not reviewed (1)
  • src/HotChocolate/Fusion/src/Fusion.Composition/Properties/CompositionResources.Designer.cs: Language not supported

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

@glen-84
glen-84 merged commit 0781674 into main Apr 1, 2026
129 checks passed
@glen-84
glen-84 deleted the gai/refactor-satisfiability-validator branch April 1, 2026 11:57
@codecov

codecov Bot commented Apr 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (02c3e09) to head (0981e53).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #9495   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.