forked from eclipse-opensovd/fault-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Diagnostic Fault Library with DFM, SOVD interface, and CI infrastructure #1
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
7 commits
Select commit
Hold shift + click to select a range
5030562
feat: restructure project layout and add workspace scaffolding
bburda42dot 2fd7cef
feat(common): add shared types crate for fault management
bburda42dot 4757402
feat(fault_lib): implement reporter-side fault management
bburda42dot 7a3f511
feat(dfm_lib): implement Diagnostic Fault Manager
bburda42dot 690a9ad
test: add integration test suite for fault-lib and DFM interaction
bburda42dot d8983a3
ci: add GitHub Actions workflows and PR/issue templates
bburda42dot e2ea0a2
docs: add architecture documentation, PlantUML diagrams, and API refe…
bburda42dot 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| build --java_language_version=17 | ||
| build --tool_java_language_version=17 | ||
| build --java_runtime_version=remotejdk_17 | ||
| build --tool_java_runtime_version=remotejdk_17 | ||
| build --@score-baselibs//score/json:base_library=nlohmann | ||
| build --@score-baselibs//score/mw/log/flags:KRemote_Logging=False | ||
|
|
||
| test --test_output=errors | ||
|
|
||
| common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/ | ||
| common --registry=https://bcr.bazel.build | ||
|
|
||
| # allow empty globs for docs | ||
| build --noincompatible_disallow_empty_glob |
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 @@ | ||
| 8.3.0 |
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,11 @@ | ||
| --- | ||
| name: Bugfix | ||
| about: 'Issue to track a bugfix' | ||
| title: 'Bugfix: Your bugfix title' | ||
| labels: 'codeowner_review' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| > [!IMPORTANT] | ||
| > Make sure to link this issue with the PR for your bugfix. |
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,11 @@ | ||
| --- | ||
| name: Improvement | ||
| about: 'Issue to track a improvement' | ||
| title: 'Improvement: Your improvement title' | ||
| labels: 'codeowner_review' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| > [!IMPORTANT] | ||
| > Make sure to link this issue with the PR for your improvement. |
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,19 @@ | ||
| # Bugfix | ||
|
|
||
| > [!IMPORTANT] | ||
| > Use this template only for bugfixes that do not influence topics covered by contribution requests or improvements. | ||
|
|
||
| > [!CAUTION] | ||
| > Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers. | ||
|
|
||
| ## Description | ||
|
|
||
| [A short description of the bug being fixed by the contribution.] | ||
|
|
||
| ## Related ticket | ||
|
|
||
| > [!IMPORTANT] | ||
| > Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such | ||
| > ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=bug_fix.md). | ||
|
|
||
| closes [ISSUE-NUMBER] (bugfix ticket) |
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,19 @@ | ||
| # Improvement | ||
|
|
||
| > [!IMPORTANT] | ||
| > Use this template only for improvement that do not influence topics covered by contribution requests or bug fixes. | ||
|
|
||
| > [!CAUTION] | ||
| > Make sure to submit your pull-request as **Draft** until you are ready to have it reviewed by the Committers. | ||
|
|
||
| ## Description | ||
|
|
||
| [A short description of the improvement being addressed by the contribution.] | ||
|
|
||
| ## Related ticket | ||
|
|
||
| > [!IMPORTANT] | ||
| > Please replace `[ISSUE-NUMBER]` with the issue-number that tracks this bug fix. If there is no such | ||
| > ticket yet, create one via [this issue template](../ISSUE_TEMPLATE/new?template=improvement.md). | ||
|
|
||
| closes [ISSUE-NUMBER] (improvement ticket) |
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,47 @@ | ||
| # ******************************************************************************* | ||
| # 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: Security Audit | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| merge_group: | ||
| types: [checks_requested] | ||
| schedule: | ||
| # Run weekly on Monday at 06:00 UTC to catch newly disclosed advisories | ||
| - cron: "0 6 * * 1" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| cargo-audit: | ||
| name: Cargo Audit | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install cargo-audit | ||
| uses: taiki-e/install-action@23db74cab27cd77071e076a00b569de9549cf0dd # v2.48.8 | ||
| with: | ||
| tool: cargo-audit@0.22.1 | ||
|
|
||
| - name: Run cargo audit | ||
| run: cargo audit | ||
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,77 @@ | ||
| # ******************************************************************************* | ||
bburda42dot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # 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: Build & Test | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| cargo-build-test: | ||
| name: Cargo Build & Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust nightly | ||
| uses: dtolnay/rust-toolchain@nightly | ||
| with: | ||
| toolchain: nightly-2025-07-14 | ||
|
|
||
| - name: Cache cargo registry & target | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-test- | ||
|
|
||
| - name: Build all crates | ||
| run: cargo build --workspace | ||
|
|
||
| - name: Run tests (IPC tests run serially) | ||
| run: cargo test --workspace --all-targets | ||
|
|
||
| bazel-build-test: | ||
| name: Bazel Build & Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bazel | ||
| uses: bazel-contrib/setup-bazel@0.14.0 | ||
| with: | ||
| bazelisk-cache: true | ||
| disk-cache: ${{ github.workflow }}-bazel | ||
| repository-cache: true | ||
|
|
||
| - name: Bazel build (excluding docs — score_plantuml requires local runfiles) | ||
| run: bazel build //src/... //tests/... | ||
|
|
||
| - name: Bazel test (excluding docs) | ||
| run: bazel test //src/... //tests/... | ||
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,46 @@ | ||
| # ******************************************************************************* | ||
| # 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: Copyright Check | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| copyright: | ||
| name: Copyright Header Validation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bazel | ||
| uses: bazel-contrib/setup-bazel@0.14.0 | ||
| with: | ||
| bazelisk-cache: true | ||
| disk-cache: ${{ github.workflow }}-bazel | ||
| repository-cache: true | ||
|
|
||
| - name: Check copyright headers | ||
| run: bazel run //:copyright.check |
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,98 @@ | ||
| # ******************************************************************************* | ||
| # 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: Coverage | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| COVERAGE_THRESHOLD: 90 | ||
|
|
||
| jobs: | ||
| coverage: | ||
| name: Code Coverage | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Rust nightly | ||
| uses: dtolnay/rust-toolchain@nightly | ||
| with: | ||
| toolchain: nightly-2025-07-14 | ||
| components: llvm-tools-preview | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@cargo-llvm-cov | ||
|
|
||
| - name: Cache cargo registry & target | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-cov-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-cov- | ||
|
|
||
| - name: Generate coverage (LCOV) | ||
| run: cargo llvm-cov --workspace --exclude xtask --ignore-filename-regex 'test_utils|dfm_test_utils' --lcov --output-path lcov.info | ||
|
|
||
| - name: Generate coverage summary | ||
| id: coverage | ||
| run: | | ||
| # Extract total line coverage percentage from cargo-llvm-cov text output | ||
| REPORT=$(cargo llvm-cov --workspace --exclude xtask --ignore-filename-regex 'test_utils|dfm_test_utils' --no-run 2>&1) | ||
| echo "$REPORT" | ||
|
|
||
| # Parse the TOTAL line for line coverage | ||
| TOTAL_LINE_COV=$(echo "$REPORT" | grep '^TOTAL' | awk '{print $(NF-3)}' | tr -d '%') | ||
| echo "total_coverage=$TOTAL_LINE_COV" >> "$GITHUB_OUTPUT" | ||
| echo "### Coverage Report" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "**Total line coverage: ${TOTAL_LINE_COV}%**" >> "$GITHUB_STEP_SUMMARY" | ||
| echo "" >> "$GITHUB_STEP_SUMMARY" | ||
| echo '```' >> "$GITHUB_STEP_SUMMARY" | ||
| echo "$REPORT" >> "$GITHUB_STEP_SUMMARY" | ||
| echo '```' >> "$GITHUB_STEP_SUMMARY" | ||
|
|
||
| - name: Upload coverage artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage-lcov | ||
| path: lcov.info | ||
| retention-days: 30 | ||
|
|
||
| - name: Enforce coverage threshold | ||
| run: | | ||
| COVERAGE="${{ steps.coverage.outputs.total_coverage }}" | ||
| THRESHOLD="${{ env.COVERAGE_THRESHOLD }}" | ||
| echo "Coverage: ${COVERAGE}%, Threshold: ${THRESHOLD}%" | ||
| if (( $(echo "$COVERAGE < $THRESHOLD" | bc -l) )); then | ||
| echo "::error::Coverage ${COVERAGE}% is below threshold ${THRESHOLD}%" | ||
| exit 1 | ||
| fi | ||
| echo "Coverage ${COVERAGE}% meets threshold ${THRESHOLD}%" |
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.
Uh oh!
There was an error while loading. Please reload this page.