Skip to content

[improvement](be) Remove redundant compile check wrappers#62300

Merged
zclllyybb merged 4 commits intoapache:masterfrom
zclllyybb:agent/task-6db6fddf-remove-compile-check
Apr 10, 2026
Merged

[improvement](be) Remove redundant compile check wrappers#62300
zclllyybb merged 4 commits intoapache:masterfrom
zclllyybb:agent/task-6db6fddf-remove-compile-check

Conversation

@zclllyybb
Copy link
Copy Markdown
Contributor

Remove obsolete compile_check_begin/end headers and all paired includes now that the compile option is enabled globally, while keeping minimal compile_check_avoid guards only around legacy code that still fails under global conversion checks.

@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Apr 9, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Issue Number: None

Related PR: None

Problem Summary: Remove obsolete compile_check_begin/end headers and all paired includes now that the compile option is enabled globally, while keeping minimal compile_check_avoid guards only around legacy code that still fails under global conversion checks.

None

- Test: build.sh --be
    - Manual test
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Update the BE compile_check guidance after removing compile_check_begin/end and close the remaining unpaired compile_check_avoid wrapper in cpu_info.cpp.

### Release note

None

### Check List (For Author)

- Test: Manual test
    - `./build.sh --be` previously linked `be/output/lib/doris_be`; the script then failed at missing `post-build.sh` in this worktree
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Restore cpu_info.cpp to a minimal compile_check_avoid scope so only the pre-namespace declarations remain exempt after removing compile_check_begin/end.

### Release note

None

### Check List (For Author)

- Test: Manual test
    - `./build.sh --be` rebuilt `src/util/cpu_info.cpp`, linked `be/output/lib/doris_be`, and then failed at the existing missing `post-build.sh` step
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Rebase the compile_check cleanup onto upstream/master, remove newly introduced stale compile_check_begin/end references from upstream-touched BE files, and apply the required clang-format pass to the modified files.

### Release note

None

### Check List (For Author)

- Test: Manual test
    - Rebased onto `upstream/master` and ran `/mnt/disk6/common/ldb_toolchain_toucan/bin/clang-format` on all modified C/C++ files
    - `./build.sh --be` produced `be/output/lib/doris_be` successfully after the rebase cleanup
- Behavior changed: No
- Does this need documentation: No
@zclllyybb zclllyybb force-pushed the agent/task-6db6fddf-remove-compile-check branch from ccaf4f4 to 0ba9788 Compare April 9, 2026 16:03
@zclllyybb
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 50.00% (4/8) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.00% (20123/37971)
Line Coverage 36.54% (189156/517647)
Region Coverage 32.79% (146806/447648)
Branch Coverage 33.91% (64242/189459)

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 50.00% (4/8) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 71.95% (26755/37186)
Line Coverage 54.95% (283581/516065)
Region Coverage 52.06% (235179/451781)
Branch Coverage 53.46% (101590/190041)

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

Copy link
Copy Markdown
Member

@airborne12 airborne12 left a comment

Choose a reason for hiding this comment

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

LGTM

@hello-stephen
Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 50.00% (4/8) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.00% (26773/37186)
Line Coverage 54.98% (283728/516065)
Region Coverage 52.08% (235309/451781)
Branch Coverage 53.49% (101645/190041)

Copy link
Copy Markdown
Contributor

@gavinchou gavinchou left a comment

Choose a reason for hiding this comment

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

LGTM

@zclllyybb zclllyybb merged commit 8e7da14 into apache:master Apr 10, 2026
34 of 35 checks passed
@zclllyybb zclllyybb deleted the agent/task-6db6fddf-remove-compile-check branch April 10, 2026 07:19
dataroaring added a commit to dataroaring/incubator-doris that referenced this pull request Apr 10, 2026
…appings_scanner

PR apache#62077 added schema_role_mappings_scanner.cpp with compile_check_begin/end.h
includes, but PR apache#62300 subsequently deleted those headers globally. This causes
a compile failure on master: 'common/compile_check_begin.h' file not found.

Generated by Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants