Skip to content

Push parser_memory_profiler artifact from builds to use in other CI checks - #95826

Merged
qoega merged 1 commit into
masterfrom
parser-memory-ci-check
Feb 5, 2026
Merged

qoega merged 1 commit into
masterfrom
parser-memory-ci-check

Conversation

@qoega

@qoega qoega commented Feb 2, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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

Publish parser_memory_profiler binary from build. Tool can be used to analyze AST memory consumption.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.2.1.257

@clickhouse-gh

clickhouse-gh Bot commented Feb 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d3e0502]

Summary: ❌

job_name test_name status info comment
Stress test (arm_asan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb, issue ISSUE EXISTS
Stress test (arm_asan, s3) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb, issue ISSUE EXISTS
Stress test (amd_ubsan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb, issue ISSUE EXISTS
Stress test (amd_msan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb, issue ISSUE EXISTS
BuzzHouse (amd_msan) failure
Logical error: 'false && "WriteBuffer is neither finalized nor canceled in destructor."' (STID: 2508-4848) FAIL cidb, issue ISSUE CREATED

@clickhouse-gh clickhouse-gh Bot added the pr-build Pull request with build/testing/packaging improvement label Feb 2, 2026
@qoega
qoega force-pushed the parser-memory-ci-check branch from 32d37ae to 287cfd6 Compare February 2, 2026 18:47
@qoega
qoega marked this pull request as draft February 2, 2026 18:50
@qoega
qoega force-pushed the parser-memory-ci-check branch 3 times, most recently from 2632985 to 2a3c139 Compare February 3, 2026 10:14
@qoega
qoega marked this pull request as ready for review February 4, 2026 08:29
@qoega
qoega force-pushed the parser-memory-ci-check branch from 2a3c139 to 7637be2 Compare February 4, 2026 12:51
Add parser_memory_profiler to Build (arm_binary) job:
- Add -DENABLE_EXAMPLES=1 to ARM_BINARY CMake config
- Add parser_memory_profiler to ninja targets
- Define PARSER_MEMORY_PROFILER artifact for PR builds
- Upload to S3 for master builds at:
  clickhouse-builds/{branch}/aarch64/parser_memory_profiler

Co-authored-by: Cursor <[email protected]>
@qoega
qoega force-pushed the parser-memory-ci-check branch from 7637be2 to d3e0502 Compare February 4, 2026 13:36
@qoega

qoega commented Feb 4, 2026

Copy link
Copy Markdown
Member Author

@maxknv is it better now?

@maxknv maxknv self-assigned this Feb 4, 2026
@maxknv

maxknv commented Feb 4, 2026

Copy link
Copy Markdown
Member

@maxknv is it better now?

It's Perfect!

@maxknv
maxknv self-requested a review February 4, 2026 15:54
@maxknv
maxknv requested a review from leshikus February 4, 2026 15:56

@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.

Looks good

@qoega
qoega enabled auto-merge February 4, 2026 19:09
@qoega
qoega added this pull request to the merge queue Feb 5, 2026
Merged via the queue into master with commit 09ed99d Feb 5, 2026
122 of 127 checks passed
@qoega
qoega deleted the parser-memory-ci-check branch February 5, 2026 11:22
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 5, 2026
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

pr-build Pull request with build/testing/packaging improvement 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.

4 participants