Skip to content

fix(stdexec): added adaption to ensure successful build with stdexec#6846

Merged
hkaiser merged 1 commit intoTheHPXProject:masterfrom
sususu5:fix/stdexec_build_failure
Jan 24, 2026
Merged

fix(stdexec): added adaption to ensure successful build with stdexec#6846
hkaiser merged 1 commit intoTheHPXProject:masterfrom
sususu5:fix/stdexec_build_failure

Conversation

@sususu5
Copy link
Copy Markdown
Contributor

@sususu5 sususu5 commented Jan 4, 2026

Fixes #6842

Proposed Changes

  • Removed stdexec::dependent_domain since it has been deleted in the upstream repo
  • Changed stdexec::make_completion_signatures to exec::make_completion_signatures to ensure consistency
  • Removed stdexec::transform_env since it has been deleted in the upstream repo
  • Added query() and schedule() functions to thread_pool_policy_scheduler to meet the requirement

Any background context you want to provide?

upstream repo

Checklist

Not all points below apply to all pull requests.

  • I have added a new feature and have added tests to go along with it.
  • I have fixed a bug and have added a regression test.
  • I have added a test using random numbers; I have made sure it uses a seed, and that random numbers generated are valid inputs for the tests.

@sususu5 sususu5 requested a review from hkaiser as a code owner January 4, 2026 14:01
@StellarBot
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@hkaiser hkaiser added type: enhancement type: compatibility issue category: senders/receivers Implementations of the p0443r14 / p2300 + p1897 proposals labels Jan 4, 2026
@hkaiser hkaiser added this to the 2.0.0 milestone Jan 4, 2026
@hkaiser
Copy link
Copy Markdown
Contributor

hkaiser commented Jan 4, 2026

@isidorostsa Would you mind having a look?

Copy link
Copy Markdown
Contributor

@isidorostsa isidorostsa left a comment

Choose a reason for hiding this comment

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

Hey David, thank you for your PR!

The completions you added in the thread pool scheduler make sense.

Also, good job spotting the removed stuff :)

meta::type<detail::make_helper<Sender, Env, AddlSignatures,
meta::func<SetValue>, meta::func1<SetError>, SendsStopped>>;
#else
HPX_CXX_EXPORT using exec::make_completion_signatures;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't appear to be using make_completion_signatures anywhere in the codebase, so we might as well avoid this dependency on exec

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you so much! This part has been removed, shall I make a squash to the commits now or wait for the ci to be fixed. I suspect the failure is not generated from the codebase?

{
return {*this};
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think you should also add a non-const overload?

{
return {*this};
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think you should also add a non-const overload?

)>
// clang-format on
constexpr auto query(
hpx::execution::experimental::get_completion_scheduler_t<
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice spotting this too!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think both the query() and schedule() functions should only have const versions because scheduler is designed as a lightweight handle and these operations shouldn't change the states of the internal scheduler.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Huh, I didn't know that, but it makes sense.

@isidorostsa
Copy link
Copy Markdown
Contributor

This pool request is good to go, @sususu5 I'll ping you once CI is fixed so you can rebase and then we will be good to merge.

@sususu5
Copy link
Copy Markdown
Contributor Author

sususu5 commented Jan 5, 2026

This pool request is good to go, @sususu5 I'll ping you once CI is fixed so you can rebase and then we will be good to merge.

Thanks!

@sususu5 sususu5 force-pushed the fix/stdexec_build_failure branch from a5833f9 to 69c0246 Compare January 7, 2026 07:10
@hkaiser
Copy link
Copy Markdown
Contributor

hkaiser commented Jan 17, 2026

@sususu5 please try rebasing onto master. The CIs should be ok now.

@sususu5 sususu5 force-pushed the fix/stdexec_build_failure branch from 69c0246 to 41f905b Compare January 18, 2026 00:04
@sususu5
Copy link
Copy Markdown
Contributor Author

sususu5 commented Jan 19, 2026

@sususu5 please try rebasing onto master. The CIs should be ok now.

Thanks for the reminder. After checking again, there are still a few tests failing because the clang-tidy subprocess is being killed.

@sususu5 sususu5 force-pushed the fix/stdexec_build_failure branch from 8dd9089 to 357cccc Compare January 21, 2026 07:53
@hkaiser
Copy link
Copy Markdown
Contributor

hkaiser commented Jan 22, 2026

@sususu5 please try rebasing onto master. The CIs should be ok now.

Thanks for the reminder. After checking again, there are still a few tests failing because the clang-tidy subprocess is being killed.

Yes, CircleCI runs out of memory. Feel free to ignore those errors.

Signed-off-by: David Hua <tkrd1205@gmail.com>
@sususu5 sususu5 force-pushed the fix/stdexec_build_failure branch from 357cccc to a83d5ef Compare January 23, 2026 23:58
Copy link
Copy Markdown
Contributor

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@hkaiser hkaiser merged commit dde1673 into TheHPXProject:master Jan 24, 2026
69 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: senders/receivers Implementations of the p0443r14 / p2300 + p1897 proposals type: compatibility issue type: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors when building tests relying on stdexec

4 participants