Skip to content

Include umbrella headers of other modules in execution and executors - #8227

Open
hkaiser wants to merge 1 commit into
masterfrom
fix-cross-module-includes
Open

hkaiser wants to merge 1 commit into
masterfrom
fix-cross-module-includes

Conversation

@hkaiser

@hkaiser hkaiser commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Headers of the execution and executors modules included internal headers of the execution_base module directly (make_future.hpp, when_all.hpp, when_all_vector.hpp, executor_scheduler_bulk.hpp), and executor_scheduler_bulk.hpp also included hpx/execution/algorithms/bulk.hpp of the execution module. Code outside a module has to include its generated header hpx/modules/<module>.hpp instead, so these includes now go through hpx/modules/execution_base.hpp and hpx/modules/execution.hpp.

No functional change. Built with GCC 12 and Clang 23 (warnings as errors).

Headers of the execution and executors modules included internal headers of
the execution_base module (and executor_scheduler_bulk.hpp one of the
execution module) directly. Code outside a module includes its generated
header hpx/modules/<module>.hpp instead.

Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated internal execution header dependencies. No user-visible behavior or public API changes were reported.

Four execution headers update their includes. The changes remove direct includes for stdexec forwarding and other execution components. Two headers add module includes.

Changes: Execution Header Includes

Layer / File(s) Summary
Execution header include updates
libs/core/execution/include/hpx/execution/algorithms/make_future.hpp, libs/core/execution/include/hpx/execution/algorithms/when_all*.hpp, libs/core/executors/include/hpx/executors/executor_scheduler_bulk.hpp
The headers remove direct stdexec forwarding includes. when_all.hpp adds the execution-base module include. executor_scheduler_bulk.hpp uses execution and execution-base module headers instead of several direct includes.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Refactor

Suggested reviewers: guptapratykshh, shivansh023023

Merge Risk: Minimal · up to 9e07d

This change only reorganizes header includes and keeps the same declarations reachable through the generated umbrella headers. No behavior change or merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the execution and executors modules now include other modules through their generated umbrella headers. The changeset replaces direct internal includes of execution_b…
Description check Passed The description states that the headers of the execution and executors modules included internal execution_base headers directly. It names the four changed files, explains that the includes now go thr…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the execution and executors modules now include other modules through their generated umbrella headers. The changeset replaces direct internal includes of execution_base with hpx/modules/execution_base.hpp and hpx/modules/execution.hpp, which matches the title.

Full details: Description check

Explanation

The description states that the headers of the execution and executors modules included internal execution_base headers directly. It names the four changed files, explains that the includes now go through hpx/modules/execution_base.hpp and hpx/modules/execution.hpp, and notes there is no functional change. This matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 91115eb7-80a1-4675-abed-be329a914675
Commits

Reviewing files that changed from the base of the PR and between 88ab4ba and 9e07df9.

Files selected for processing: 4

  • libs/core/execution/include/hpx/execution/algorithms/make_future.hpp
  • libs/core/execution/include/hpx/execution/algorithms/when_all.hpp
  • libs/core/execution/include/hpx/execution/algorithms/when_all_vector.hpp
  • libs/core/executors/include/hpx/executors/executor_scheduler_bulk.hpp
Files with no reviewable changes: 2

  • libs/core/execution/include/hpx/execution/algorithms/make_future.hpp
  • libs/core/execution/include/hpx/execution/algorithms/when_all_vector.hpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant