Skip to content

tests: move TypeScript test to its own suite - #8185

Merged
TomChv merged 2 commits into
dagger:mainfrom
TomChv:tests/move-ts-to-its-suite
Aug 21, 2024
Merged

TomChv merged 2 commits into
dagger:mainfrom
TomChv:tests/move-ts-to-its-suite

Conversation

@TomChv

@TomChv TomChv commented Aug 19, 2024 •

Copy link
Copy Markdown
Member

As discussed with @gerhard and it order to improve current CI, I'm making an experimentation by moving the TypeScript tests to its own suite so we can run it independently from other's suites.
The long term idea is to move group of tests into their suites so they can be run into different engine and hopefully remove flakes.

Local CI run: https://dagger.cloud/Quartz/traces/a2c3a4a24346f31efac7dc52f23b6137

I'll try to paralize some tests and see if it can also make it faster.

@gerhard I let you create a GA job to run this suite 🚀

Local CI took 7minutes to exec tests (https://dagger.cloud/Quartz/traces/a2c3a4a24346f31efac7dc52f23b6137#7c9a8264d0620b45) (4 min setup on my local machine)

@TomChv

TomChv commented Aug 19, 2024

Copy link
Copy Markdown
Member Author

It seems I cannot add t.Parallel because everything is already parallized.

panic: testing: t.Parallel called multiple times [recovered]
        panic: testing: t.Parallel called multiple times

I'm not sure I can also mutualize connect since it might break traces... I'm looking for some optimization

@jedevc

jedevc commented Aug 20, 2024

Copy link
Copy Markdown
Contributor

It seems I cannot add t.Parallel because everything is already parallized.

See the test middleware WithParallel introduced in #7532. If the tests are run with that middleware, they're already in parallel and can't be parallelized again.

@TomChv
TomChv force-pushed the tests/move-ts-to-its-suite branch 2 times, most recently from d5cd718 to 25e4562 Compare August 20, 2024 17:56
@TomChv

TomChv commented Aug 20, 2024

Copy link
Copy Markdown
Member Author

See the test middleware WithParallel introduced in #7532. If the tests are run with that middleware, they're already in parallel and can't be parallelized again.

Yep exactly! I'm not sure I have much area to optimize the TS test generally, it's still going decently but some tests are still long and traces are not as helpful.

@TomChv TomChv mentioned this pull request Aug 20, 2024
2 of 5 tasks
Tom Chauveau added 2 commits August 21, 2024 18:53
@TomChv
TomChv force-pushed the tests/move-ts-to-its-suite branch from 25e4562 to 60cdf29 Compare August 21, 2024 16:53
@TomChv
TomChv merged commit 7735290 into dagger:main Aug 21, 2024
@TomChv
TomChv deleted the tests/move-ts-to-its-suite branch August 21, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants