Skip to content

Commit 6e78ddb

Browse files
authored
Update test matrix, etc. (#1661)
* Update test matrix * Update ubuntu runner for non-testing jobs as well * Use common version of clang-format * Fix typos found by codespell * Configure codespell * Disable formatting on a piece of code
1 parent d784b62 commit 6e78ddb

File tree

12 files changed

+58
-47
lines changed

12 files changed

+58
-47
lines changed

.github/scripts/codespell.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2021 Intel Corporation
3+
# Copyright (c) 2021-2025 Intel Corporation
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -16,7 +16,8 @@
1616

1717
SCAN_TARGET=$1
1818

19-
SKIP_PATTERN='*/.github/*'
19+
SKIP_PATTERN='*/.github/*,*/test/common/doctest.*'
20+
IGNORE_WORDS='parms,affinitized'
2021

2122
# Ignored cases
2223
IGNORE_COMMAND="sed -e /.*\\sOd\\s*=.*/d \
@@ -49,9 +50,11 @@ IGNORE_COMMAND="sed -e /.*\\sOd\\s*=.*/d \
4950
-e /.*count_strings.cpp.*ths\\s*=.*/d \
5051
-e /.*polygon_overlay\/README.md.*ist\\s*=.*/d \
5152
-e /.*_pipeline_filters.h.*nd\\s*=.*/d \
52-
-e /.*sub_string_finder\/README.md.*ba\\s*=.*/d"
53+
-e /.*sub_string_finder\/README.md.*ba\\s*=.*/d
54+
-e /.*frontend.cpp.*SEH\\s*=.*/d
55+
-e /.*assert_impl.h.*statics\\s*=.*/d"
5356

54-
SCAN_RESULT=`codespell --quiet-level=2 --skip "${SKIP_PATTERN}" ${SCAN_TARGET}`
57+
SCAN_RESULT=`codespell --quiet-level=2 --skip "${SKIP_PATTERN}" -L "${IGNORE_WORDS}" ${SCAN_TARGET}`
5558
SCAN_RESULT=`echo -e "${SCAN_RESULT}" | ${IGNORE_COMMAND}`
5659
echo "${SCAN_RESULT}"
5760

.github/workflows/ci.yml

+25-19
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env:
3434

3535
jobs:
3636
codespell:
37-
runs-on: [ubuntu-20.04]
37+
runs-on: [ubuntu-22.04]
3838
timeout-minutes: 10
3939
steps:
4040
- uses: actions/checkout@v4
@@ -44,15 +44,15 @@ jobs:
4444
${GITHUB_WORKSPACE}/.github/scripts/codespell.sh `pwd`
4545
4646
examples_clang-format:
47-
runs-on: [ubuntu-20.04]
47+
runs-on: [ubuntu-22.04]
4848
timeout-minutes: 10
4949
steps:
5050
- uses: actions/checkout@v4
5151
- name: Run scan
5252
run: |
53-
command -v clang-format-10
53+
command -v clang-format
5454
cp -r examples examples_formatted
55-
find examples_formatted -regex '.*\.\(cpp\|hpp\)' -exec clang-format-10 -style=file -i {} \;
55+
find examples_formatted -regex '.*\.\(cpp\|hpp\)' -exec clang-format -style=file -i {} \;
5656
diff -r examples examples_formatted
5757
5858
documentation:
@@ -115,7 +115,7 @@ jobs:
115115
116116
copyright_check:
117117
if: ${{ github.ref != 'refs/heads/master' }}
118-
runs-on: [ubuntu-20.04]
118+
runs-on: [ubuntu-latest]
119119
steps:
120120
- uses: actions/checkout@v4
121121
with:
@@ -159,21 +159,21 @@ jobs:
159159
std: 14
160160
build_type: relwithdebinfo
161161
preview: 'OFF'
162-
- os: ubuntu-20.04
162+
- os: ubuntu-22.04
163163
c_compiler: gcc
164164
cxx_compiler: g++
165165
std: 17
166166
build_type: release
167167
preview: 'ON'
168-
- os: ubuntu-20.04
169-
c_compiler: gcc-10
170-
cxx_compiler: g++-10
168+
- os: ubuntu-24.04-arm
169+
c_compiler: gcc-14
170+
cxx_compiler: g++-14
171171
std: 20
172172
build_type: debug
173173
preview: 'ON'
174-
- os: ubuntu-22.04
175-
c_compiler: gcc-11
176-
cxx_compiler: g++-11
174+
- os: ubuntu-22.04-arm
175+
c_compiler: gcc
176+
cxx_compiler: g++
177177
std: 20
178178
build_type: release
179179
preview: 'ON'
@@ -198,6 +198,12 @@ jobs:
198198
fail-fast: false
199199
matrix:
200200
include:
201+
- os: macos-15
202+
c_compiler: clang
203+
cxx_compiler: clang++
204+
std: 17
205+
build_type: debug
206+
preview: 'ON'
201207
- os: macos-14
202208
c_compiler: clang
203209
cxx_compiler: clang++
@@ -231,14 +237,14 @@ jobs:
231237
fail-fast: false
232238
matrix:
233239
include:
234-
- os: windows-2019
235-
generator: Visual Studio 16 2019
240+
- os: windows-2025
241+
generator: Visual Studio 17 2022
236242
c_compiler: cl
237243
cxx_compiler: cl
238244
std: 14
239245
build_type: relwithdebinfo
240246
preview: 'ON'
241-
job_name: windows_cl2019_cxx14_relwithdebinfo_preview=ON
247+
job_name: windows_cl2022_cxx14_relwithdebinfo_preview=ON
242248
- os: windows-2019
243249
generator: Visual Studio 16 2019
244250
c_compiler: cl
@@ -282,15 +288,15 @@ jobs:
282288
std: 14
283289
build_type: relwithdebinfo
284290
preview: 'OFF'
285-
- os: ubuntu-20.04
291+
- os: ubuntu-22.04
286292
c_compiler: gcc
287293
cxx_compiler: g++
288294
std: 17
289295
build_type: release
290296
preview: 'ON'
291-
- os: ubuntu-20.04
292-
c_compiler: gcc-10
293-
cxx_compiler: g++-10
297+
- os: ubuntu-24.04
298+
c_compiler: gcc
299+
cxx_compiler: g++
294300
std: 20
295301
build_type: debug
296302
preview: 'ON'

doc/main/tbb_userguide/Working_on_the_Assembly_Line_pipeline.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ crossing into the next slice, it copies the partial numeral to the next
281281
slice. Furthermore, it has to indicate when the end of input is reached.
282282
It does this by invoking method ``stop()`` on a special argument of type
283283
``flow_control``. This idiom is required for any functor used for the
284-
first filter of a pipline.
284+
first filter of a pipeline.
285285

286286
::
287287

examples/graph/fgbzip2/bzlib.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2021 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -309,14 +309,14 @@ static void flush_RL(EState* s) {
309309
} \
310310
else /*-- general, uncommon cases --*/ \
311311
if (zchh != zs->state_in_ch || zs->state_in_len == 255) { \
312-
if (zs->state_in_ch < 256) \
313-
add_pair_to_block(zs); \
314-
zs->state_in_ch = zchh; \
315-
zs->state_in_len = 1; \
316-
} \
317-
else { \
318-
zs->state_in_len++; \
319-
} \
312+
if (zs->state_in_ch < 256) \
313+
add_pair_to_block(zs); \
314+
zs->state_in_ch = zchh; \
315+
zs->state_in_len = 1; \
316+
} \
317+
else { \
318+
zs->state_in_len++; \
319+
} \
320320
}
321321

