Skip to content

Darwin fast test: prune/classify skips, portability fixes, provision Python deps - #108859

Merged
Algunenano merged 28 commits into
ClickHouse:masterfrom
Algunenano:darwin-skip-prune-batch9
Jul 3, 2026
Merged

Algunenano merged 28 commits into
ClickHouse:masterfrom
Algunenano:darwin-skip-prune-batch9

Conversation

@Algunenano

@Algunenano Algunenano commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Continues the macOS (Darwin) fast-test skip pruning (follow-up to #108630).

  • Unskips 91 tests that now pass after the isLocalAddress / EventFD / RemoteQueryExecutor fixes, each validated 20x.
  • Classifies the remaining ci/defs/darwin.skip entries into macOS platform gaps vs env/harness/portability candidates, and drops dead (deleted tests) and redundant (no-fasttest/self-skipping) entries.
  • Tags genuine platform gaps as no-darwin at the source: the case-insensitive-FS (APFS) filename tests, and 03533_lexer_c_library (its lexer_test helper is build-only, and the Darwin fast test runs on transferred binaries rather than building).
  • Makes 5 tests portable on BSD/macOS and unskips them: CLICKHOUSE_HOST instead of hostname -i, grep -- instead of escaped patterns, gzip -dc instead of zcat.

Python test dependencies on macOS:

  • The stateless fast tests import numpy/pandas/scipy/requests, which were never installed on the macOS runner (the Linux fast test installs them via the docker image). Provisioned them on the runner via ci/infra/scripts/user_data_macos.txt.
  • Modernized ci/docker/fasttest/requirements.txt to py3.14-compatible exact pins, and bumped the fasttest image to Python 3.13 (deadsnakes, mirroring clickhouse/test-base) so those pins resolve on Linux too. The previous Ubuntu 22.04 Python 3.10 caps numpy at 2.2.x, which has no wheel on the macOS runner's Python 3.14; 3.13/3.14 share numpy 2.3.x.
  • Unskips 02294_anova_cmp / 03321_forwarded_for / 04056_npy_large_shape_validation, validated locally with the pinned deps.

@leshikus this adds a pip install of the fast-test Python deps to the macOS runner bootstrap (ci/infra/scripts/user_data_macos.txt). Could you review the runner change and roll it out with ci/infra/scripts/update_userdata.py --apply? Until the fleet is reprovisioned the three unskipped Python-dep tests will fail on the macOS fast test; a re-run after rollout is what validates both the provisioning and the tests.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

...

Version info

  • Merged into: 26.7.1.497 (included in 26.7 and later)

@clickhouse-gh

clickhouse-gh Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d2bc444]

Summary: ✅


AI Review

Summary

This PR trims the Darwin fast-test skip list, ports a few tests to BSD/macOS, updates the fasttest image, and provisions extra Python packages on macOS runners. I do not think it is ready to merge: two previously raised issues are still present in the current code, and both reduce the CI signal this change is supposed to improve.

Findings

⚠️ Majors

  • [ci/praktika/infrastructure/runner/runner-init.py:618-627] [dismissed by author -- https://github.com/Darwin fast test: prune/classify skips, portability fixes, provision Python deps #108859#discussion_r3513662141] The macOS runner still does not install Jinja2, even though Runner.run_job forces job PATH through ~/venv/bin (ci/praktika/infrastructure/runner/runner-init.py:338-345) and tests/clickhouse-test skips every .sql.j2 test when that import is missing (tests/clickhouse-test:103-108,2704-2705). On the current tree that drops 125 Darwin fast-test cases from coverage (for example 00172_hits_joins, 00398_url_functions, 00700_to_decimal_or_something_1), so the PR silently shrinks the suite instead of only pruning bad skips. Suggested fix: add Jinja2==3.1.6 to this venv install list, or otherwise ensure the interpreter selected by PATH has the same template dependency set as ci/docker/fasttest/requirements.txt.
  • [tests/queries/0_stateless/mergetree_mutations.lib:40-56] [dismissed by author -- https://github.com/Darwin fast test: prune/classify skips, portability fixes, provision Python deps #108859#discussion_r3512213964] wait_for_mutation_created still succeeds on timeout: after 90 seconds it prints diagnostics and then returns the SELECT exit status, which is normally 0. The new synchronization point in tests/queries/0_stateless/03716_mutations_parts_in_progress_rmt_2.sh:36-38 therefore fails open, so the test can keep running into the original race/hang instead of aborting when the mutation entry never appears. Suggested fix: make the timeout path end with a non-zero return after printing diagnostics.
Final Verdict

Status: ⚠️ Request changes
Install Jinja2 in the Darwin runner venv (or run the suite with an interpreter that already has it), and make wait_for_mutation_created fail closed on timeout.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jun 29, 2026
Comment thread ci/docker/fasttest/Dockerfile Resolved

@leshikus leshikus left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry, the runner change is not correct - we don't want to update user data (each update takes 3 hours), and keep only bare minimum there; there is another script ci/praktika/infrastructure/runner/runner-init.py where you can put required pip install (check def configure_darwin()), and I can deploy it quickly.

Actually you can even deploy the script yourself via --deploy --environment macos, but I would also need to reboot the hosts for change to take place.

Comment thread ci/docker/fasttest/Dockerfile Resolved

@leshikus leshikus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Regarding runner-init.py changes they seem correct, maybe I would join them into one pip install

@clickhouse-gh

clickhouse-gh Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 85.60% 85.60% +0.00%
Functions 92.70% 92.70% +0.00%
Branches 77.80% 77.80% +0.00%

Changed lines: Changed C/C++ lines covered: 2/2 (100.00%) · Uncovered code

Full report · Diff report

@Algunenano
Algunenano enabled auto-merge July 3, 2026 16:57
@Algunenano
Algunenano added this pull request to the merge queue Jul 3, 2026
Merged via the queue into ClickHouse:master with commit acab1c8 Jul 3, 2026
173 of 174 checks passed
@Algunenano
Algunenano deleted the darwin-skip-prune-batch9 branch July 3, 2026 18:32
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 3, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…e-batch9

Darwin fast test: prune/classify skips, portability fixes, provision Python deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci 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.

3 participants