Skip to content

fix(quickstart): keep test events within Kafka retention - #5355

Merged
turip merged 1 commit into
mainfrom
feat/fix-quickstart-retention
Oct 26, 2026
Merged

turip merged 1 commit into
mainfrom
feat/fix-quickstart-retention

Conversation

@turip

@turip turip commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Quickstart sent events dated January 2023, making their Kafka records immediately eligible for seven-day retention cleanup. When cleanup won the race against the sink, both API checks timed out with a missing usage bucket.

Generate event dates from the current UTC day, preserving two events yesterday and one today, and assert both hourly bucket boundaries. Wait for Compose services to become healthy with a 180-second startup deadline before running the test. Existing failure-log capture and asynchronous usage deadlines remain in place.

Validation:

  • Focused fast Go lint and Go vet passed.
  • Shell syntax, ShellCheck, and formatting checks passed.
    Five fresh-run Quickstart CI executions passed on commit 47f877e3a, using the same PR-built image. Each run created a fresh Docker stack, and both v1 and v3 passed with the expected hourly bucket boundaries and counts.
Run Result Test duration
1 Passed 2.08s
2 Passed 2.05s
3 Passed 2.06s
4 Passed 2.04s
5 Passed 2.03s

The initial Container Tests workflow also passed Base E2E and credits-disabled E2E.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Keeps Quickstart test events recent and strengthens checks for both API versions.

  • Quickstart events stay recent and their hourly buckets are checked.
  • The Quickstart runner waits for Compose health before testing.

No actionable issues found. Runtime tests were not run during this review.

Reviews (1) · Last reviewed commit: "fix(quickstart): keep test events within..." · Reviewed by Greptile

Summary by CodeRabbit

  • Bug Fixes

    • Quickstart now waits up to 180 seconds for Docker Compose services to become ready before running Go tests.
  • Tests

    • Quickstart coverage now checks hourly query windows spanning yesterday and today for both v1 and v3 results. It uses dates relative to the current UTC day instead of fixed historical timestamps.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between f7b0487 and 47f877e.

Files selected for processing: 2
  • .github/scripts/run-quickstart.sh
  • quickstart/quickstart_test.go

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Walkthrough

The quickstart script waits for Docker Compose services before running the Go tests. The quickstart test uses UTC dates for ingested events and checks hourly query windows for both v1 and v3 results.

Changes: Quickstart validation

Layer / File(s) Summary
Wait for Compose services
.github/scripts/run-quickstart.sh
The script waits up to 180 seconds for Docker Compose services to become ready. It no longer runs a separate curl health-check retry loop.
Use current UTC dates in query checks
quickstart/quickstart_test.go
The test assigns events to yesterday and today. It checks that v1 and v3 results contain hourly windows starting on those dates and ending one hour later.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: kind/bug, release-note/bug-fix

Suggested reviewers: tothandras, gergely-kurucz-konghq

Merge Risk: Minimal · up to 47f87

The changes are ready to merge based on the reviewed evidence.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main change: updating Quickstart test events so they remain within Kafka retention. It is concise and specific.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@turip turip added the release-note/ignore Ignore this change when generating release notes label Oct 26, 2026
@turip
turip marked this pull request as ready for review October 26, 2026 11:29
@turip
turip requested a review from a team as a code owner October 26, 2026 11:29
@turip
turip merged commit 172a323 into main Oct 26, 2026
68 of 69 checks passed
@turip
turip deleted the feat/fix-quickstart-retention branch October 26, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/ignore Ignore this change when generating release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants