Skip to content

Fix queuing regression under configured schedulers - #7764

Merged
hkaiser merged 1 commit into
TheHPXProject:masterfrom
the-ivii:fix/queuing-options-regression
Oct 19, 2026
Merged

hkaiser merged 1 commit into
TheHPXProject:masterfrom
the-ivii:fix/queuing-options-regression

Conversation

@the-ivii

Copy link
Copy Markdown
Contributor

Follow-up to #7757.

Proposed Changes

  • Remove an externally injected --hpx:queuing option before the regression cases supply their own scheduler.
  • Handle both --hpx:queuing=value and --hpx:queuing value forms.
  • Preserve all other test-runner arguments, including the configured thread count.

Any background context you want to provide?

After #7757 merged, the queuing_options_7743 regression failed in configurations that set HPX_WITH_TESTS_COMMAND_LINE=--hpx:queuing=local-workrequesting-fifo. The test supplies a different scheduler for each runtime initialization, so program-options rejected the two occurrences before the assertions ran.

Validated with the failing CI configuration, including work-requesting schedulers and the globally injected scheduler option.

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.

@the-ivii
the-ivii requested a review from hkaiser as a code owner October 18, 2026 13:46
@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.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3040dc11-a5f0-476b-a9f7-2892a093cd73
📥 Commits

Reviewing files that changed from the base of the PR and between cba138f and 6839380.

📒 Files selected for processing: 1
  • libs/core/command_line_handling_local/tests/regressions/queuing_options_7743.cpp

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

📝 Summary

Summary by CodeRabbit

  • Tests
    • Improved regression test reliability by filtering externally supplied queuing options before testing scheduler configurations.

The regression test filters --hpx:queuing options and their values from the incoming argument vector before running the existing scheduler test cases.

Changes: Queuing Option Regression Test

Layer / File(s) Summary
Filter test arguments
libs/core/command_line_handling_local/tests/regressions/queuing_options_7743.cpp
Adds remove_queuing_option to retain the program name and unrelated arguments while removing --hpx:queuing and its value, or --hpx:queuing=.... The test uses the filtered arguments for its scheduler cases.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 68393

The test filters the injected scheduler option while preserving the remaining arguments. No actionable merge-blocking risk is identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: fixing the queuing regression under configured schedulers.
Description check Passed The description directly explains the regression, the argument filtering changes, the supported option forms, and the validation performed.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
🧪 Generate unit tests (beta)
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • 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

Comment @coderabbitai help to get the list of available commands.

@StellarBot

Copy link
Copy Markdown
Collaborator
Performance test report

HPX Performance

Comparison

BENCHMARKFORK_JOIN_EXECUTORFORK_JOIN_EXECUTOR_NOSTACKPARALLEL_EXECUTORPARALLEL_SCHEDULERSCHEDULER_EXECUTOR
For Each(=)(=)(=)(=)(=)

Info

PropertyBeforeAfter
HPX Commit36d11ded0c7da2
HPX Datetime2026-10-14T17:56:09+00:002026-10-18T13:46:32+00:00
Hostnamemedusa08.rostam.cct.lsu.edumedusa08.rostam.cct.lsu.edu
Clusternamerostamrostam
Datetime2026-10-14T13:06:52.713280-05:002026-10-18T08:56:47.691301-05:00
Compiler/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8
Envfile

Comparison

BENCHMARKNO-EXECUTOR
Future Overhead - Create Thread Hierarchical - Latch=

Info

PropertyBeforeAfter
HPX Commit36d11ded0c7da2
HPX Datetime2026-10-14T17:56:09+00:002026-10-18T13:46:32+00:00
Hostnamemedusa08.rostam.cct.lsu.edumedusa08.rostam.cct.lsu.edu
Clusternamerostamrostam
Datetime2026-10-14T13:08:45.592191-05:002026-10-18T08:58:39.547330-05:00
Compiler/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8
Envfile

Comparison

BENCHMARKFORK_JOIN_EXECUTOR_DEFAULT_FORK_JOIN_POLICY_ALLOCATORPARALLEL_EXECUTOR_DEFAULT_PARALLEL_POLICY_ALLOCATORSCHEDULER_EXECUTOR_DEFAULT_SCHEDULER_EXECUTOR_ALLOCATOR
Stream Benchmark - Add(=)---
Stream Benchmark - Scale(=)(=)(=)
Stream Benchmark - Triad(=)-(=)
Stream Benchmark - Copy(=)++

Info

PropertyBeforeAfter
HPX Commit36d11ded0c7da2
HPX Datetime2026-10-14T17:56:09+00:002026-10-18T13:46:32+00:00
Hostnamemedusa08.rostam.cct.lsu.edumedusa08.rostam.cct.lsu.edu
Clusternamerostamrostam
Datetime2026-10-14T13:09:05.868380-05:002026-10-18T08:58:59.667420-05:00
Compiler/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8/opt/apps/llvm/18.1.8/bin/clang++ 18.1.8
Envfile

Explanation of Symbols

SymbolMEANING
=No performance change (confidence interval within ±1%)
(=)Probably no performance change (confidence interval within ±2%)
(+)/(-)Very small performance improvement/degradation (≤1%)
+/-Small performance improvement/degradation (≤5%)
++/--Large performance improvement/degradation (≤10%)
+++/---Very large performance improvement/degradation (>10%)
?Probably no change, but quite large uncertainty (confidence interval with ±5%)
??Unclear result, very large uncertainty (±10%)
???Something unexpected…

@hkaiser hkaiser left a comment

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.

LGTM, thanks!

@hkaiser

hkaiser commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

@the-ivii FWIW, the failing min_tasks_to_steal_staged will be fixed by #7771.

@hkaiser
hkaiser merged commit 9824df1 into TheHPXProject:master Oct 19, 2026
106 of 111 checks passed
@hkaiser hkaiser mentioned this pull request Oct 19, 2026
1 of 2 tasks
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.

3 participants