Skip to content
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

#992: added design doc for script options #477

Merged
merged 26 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d2c2f6e
#991: Added Design Doc and Requirements Doc for Script Options parser
tomuben Oct 24, 2024
9385004
Updated design document
tomuben Oct 24, 2024
6c4c049
Updated design document
tomuben Nov 14, 2024
b9a7904
Updated design document
tomuben Nov 15, 2024
2b1e472
Updated design document
tomuben Nov 15, 2024
9671883
Updated design document & requirements document
tomuben Nov 15, 2024
93dca60
Added a GH workflow to run
tomuben Nov 15, 2024
9e35421
Fixed oft.yaml
tomuben Nov 15, 2024
3911606
Fixed oft.yaml
tomuben Nov 15, 2024
d0fee61
Fixed oft.yaml
tomuben Nov 15, 2024
a2fcff1
Fixed oft.yaml
tomuben Nov 15, 2024
7910608
Fixed oft.yaml
tomuben Nov 15, 2024
24caddc
Fixed oft.yaml
tomuben Nov 15, 2024
14425fa
Removed `Needs: req` in script_options_design.md
tomuben Nov 15, 2024
6800239
Fixed findings from OFT
tomuben Nov 15, 2024
1f08f8d
Fixed findings from OFT
tomuben Nov 15, 2024
207e27f
Fixed findings from review
tomuben Nov 22, 2024
af0d8ee
Merge branch 'master' into doc/992_add_design_doc_for_script_options
tomuben Dec 4, 2024
e80f66f
Merge remote-tracking branch 'origin/master' into doc/992_add_design_…
tomuben Jan 8, 2025
10072ee
Apply suggestions from code review
tomuben Jan 8, 2025
72dab60
Renamed design decision `Java %scriptclass Option Handling in Design`…
tomuben Jan 8, 2025
73184e1
Merge remote-tracking branch 'origin/doc/992_add_design_doc_for_scrip…
tomuben Jan 8, 2025
c1061af
Findings from review
tomuben Jan 8, 2025
edfc01d
Fixes from review
tomuben Jan 20, 2025
3976379
Merge remote-tracking branch 'origin/master' into doc/992_add_design_…
tomuben Jan 20, 2025
0eabe59
Update exaudfclient/docs/script_options_design.md
tomuben Jan 20, 2025
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
24 changes: 24 additions & 0 deletions .github/workflows/oft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: OFT Report

on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Run HTML Report
run: |
bash .github/workflows/scripts/run_oft.sh ./exaudfclient base -o html -f ./oft_report.html -t V2,_ || echo failed
- name: Run Plaintext Report
run: |
bash .github/workflows/scripts/run_oft.sh ./exaudfclient base -t V2,_
- uses: actions/upload-artifact@v4
if: always()
with:
name: "oft_report.html"
path: oft_report.html
27 changes: 27 additions & 0 deletions .github/workflows/scripts/run_oft.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
tkilias marked this conversation as resolved.
Show resolved Hide resolved

set -o errexit
set -o nounset
set -o pipefail

oft_version="4.1.0"

base_dir="$1"
shift 1
src_dir="$1"
shift 1
additional_options=$@
readonly base_dir
readonly oft_jar="$HOME/.m2/repository/org/itsallcode/openfasttrace/openfasttrace/$oft_version/openfasttrace-$oft_version.jar"

if [ ! -f "$oft_jar" ]; then
echo "Downloading OpenFastTrace $oft_version"
mvn --batch-mode org.apache.maven.plugins:maven-dependency-plugin:3.3.0:get -Dartifact=org.itsallcode.openfasttrace:openfasttrace:$oft_version
fi

# Trace all
java -jar "$oft_jar" trace \
$additional_options \
-a feat,req,dsn \
"$base_dir/docs" \
"$base_dir/$src_dir"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading