diff --git a/.bazelrc b/.bazelrc index 27b668105..5f29c9cfb 100644 --- a/.bazelrc +++ b/.bazelrc @@ -13,6 +13,9 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/ common --registry=https://bcr.bazel.build +common --http_connector_attempts=10 +common --http_connector_retry_max_timeout=1s +common --http_timeout_scaling=2.0 build --java_language_version=17 build --tool_java_language_version=17 diff --git a/.github/workflows/build_qnx8.yml b/.github/workflows/build_qnx8.yml deleted file mode 100644 index 7d4122831..000000000 --- a/.github/workflows/build_qnx8.yml +++ /dev/null @@ -1,41 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2026 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* - -name: QNX8 Build -on: - pull_request_target: - types: [opened, reopened, synchronize] - merge_group: - types: [checks_requested] - push: - branches: - - main -jobs: - qnx-build: - uses: eclipse-score/cicd-workflows/.github/workflows/qnx-build.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0 - permissions: - contents: read - pull-requests: read - strategy: - matrix: - config: ['arm64-qnx', 'x86_64-qnx'] - with: - bazel-target: '//score/... //examples/...' - bazel-config: ${{ matrix.config }} - credential-helper: 'scripts/internal/qnx_creds.py' - environment-name: 'workflow-approval' - bazel-disk-cache: ${{ github.workflow }}-${{ github.job }}-${{ matrix.config }} - secrets: - score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }} - score-qnx-user: ${{ secrets.SCORE_QNX_USER }} - score-qnx-password: ${{ secrets.SCORE_QNX_PASSWORD }} diff --git a/score/launch_manager/src/daemon/src/process_group_manager/details/safeprocessmap_UT.cpp b/score/launch_manager/src/daemon/src/process_group_manager/details/safeprocessmap_UT.cpp index 077c8cd78..a5469425c 100644 --- a/score/launch_manager/src/daemon/src/process_group_manager/details/safeprocessmap_UT.cpp +++ b/score/launch_manager/src/daemon/src/process_group_manager/details/safeprocessmap_UT.cpp @@ -28,6 +28,17 @@ using namespace score::lcm::internal; namespace { +#ifdef __QNX__ +// stress tests on qemu qnx take to long otherwise +constexpr int kNumThreads = 2; +constexpr int kIterations = 512; +constexpr int kPidsPerThread = 128; +#else +constexpr int kNumThreads = 4; +constexpr int kIterations = 1000; +constexpr int kPidsPerThread = 256; +#endif + constexpr uint32_t kCapacity = static_cast(ProcessLimits::kMaxProcesses); class MockTerminationCallback : public ITerminationCallback @@ -357,10 +368,6 @@ TEST_F(SafeProcessMapTest, ConcurrentInsertAndFindFromMultipleThreads) RecordProperty("Description", "Multiple threads concurrently inserting and finding terminated processes completes without error."); - // given - constexpr int kNumThreads = 4; - constexpr int kIterations = 1000; - constexpr int kPidsPerThread = 256; NiceMock stubs[kNumThreads]; score::lcm::internal::SafeProcessMap::SafeProcessMapReturnType results[kNumThreads] = {}; @@ -402,10 +409,6 @@ TEST_F(SafeProcessMapTest, ConcurrentFindAndInsertFromMultipleThreads) RecordProperty("Description", "Multiple threads concurrently finding and inserting processes completes without error."); - // given - constexpr int kNumThreads = 4; - constexpr int kIterations = 1000; - constexpr int kPidsPerThread = 256; NiceMock stubs[kNumThreads]; score::lcm::internal::SafeProcessMap::SafeProcessMapReturnType results[kNumThreads] = {};