-
Notifications
You must be signed in to change notification settings - Fork 313
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
perf(seed): run rebuilds in parallel, add perf logs #4334
Open
ThatOneBro
wants to merge
27
commits into
main
Choose a base branch
from
derrick-parallelize-db-seed
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5bddaac
perf(seed): run rebuilds in parallel, add perf logs
ThatOneBro e0f710a
cleanup: remove stray performance.mark
ThatOneBro f3941d3
feat(server): add both `serial` and `parallel` modes for seed
ThatOneBro 1c424bc
test(seed): split out seed tests, test in parallel to main tests
ThatOneBro ba9eaa8
cleanup(compose): rm stray service
ThatOneBro f98f105
cleanup(package.json): rm stray package
ThatOneBro 6ca8cd1
cleanup(tsconfig): add `seed-tests` dir to tsconfig
ThatOneBro 340ee80
fix(test.sh): make parallel tests fail together
ThatOneBro e5a9888
fix(actions/build): fix `postgres_seed` port
ThatOneBro fb90a1a
test(actions/build): see if hardcoding port works
ThatOneBro b4dfc20
cleanup(coverage): `coverage/seed/{parallel,serial}`
ThatOneBro ec0746b
cleanup(server/test): don't call `docker-compose` in `test` cmd
ThatOneBro 10bc983
test(coverage): add back coverage of `src` to `seed` tests
ThatOneBro 472be29
test(coverage): add exclusions too
ThatOneBro f99b615
fix(tests/seed): do minimal setup in seed tests to actually test seeding
ThatOneBro 7e18ad8
cleanup(sonar): rm unnecessary `as`s, use `??` operator
ThatOneBro dfe2307
refactor(seed): always build promise arr first
ThatOneBro d71b8cd
refactor(seed): move seed tests back into `src`, filter them
ThatOneBro 8369583
docs(server/jest): add comment about weird glob behavior
ThatOneBro 5bdd757
docs(testing): note running `test:seed:parallel` on fresh install
ThatOneBro c13e908
revert(seed): restore separate rebuild paths
ThatOneBro 743060f
test(seed): make serial seed test run migrations before test
ThatOneBro 8080800
chore(package-lock): fix needless updates
ThatOneBro ed4a256
chore(package-lock): actually fix needless updates
ThatOneBro 436298b
test(seed): stop needlessly busting cache
ThatOneBro 8ad3add
test(seed): always bust cache
ThatOneBro 8ef8b4b
tweak(jest): set the default test timeout lower
ThatOneBro File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
fix(tests/seed): do minimal setup in seed tests to actually test seeding
- Loading branch information
commit f99b6152cea91ebaec0ee258c9fca06af5b7033e
There are no files selected for viewing
This file contains 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why move this file? Strong preference for keeping all
.ts
files insrc/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was initially due to weird glob matching not excluding the seed tests properly from main line of tests... it was cleaner to just separate them since they are somewhat logically separate...
I put them back though, found a sort of hack around it with some
**
paths that works for some reason. Made a note about it in the file