Skip to content
Merged
3 changes: 3 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self-hosted-runner:
labels:
- precice-tests-vm
14 changes: 0 additions & 14 deletions .github/workflows/check-links.yml

This file was deleted.

16 changes: 2 additions & 14 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.10'
check-latest: true
- name: Install pre-commit
run: pip install pre-commit
- name: Run checks
run: pre-commit run -a
- name: Git status
if: always()
run: |
echo -e '### Status\n```text' >> $GITHUB_STEP_SUMMARY
git status | tee -a $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Full diff
if: always()
run: |
echo -e '### Diff\n```diff' >> $GITHUB_STEP_SUMMARY
git diff | tee -a $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
19 changes: 9 additions & 10 deletions .github/workflows/generate_reference_results_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
type: string
log_level:
description: 'Logging verbosity level used for the systemtests'
default: 'INFO'
required: true
type: string
jobs:
Expand All @@ -43,7 +42,7 @@ jobs:
rm -rf ./.??*
ls -la ./
- name: Check out Tutorials for the system tests (tools/tests/)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ inputs.from_ref }}
lfs: true
Expand Down Expand Up @@ -85,18 +84,18 @@ jobs:
fi
git commit -m "${{inputs.commit_msg}}"
git push
- name: Archive run files
if: failure()
uses: actions/upload-artifact@v7
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_reference_full
path: |
runs/*
- name: Archive main log files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_reference_logs
path: |
runs/*/system-tests-stdout.log
runs/*/system-tests-stderr.log
runs/*/*/system-tests_*.log
- name: Archive run files
if: failure()
uses: actions/upload-artifact@v4
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_reference_full
path: |
runs/*
43 changes: 22 additions & 21 deletions .github/workflows/run_testsuite_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
type: string
system_tests_branch:
description: 'Branch to take the system tests from'
default: 'develop'
required: true
type: string
log_level:
Expand All @@ -39,17 +38,19 @@ jobs:
echo "python3 systemtests.py --build_args=${{inputs.build_args}} --suites=${{ inputs.suites}}"
- name: Prepare the Markdown step summary
run: |
echo "Job inputs:" >> $GITHUB_STEP_SUMMARY
echo "- Initiated by: @${{ github.actor }}" >> $GITHUB_STEP_SUMMARY
echo "- Test suites: \`${{ inputs.suites}}\`" >> $GITHUB_STEP_SUMMARY
echo "- System tests branch (\`tools/\`): [\`${{ inputs.system_tests_branch }}\`](https://github.com/precice/tutorials/tree/${{ inputs.system_tests_branch }})" >> $GITHUB_STEP_SUMMARY
echo "- System tests log level: \`${{ inputs.log_level }}\`" >> $GITHUB_STEP_SUMMARY
echo "- Uploading the runs folder on success: \`${{ inputs.upload_artifacts }}\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Running the following command inside \`tutorials/tools/\`:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "python3 systemtests.py --build_args=${{inputs.build_args}} --suites=${{ inputs.suites}}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
{
echo "Job inputs:"
echo "- Initiated by: @${{ github.actor }}"
echo "- Test suites: \`${{ inputs.suites}}\`"
echo "- System tests branch (\`tools/\`): [\`${{ inputs.system_tests_branch }}\`](https://github.com/precice/tutorials/tree/${{ inputs.system_tests_branch }})"
echo "- System tests log level: \`${{ inputs.log_level }}\`"
echo "- Uploading the runs folder on success: \`${{ inputs.upload_artifacts }}\`"
echo ""
echo "Running the following command inside \`tutorials/tools/\`:"
echo "\`\`\`"
echo "python3 systemtests.py --build_args=${{inputs.build_args}} --suites=${{ inputs.suites}}"
echo "\`\`\`"
} >> "$GITHUB_STEP_SUMMARY"
- name: Move LFS URL to local LFS server
run: |
/home/precice/runners_root/scripts/make_lfs_local.sh
Expand All @@ -60,7 +61,7 @@ jobs:
rm -rf ./.??*
ls -la ./
- name: Check out Tutorials for the system tests (tools/tests/)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: precice/tutorials
ref: ${{ inputs.system_tests_branch }}
Expand All @@ -77,21 +78,21 @@ jobs:
cd tools/tests
python systemtests.py --build_args=${{ inputs.build_args}} --suites=${{ inputs.suites}} --log-level=${{ inputs.log_level}}
cd ../../
- name: Archive run files
if: ${{ failure() || inputs.upload_artifacts == 'TRUE' }}
uses: actions/upload-artifact@v7
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_full
path: |
runs/*
- name: Archive main log files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_logs
path: |
runs/*/system-tests-stdout.log
runs/*/system-tests-stderr.log
runs/*/*/system-tests_*.log
- name: Archive run files
if: ${{ failure() || inputs.upload_artifacts == 'TRUE' }}
uses: actions/upload-artifact@v4
with:
name: system_tests_run_${{ github.run_id }}_${{ github.run_attempt }}_full
path: |
runs/*
- name: tidy up the docker
run: |
docker network prune -f
1 change: 1 addition & 0 deletions .github/workflows/system-tests-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: System tests cleanup
on:
schedule:
- cron: "0 3 1 * *"
timezone: "Europe/Berlin"
workflow_dispatch:

jobs:
Expand Down
113 changes: 58 additions & 55 deletions .github/workflows/system-tests-latest-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: System tests (latest components)
on:
schedule:
- cron: "0 4 * * *"
timezone: "Europe/Berlin"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -98,61 +99,63 @@ jobs:
- id: summary
name: Prepare Markdown summary
run: |
echo "## Git references of latest (develop) components" >> $GITHUB_STEP_SUMMARY
echo "### preCICE" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-precice.outputs.shorthash }}\`](https://github.com/precice/precice/commit/${{ steps.ref-precice.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-precice.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Python bindings" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-python-bindings.outputs.shorthash }}\`](https://github.com/precice/python-bindings/commit/${{ steps.ref-python-bindings.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-python-bindings.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### CalculiX adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-calculix-adapter.outputs.shorthash }}\`](https://github.com/precice/calculix-adapter/commit/${{ steps.ref-calculix-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-calculix-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### DuMux adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-dumux-adapter.outputs.shorthash }}\`](https://github.com/precice/dumux-adapter/commit/${{ steps.ref-dumux-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-dumux-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### FEniCS adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-fenics-adapter.outputs.shorthash }}\`](https://github.com/precice/fenics-adapter/commit/${{ steps.ref-fenics-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-fenics-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Micro-Manager" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-micro-manager.outputs.shorthash }}\`](https://github.com/precice/micro-manager/commit/${{ steps.ref-micro-manager.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-micro-manager.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### OpenFOAM adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-openfoam-adapter.outputs.shorthash }}\`](https://github.com/precice/openfoam-adapter/commit/${{ steps.ref-openfoam-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-openfoam-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### SU2 adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-su2-adapter.outputs.shorthash }}\`](https://github.com/precice/su2-adapter/commit/${{ steps.ref-su2-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-su2-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Tutorials" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-tutorials.outputs.shorthash }}\`](https://github.com/precice/tutorials/commit/${{ steps.ref-tutorials.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-tutorials.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
{
echo "## Git references of latest (develop) components"
echo "### preCICE"
echo "Reference: [\`${{ steps.ref-precice.outputs.shorthash }}\`](https://github.com/precice/precice/commit/${{ steps.ref-precice.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-precice.outputs.description }}"
echo "\`\`\`"
echo "### Python bindings"
echo "Reference: [\`${{ steps.ref-python-bindings.outputs.shorthash }}\`](https://github.com/precice/python-bindings/commit/${{ steps.ref-python-bindings.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-python-bindings.outputs.description }}"
echo "\`\`\`"
echo "### CalculiX adapter"
echo "Reference: [\`${{ steps.ref-calculix-adapter.outputs.shorthash }}\`](https://github.com/precice/calculix-adapter/commit/${{ steps.ref-calculix-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-calculix-adapter.outputs.description }}"
echo "\`\`\`"
echo "### DuMux adapter"
echo "Reference: [\`${{ steps.ref-dumux-adapter.outputs.shorthash }}\`](https://github.com/precice/dumux-adapter/commit/${{ steps.ref-dumux-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-dumux-adapter.outputs.description }}"
echo "\`\`\`"
echo "### FEniCS adapter"
echo "Reference: [\`${{ steps.ref-fenics-adapter.outputs.shorthash }}\`](https://github.com/precice/fenics-adapter/commit/${{ steps.ref-fenics-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-fenics-adapter.outputs.description }}"
echo "\`\`\`"
echo "### Micro-Manager"
echo "Reference: [\`${{ steps.ref-micro-manager.outputs.shorthash }}\`](https://github.com/precice/micro-manager/commit/${{ steps.ref-micro-manager.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-micro-manager.outputs.description }}"
echo "\`\`\`"
echo "### OpenFOAM adapter"
echo "Reference: [\`${{ steps.ref-openfoam-adapter.outputs.shorthash }}\`](https://github.com/precice/openfoam-adapter/commit/${{ steps.ref-openfoam-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-openfoam-adapter.outputs.description }}"
echo "\`\`\`"
echo "### SU2 adapter"
echo "Reference: [\`${{ steps.ref-su2-adapter.outputs.shorthash }}\`](https://github.com/precice/su2-adapter/commit/${{ steps.ref-su2-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-su2-adapter.outputs.description }}"
echo "\`\`\`"
echo "### Tutorials"
echo "Reference: [\`${{ steps.ref-tutorials.outputs.shorthash }}\`](https://github.com/precice/tutorials/commit/${{ steps.ref-tutorials.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-tutorials.outputs.description }}"
echo "\`\`\`"
} >> "$GITHUB_STEP_SUMMARY"

run-system-tests:
name: Trigger system tests
Expand Down
Loading