Skip to content

CI: Build all targets in amd_compat - #86258

Merged
maxknv merged 1 commit into
masterfrom
ci_build_all_in_amd_compat
Aug 28, 2025
Merged

maxknv merged 1 commit into
masterfrom
ci_build_all_in_amd_compat

Conversation

@maxknv

@maxknv maxknv commented Aug 27, 2025

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Follow up #84739

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

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3457bc7]

Summary: ❌

job_name test_name status info comment
Finish Workflow failure
python3 ./ci/jobs/scripts/workflow_hooks/can_be_merged.py failure

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 27, 2025
@pamarcos
pamarcos self-requested a review August 27, 2025 10:42
@pamarcos pamarcos self-assigned this Aug 27, 2025
@maxknv
maxknv force-pushed the ci_build_all_in_amd_compat branch from 406d0e0 to 11b1c27 Compare August 27, 2025 12:01
@maxknv
maxknv marked this pull request as draft August 27, 2025 12:01
@maxknv maxknv added the ci-build CI with just build jobs, style check and fast test label Aug 27, 2025
@maxknv
maxknv force-pushed the ci_build_all_in_amd_compat branch from 11b1c27 to 3457bc7 Compare August 27, 2025 18:31
@maxknv
maxknv marked this pull request as ready for review August 27, 2025 18:31
@maxknv
maxknv enabled auto-merge August 27, 2025 18:32
@maxknv
maxknv added this pull request to the merge queue Aug 28, 2025
Merged via the queue into master with commit daef091 Aug 28, 2025
@maxknv
maxknv deleted the ci_build_all_in_amd_compat branch August 28, 2025 15:32
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 28, 2025
alexey-milovidov added a commit that referenced this pull request Mar 25, 2026
Previously each example program was built as a separate executable,
each statically linking the full ClickHouse codebase (~2 GB per binary).
With 83 examples, `amd_compat` CI build produced ~77 GB of example
binaries alone (vs ~22 GB for the rest of the build).

This was caused by PR #86258 which added `-DENABLE_EXAMPLES=1` and
`-k0 all` target to `amd_compat`, and PR #95826 which added
`-DENABLE_EXAMPLES=1` to `ARM_BINARY`.

This change:
- Consolidates all 83 example programs into a single `clickhouse-examples`
  multi-call binary (like ClickHouse itself), dispatching by argv[0]
  or first argument
- Each example's `main` is renamed to a unique entry point
  (e.g., `mainEntryExampleHashMap`)
- Removes `-DENABLE_EXAMPLES=1` from `amd_compat` and `ARM_BINARY` CI
  configurations
- Removes `AMD_COMPAT` from the "build all targets" group

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-build CI with just build jobs, style check and fast test 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.

3 participants