Skip to content

Commit 57038b9

Browse files
authored
Fix QNX 8 Build & Test workflow (#274)
* Fix QNX 8 Build & Test workflow * Delete the old build_qnx8.yml workflow; qnx8.yml is the replacement
1 parent 2ef97df commit 57038b9

3 files changed

Lines changed: 14 additions & 49 deletions

File tree

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
1515
common --registry=https://bcr.bazel.build
16+
common --http_connector_attempts=10
17+
common --http_connector_retry_max_timeout=1s
18+
common --http_timeout_scaling=2.0
1619

1720
build --java_language_version=17
1821
build --tool_java_language_version=17

.github/workflows/build_qnx8.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

score/launch_manager/src/daemon/src/process_group_manager/details/safeprocessmap_UT.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ using namespace score::lcm::internal;
2828
namespace
2929
{
3030

31+
#ifdef __QNX__
32+
// stress tests on qemu qnx take to long otherwise
33+
constexpr int kNumThreads = 2;
34+
constexpr int kIterations = 512;
35+
constexpr int kPidsPerThread = 128;
36+
#else
37+
constexpr int kNumThreads = 4;
38+
constexpr int kIterations = 1000;
39+
constexpr int kPidsPerThread = 256;
40+
#endif
41+
3142
constexpr uint32_t kCapacity = static_cast<uint32_t>(ProcessLimits::kMaxProcesses);
3243

3344
class MockTerminationCallback : public ITerminationCallback
@@ -357,10 +368,6 @@ TEST_F(SafeProcessMapTest, ConcurrentInsertAndFindFromMultipleThreads)
357368
RecordProperty("Description",
358369
"Multiple threads concurrently inserting and finding terminated processes completes without error.");
359370

360-
// given
361-
constexpr int kNumThreads = 4;
362-
constexpr int kIterations = 1000;
363-
constexpr int kPidsPerThread = 256;
364371
NiceMock<MockTerminationCallback> stubs[kNumThreads];
365372
score::lcm::internal::SafeProcessMap::SafeProcessMapReturnType results[kNumThreads] = {};
366373

@@ -402,10 +409,6 @@ TEST_F(SafeProcessMapTest, ConcurrentFindAndInsertFromMultipleThreads)
402409
RecordProperty("Description",
403410
"Multiple threads concurrently finding and inserting processes completes without error.");
404411

405-
// given
406-
constexpr int kNumThreads = 4;
407-
constexpr int kIterations = 1000;
408-
constexpr int kPidsPerThread = 256;
409412
NiceMock<MockTerminationCallback> stubs[kNumThreads];
410413
score::lcm::internal::SafeProcessMap::SafeProcessMapReturnType results[kNumThreads] = {};
411414

0 commit comments

Comments
 (0)