Conversation
|
This is an automated comment for commit eeb3561 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
Algunenano
left a comment
There was a problem hiding this comment.
I haven't reviewed everything because I see it's in progress, but you are removing many no-parallel tags that are there because the test creates and drops a database and that's not safe to run in parallel with itself.
Most of them are probably added because otherwise the flaky check will detect this problem, and also most of them do not need to create a database and should be using the random one created for each test. This can be done in 3 ways:
- Do not do anything.
- Use currentDatabase() when you need to reference the string
- Use bash and $CURRENT_DATABASE when you need it explicitly in a query. The reference file will replace it by
defaultwhen checking the results.
tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.sql
Show resolved
Hide resolved
|
@Algunenano Yes, I'm trying to remove unnecessary |
Yes, the flaky test will fail which is bad, because it will run every time we modify the test, making the check worthless. Same if you run the test locally many times. Maybe it could be worth to slowly remove the creation of databases on those tests and making them truly parallel |
f585a10 to
9fffce4
Compare
|
To improve test runs, we need to identify what takes the most time in a single test job:
It means we need to make the sequential tests much faster. Tests are tagged with
This PR implements several changes to optimize run speed, prioritized by impact on performance:
Results
|
2723a53 to
9c377f8
Compare
Algunenano
left a comment
There was a problem hiding this comment.
Incredible work.
I've left some comments. Please make sure to verify the sync PR too, since there are some conflicts and the CI is not running there because of it.
tests/queries/0_stateless/01113_local_dictionary_type_conversion.sql
Outdated
Show resolved
Hide resolved
tests/queries/0_stateless/01259_dictionary_custom_settings_ddl.sql
Outdated
Show resolved
Hide resolved
0d89c4e to
1111acb
Compare
d8d4a61 to
57432b8
Compare
|
We have OOM quite often. Mostly with |
| clickhouse-client --port 19000 --query "SELECT 1" && break | ||
| sleep 1 | ||
| done | ||
| fi |
There was a problem hiding this comment.
You forgot to call setup_logs_replication for this instance, and while you are here, can you fix this for USE_DATABASE_REPLICATED as well
There was a problem hiding this comment.
@maxknv Most likely the test in this group is running out of memory, probably because this test is now running in parallel with other tests. I'll fix it.
@azat I'll will fix setup_logs_replication but fixing USE_DATABASE_REPLICATED does not make sense, since the number of these builds and the time to run the tests does not need to be optimized
There was a problem hiding this comment.
I meant add setup_logs_replication there as well
| if result.reason is not None: | ||
| description_full += " - " | ||
| description_full += result.reason.value | ||
| description_full += f"\nReason: {result.reason.value} " |
There was a problem hiding this comment.
Why you prefer to use \n it became too verbose, let's get compact behavior back - #75530
Results
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Stateless tests: Improve tests speed and decrease number of parallel jobs
Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):