Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions .github/workflows/lobster_traceability_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ on:

jobs:
lobster-traceability-report:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: write # required to upload release assets
pull-requests: write # required to comment on PRs

env:
# Define lobster report targets in one place
# Add new targets here as needed (space-separated)
# TODO: Enable full communication module report when ready
# //score/mw/com/requirements:safety_software_unit_com
LOBSTER_TARGETS: >-
//third_party/traceability/doc/sample_library:safety_software_unit_example

steps:
- name: Checkout Repository
Expand All @@ -44,24 +52,19 @@ jobs:
disk-cache: ${{ github.workflow }}
repository-cache: true

- name: Build Lobster Traceability Reports
- name: Build and Collect Lobster Reports
run: |
bazel build \
//third_party/traceability/doc/sample_library:safety_software_unit_example
# TODO: Enable full communication module report when ready
# //score/mw/com/requirements:safety_software_unit_com

- name: Collect Lobster Reports
run: |
mkdir -p lobster_reports
# Build all lobster report targets
bazel build $LOBSTER_TARGETS

# Find and copy lobster HTML reports
find -L bazel-bin -path "*/traceability/*" -name "safety_software_unit*_report.html" -exec cp {} lobster_reports/ \;

# Find and copy lobster JSON reports
find -L bazel-bin -path "*/traceability/*" -name "safety_software_unit*_report.json" -exec cp {} lobster_reports/ \;
# Collect output files using cquery
mkdir -p lobster_reports
for target in $LOBSTER_TARGETS; do
bazel cquery "$target" --output=files 2>/dev/null | while read -r file; do
[[ "$file" == *.html || "$file" == *.json ]] && cp "$file" lobster_reports/
done
done

# List collected reports
echo "Collected Lobster reports:"
ls -lh lobster_reports/

Expand Down
2 changes: 1 addition & 1 deletion third_party/traceability/doc/sample_library/unit_2/bar.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <cstdint>
#include <memory>

// dummy changes to verify lobster workflow on pr
namespace unit_2
{

Expand Down
Loading