Skip to content

fix(storage): repair the retention test build after GetRecentSessions gained a status filter - #939

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/session-retention-test-build
Jul 30, 2026
Merged

fix(storage): repair the retention test build after GetRecentSessions gained a status filter#939
github-actions[bot] merged 1 commit into
mainfrom
fix/session-retention-test-build

Conversation

@Dumbris

@Dumbris Dumbris commented Jul 30, 2026

Copy link
Copy Markdown
Member

main is currently redinternal/storage fails to build, which failed the v0.53.0-rc.1 prerelease build at the qa-gate step.

Cause

A semantic merge conflict between two PRs that were each green on their own:

Neither PR was required to be up to date with main before merging (strict=false on branch protection), so the combination was never built until it landed.

internal/storage/sessions_retention_test.go:216:46: not enough arguments in call to m.GetRecentSessions
	have (number)
	want (int, string)

(and the same at :252, :278, :300)

Fix

Pass "" at the four call sites. That is the documented no-filter value — the retention tests want to count every surviving record, so unfiltered is the semantically correct argument rather than just the one that compiles.

Verification

go build ./..., go vet ./internal/storage/, and go test -race ./internal/storage/ all pass locally.

Once this lands I will re-cut the release candidate.

… gained a status filter

Semantic merge conflict, not a logic bug: #928 added sessions_retention_test.go
calling GetRecentSessions(limit) while #930 added a status parameter for the
tray glance's client filtering. Both PRs were green independently and broke
main only once combined, because branch protection does not require a PR to be
up to date with main before merging.

Pass "" — the documented no-filter value — at the four call sites. The
retention tests want every surviving record, so unfiltered is the correct
argument, not merely the compiling one.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 30, 2026

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 89f7e9e
Status: ✅  Deploy successful!
Preview URL: https://4de73aaa.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-session-retention-test-b.mcpproxy-docs.pages.dev

View logs

@github-actions github-actions 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.

Arming auto-merge: repairs a red main. Test-only 4-line change passing the documented no-filter value to GetRecentSessions. Verified with go build, go vet and go test -race on internal/storage.

@github-actions
github-actions Bot enabled auto-merge (squash) July 30, 2026 07:56
@github-actions
github-actions Bot merged commit edc15fc into main Jul 30, 2026
35 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants