-
Notifications
You must be signed in to change notification settings - Fork 514
[Refactor] Improve CI Run Times by Reducing Test Flakiness and Speeding up Test Suite #1166
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b3e71b0
Reduce test flakeyness
N2D4 2599690
fix
N2D4 7207f2e
fix: broken ext-db-sync race test
nams1570 83cba3e
chore: add better typing in backend-helpers
nams1570 93fda47
chore: clean up debug console logs
nams1570 918466a
fix: flakey tests due to cron-timeout misalignment
nams1570 c7e1198
refactor: add timeouts to vitest hooks
nams1570 7f97015
fix: race condition in getExternalDbSyncFusebox
nams1570 db56f0e
fix: flaky test due to timing issue b/w name and user row
nams1570 e1e1249
fix: email queue test was testing wrong ordering behavior
nams1570 ddf2c89
refactor: poll instead of waiting in email-queue
nams1570 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 1 addition & 18 deletions
19
apps/e2e/tests/backend/endpoints/api/v1/emails/email-helpers.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1 @@ | ||
| import { niceBackendFetch } from "../../../../backend-helpers"; | ||
|
|
||
| /** | ||
| * Helper to get emails from the outbox, filtered by subject if provided. | ||
| * Shared across email test files to avoid duplication. | ||
| */ | ||
| export async function getOutboxEmails(options?: { subject?: string }) { | ||
| const listResponse = await niceBackendFetch("/api/v1/emails/outbox", { | ||
| method: "GET", | ||
| accessType: "server", | ||
| }); | ||
| if (options?.subject) { | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| return listResponse.body.items.filter((e: any) => e.subject === options.subject); | ||
| } | ||
| return listResponse.body.items; | ||
| } | ||
|
|
||
| export { getOutboxEmails, waitForOutboxEmailWithStatus } from "../../../../backend-helpers"; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.