Skip to content

Fix flaky ClickHouse test: use direct sync in CI#1203

Closed
BilalG1 wants to merge 1 commit into
devfrom
clickhouse-flaky-fix-2
Closed

Fix flaky ClickHouse test: use direct sync in CI#1203
BilalG1 wants to merge 1 commit into
devfrom
clickhouse-flaky-fix-2

Conversation

@BilalG1
Copy link
Copy Markdown
Collaborator

@BilalG1 BilalG1 commented Feb 16, 2026

Summary

  • Set STACK_EXTERNAL_DB_SYNC_DIRECT: "true" in all 6 CI workflow files
  • This makes the poller call the sync-engine endpoint directly (via HTTP to the local backend) instead of going through QStash

Theory

With STACK_EXTERNAL_DB_SYNC_DIRECT=false, all syncs go through QStash with parallelism: 20. The ~672 user creations across 79 parallel test files generate hundreds of sync requests that saturate QStash. Individual test tenancies get starved, causing timeouts.

Test plan

  • CI should pass on this branch
  • The "Updates to user are synced to ClickHouse" test should stop intermittently timing out

With STACK_EXTERNAL_DB_SYNC_DIRECT=false, all syncs go through
QStash with parallelism: 20. The ~672 user creations across 79
parallel test files generate hundreds of sync requests that can
saturate QStash, starving individual test tenancies.

Set STACK_EXTERNAL_DB_SYNC_DIRECT=true in all 6 CI workflow files
so the poller calls the sync-engine endpoint directly (via HTTP to
the local backend) instead of going through QStash.
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-backend Ready Ready Preview, Comment Feb 16, 2026 8:30pm
stack-dashboard Ready Ready Preview, Comment Feb 16, 2026 8:30pm
stack-demo Ready Ready Preview, Comment Feb 16, 2026 8:30pm
stack-docs Ready Ready Preview, Comment Feb 16, 2026 8:30pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch clickhouse-flaky-fix-2

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 and usage tips.

@BilalG1 BilalG1 closed this Feb 16, 2026
@BilalG1 BilalG1 deleted the clickhouse-flaky-fix-2 branch February 16, 2026 20:51
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