Skip to content

Improve clickhouse-server entrypoint - #75643

Merged
Felixoid merged 11 commits into
masterfrom
improve-entrypoints
Feb 12, 2025
Merged

Felixoid merged 11 commits into
masterfrom
improve-entrypoints

Conversation

@Felixoid

@Felixoid Felixoid commented Feb 5, 2025 •

Copy link
Copy Markdown
Member

A change related to the review in docker-library/official-images#18387

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Make all clickhouse-server related actions a function, and execute them only when launching the default binary in entrypoint.sh. A long-postponed improvement was suggested in #50724. Added switch --users to clickhouse-extract-from-config to get values from the users.xml

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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)

All builds in Builds_1 and Builds_2 stages are always mandatory and will run independently of the checks below:

  • Only: Stateless tests
  • Only: Integration tests
  • Only: Performance tests

  • Skip: Style check
  • Skip: Fast test

  • Run all checks ignoring all possible failures (Resource-intensive. All test jobs execute in parallel).
  • Disable CI cache

@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-build Pull request with build/testing/packaging improvement label Feb 5, 2025
@robot-ch-test-poll3

robot-ch-test-poll3 commented Feb 5, 2025 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 183c840f10c9d869e5346357b3e7a6037247a9b4 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
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
BuzzHouse (asan)There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
BuzzHouse (debug)There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
BuzzHouse (msan)There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
BuzzHouse (tsan)There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
BuzzHouse (ubsan)There's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
ClickBenchRuns ClickBench with instant-attach table✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docker server imageThe 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
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ 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
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ 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

@Felixoid

Felixoid commented Feb 5, 2025

Copy link
Copy Markdown
Member Author

@maxknv I also need to add the tests here from docker-library.

After the image for docker-server is built, we'll run https://github.com/docker-library/official-images/blob/429dd22ac3022ce45cbd0d22116d93957a2af0ca/test/run.sh

@Felixoid
Felixoid force-pushed the improve-entrypoints branch from 2005321 to 131446c Compare February 6, 2025 00:41
@Felixoid
Felixoid force-pushed the improve-entrypoints branch from a85cf12 to fa5a0f5 Compare February 6, 2025 08:45
@Felixoid Felixoid added pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-backports-created-cloud deprecated label, NOOP labels Feb 6, 2025
@Felixoid
Felixoid marked this pull request as ready for review February 7, 2025 13:37
@Felixoid
Felixoid force-pushed the improve-entrypoints branch from 183c840 to 7404528 Compare February 7, 2025 13:59
@clickhouse-gh

clickhouse-gh Bot commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7404528]

@Felixoid
Felixoid marked this pull request as draft February 10, 2025 13:23
@Felixoid Felixoid removed the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Feb 12, 2025
@Felixoid

Copy link
Copy Markdown
Member Author

Thank you, @fm4v, for your collaboration. The code is tested for all possible scenarios.

I am merging it, will take some time for people to test it from clickhouse/clickhouse-server:head or clickhouse/clickhouse-server:head-alpine, and provide the feedback.

Then, if no negative feedback is provided, I'll backport it tomorrow.

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 13, 2025
robot-ch-test-poll4 added a commit that referenced this pull request Feb 13, 2025
Backport #75643 to 25.1: Improve clickhouse-server entrypoint
@Felixoid Felixoid added pr-must-backport Pull request should be backported intentionally. Use this label with great care! and removed pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore labels Feb 16, 2025
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 16, 2025
robot-ch-test-poll3 added a commit that referenced this pull request Feb 16, 2025
Backport #75643 to 24.12: Improve clickhouse-server entrypoint
Felixoid added a commit that referenced this pull request Feb 16, 2025
Backport #75643 to 24.11: Improve clickhouse-server entrypoint
Felixoid added a commit that referenced this pull request Feb 16, 2025
Backport #75643 to 24.8: Improve clickhouse-server entrypoint
Felixoid added a commit that referenced this pull request Feb 16, 2025
Backport #75643 to 24.3: Improve clickhouse-server entrypoint
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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-build Pull request with build/testing/packaging improvement pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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