Skip to content

Conversation

@Noroth
Copy link
Contributor

@Noroth Noroth commented Aug 28, 2025

Summary by CodeRabbit

  • Chores
    • Upgraded underlying GraphQL engine dependency to v2.0.0-rc.222 across router and test modules.
    • Incorporates upstream fixes and optimizations for improved stability and performance.
    • No user-facing behavior changes expected.

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

@coderabbitai
Copy link

coderabbitai bot commented Aug 28, 2025

Walkthrough

Updated github.com/wundergraph/graphql-go-tools/v2 dependency from v2.0.0-rc.220 to v2.0.0-rc.222 in two go.mod files: router/go.mod and router-tests/go.mod. No other changes.

Changes

Cohort / File(s) Summary
Go module dependency bump
router/go.mod, router-tests/go.mod
Bumped github.com/wundergraph/graphql-go-tools/v2 from v2.0.0-rc.220 to v2.0.0-rc.222.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ludwig/eng-7192-fix-dataloader-batching

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbit in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbit in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbit gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbit read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbit help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbit ignore or @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbit summary or @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbit or @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Noroth Noroth marked this pull request as ready for review August 28, 2025 08:36
@github-actions
Copy link

github-actions bot commented Aug 28, 2025

Router-nonroot image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-3937e54c49bc709a63926b89f1fab24922831c7a-nonroot

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 1fe521e and 0a1e086.

⛔ Files ignored due to path filters (2)
  • router-tests/go.sum is excluded by !**/*.sum
  • router/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • router-tests/go.mod (1 hunks)
  • router/go.mod (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: StarpTech
PR: wundergraph/cosmo#2157
File: router-tests/go.mod:16-16
Timestamp: 2025-08-20T22:13:25.222Z
Learning: github.com/mark3labs/mcp-go v0.38.0 has regressions and should not be used in the wundergraph/cosmo project. v0.36.0 is the stable version that should be used across router-tests and other modules.
📚 Learning: 2025-08-20T22:13:25.222Z
Learnt from: StarpTech
PR: wundergraph/cosmo#2157
File: router-tests/go.mod:16-16
Timestamp: 2025-08-20T22:13:25.222Z
Learning: github.com/mark3labs/mcp-go v0.38.0 has regressions and should not be used in the wundergraph/cosmo project. v0.36.0 is the stable version that should be used across router-tests and other modules.

Applied to files:

  • router/go.mod
  • router-tests/go.mod
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: image_scan (nonroot)
  • GitHub Check: build_push_image (nonroot)
  • GitHub Check: build_push_image
  • GitHub Check: integration_test (./. ./fuzzquery ./lifecycle ./modules)
  • GitHub Check: build_test
  • GitHub Check: integration_test (./events)
  • GitHub Check: Analyze (go)
  • GitHub Check: integration_test (./telemetry)
  • GitHub Check: build_test
🔇 Additional comments (1)
router-tests/go.mod (1)

30-30: Tests module mirrors the bump — good; please lock in a regression test for batching.

Nice keeping router-tests in sync with router on graphql-go-tools. Add an integration test that exercises the dataloader’s batching window and size limits to prevent regressions.

github.com/tidwall/sjson v1.2.5
github.com/twmb/franz-go v1.16.1
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.220
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.222
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Does rc.222 actually contain the “improve dataloader batching” fix? Add proof + tests.

The PR title/objective mentions batching behavior in the dataloader, but the code change is only a dependency bump. Please:

  • Link the graphql-go-tools v2 changelog/commit(s) showing the batching fix introduced between rc.220 → rc.222.
  • Add/extend router integration tests to assert the batching semantics (e.g., requests within N ms get coalesced; cap sizes respected; no starvation).
  • Ensure no stray replace overrides for graphql-go-tools remain.

🏁 Script executed:

#!/bin/bash
# Verify version bumps and stray replaces.
rg -n 'github.com/wundergraph/graphql-go-tools/v2 v2\.0\.0-rc\.222' router/go.mod router-tests/go.mod
rg -nP '^\s*replace\s+github\.com/wundergraph/graphql-go-tools/v2' -n

Length of output: 431


🌐 Web query:

Provide links to release notes/commits in github.com/wundergraph/graphql-go-tools/v2 that describe dataloader batching changes between v2.0.0-rc.220 and v2.0.0-rc.222.

💡 Result:

Here are the relevant GitHub pages (release notes + compare) for v2.0.0-rc.220 → v2.0.0-rc.222 — I couldn't find any commit or release-note text in that range explicitly mentioning “dataloader” or “batching”:

  • v2.0.0-rc.220 release notes. [1]
  • v2.0.0-rc.222 release notes. [2]
  • Compare view (commits between v2.0.0-rc.220 and v2.0.0-rc.222). [3]

If you want, I can scan each commit in the compare and provide direct commit links for any files that touch batching-related code (e.g., packages under v2/pkg/engine/resolve or loader code).

Sources:
[1] https://github.com/wundergraph/graphql-go-tools/releases/tag/v2.0.0-rc.220. (github.com)
[2] https://github.com/wundergraph/graphql-go-tools/releases/tag/v2.0.0-rc.222. (github.com)
[3] wundergraph/graphql-go-tools@v2.0.0-rc.220...v2.0.0-rc.222. (github.com)

Citations:


Link batching fix commit, add tests, remove stray replace

  • No batching fix found in v2.0.0-rc.220→rc.222 release notes or commits–please link the specific commit(s) or changelog entry introducing the dataloader batching improvements.
  • Add/extend integration tests in router to verify dataloader coalescing behavior (batch window timing, max batch size, starvation prevention).
  • Remove the stray replace github.com/wundergraph/graphql-go-tools/v2 => ../../graphql-go-tools/v2 in router/README.md line 33.
🤖 Prompt for AI Agents
In router/go.mod around line 34, the PR updates graphql-go-tools to
v2.0.0-rc.222 but the review requests (1) add a link to the exact commit or
changelog entry that introduced the dataloader batching fix — update the PR
description or go.mod comment with the commit hash or changelog URL (or add a
short note in router/CHANGELOG.md) referencing the specific commit(s) or release
notes; (2) add/extend router integration tests that assert dataloader coalescing
behavior: write tests covering batch window timing, max batch size enforcement,
and starvation prevention (simulate concurrent requests over time and verify
that requests are batched appropriately and no single request/starvation
occurs); and (3) remove the stray replace line in router/README.md (remove the
line `replace github.com/wundergraph/graphql-go-tools/v2 =>
../../graphql-go-tools/v2` at README.md line 33) so the module uses the intended
module proxy version.

@Noroth
Copy link
Contributor Author

Noroth commented Aug 28, 2025

Merged in #2141

@Noroth Noroth closed this Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants