Skip to content

fix: use dbtime in dbmem query to fix flake #16773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Mar 3, 2025

Closes coder/internal#447.

The test was failing 30% of the time on Windows without the rounding applied by dbtime. dbtime was used on the timestamps inserted into the DB, but not within the query. Once using dbtime within the query there were no failures in 200 runs.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson added the hotfix PRs only. Harmless small change. Only humans may set this. label Mar 3, 2025
@ethanndickson ethanndickson marked this pull request as ready for review March 3, 2025 13:34
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@ethanndickson ethanndickson enabled auto-merge (squash) March 3, 2025 13:34
@ethanndickson ethanndickson changed the title fix: use dbtime in dbmem query to fix flake fix: use dbtime in dbmem query to fix flake Mar 3, 2025
@ethanndickson ethanndickson merged commit 88f0131 into main Mar 3, 2025
41 checks passed
@ethanndickson ethanndickson deleted the ethan/use-dbtime-in-dbmem branch March 3, 2025 13:42
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2025
@johnstcn
Copy link
Member

johnstcn commented Mar 3, 2025

❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hotfix PRs only. Harmless small change. Only humans may set this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: TestGetWorkspaceAgentUsageStatsAndLabels/Aggregates
2 participants