Skip to content

Do not allow tests with state ERROR be overwritten by PASSED - #55261

Merged
kssenii merged 2 commits into
ClickHouse:masterfrom
azat:tests/fix-integration-results-parser
Oct 18, 2023
Merged

kssenii merged 2 commits into
ClickHouse:masterfrom
azat:tests/fix-integration-results-parser

Conversation

@azat

@azat azat commented Oct 5, 2023

Copy link
Copy Markdown
Member

In the ERROR case there can be sanitizers issues, that should not be hidden, like right now it is doing for
test_s3_table_functions/test.py::test_s3_table_functions_timeouts test 1, but I was lucky enough to trigger this in 2.

Though there could be also other issues, like with dependent services, but still, let's try.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 5, 2023
@robot-ch-test-poll4

robot-ch-test-poll4 commented Oct 5, 2023 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 0b2003c 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
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
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
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
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integrational tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ 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
SQLTestThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
SQLancerFuzzing tests that detect logical bugs with SQLancer tool✅ success
SqllogicRun clickhouse on the sqllogic test set against sqlite and checks that all statements are passed✅ success
Stateful testsRuns stateful 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
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts✅ success
Check nameDescriptionStatus
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⏳ pending
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors❌ failure

@azat
azat marked this pull request as draft October 6, 2023 09:42
@azat
azat force-pushed the tests/fix-integration-results-parser branch from ea1b7f4 to 4e60520 Compare October 6, 2023 12:30
@azat

azat commented Oct 6, 2023

Copy link
Copy Markdown
Member Author

Yey. Now it works and found the leaks, that had been fixed in #55262

@azat
azat marked this pull request as ready for review October 6, 2023 15:42
@kssenii kssenii self-assigned this Oct 7, 2023
@kssenii

kssenii commented Oct 7, 2023 •

Copy link
Copy Markdown
Member

I will fix test_disk_over_web_server which now fails.

@kssenii

kssenii commented Oct 7, 2023 •

Copy link
Copy Markdown
Member

Also some of the current failures are fixed by #55260.

@azat

azat commented Oct 7, 2023 •

Copy link
Copy Markdown
Member Author

I will fix test_disk_over_web_server which now fails.

@kssenii actually it seems that everything is OK with this test, and we just need to update the tests/analyzer_integration_broken_tests.txt, since it is marked as ERROR due to this code -

if (
test not in counters["PASSED"]
and test not in counters["ERROR"]
and test not in counters["SKIPPED"]
and test not in counters["FAILED"]
and test not in counters["BROKEN"]
and "::" in test
):
counters["ERROR"].append(test)

P.S. I was talking about https://s3.amazonaws.com/clickhouse-test-reports/55261/4e605202cf11e2f01565bcf4d6f99cb598e1d363/integration_tests__asan__analyzer__[5_6].html

@azat

azat commented Oct 9, 2023 •

Copy link
Copy Markdown
Member Author

Integration tests (asan) [3/6] — fail: 1, passed: 293

Integration tests (asan) [5/6] — fail: 3, passed: 537

Integration tests (tsan) [5/6] — fail: 1, passed: 534

In the ERROR case there can be sanitizers issues, that should not be
hidden, like right now it is doing for
`test_s3_table_functions/test.py::test_s3_table_functions_timeouts`
test [1], but I was lucky enough to trigger this in [2].

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/55247/e99b0f46961733fa8ba10e490279dbcb0cdd67ad/integration_tests__asan__[5_6].html
  [2]: https://s3.amazonaws.com/clickhouse-test-reports/55245/918d65d6707c69ab541cdb56a076cdb83845d3ed/integration_tests__asan__[5_6].html

Though there could be also other issues, like with dependent services,
but still, let's try.

Signed-off-by: Azat Khuzhin <[email protected]>
@azat
azat force-pushed the tests/fix-integration-results-parser branch from de503f7 to e3976a5 Compare October 14, 2023 07:34
@azat

azat commented Oct 14, 2023

Copy link
Copy Markdown
Member Author

Finally patches for all known bugs had been merged, let's rebase and see the results

@azat

azat commented Oct 14, 2023 •

Copy link
Copy Markdown
Member Author

Integration tests (tsan) [6/6] — fail: 1, passed: 480

Integration tests (asan, analyzer) [6/6] — fail: 1, passed: 476

  • test_delayed_replica_failover is flaky

@azat
azat requested a review from kssenii October 14, 2023 14:42
@kssenii

kssenii commented Oct 15, 2023

Copy link
Copy Markdown
Member

Integration tests (tsan) [6/6] — fail: 1, passed: 480
#55629

But it will now always or very often fail after this PR?

@azat

azat commented Oct 15, 2023 •

Copy link
Copy Markdown
Member Author

But it will now always or very often fail after this PR?

Yes, and I think this problem should not be hidden, since there can be something more important that this minor thing, which will be gone on retries.

And besides this particular problem is not hard to fix, or/and it could be suppressed

@kssenii

kssenii commented Oct 16, 2023

Copy link
Copy Markdown
Member

But it will now always or very often fail after this PR?
Yes, and I think this problem should not be hidden, since there can be something more important that this minor thing, which will be gone on retries.

Let's suppress this test with tsan sanitizer for now.

@azat

azat commented Oct 17, 2023

Copy link
Copy Markdown
Member Author

Integration tests (tsan) [2/6] — fail: 1, passed: 323

Found one more data-race in sets, but it pops up in other PRs as well - https://s3.amazonaws.com/clickhouse-test-reports/55693/9a8734fa5ef2158ec7fa7b5a7a87d3ea1a4beffa/integration_tests__tsan__[2_6].html - #55279

Will take a look.

@azat

azat commented Oct 18, 2023

Copy link
Copy Markdown
Member Author

OK, the problem will be fixed by #55786

@kssenii
kssenii merged commit e4e9291 into ClickHouse:master Oct 18, 2023
@azat
azat deleted the tests/fix-integration-results-parser branch October 18, 2023 14:13
azat added a commit to azat/ClickHouse that referenced this pull request Oct 19, 2023
The problem is that findOrPromiseToBuild() can also call
shared_future::get():

    (lldb) bt 10
    * thread 194, name = 'MergeMutate', stop reason = step over
      * frame 0: 0x0000564126046bd2 clickhouse`std::rethrow_exception(p=(__ptr_ = 0x00007b5000130c80)) at exception_pointer_cxxabi.ipp:68:39
        frame 1: 0x000056411c4c5ddd clickhouse`std::__1::__assoc_state<std::__1::shared_ptr<DB::Set>>::copy(this=<unavailable>) at future:701:9
        frame 2: 0x000056411c4c0e3f clickhouse`DB::PreparedSetsCache::findOrPromiseToBuild(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) [inlined] std::__1::shared_future<std::__1::shared_ptr<DB::Set>>::get[abi:v15000](this=0x00007b0c00154eb8) const at future:2243:46
        frame 3: 0x000056411c4c0e2e clickhouse`DB::PreparedSetsCache::findOrPromiseToBuild(this=0x00007b1c00077018, key="__set_10438532338982543705_15680061365857338647") at PreparedSets.cpp:349:116

Note, that my test did not find the problem because of ClickHouse#55261 had not
been merged yet.

Follow-up for: ClickHouse#55338
Fixes: ClickHouse#55279
v2: s/createDeprecated/createRuntime/

Signed-off-by: Azat Khuzhin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants