Skip to content

Fix the build of unit_tests_dbms after the change of StackTrace::tryResolveAddress - #126269

Merged
nihalzp merged 1 commit into
masterfrom
fix-gtest-functions-stress-resolved-address
Oct 16, 2026
Merged

nihalzp merged 1 commit into
masterfrom
fix-gtest-functions-stress-resolved-address

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

#126039 changed StackTrace::tryResolveAddress to return ResolvedAddress by value, with a null address for an address that does not resolve. formatStackTrace in src/Functions/tests/gtest_functions_stress.cpp, added in parallel, used it as an optional, so unit_tests_dbms does not compile on master (error: value of type 'const ResolvedAddress' is not contextually convertible to 'bool'). This prints the address the way writeResolvedAddress in SignalHandlers.cpp does.

CI report: https://github.com/ClickHouse/ClickHouse/actions/runs/38884911247/job/116920919005

Related: #126039
Related: #123890

Changelog category (leave one):

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

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/126269]

Version info

  • Merged into: 26.11.1.87-master (included in 26.11 and later)

…ackTrace::tryResolveAddress`

#126039 changed
`StackTrace::tryResolveAddress` to return `ResolvedAddress` by value, with a
null address for an address that does not resolve, while `formatStackTrace`
in `gtest_functions_stress.cpp`, added in parallel, used it as an optional.
`unit_tests_dbms` does not compile on `master` since then.

Print the resolved address like `writeResolvedAddress` in `SignalHandlers.cpp`
does: `<unknown>` for an address that does not resolve, and the name of the
object for an address in a shared library.

https://github.com/ClickHouse/ClickHouse/actions/runs/38884911247/job/116920919005

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c14207b]

Summary: ❌

job_name test_name status info comment
Integration tests (arm_binary, 3/4) FAIL
test_backward_compatibility/test_custom_s3_disk_remote_url_allow_hosts.py::test_table_on_custom_s3_disk_loads_after_upgrade FAIL cidb
test_backward_compatibility/test_custom_s3_disk_remote_url_allow_hosts.py::test_database_on_custom_s3_disk_loads_after_upgrade FAIL cidb

AI Review

Summary

Updates the stress-test stack trace formatter to consume StackTrace::ResolvedAddress by value, print <unknown> for unresolved addresses, and retain object names for shared-library offsets. No actionable findings in the current diff or surrounding code.

Missing context / blind spots
  • ⚠️ The relevant unit-test builds and runs are still pending in the PR CI report. No local build was run; successful unit_tests_dbms compilation in CI will confirm the build repair.
Final Verdict

Status: ✅ Approve. No review changes requested; compilation remains subject to CI.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 16, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Oct 16, 2026
raimannma added a commit to raimannma/ClickHouse that referenced this pull request Oct 16, 2026
…ryResolveAddress`

ClickHouse#126039 made `StackTrace::tryResolveAddress` return
`ResolvedAddress` instead of `std::optional<ResolvedAddress>`, while
ClickHouse#126137 started using it as an optional in
`gtest_functions_stress.cpp`, so master does not compile `unit_tests_dbms`.

The same change as ClickHouse#126269, to unblock CI here.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=126134&sha=latest&name_0=PR&name_1=Build%20(arm_tidy%2C%203%2F4)
PR: ClickHouse#126134
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 16, 2026
harikrishnan94 added a commit that referenced this pull request Oct 16, 2026
Master fixed the build of `unit_tests_dbms` (#126269), which had broken the debug, sanitizer and `arm_tidy` builds of the previous head of this branch. The merge is clean, and the only file that both sides changed is `ProfileEvents.cpp`, where each added different events.

PR: #115605

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Oct 16, 2026
…expression-length-bound

The previous master merge picked up the gtest_functions_stress build break
(fixed in ClickHouse#126269), so CI dropped most jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kryst4lskyxx added a commit to Kryst4lskyxx/ClickHouse that referenced this pull request Oct 16, 2026
Bring the merged build fix into the PR while preserving the existing
branch history and the `26.11` compatibility record.

Related: ClickHouse#126269
Related: ClickHouse#125968
UberDever added a commit to UberDever/ClickHouse that referenced this pull request Oct 19, 2026
Includes the upstream unit-test build correction from ClickHouse#126269.
@clickhouse-gh clickhouse-gh Bot added comp-functions Built-in SQL function implementations + function infrastructure. and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-functions Built-in SQL function implementations + function infrastructure. 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.

4 participants