Skip to content

Delete bad test 02805_distributed_queries_timeouts - #66563

Merged
alexey-milovidov merged 2 commits into
masterfrom
delete-bad-test
Jul 17, 2024
Merged

alexey-milovidov merged 2 commits into
masterfrom
delete-bad-test

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

This test obviously cannot work. See https://s3.amazonaws.com/clickhouse-test-reports/66507/170c538034464b6dede951663caeaf9acb2ef3bf/stateless_tests__msan__[2_3].html

Linux is not a real-time system, and you cannot expect that something finishes in a second (even a single CPU instruction).

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

CI Settings (Only check the boxes if you know what you are doing):

  • Allow: All Required Checks
  • Allow: Stateless tests
  • Allow: Stateful tests
  • Allow: Integration Tests
  • Allow: Performance tests
  • Allow: All Builds
  • Allow: batch 1, 2 for multi-batch jobs
  • Allow: batch 3, 4, 5, 6 for multi-batch jobs

  • Exclude: Style check
  • Exclude: Fast test
  • Exclude: All with ASAN
  • Exclude: All with TSAN, MSAN, UBSAN, Coverage
  • Exclude: All with aarch64, release, debug

  • Do not test
  • Woolen Wolfdog
  • Upload binaries for special builds
  • Disable merge-commit
  • Disable CI cache

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 16, 2024
@robot-ch-test-poll2

robot-ch-test-poll2 commented Jul 16, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 9861346 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Successful checks
Check nameDescriptionStatus
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ 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
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. Integration 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
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ 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

@nikitamikhaylov nikitamikhaylov self-assigned this Jul 16, 2024
@@ -1,3 +0,0 @@
select * from remote('127.2', view(select sleep(3) from system.one)) settings receive_timeout=1, async_socket_for_remote=0, use_hedged_requests=1 format Null;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is a real test for a real problem - #51582
Why it has been considered as "bad" and had been queued for removal instead of fixing it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux is not a real-time system, and you cannot expect that something finishes in a second (even a single CPU instruction).

It is not, and even if it was, it cannot be guaranteed, but this is a bit off-topic.

So how do you suggest to test such things like timeouts and timers (to really test them and not some kind of mock)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot count on anything to succeed in one second in tests.

You can rewrite it, so it will test that anything succeeds in one second at least once in 100 tries. Or to rewrite it with a higher timeout, like 60 seconds (but not make it waste 60 seconds all the time).

Our tests use various shit such as: EBS volumes, AWS S3, and even Microsoft Azure, we add randomization and random slowdowns, it also runs everything in parallel and makes the system overloaded.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

I don't know, but our rule is that the tests should reliably show success or failure. If a test has failed it should indicate a real problem, not be random.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 17, 2024
Merged via the queue into master with commit d0753c8 Jul 17, 2024
@alexey-milovidov
alexey-milovidov deleted the delete-bad-test branch July 17, 2024 02:07
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 17, 2024
@alexey-milovidov alexey-milovidov added the 🍃 green ci 🌿 Fixing flaky tests in CI label Jul 24, 2024
azat added a commit to azat/ClickHouse that referenced this pull request Jul 25, 2024
…d-test"

This reverts commit d0753c8, reversing
changes made to b8202e1.

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

🍃 green ci 🌿 Fixing flaky tests in CI pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants