generated from eclipse-score/module_template
-
Notifications
You must be signed in to change notification settings - Fork 5
bmw score::time pitch #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6943ce8
bmw score::time arch concept
lavrovvalera 5b75cab
Add score::time::svt source code
lavrovvalera 992282a
Fix build
lavrovvalera b245c5f
Add license to bazel files
lavrovvalera 5c5caf7
Add workflows
lavrovvalera e046451
Fix license check
lavrovvalera 8e8ac1a
Fix formating check
lavrovvalera 35d8090
Use cicd-worflows as centralized ones
lavrovvalera ff0d20a
Fix review comments
lavrovvalera 64512bc
Fix the review comments
lavrovvalera 2c4594e
Change IPC to use mw::com
lavrovvalera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,58 @@ | ||
| build --java_language_version=17 | ||
| build --tool_java_language_version=17 | ||
| build --java_runtime_version=remotejdk_17 | ||
| build --tool_java_runtime_version=remotejdk_17 | ||
| # ******************************************************************************* | ||
| # 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 | ||
| # ******************************************************************************* | ||
|
|
||
| test --test_output=errors | ||
|
|
||
| common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/ | ||
| common --registry=https://bcr.bazel.build | ||
| common --@score_logging//score/mw/log/flags:KRemote_Logging=False | ||
|
|
||
| build --@score_baselibs//score/json:base_library=nlohmann | ||
| build --credential_helper="*.qnx.com=%workspace%/.github/tools/qnx_credential_helper.py" | ||
|
|
||
| # ------------------------------------------------------------------------------- | ||
| # Shared configuration for simple test execution | ||
| # ------------------------------------------------------------------------------- | ||
| build:time_shared --incompatible_strict_action_env | ||
| build:time_shared --sandbox_writable_path=/var/tmp | ||
| build:time_shared --host_platform=@score_bazel_platforms//:x86_64-linux | ||
|
|
||
| # ------------------------------------------------------------------------------- | ||
| # Config dedicated to host platform CPU:x86_64 and OS:Linux | ||
| # ------------------------------------------------------------------------------- | ||
| build:time-x86_64-linux --config=time_shared | ||
| build:time-x86_64-linux --platforms=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix | ||
| build:time-x86_64-linux --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0-posix | ||
| # ------------------------------------------------------------------------------- | ||
| # Config dedicated to target platform CPU:x86_64 and OS:QNX | ||
| # ------------------------------------------------------------------------------- | ||
| build:time-x86_64-qnx --config=time_shared | ||
| build:time-x86_64-qnx --platforms=@score_bazel_platforms//:x86_64-qnx-sdp_8.0.0-posix | ||
| build:time-x86_64-qnx --extra_toolchains=@score_qcc_x86_64_toolchain//:x86_64-qnx-sdp_8.0.0-posix | ||
|
|
||
| # ------------------------------------------------------------------------------- | ||
| # Config dedicated to target platform CPU:arm64 and OS:QNX | ||
| # ------------------------------------------------------------------------------- | ||
| build:time-arm64-qnx --config=time_shared | ||
| build:time-arm64-qnx --platforms=@score_bazel_platforms//:aarch64-qnx-sdp_8.0.0-posix | ||
| build:time-arm64-qnx --extra_toolchains=@score_qcc_aarch64_toolchain//:aarch64-qnx-sdp_8.0.0-posix | ||
|
|
||
| # ------------------------------------------------------------------------------- | ||
| # Import local user workspace file, if exists | ||
| # ------------------------------------------------------------------------------- | ||
| try-import %workspace%/user.bazelrc | ||
|
|
||
| # Coverage configuration for C++ | ||
| coverage --features=coverage | ||
| coverage --combined_report=lcov | ||
| coverage --cache_test_results=no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| BasedOnStyle: Google | ||
| AccessModifierOffset: -2 | ||
| AllowAllParametersOfDeclarationOnNextLine: false | ||
| AllowShortBlocksOnASingleLine: Empty | ||
| AllowShortCaseLabelsOnASingleLine: false | ||
| AllowShortEnumsOnASingleLine: false | ||
| # Empty is required in AllowShortFunctionsOnASingleLine over Inline because Inline contradicts with AUTOSAR rule A7-1-7 | ||
| # Such rule is no longer existing in MISRA C++:2023, once we are fully migrated to MISRA C++:2023, switching to Inline | ||
| # could be reconsidered | ||
| AllowShortFunctionsOnASingleLine: Empty | ||
| AllowShortIfStatementsOnASingleLine: Never | ||
| AllowShortLambdasOnASingleLine: Empty | ||
| AllowShortLoopsOnASingleLine: false | ||
| BinPackArguments: false | ||
| BinPackParameters: false | ||
| BraceWrapping: | ||
| AfterCaseLabel: true | ||
| AfterClass: true | ||
| AfterControlStatement: Always | ||
| AfterEnum: true | ||
| AfterFunction: true | ||
| AfterNamespace: true | ||
| AfterObjCDeclaration: true | ||
| AfterStruct: true | ||
| AfterUnion: true | ||
| BeforeCatch: true | ||
| BeforeElse: true | ||
| IndentBraces: false | ||
| BreakBeforeBraces: Custom | ||
| ColumnLimit: 120 | ||
| DerivePointerAlignment: false | ||
| IncludeBlocks: Preserve | ||
| IncludeCategories: | ||
| - Regex: '^(<|")(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdargh|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h(>|")$' | ||
| Priority: 2 | ||
| - Regex: '^(<|")(cstdlib|csignal|csetjmp|cstdarg|typeinfo|typeindex|type_traits|bitset|functional|utility|ctime|chrono|cstddef|initializer_list|tuple|any|optional|variant|new|memory|scoped_allocator|memory_resource|climits|cfloat|cstdint|cinttypes|limits|exception|stdexcept|cassert|system_error|cerrno|cctype|cwctype|cstring|cwchar|cuchar|string|string_view|array|vector|deque|list|forward_list|set|map|unordered_set|unordered_map|stack|queue|algorithm|execution|teratorslibrary|iterator|cmath|complex|valarray|random|numeric|ratio|cfenv|iosfwd|ios|istream|ostream|iostream|fstream|sstream|strstream|iomanip|streambuf|cstdio|locale|clocale|codecvt|regex|atomic|thread|mutex|shared_mutex|future|condition_variable|filesystem|ciso646|ccomplex|ctgmath|cstdalign|cstdbool)(>|")$' | ||
| Priority: 3 | ||
| - Regex: '^(<|").*(>|")$' | ||
| Priority: 1 | ||
| IndentWidth: 4 | ||
| InsertNewlineAtEOF: true | ||
| KeepEmptyLinesAtTheStartOfBlocks: true | ||
| QualifierAlignment: Left | ||
| CommentPragmas: '^.*A2Lfactory:' | ||
| --- | ||
| # Make sure language specific settings are below the generic settings to be compatible to all languages. | ||
| Language: Cpp | ||
| Standard: c++17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # ******************************************************************************* | ||
| # 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: Bazel Build (Linux) | ||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
| push: | ||
| branches: | ||
| - main | ||
| merge_group: | ||
| types: [checks_requested] | ||
| workflow_call: | ||
| jobs: | ||
| linux-build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v6 | ||
| - name: Setup Bazel | ||
| uses: bazel-contrib/setup-bazel@0.18.0 | ||
| with: | ||
| bazelisk-cache: true | ||
| disk-cache: ${{ github.job }} | ||
| repository-cache: true | ||
| cache-save: ${{ github.event_name == 'push' }} | ||
| - name: Bazel Build | ||
| run: | | ||
| bazel build --config time-x86_64-linux -- //score/... //examples/... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # ******************************************************************************* | ||
| # 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: Bazel Build (QNX8) | ||
| 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@main | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| strategy: | ||
| matrix: | ||
| config: ['time-x86_64-qnx', 'time-arm64-qnx'] | ||
| with: | ||
| bazel-target: '//score/... //examples/...' | ||
| bazel-config: ${{ matrix.config }} | ||
| credential-helper: 'tools/qnx_credential_helper.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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # ******************************************************************************* | ||
| # 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: Code Coverage (>85%) | ||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
| push: | ||
| branches: | ||
| - main | ||
| merge_group: | ||
| types: [checks_requested] | ||
| release: | ||
| types: [created] | ||
|
|
||
| jobs: | ||
| code-coverage: | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/cpp-coverage.yml@main | ||
| with: | ||
| bazel-target: "//score/..." | ||
| bazel-config: "time-x86_64-linux" | ||
| extra-bazel-flags: "--test_output=errors --nocache_test_results" | ||
| artifact-name-suffix: "_cpp" | ||
| retention-days: 10 | ||
| min-coverage: 85 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 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: Component Tests execution (Linux) | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| pull-requests: write | ||
| id-token: write | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] # Allows forks to trigger the docs build | ||
| push: | ||
| branches: | ||
| - main | ||
| merge_group: | ||
| types: [checks_requested] | ||
| release: | ||
| types: [created] | ||
|
|
||
| jobs: | ||
| run-comp-tests: | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@main | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| with: | ||
| bazel-target: 'test --config=time-x86_64-linux //score/...' | ||
| upload-name: 'bazel-testlogs' | ||
| packages: 'fakechroot' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should centralize that into https://github.com/eclipse-score/score_cpp_policies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, but it is empty now
I created the issue to fix it. we can jump on it, when it will be available
eclipse-score/score#2678