-
Notifications
You must be signed in to change notification settings - Fork 2
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
11 implement osi validation check against a set of rules #12
Merged
ClemensLinnhoff
merged 22 commits into
main
from
11-implement-osi-validation-check-against-a-set-of-rules
Jun 13, 2024
Merged
Changes from 20 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
78ff7b2
Add test generating output trace files
ClemensLinnhoff 7b3e93c
Workaroung for crashing pipeline during esmini checkout
ClemensLinnhoff 86d6f41
Enable multiple trace files
ClemensLinnhoff 4672d3e
Put multiple trace files in zip to add as artifact
ClemensLinnhoff 8cad6f4
Merge branch 'main' into 11-implement-osi-validation-check-against-a-…
ClemensLinnhoff 0777ecd
Build osi-validation in pipeline
ClemensLinnhoff c3c9e59
Check every filename with default rules
ClemensLinnhoff 5ef7228
Fix if condition on osi-validation job
ClemensLinnhoff ad46fce
Fix osi-validation caching
ClemensLinnhoff 22ca84c
Add branch of osi-validation
ClemensLinnhoff 81138ba
Add rules
ClemensLinnhoff 9f47aae
Fix rules folder in pipeline
ClemensLinnhoff e57bea0
Add input rules
ClemensLinnhoff 13c329d
Add optional and required attributes to interface message description…
ClemensLinnhoff 8b44434
Add input trace file checks
ClemensLinnhoff 33b088c
Use osi-validation develop branch
ClemensLinnhoff b1b06a6
Replace input trace file in integration test 001
ClemensLinnhoff 8ff6090
Remove field checker from pipeline
ClemensLinnhoff ee4b80d
Add velocity to input trace file
ClemensLinnhoff acb885a
Add orientation
ClemensLinnhoff 942db7f
Remove checking out osi-validation develop branch.
ClemensLinnhoff ca5ec5b
Update OSI submodule
ClemensLinnhoff 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 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,60 @@ | ||
name: Build osi-validation | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build_esmini: | ||
name: Build osi-validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cache osi-validation | ||
id: cache-osi-validation | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/osi-validation | ||
key: ${{ runner.os }}-osi-validation | ||
|
||
- name: Get osi-validation | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp | ||
env: | ||
GIT_CLONE_PROTECTION_ACTIVE: false | ||
run: git clone https://github.com/OpenSimulationInterface/osi-validation.git | ||
|
||
- name: Checkout develop Branch | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: git checkout develop_traffic_participant_model | ||
|
||
- name: Update Submodules | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: git submodule update --init | ||
|
||
- name: Build osi-validation | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install -r requirements_develop.txt | ||
cd open-simulation-interface && python3 -m pip install . && cd .. | ||
python3 -m pip install -r requirements.txt | ||
python3 rules2yml.py -d rules | ||
python3 -m pip install . | ||
|
||
- name: Generate default rules | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
source .venv/bin/activate | ||
python3 rules2yml.py | ||
|
||
- name: Add Commit ID to Cache | ||
if: steps.cache-osi-validation.outputs.cache-hit != 'true' | ||
working-directory: /tmp/osi-validation | ||
run: | | ||
git rev-parse --short HEAD > commit-id.txt |
This file was deleted.
Oops, something went wrong.
This file contains 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 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.
This needs to be changed to the main branch, once OpenSimulationInterface/osi-validation#76 and OpenSimulationInterface/osi-validation#74 are merged in osi-validation.
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.
Everything else is ready for review @jdsika.