Repository navigation
Expand platform support and distribution readiness #35
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 19 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
106e2ab
feat: expand platform and distribution readiness
TheusHen 4011a67
fix: validate packed PlatformIO examples
TheusHen 0e01fd8
fix: consume Linux signal write result
TheusHen 9a71638
feat: add qualification and stress evidence
TheusHen f4f8602
fix: install Renode test dependencies
TheusHen 5685665
fix: close Cortex-M emulator scenario dispatch
TheusHen 24b14e1
fix: report QEMU faults from thread mode
TheusHen b193219
fix: enhance fault handling in ls_cortex_m_fault_from_saved function
TheusHen 891e094
Merge branch 'prod' into theus/platform-and-tooling-readiness
TheusHen d80721b
feat: harden Latch for production-grade embedded and commercial AUV o…
TheusHen bc89a56
Potential fix for pull request finding 'CodeQL / Workflow does not co…
TheusHen 260e548
Potential fix for pull request finding 'CodeQL / Workflow does not co…
TheusHen 505d413
Potential fix for pull request finding 'CodeQL / Time-of-check time-o…
TheusHen b6b48e3
Potential fix for pull request finding 'CodeQL / Time-of-check time-o…
TheusHen 9bb142f
Potential fix for pull request finding 'CodeQL / Workflow does not co…
TheusHen 0164680
docs: update AUV integration readiness document for clarity and matur…
TheusHen 9698bf1
Refactor test cases for improved readability and consistency
TheusHen 4a41b8c
Resolve merge conflicts: keep local changes (ours) for tests/test_fil…
TheusHen 16ca26b
fix: correct CRC calculation and remove duplicate file descriptor che…
TheusHen a901398
Potential fix for pull request finding 'CodeQL / Time-of-check time-o…
TheusHen 99254a7
style: format LS_FILE_STORAGE_INITIALIZER macro for consistency
TheusHen 1840332
Merge branch 'theus/platform-and-tooling-readiness' of https://github…
TheusHen 1e15a50
style: adjust formatting of LS_FILE_STORAGE_INITIALIZER macro for con…
TheusHen 6e9d1f2
style: adjust formatting of LS_FILE_STORAGE_INITIALIZER macro for con…
TheusHen 3ff6a6d
style: fix clang-format violation in file_backend.h
TheusHen d469341
style: fix spacing in file_backend.h macro for clang-format
TheusHen 874e7cc
style: fix clang-format by aligning multiline macro to col 100
TheusHen 83e8d71
style: fix clang-format by adding space after cast in mbedtls_transpo…
TheusHen c9c134b
style: fix clang-format ambiguity by wrapping unary minus in parens
TheusHen f12e3ce
style: fix all instances of unary minus ambiguity for clang-format
TheusHen 2596d26
style: fix remaining cast+unary operator ambiguity for clang-format
TheusHen f51ee8a
style: fix formatting of LS_FILE_STORAGE_INITIALIZER macro
TheusHen 7d52589
Fix embedded Linux storage initializer formatting
TheusHen bdef142
Apply clang-format to file storage initializer
TheusHen fba0446
Align file storage initializer macro
TheusHen 2d51d01
Match legacy clang-format initializer style
TheusHen 446d055
Format native test sources for CI
TheusHen 274220e
Use CI clang-format layout for Cortex-M test
TheusHen 377dbd6
fix: preserve blackbox ordering across sequence wrap
TheusHen 53a066b
docs: remove stale validation reports
TheusHen 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Public API Compatibility | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main, prod] | ||
| workflow_call: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| api: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | ||
| with: | ||
| python-version: '3.13' | ||
| - run: python tools/check_public_api.py | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| name: Emulator fault injection | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'tests/emulator/**' | ||
| - '.github/workflows/emulator-stress.yml' | ||
| - 'arch/**' | ||
| - 'src/capture/**' | ||
| push: | ||
| branches: [prod] | ||
| schedule: | ||
| - cron: '41 3 * * *' | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| cortex-m-qemu: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi qemu-system-arm | ||
| - name: Build and inject Cortex-M faults | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| mkdir -p build/emulator | ||
| for scenario in HARDFAULT WATCHDOG_MODEL STACK_CANARY; do | ||
| arm-none-eabi-gcc tests/emulator/cortex_m_fault.c arch/cortex-m/cortex_m_fault.S \ | ||
| -DLS_EMULATOR_${scenario}=1 -mcpu=cortex-m3 -mthumb -Os \ | ||
| -ffreestanding -fno-builtin -nostdlib \ | ||
| -Wl,--gc-sections,-T,tests/emulator/cortex_m.ld \ | ||
| -o build/emulator/cortex-m-${scenario}.elf | ||
| timeout 15 qemu-system-arm -M mps2-an385 -nographic \ | ||
| -semihosting-config enable=on,target=native \ | ||
| -kernel build/emulator/cortex-m-${scenario}.elf | ||
| done | ||
| rv32-renode: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | ||
| with: | ||
| python-version: '3.12' | ||
| - run: sudo apt-get update && sudo apt-get install -y gcc-riscv64-unknown-elf | ||
| - name: Build RV32 trap fixture | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| mkdir -p build/emulator | ||
| riscv64-unknown-elf-gcc tests/emulator/rv32_fault.c \ | ||
| -march=rv32imac_zicsr -mabi=ilp32 -Os -ffreestanding -fno-builtin -nostdlib \ | ||
| -Wl,--gc-sections,-T,tests/emulator/rv32.ld \ | ||
| -o build/emulator/latch-renode-rv32.elf | ||
| - name: Install pinned Renode 1.16.1 | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| archive=build/renode.tar.gz | ||
| curl --fail --location --retry 3 \ | ||
| https://github.com/renode/renode/releases/download/v1.16.1/renode-1.16.1.linux-portable.tar.gz \ | ||
| --output "$archive" | ||
| echo '1a532d4b5b82de0dd154970c401e0c7b0e498d17304b2cecc007e306c8f9617c build/renode.tar.gz' | sha256sum --check | ||
| mkdir -p build/renode | ||
| tar -xzf "$archive" -C build/renode --strip-components=1 | ||
| python -m pip install --disable-pip-version-check \ | ||
| --requirement build/renode/tests/requirements.txt | ||
| - name: Inject RV32 illegal-instruction trap | ||
| run: build/renode/renode-test tests/emulator/rv32_fault.robot |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Mutation assurance | ||
| on: | ||
| pull_request: | ||
| paths: ['src/**','tests/**','tools/mutation_*.py','.github/workflows/mutation.yml'] | ||
| push: | ||
| branches: [prod] | ||
| schedule: | ||
| - cron: '17 3 * * 0' | ||
| workflow_dispatch: | ||
| workflow_call: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| smoke: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - run: sudo apt-get update && sudo apt-get install -y ninja-build | ||
| - run: python tools/mutation_smoke.py --build build/mutation-smoke | ||
| critical-campaign: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - run: sudo apt-get update && sudo apt-get install -y ninja-build | ||
| - run: python tools/mutation_campaign.py --build build/mutation-campaign --minimum-score 85 --report artifacts/mutation-report.json | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| if: always() | ||
| with: | ||
| name: mutation-report | ||
| path: artifacts/mutation-report.json | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Project Readiness | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main, prod] | ||
| workflow_call: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| readiness: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | ||
| with: | ||
| python-version: '3.13' | ||
| - run: python tools/check_project_readiness.py | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.