322322
/*---------------------------------------------------*/

examples/parallel_for/tachyon/src/pthread.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2021 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -113,8 +113,10 @@ int pthread_join(pthread_t th, void **thread_return) {
113113
void pthread_exit(void *retval) {
114114
/* specific to PTHREAD_TO_WINTHREAD */
115115

116+
/* clang-format off */
116117
ExitThread((DWORD)(
117118
(std::size_t)retval)); /* thread becomes signalled so its death can be waited upon */
119+
/* clang-format on */
118120
/*NOTREACHED*/
119121
assert(0);
120122
return; /* void fnc; can't return an error code */

integration/cmake/generate_vars.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020-2021 Intel Corporation
1+
# Copyright (c) 2020-2025 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Reuired parameters:
15+
# Required parameters:
1616
# SOURCE_DIR - incoming path to oneTBB source directory.
1717
# BINARY_DIR - incoming path to oneTBB build directory.
1818
# BIN_PATH - incoming path to oneTBB binaries directory.

rfcs/experimental/parallel_phase_for_task_arena/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ and the `this_task_arena` namespace.
128128
```cpp
129129
class task_arena {
130130
enum class leave_policy : /* unspecified type */ {
131-
automatic = /* unspecifed */,
132-
fast = /* unspecifed */,
131+
automatic = /* unspecified */,
132+
fast = /* unspecified */,
133133
};
134134

135135
task_arena(int max_concurrency = automatic, unsigned reserved_for_masters = 1,

rfcs/proposed/numa_support/tbbbind-link-static-hwloc.org

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ developer's code, this is achieved either by:
5151
release.
5252

5353
However, the requirement to fulfill one of the above steps for the NUMA API to
54-
start paying off may be considered as an incovenience and, what is more
54+
start paying off may be considered as an inconvenience and, what is more
5555
important, it is not always obvious that one of these steps is needed.
5656
Especially, due to silent behavior in case HWLOC library cannot be found in the
5757
environment.

test/tbb/test_concurrent_set.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2021 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -147,7 +147,7 @@ TEST_CASE("multithreading support in concurrent_multiset with greater compare")
147147
}
148148

149149
//! \brief \ref resource_usage
150-
TEST_CASE("multithreding support in concurrent_set with elements ctor and dtor check") {
150+
TEST_CASE("multithreading support in concurrent_set with elements ctor and dtor check") {
151151
Checker<checked_set_type::value_type> checker;
152152
test_concurrent<checked_set_type>();
153153
}

test/tbb/test_split_node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2024 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -453,7 +453,7 @@ void test_try_put_and_wait() {
453453
// Hence {f1 - wait_message} task would be processed first and it would spawn tasks for new_work_items in the same order
454454
// Since new_work_items tasks would processed first and {f2 - 10} would be still in queue
455455
// it is expected that during the try_put_and_wait {f1 - 10} would be processed first, then new_work_items would be processed
456-
// and only when {f2 - 10} would be taken and executed, try_put_and_wait would be exitted
456+
// and only when {f2 - 10} would be taken and executed, try_put_and_wait would be exited
457457
// All of the other tasks for start_work_items would be processed during wait_for_all()
458458
CHECK_MESSAGE(processed_items1[check_index1++] == wait_message, "Unexpected items processing");
459459

test/tbb/test_task_group.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2024 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -255,7 +255,7 @@ void TestThreadSafety() {
255255
// Test and warm up allocator.
256256
tests();
257257

258-
// Ensure that cosumption is stabilized.
258+
// Ensure that consumption is stabilized.
259259
std::size_t initial = utils::GetMemoryUsage();
260260
for (;;) {
261261
tests();

test/tbbmalloc/test_malloc_whitebox.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005-2024 Intel Corporation
2+
Copyright (c) 2005-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -1599,7 +1599,7 @@ void TestHugeSizeThresholdImpl(LargeObjectCache* loc, size_t hugeSize, bool full
15991599
test.clean(/*all*/false);
16001600
test.check(HOThresholdTester::REGULAR_CLEANUP);
16011601
}
1602-
// Check that all objects dropped from cache after hard cleanup (ignore huge obects threshold)
1602+
// Check that all objects dropped from cache after hard cleanup (ignore huge objects threshold)
16031603
test.clean(/*all*/true);
16041604
test.check(HOThresholdTester::HARD_CLEANUP);
16051605
// Restore previous settings

0 commit comments

Comments
 (0)