-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Workflows for generating reference results (#410)
* add machine info to reference results * rename script to unify naming * add workflows * make autopep happy and trigger wf once :) * made wf callable * remove push trigger * added some switch case to check for the different names until changes propagate * Fix non terminating timeouts (#421) Co-authored-by: Valentin Seitz <[email protected]> * Systests/move to commits (#422) * remove non working gha cache stuff * Move to only commits in the dockerfile --------- Co-authored-by: Valentin Seitz <[email protected]> * adopt new naming schema * filter lscpu to hide vulnerabilities * move to consistent naming schema * Adding reference results from precice-tests vm * Make autopep8 * make paths a bit nicer and easier to understand * Update tools/tests/README.md Co-authored-by: Gerasimos Chourdakis <[email protected]> * Update tools/tests/README.md Co-authored-by: Gerasimos Chourdakis <[email protected]> * introduce variable instead of magic number 10 * added comment on very long rm instructions --------- Co-authored-by: Valentin Seitz <[email protected]> Co-authored-by: preCICE Tests VM <[email protected]> Co-authored-by: Gerasimos Chourdakis <[email protected]>
- Loading branch information
1 parent
622caf7
commit 1f7afd1
Showing
23 changed files
with
277 additions
and
75 deletions.
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,31 @@ | ||
name: Generate reference results (manual) | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
from_ref: | ||
description: 'Use the systemtests + tutorial metadata + reference_version from this ref' | ||
required: true | ||
type: string | ||
commit_msg: | ||
description: 'Commit msg for commit that adds the reference results' | ||
default: "Adding reference results" | ||
type: string | ||
loglevel: | ||
description: 'loglevel used for the systemtests' | ||
default: 'INFO' | ||
required: true | ||
type: choice | ||
options: | ||
- 'DEBUG' | ||
- 'INFO' | ||
- 'WARNING' | ||
- 'ERROR' | ||
- 'CRITICAL' | ||
|
||
jobs: | ||
generate_reference_results_manual: | ||
uses: ./.github/workflows/generate_reference_results_workflow.yml | ||
with: | ||
from_ref: ${{ inputs.from_ref }} | ||
commit_msg: ${{ inputs.commit_msg }} | ||
loglevel: ${{ inputs.loglevel }} |
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,71 @@ | ||
name: Generate reference results workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
from_ref: | ||
description: 'Use the systemtests + tutorial metadata + reference_version from this ref' | ||
required: true | ||
type: string | ||
commit_msg: | ||
description: 'Commit msg for commit that adds the reference results' | ||
default: "Adding reference results" | ||
type: string | ||
loglevel: | ||
description: 'loglevel used for the systemtests' | ||
default: 'INFO' | ||
required: true | ||
type: string | ||
jobs: | ||
generate_reference_results: | ||
runs-on: [self-hosted, linux, x64, precice-tests-vm] | ||
steps: | ||
- name: Display a quick job summary | ||
run: | | ||
echo "Initiated by: ${{ github.actor }}" | ||
echo "Running generate_reference_results.py --log-level ${{inputs.loglevel}}" | ||
echo "Using Ref: ${{ inputs.from_ref }}" | ||
echo "Commit message on success: ${{ inputs.commit_msg }}" | ||
- name: Move LFS URL to local LFS server | ||
run: | | ||
/home/precice/runners_root/scripts/make_lfs_local.sh | ||
- name: 'Cleanup the folder' | ||
# The first rf -rf ./* removes all non hidden files | ||
# The second rf -rf ./.??* removes all hidden files (but not . and ..) | ||
run: | | ||
ls -la ./ | ||
rm -rf ./* | ||
rm -rf ./.??* | ||
ls -la ./ | ||
- name: Check out Tutorials for systest | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.from_ref }} | ||
lfs: true | ||
fetch-depth: 0 | ||
- name: Install Python dependencies | ||
run: | | ||
pip install --user -r tools/tests/requirements.txt | ||
- name: Run tests | ||
run: | | ||
cd tools/tests | ||
test -f generate_reference_results.py && export GENERATE_REF_RESULTS=generate_reference_results.py | ||
test -f generate_reference_data.py && export GENERATE_REF_RESULTS=generate_reference_data.py | ||
echo "Selected $GENERATE_REF_RESULTS to run" | ||
python $GENERATE_REF_RESULTS --log-level=${{inputs.loglevel}} | ||
cd ../../ | ||
- name: Create commit | ||
if: success() | ||
run: | | ||
git checkout ${{ inputs.from_ref }} | ||
git add ./*/*/*.tar.gz | ||
git add ./*/*.tar.gz | ||
git add ./*/*.metadata | ||
git commit -m "${{inputs.commit_msg}}" | ||
git push | ||
- name: Upload artifacts for debugging | ||
if: failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: runs | ||
path: | | ||
runs/* |
3 changes: 0 additions & 3 deletions
3
flow-over-heated-plate/reference-data/fluid-openfoam_solid-fenics.tar.gz
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
flow-over-heated-plate/reference-data/fluid-openfoam_solid-nutils.tar.gz
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
flow-over-heated-plate/reference-data/fluid-openfoam_solid-openfoam.tar.gz
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
flow-over-heated-plate/reference-results/fluid-openfoam_solid-fenics.tar.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
flow-over-heated-plate/reference-results/fluid-openfoam_solid-nutils.tar.gz
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
flow-over-heated-plate/reference-results/fluid-openfoam_solid-openfoam.tar.gz
Git LFS file not shown
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
3 changes: 0 additions & 3 deletions
3
perpendicular-flap/reference-data/fluid-openfoam_solid-calculix.tar.gz
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
perpendicular-flap/reference-results/fluid-openfoam_solid-calculix.tar.gz
Git LFS file not shown
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
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
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.