Skip to content

chore: upgrade demo to last router release#2631

Closed
alepane21 wants to merge 6 commits intomainfrom
ale/upgrade-demo
Closed

chore: upgrade demo to last router release#2631
alepane21 wants to merge 6 commits intomainfrom
ale/upgrade-demo

Conversation

@alepane21
Copy link
Copy Markdown
Contributor

@alepane21 alepane21 commented Mar 11, 2026

Summary by CodeRabbit

  • Chores
    • Updated router dependency to a newer version.
    • Added an indirect dependency: connectrpc.com/vanguard v0.3.0.
    • Bumped indirect dependencies (github.com/wundergraph/astjson to v1.1.0; github.com/wundergraph/graphql-go-tools/v2 to a newer rc).
    • No changes to public APIs or user-facing behavior.

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.

@alepane21 alepane21 requested review from a team as code owners March 11, 2026 15:12
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 11, 2026

Router-nonroot image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-9f4aae93b468f7299b0e43d4f9515cb1096ec5fb-nonroot

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 11, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 76f5bd00-c3d2-4546-9c32-8c15066ef130

📥 Commits

Reviewing files that changed from the base of the PR and between 8e0422b and 5563ba7.

📒 Files selected for processing (1)
  • router-tests/go.mod
🚧 Files skipped from review as they are similar to previous changes (1)
  • router-tests/go.mod

Walkthrough

Updated Go module dependency versions: bumped github.com/wundergraph/cosmo/router pseudo-version in two modules; added indirect connectrpc.com/vanguard v0.3.0; bumped indirect github.com/wundergraph/astjson to v1.1.0 and github.com/wundergraph/graphql-go-tools/v2 to v2.0.0-rc.261 in the demo module.

Changes

Cohort / File(s) Summary
Demo module go.mod
demo/go.mod
Updated github.com/wundergraph/cosmo/router pseudo-version; added indirect connectrpc.com/vanguard v0.3.0; bumped indirect github.com/wundergraph/astjson to v1.1.0 and github.com/wundergraph/graphql-go-tools/v2 to v2.0.0-rc.261.
Router tests go.mod
router-tests/go.mod
Updated required version of github.com/wundergraph/cosmo/router to the newer pseudo-version.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: upgrading the demo to the latest router release, which aligns with the dependency version updates in demo/go.mod and router-tests/go.mod.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.16%. Comparing base (670f75d) to head (5563ba7).
⚠️ Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2631      +/-   ##
==========================================
+ Coverage   62.41%   63.16%   +0.74%     
==========================================
  Files         244      244              
  Lines       25826    25826              
==========================================
+ Hits        16119    16312     +193     
+ Misses       8326     8131     -195     
- Partials     1381     1383       +2     

see 18 files with indirect coverage changes

🚀 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.

Copy link
Copy Markdown
Contributor

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@demo/go.mod`:
- Around line 14-15: Update the demo/go.mod entry for
github.com/wundergraph/cosmo/router-tests to the same pseudo-version used for
github.com/wundergraph/cosmo/router (v0.0.0-20260311141102-457b5d860b6e) so the
benchmark test import router-tests/testenv targets the same router snapshot, and
also update the internal router-tests/go.mod pin for
github.com/wundergraph/cosmo/router to that same version; search for the module
names "github.com/wundergraph/cosmo/router" and
"github.com/wundergraph/cosmo/router-tests" and replace the older pseudo-version
with v0.0.0-20260311141102-457b5d860b6e in both places.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3b6a3468-3a4c-4412-bc1a-4e7c326e55ee

📥 Commits

Reviewing files that changed from the base of the PR and between 251f1ef and 51030d1.

⛔ Files ignored due to path filters (1)
  • demo/go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • demo/go.mod

Comment on lines +14 to 15
github.com/wundergraph/cosmo/router v0.0.0-20260311141102-457b5d860b6e
github.com/wundergraph/cosmo/router-tests v0.0.0-20260213130455-6e3277e7b850
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.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '== demo/go.mod pins ==\n'
sed -n '13,16p' demo/go.mod

printf '\n== demo imports of router-tests ==\n'
rg -n --type=go -C2 'github\.com/wundergraph/cosmo/router-tests' demo || true

printf '\n== router-tests/go.mod references to router ==\n'
if [ -f router-tests/go.mod ]; then
  rg -n -C2 'github\.com/wundergraph/cosmo/router(\s|$)' router-tests/go.mod || true
else
  printf 'router-tests/go.mod not present in checkout\n'
fi

printf '\n== other go.mod files pinning router and/or router-tests ==\n'
python - <<'PY'
import pathlib, re
for path in sorted(pathlib.Path('.').rglob('go.mod')):
    text = path.read_text()
    router = re.search(r'^\s*github\.com/wundergraph/cosmo/router\s+(v\S+)', text, re.M)
    tests  = re.search(r'^\s*github\.com/wundergraph/cosmo/router-tests\s+(v\S+)', text, re.M)
    if router or tests:
        print(f'{path}: router={router.group(1) if router else "-"} router-tests={tests.group(1) if tests else "-"}')
PY

Repository: wundergraph/cosmo

Length of output: 1905


Align router-tests version with router update.

Line 14 updates github.com/wundergraph/cosmo/router to v0.0.0-20260311141102-457b5d860b6e, but Line 15 leaves github.com/wundergraph/cosmo/router-tests on the older v0.0.0-20260213130455-6e3277e7b850. The benchmark test in demo/cmd/benchmarksubscriptions/benchmark_test.go directly imports router-tests/testenv, so this version skew means the test helper operates against a stale router snapshot. The internal router-tests/go.mod also pins router to v0.0.0-20260213130455-6e3277e7b850, compounding the drift. Update both in the same commit to keep them synchronized.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@demo/go.mod` around lines 14 - 15, Update the demo/go.mod entry for
github.com/wundergraph/cosmo/router-tests to the same pseudo-version used for
github.com/wundergraph/cosmo/router (v0.0.0-20260311141102-457b5d860b6e) so the
benchmark test import router-tests/testenv targets the same router snapshot, and
also update the internal router-tests/go.mod pin for
github.com/wundergraph/cosmo/router to that same version; search for the module
names "github.com/wundergraph/cosmo/router" and
"github.com/wundergraph/cosmo/router-tests" and replace the older pseudo-version
with v0.0.0-20260311141102-457b5d860b6e in both places.

@alepane21 alepane21 closed this Mar 24, 2026
@alepane21 alepane21 deleted the ale/upgrade-demo branch March 24, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant