Skip to content

Fix 02233_HTTP_ranged#83891

Merged
antonio2368 merged 3 commits intomasterfrom
fix-02233_HTTP_ranged
Jul 17, 2025
Merged

Fix 02233_HTTP_ranged#83891
antonio2368 merged 3 commits intomasterfrom
fix-02233_HTTP_ranged

Conversation

@antonio2368
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Fix #82844

After #82949, we decide if parallel download can be used based on active readers (max_threads).
For single URL we set num_streams to 1 but with parallel replicas we don't know how many tasks there are so we keep max_threads.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@antonio2368 antonio2368 changed the title Fix 02233 http ranged Fix 02233_HTTP_ranged Jul 17, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jul 17, 2025

Workflow [PR], commit [93542ee]

Summary:

job_name test_name status info comment
Stateless tests (amd_asan, distributed plan, 2/2) failure
03352_concurrent_rename_alter FAIL
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, 1/2) failure
Logical error thrown (see clickhouse-server.log or logical_errors.txt) FAIL
Stateless tests (amd_debug, distributed plan, s3 storage) failure
02962_system_sync_replica_lightweight_from_modifier FAIL
Stateless tests (amd_tsan, s3 storage, 3/3) failure
03352_concurrent_rename_alter FAIL
Stateless tests (amd_coverage,1/6) dropped
Stateless tests (amd_coverage,2/6) dropped
Stateless tests (amd_coverage,3/6) dropped
Stateless tests (amd_coverage,4/6) dropped
Stateless tests (amd_coverage,5/6) dropped
Stateless tests (amd_coverage,6/6) dropped

@clickhouse-gh clickhouse-gh bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 17, 2025
@azat azat self-assigned this Jul 17, 2025
@azat azat added the 🍃 green ci 🌿 Fixing flaky tests in CI label Jul 17, 2025
@azat
Copy link
Copy Markdown
Member

azat commented Jul 17, 2025

@antonio2368 can you also apply the following so that the test can be run w/o hostname (I don't have it on archlinux anymore, only hostnamectl)

diff --git a/tests/queries/0_stateless/02233_HTTP_ranged.python b/tests/queries/0_stateless/02233_HTTP_ranged.python
index c4a584ae7ae..da20304d485 100644
--- a/tests/queries/0_stateless/02233_HTTP_ranged.python
+++ b/tests/queries/0_stateless/02233_HTTP_ranged.python
@@ -55,9 +55,12 @@ EXPECTED_ANSWER = """{\\n\\t"login": "ClickHouse",\\n\\t"id": 54801242,\\n\\t"na
 #####################################################################################

 # IP-address of this host accessible from the outside world. Get the first one
-HTTP_SERVER_HOST = (
-    subprocess.check_output(["hostname", "-i"]).decode("utf-8").strip().split()[0]
-)
+try:
+    HTTP_SERVER_HOST = (
+        subprocess.check_output(["hostname", "-i"]).decode("utf-8").strip().split()[0]
+    )
+except:
+    HTTP_SERVER_HOST = "127.0.0.1"
 IS_IPV6 = is_ipv6(HTTP_SERVER_HOST)
 HTTP_SERVER_PORT = get_local_port(HTTP_SERVER_HOST, IS_IPV6)

@@ -233,7 +236,7 @@ def start_server():

@antonio2368 antonio2368 added this pull request to the merge queue Jul 17, 2025
Merged via the queue into master with commit fc2720b Jul 17, 2025
116 of 125 checks passed
@antonio2368 antonio2368 deleted the fix-02233_HTTP_ranged branch July 17, 2025 16:56
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 17, 2025
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Jul 17, 2025
robot-clickhouse-ci-1 added a commit that referenced this pull request Jul 17, 2025
Cherry pick #83891 to 25.7: Fix 02233_HTTP_ranged
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 17, 2025
antonio2368 added a commit that referenced this pull request Jul 18, 2025
Backport #83891 to 25.7: Fix 02233_HTTP_ranged
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-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

02233_HTTP_ranged is flaky

5 participants