-
-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
Description
π¨π¨ This bounty requires a developer who has deep knowledge and skills in Spring Boot. If you don't have such experience, contributing to this issue will probably be a waste of your precious time.
Also, don't try to generate the PR with AI.
1. Problems
- It's time consuming to write integration test for Tolgee
- Because of the build time might be lower
- Because the context loads in 8 seconds
- The time to run all integration tests is ~7mins
2. Solution
- Upgrade Spring Boot to the latest version
- Look if it's possible to optimize subsequent builds (mostly we change stuff in data and server-app modules)
- Look why the context is loading in 8 seconds -> Make it 3 seconds
- Optimize the backend test time
./gradlew test
(make it 3 minutes max, 5 min including the build)- it takes around ~500 to truncate the database between tests -> this PR was solving this, but it requires finishing. Basically we can make the tests to use unique data, so they won't conflict with reach other
- This is my PR doing this: chore: Don't truncate database tables between testsΒ #2572
- Maybe Spring AOT can help? https://docs.spring.io/spring-framework/reference/core/aot.html
Success evaluation
- I will run it on my Macbook Pro M3
- All the test need to pass locally
Don't
- Care about which file do you edit, don't push formatting changes to the PR
- If the tests don't pass on your machine, don't submit it
- Don't try to generate this with AI. There's no chance you will succeed
- Requesting review multiple times with the same basic mistakes will lead to closing the PR