Skip to content

Commit a45ed5b

Browse files
Merge branch 'master' into fix/nth-element-projections-sentinels
2 parents a4b4a86 + 3735f50 commit a45ed5b

533 files changed

Lines changed: 8134 additions & 17381 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cmake-format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@
585585
'hpx_extract_includes_from_file': { 'kwargs': { 'SOURCE': 1,
586586
'INCLUDE_DIRS': '+',
587587
'FOUND_HEADERS': 1},
588+
'pargs': { 'flags': [], 'nargs': '1+'}},
589+
'hpx_configure_module_producer': { 'kwargs': { 'MODULE_OUT_DIR': 1},
588590
'pargs': { 'flags': [], 'nargs': '1+'}}
589591
}
590592

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the spirit in which it's intended - a guide to make it easier to enrich all of
2121
us and the technical communities in which we participate.
2222

2323
This code of conduct applies to all spaces managed by the
24-
[HPX](https://github.com/STEllAR-GROUP/hpx) project or
24+
[HPX](https://github.com/TheHPXProject/hpx) project or
2525
[STE||AR Group](http://stellar-group.org). This includes IRC, the mailing
2626
lists, the issue tracker, and any other forums created by the project team
2727
which the community uses for communication. In addition, violations of this

.github/CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
55
<!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
66

7-
This describes how you can contribute to [HPX](https://github.com/STEllAR-GROUP/hpx).
7+
This describes how you can contribute to [HPX](https://github.com/TheHPXProject/hpx).
88
Great to have you here. There are a few ways you can help make HPX better!
99

1010
# How to Get Involved in Developing HPX
@@ -13,7 +13,7 @@ This page describes how you can get yourself involved with the development of
1313
HPX. Here are some easy things to do.
1414

1515
All of the HPX development and the related discussions happen through the
16-
[Github ticket system](https://github.com/STEllAR-GROUP/hpx/issues). We are
16+
[Github ticket system](https://github.com/TheHPXProject/hpx/issues). We are
1717
looking forward to contributions submitted through the usual Github process,
1818
i.e. pull requests.
1919

@@ -22,7 +22,7 @@ The easiest ways to get in contact with us are listed here:
2222
* Mailing list: [hpx-users@stellar-group.org](email:hpx-users@stellar-group.org), [hpx-devel@stellar-group.org](email:hpx-devel@stellar-group.org)
2323
* Discord server: [#ste||ar](https://discord.gg/Tn9QuzVjvy)
2424
* Blog: [hpx.stellar-group.org](hpx.stellar-group.org)
25-
* More options: See our [support page](https://github.com/STEllAR-GROUP/hpx/blob/master/.github/SUPPORT.md)
25+
* More options: See our [support page](https://github.com/TheHPXProject/hpx/blob/master/.github/SUPPORT.md)
2626

2727
The basic approach is to find something fun you want to fix, hack it up, and
2828
send a `git diff` as a mail attachment to [hpx-devel@stellar-group.org](email:hpx-devel@stellar-group.org)
@@ -54,7 +54,7 @@ cleanup that many people can help out with), then please:
5454
If a task has an owner without an update in a week, feel free to notify them
5555
that you're taking that on yourself, and of course if you realize you can't
5656
complete a task - please update it in the
57-
[ticket system](https://github.com/STEllAR-GROUP/hpx/issues).
57+
[ticket system](https://github.com/TheHPXProject/hpx/issues).
5858

5959
Even if you are deeply skilled, please consider doing one little easy hack, to
6060
get used to the process. After that, you are invited to move on up to the more
@@ -72,7 +72,7 @@ information to get you started.
7272
### Get a login on Github [here](https://github.com/) and fork the HPX repository to your Github account.
7373

7474
All new and old bugs in HPX can be found in our
75-
[ticket system](https://github.com/STEllAR-GROUP/hpx/issues). Especially with
75+
[ticket system](https://github.com/TheHPXProject/hpx/issues). Especially with
7676
new incoming bugs, it is helpful to test the bug on your own computer/operating
7777
system and comment in the bug entry whether you can or cannot confirm the bug
7878
and under what circumstances it affects you.
@@ -104,7 +104,7 @@ The short version of the guidelines:
104104
* Exceptions for error handling instead of C-style error codes.
105105

106106
A more elaborate description of our coding guidelines can be found
107-
[here](https://github.com/STEllAR-GROUP/hpx/wiki/HPX-Source-Code-Structure-and-Coding-Standards).
107+
[here](https://github.com/TheHPXProject/hpx/wiki/HPX-Source-Code-Structure-and-Coding-Standards).
108108

109109
There is a `.editorconfig` file in the HPX root directory which can be used
110110
for almost any widely available editor. Please see

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
If you believe you have found a security vulnerability in HPX, don't hesitate to _report them_.
1212

13-
1. Use any of the [means of contact](https://github.com/STEllAR-GROUP/hpx/blob/master/.github/SUPPORT.md).
13+
1. Use any of the [means of contact](https://github.com/TheHPXProject/hpx/blob/master/.github/SUPPORT.md).
1414

1515
**Please do not report security vulnerabilities through public GitHub issues.**
1616

.github/SUPPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Support for deploying and using HPX
88

99
Welcome to [HPX](http://stellar-group.org/libraries/hpx/)! We use GitHub for
10-
[tracking bugs and feature requests](https://github.com/STEllAR-GROUP/hpx/issues).
10+
[tracking bugs and feature requests](https://github.com/TheHPXProject/hpx/issues).
1111
Please see for the resources below if you are looking for the right place to
1212
get support for using HPX.
1313

@@ -18,7 +18,7 @@ get support for using HPX.
1818
### Reporting security issues and vulnerabilities
1919

2020
Please send us an [email](info@stellar-group.org) describing the issue. See our
21-
[security policy](https://github.com/STEllAR-GROUP/hpx/blob/master/.github/SECURITY.md)
21+
[security policy](https://github.com/TheHPXProject/hpx/blob/master/.github/SECURITY.md)
2222
for details.
2323

2424
### Chat
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2026 Arpit Singh
2+
#
3+
# SPDX-License-Identifier: BSL-1.0
4+
# Distributed under the Boost Software License, Version 1.0. (See accompanying
5+
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
7+
param(
8+
[Parameter(Mandatory = $true)]
9+
[string]$Path
10+
)
11+
12+
$resolved_path = Resolve-Path -Path $Path -ErrorAction Stop
13+
$exclude_targets = Get-Content -Path $resolved_path |
14+
Where-Object { $_ -notmatch '^\s*(#|$)' } |
15+
ForEach-Object { $_.Trim() }
16+
17+
[System.String]::Join('|', $exclude_targets)

.github/ci-scripts/generate_test_matrix.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,24 @@ def generate_matrix(ctest_output, num_buckets):
6666
bucket_targets.append(target)
6767

6868
unique_targets = sorted(list(set(bucket_targets)))
69-
targets_str = " ".join(unique_targets)
70-
71-
matrix["include"].append({
72-
"id": i + 1,
73-
"name": f"tests-{i+1:02d}",
74-
"tests": test_regex,
75-
"targets": targets_str,
76-
"count": len(bucket_tests)
77-
})
69+
if len(unique_targets) != 0:
70+
first_name_parts = unique_targets[0].split('.')
71+
last_name_parts = unique_targets[-1].split('.')
72+
73+
first_name_index = -2 if len(first_name_parts) > 1 else -1
74+
last_name_index = -2 if len(last_name_parts) > 1 else -1
75+
76+
first_name = first_name_parts[first_name_index]
77+
last_name = last_name_parts[last_name_index]
78+
79+
targets_str = " ".join(unique_targets)
80+
matrix["include"].append({
81+
"id": i + 1,
82+
"name": f"{i+1:02d}-{first_name}-{last_name}",
83+
"tests": test_regex,
84+
"targets": targets_str,
85+
"count": len(bucket_tests)
86+
})
7887

7988
return matrix
8089

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,24 @@ jobs:
8383
- name: core_local (Building Core Local)
8484
shell: bash
8585
working-directory: build
86-
run: ninja -j"$(nproc)" -k 0 hpx_core
86+
run: ninja -k 0 hpx_core
8787

8888
- name: core (Building Core)
8989
shell: bash
9090
working-directory: build
91-
run: ninja -j"$(nproc)" -k 0 core
91+
run: ninja -k 0 core
9292

9393
- name: Components (Building Components)
9494
shell: bash
9595
working-directory: build
96-
run: ninja -j"$(nproc)" -k 0 components
96+
run: ninja -k 0 components
9797

9898
- name: Generate Test Matrix
9999
id: gen_matrix
100100
shell: bash
101101
working-directory: build
102102
run: |
103-
ctest -N | python3 ../.github/ci-scripts/generate_test_matrix.py 18 > test_matrix.json
103+
ctest -N | python3 ../.github/ci-scripts/generate_test_matrix.py 20 > test_matrix.json
104104
printf 'matrix=%s\n' "$(cat test_matrix.json)" >> "$GITHUB_OUTPUT"
105105
106106
- name: Package Build Artifacts
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Copyright (c) 2026 Arpit Khandelwal
2+
#
3+
# SPDX-License-Identifier: BSL-1.0
4+
# Distributed under the Boost Software License, Version 1.0. (See accompanying
5+
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6+
7+
name: Cancel Workflows
8+
9+
on:
10+
pull_request_target:
11+
types: [labeled]
12+
issue_comment:
13+
types: [created]
14+
15+
jobs:
16+
cancel-all:
17+
# Trigger if label 'cancel-ci' is added OR if a comment contains '/cancel-ci'
18+
if: |
19+
(github.event_name == 'pull_request_target' && github.event.label.name == 'cancel-ci') ||
20+
(github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '/cancel-ci'))
21+
runs-on: ubuntu-latest
22+
permissions:
23+
actions: write
24+
pull-requests: write
25+
issues: write
26+
steps:
27+
- name: Authorize and Extract PR Number
28+
id: context
29+
env:
30+
EVENT_NAME: ${{ github.event_name }}
31+
AUTHOR_ASSOC: ${{ github.event.comment.author_association }}
32+
COMMENT_USER_ID: ${{ github.event.comment.user.id }}
33+
PR_AUTHOR_ID: ${{ github.event.issue.user.id }}
34+
run: |
35+
if [ "$EVENT_NAME" == "issue_comment" ]; then
36+
# Authorize: Maintainers (OWNER, MEMBER, COLLABORATOR) or PR Author
37+
if [[ "$AUTHOR_ASSOC" =~ ^(OWNER|MEMBER|COLLABORATOR)$ ]] || [ "$COMMENT_USER_ID" == "$PR_AUTHOR_ID" ]; then
38+
echo "User authorized."
39+
else
40+
echo "Error: Unauthorized user attempted to cancel CI."
41+
exit 1
42+
fi
43+
echo "pr_number=${{ github.event.issue.number }}" >> "$GITHUB_OUTPUT"
44+
else
45+
# Labels addition is already restricted by GitHub to those with write access
46+
echo "pr_number=${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
47+
fi
48+
49+
- name: Cancel Workflow Runs
50+
env:
51+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
PR_NUMBER: ${{ steps.context.outputs.pr_number }}
53+
CURRENT_RUN_ID: ${{ github.run_id }}
54+
run: |
55+
echo "Cancelling runs for PR #$PR_NUMBER..."
56+
57+
# Get all runs for the PR that are NOT completed, excluding this current run
58+
RUN_IDS=$(gh run list --pr "$PR_NUMBER" --limit 200 --json databaseId,status --jq '.[] | select(.status != "completed" and .databaseId != (env.CURRENT_RUN_ID | tonumber)) | .databaseId')
59+
60+
if [ -z "$RUN_IDS" ]; then
61+
echo "No active runs found to cancel."
62+
else
63+
echo "Found the following run IDs to cancel:"
64+
echo "$RUN_IDS"
65+
for ID in $RUN_IDS; do
66+
echo "Cancelling run $ID..."
67+
gh run cancel "$ID" || echo "Failed to cancel run $ID (it might have already finished)"
68+
done
69+
fi
70+
71+
# Remove label if triggered by label
72+
if [ "${{ github.event_name }}" == "pull_request_target" ]; then
73+
echo "Removing 'cancel-ci' label..."
74+
gh pr edit "$PR_NUMBER" --remove-label "cancel-ci" || echo "Failed to remove label"
75+
fi

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
queries: security-and-quality
5555

5656
- name: Install CMake
57-
uses: jwlawson/actions-setup-cmake@v2.2
57+
uses: lukka/get-cmake@v4.3.2
5858

5959
- name: Install Ninja
6060
uses: seanmiddleditch/gha-setup-ninja@master

0 commit comments

Comments
 (0)