Skip to content

Many fixes for CI [2] - #51494

Merged
qoega merged 61 commits into
masterfrom
many-fixes-2
Jun 29, 2023
Merged

qoega merged 61 commits into
masterfrom
many-fixes-2

Conversation

@nikitamikhaylov

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Making our CI even better.

robot-clickhouse and others added 22 commits June 25, 2023 04:22
…lakiness)

I don't see the reason for using expect here, and plus now the test is
only 2 lines instead.

Also this conversion should fix the test flakiness, since sometimes 60
seconds is not enough [1]:

    2023.06.26 17:42:29.582168 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Debug> executeQuery: Query span trace_id for opentelemetry log: 00000000-0000-0000-0000-000000000000
    2023.06.26 17:42:29.584019 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Debug> executeQuery: (from [::1]:38130) (comment: 02003_memory_limit_in_client.expect) SELECT arrayMap(x -> range(x), range(number)) FROM numbers(1000) (stage: Complete)
    2023.06.26 17:42:29.588131 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
    2023.06.26 17:42:29.780980 [ 2566 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Debug> MemoryTracker: Current memory usage (for query): 1.24 GiB.
    2023.06.26 17:43:29.179098 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Information> TCPHandler: Client has dropped the connection, cancel the query.
    2023.06.26 17:44:05.523345 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Information> executeQuery: Code: 394. DB::Exception: Query was cancelled or a client has unexpectedly dropped the connection. (QUERY_WAS_CANCELLED) (version 23.6.1.1) (from [::1]:38130) (comment: 02003_memory_limit_in_client.expect) (in query: SELECT arrayMap(x -> range(x), range(number)) FROM numbers(1000))
    2023.06.26 17:44:05.680631 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Debug> MemoryTracker: Peak memory usage (for query): 1.25 GiB.
    2023.06.26 17:44:05.680747 [ 13456 ] {8a324061-a504-4843-be65-6abb5db4bc5c} <Debug> TCPHandler: Processed in 96.108615451 sec.

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/51407/e92035072b7b3367da12089b28041893eb90e636/stateless_tests__tsan__[2_5].html

And it is either expect is too slow, or server did not respond for
awhile, but this was a TSan build and trace_log is empty, so it is not
possible to check which one was the problem.

Signed-off-by: Azat Khuzhin <[email protected]>
@robot-clickhouse robot-clickhouse added the pr-build Pull request with build/testing/packaging improvement label Jun 27, 2023
@robot-clickhouse

robot-clickhouse commented Jun 27, 2023 •

Copy link
Copy Markdown
Member

This is an automated comment for commit b6a37fb with description of existing statuses. It's updated for the latest CI running
The full report is available here
The overall status of the commit is 🟢 success

Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help🟢 success
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR🟢 success
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process🟢 success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help🟢 success
Docker image for serversThe check to build and optionally push the mentioned image to docker hub🟢 success
Docs CheckBuilds and tests the documentation🟢 success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here🟢 success
Install packagesChecks that the built packages are installable in a clear environment🟢 success
Mergeable CheckChecks if all other necessary checks are successful🟢 success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests🟢 success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub🟢 success
SQLancerFuzzing tests that detect logical bugs with SQLancer tool🟢 success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc🟢 success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc🟢 success
Style CheckRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report🟢 success
Unit testsRuns the unit tests for different release types🟢 success

Try fix flaky 02497_storage_file_reader_selection
Convert 02003_memory_limit_in_client from expect to sh test (to fix flakiness)
…ation-flaky-tests

Make `test_ssl_cert_authentication` similar to `test_tlvs1_3`
@antaljanosbenjamin

Copy link
Copy Markdown
Member

The failing test_ssl_cert_authentication tests are not the same tests, but very similar ones that I fixed in #51434. I made same changes for the tests_ssl_cert_authentication tests in #51520.

@tavplubix

Copy link
Copy Markdown
Member

alexey-milovidov and others added 6 commits June 29, 2023 07:50
Fix logical assert in `tupleElement()` with default values
Fix FATAL: query context is not detached from thread group
Update test_storage_postgresql/test.py::test_concurrent_queries
Try to fix deadlock in ZooKeeper client
(cherry picked from commit 43fc1af)
@qoega

qoega commented Jun 29, 2023

Copy link
Copy Markdown
Member
Screenshot 2023-06-30 at 00 58 37

@tavplubix

Copy link
Copy Markdown
Member

@qoega, the Mergeable Check was green because some checks were still in progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-build Pull request with build/testing/packaging improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.