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

Snapshot-ci slack notification #897

Merged
merged 123 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
a511bc4
Snapshot CI
clementleclercRTE Sep 23, 2024
1802c4a
Snapshot CI
clementleclercRTE Sep 23, 2024
04eaea1
Snapshot CI
clementleclercRTE Sep 23, 2024
9c113c6
Snapshot CI
clementleclercRTE Sep 23, 2024
fcdb4a5
Snapshot CI
clementleclercRTE Sep 23, 2024
7a8b321
Merge remote-tracking branch 'origin/snapshot_ci' into snapshot_ci
clementleclercRTE Sep 23, 2024
9a25b33
Snapshot CI
clementleclercRTE Sep 24, 2024
4a36ab3
Snapshot CI
clementleclercRTE Sep 24, 2024
13d9c10
Snapshot CI
clementleclercRTE Sep 24, 2024
601d309
Snapshot CI
clementleclercRTE Sep 24, 2024
651580e
Snapshot CI
clementleclercRTE Sep 24, 2024
2d6693a
Snapshot CI
clementleclercRTE Sep 24, 2024
1695ff9
Snapshot CI
clementleclercRTE Sep 24, 2024
0d8017e
Snapshot CI
clementleclercRTE Sep 24, 2024
30c332d
Snapshot CI
clementleclercRTE Sep 30, 2024
de93088
Snapshot CI
clementleclercRTE Sep 30, 2024
0c58576
Snapshot CI
clementleclercRTE Sep 30, 2024
7f95d80
change Curve to OutputVariable
clementleclercRTE Oct 1, 2024
6b988b3
change Curve to OutputVariable
clementleclercRTE Oct 1, 2024
ea87265
snapshot ci
clementleclercRTE Oct 1, 2024
90bd2c0
snapshot ci
clementleclercRTE Oct 1, 2024
bbabc62
snapshot ci
clementleclercRTE Oct 1, 2024
2b65dd7
snapshot ci
clementleclercRTE Oct 1, 2024
4215b9d
snapshot ci
clementleclercRTE Oct 1, 2024
a49d6e6
snapshot ci
clementleclercRTE Oct 1, 2024
ac67286
snapshot ci
clementleclercRTE Oct 1, 2024
ac412df
snapshot ci
clementleclercRTE Oct 1, 2024
859b023
snapshot ci
clementleclercRTE Oct 1, 2024
1345275
snapshot ci
clementleclercRTE Oct 1, 2024
8b31c92
snapshot ci
clementleclercRTE Oct 1, 2024
3fee89d
snapshot ci
clementleclercRTE Oct 1, 2024
ec25038
snapshot ci
clementleclercRTE Oct 1, 2024
8505cb7
snapshot ci
clementleclercRTE Oct 1, 2024
c728026
snapshot ci
clementleclercRTE Oct 1, 2024
3e55af3
snapshot ci
clementleclercRTE Oct 1, 2024
040e30a
snapshot ci
clementleclercRTE Oct 1, 2024
668a258
snapshot ci
clementleclercRTE Oct 1, 2024
aff2245
snapshot ci
clementleclercRTE Oct 1, 2024
26d0743
snapshot ci
clementleclercRTE Oct 1, 2024
9fbe6ee
snapshot ci
clementleclercRTE Oct 1, 2024
bdec48e
snapshot ci
clementleclercRTE Oct 7, 2024
31a010e
snapshot ci
clementleclercRTE Oct 7, 2024
bc38f42
snapshot ci
clementleclercRTE Oct 7, 2024
0da793b
snapshot ci
clementleclercRTE Oct 7, 2024
d300fcb
snapshot ci
clementleclercRTE Oct 7, 2024
911af41
snapshot ci
clementleclercRTE Oct 7, 2024
7f0ba17
snapshot ci
clementleclercRTE Oct 7, 2024
6b3281b
snapshot ci
clementleclercRTE Oct 7, 2024
c5ad314
snapshot ci
clementleclercRTE Oct 7, 2024
c8661da
snapshot ci
clementleclercRTE Oct 7, 2024
81a4d18
snapshot ci
clementleclercRTE Oct 7, 2024
df53285
snapshot ci
clementleclercRTE Oct 7, 2024
20bdbea
snapshot ci
clementleclercRTE Oct 7, 2024
68c3d0a
snapshot ci
clementleclercRTE Oct 7, 2024
cbff7b6
snapshot ci
clementleclercRTE Oct 7, 2024
276dce2
snapshot ci
clementleclercRTE Oct 7, 2024
40fb4cd
snapshot ci
clementleclercRTE Oct 7, 2024
e6af92e
snapshot ci
clementleclercRTE Oct 7, 2024
2d614b5
snapshot ci
clementleclercRTE Oct 7, 2024
4f26017
snapshot ci
clementleclercRTE Oct 7, 2024
1b17423
snapshot ci
clementleclercRTE Oct 7, 2024
50981a4
snapshot-ci
leclerc92 Oct 7, 2024
48bd49d
snapshot-ci
leclerc92 Oct 7, 2024
aaeafd2
snapshot-ci
leclerc92 Oct 7, 2024
c337030
snapshot-ci
leclerc92 Oct 7, 2024
f549859
snapshot ci
clementleclercRTE Oct 8, 2024
f1673f7
snapshot ci
clementleclercRTE Oct 8, 2024
31752f3
snapshot ci
clementleclercRTE Oct 8, 2024
e8e8913
snapshot ci
clementleclercRTE Oct 8, 2024
e8984f2
snapshot ci
clementleclercRTE Oct 8, 2024
96476f8
snapshot ci
clementleclercRTE Oct 8, 2024
2697b6a
snapshot ci
clementleclercRTE Oct 8, 2024
e39bbca
snapshot ci
clementleclercRTE Oct 8, 2024
50c77ef
snapshot ci
clementleclercRTE Oct 8, 2024
ad2e4c4
snapshot ci
clementleclercRTE Oct 8, 2024
26854bd
snapshot ci
clementleclercRTE Oct 8, 2024
0bde599
snapshot ci
clementleclercRTE Oct 8, 2024
d34e1ca
snapshot ci
clementleclercRTE Oct 8, 2024
7319e13
snapshot ci
clementleclercRTE Oct 8, 2024
2e340cc
snapshot ci
clementleclercRTE Oct 8, 2024
f311c65
snapshot ci
clementleclercRTE Oct 8, 2024
2ec285d
snapshot ci
clementleclercRTE Oct 8, 2024
a10c65c
snapshot ci
clementleclercRTE Oct 8, 2024
e617ecc
snapshot ci
clementleclercRTE Oct 8, 2024
e865cd0
snapshot ci
clementleclercRTE Oct 8, 2024
8a7cda9
snapshot ci
clementleclercRTE Oct 8, 2024
168ccb6
snapshot ci
clementleclercRTE Oct 8, 2024
efb455e
snapshot ci
clementleclercRTE Oct 8, 2024
ce0e79a
snapshot ci
clementleclercRTE Oct 8, 2024
7f47d52
snapshot ci
clementleclercRTE Oct 8, 2024
65b76cd
snapshot ci
clementleclercRTE Oct 8, 2024
3728427
snapshot ci
clementleclercRTE Oct 8, 2024
a9b8abb
snapshot ci
clementleclercRTE Oct 9, 2024
d2e114c
change pom property with mvn
clementleclercRTE Oct 9, 2024
df4d98c
Update README.md
clementleclercRTE Oct 9, 2024
b85f711
Revert "change Curve to OutputVariable"
leclerc92 Oct 14, 2024
892a6ee
Revert "Update README.md"
leclerc92 Oct 14, 2024
5208bff
snapshot-ci
leclerc92 Oct 14, 2024
f579abf
Revert "Snapshot CI"
leclerc92 Oct 14, 2024
0ec64b5
Revert "Snapshot CI"
leclerc92 Oct 14, 2024
815f1bb
Revert "Snapshot CI"
clementleclercRTE Oct 14, 2024
6812157
Revert "Snapshot CI"
clementleclercRTE Oct 14, 2024
2f5c9f4
Revert "Snapshot CI"
clementleclercRTE Oct 14, 2024
1d18857
Revert "snapshot ci"
clementleclercRTE Oct 14, 2024
1222c95
Revert "Snapshot CI"
clementleclercRTE Oct 14, 2024
e0464f4
Revert "Snapshot CI"
clementleclercRTE Oct 14, 2024
7971659
Merge branch 'main' into snapshot_ci
clementleclercRTE Oct 15, 2024
2b2bd15
update with first PR review
clementleclercRTE Oct 15, 2024
89f16d7
update with first PR review without python 3.13
clementleclercRTE Oct 15, 2024
f68599c
update with first PR review without python 3.13
clementleclercRTE Oct 15, 2024
abed2db
update with first PR review without python 3.13
clementleclercRTE Oct 15, 2024
712f4ad
issues with [email protected]
clementleclercRTE Oct 15, 2024
595479c
add slack notification
clementleclercRTE Oct 15, 2024
aa5c286
add build status report
clementleclercRTE Nov 19, 2024
48d6918
change slack notification
clementleclercRTE Nov 19, 2024
2a2f1e6
add python and os version
clementleclercRTE Nov 19, 2024
0909fe1
change slack message language
clementleclercRTE Nov 19, 2024
c9bae64
delete mvn skip test failure
clementleclercRTE Dec 2, 2024
01db14e
build correction
clementleclercRTE Dec 2, 2024
89e350c
build correction
clementleclercRTE Dec 2, 2024
c49a098
Merge branch 'main' into snapshot_ci_notification
geofjamg Dec 16, 2024
5870ec3
Fix
geofjamg Dec 16, 2024
f29e599
change output name
clementleclercRTE Dec 16, 2024
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
16 changes: 16 additions & 0 deletions .github/workflows/scripts/build_module.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

MODULE_NAME=$1
COMMAND=$2

echo "Building $MODULE_NAME..."
$COMMAND
BUILD_EXIT=$?

if [ $BUILD_EXIT -ne 0 ]; then
echo "❌ $MODULE_NAME build FAILED" >> $BUILD_STATUS
else
echo "✅ $MODULE_NAME build SUCCESS" >> $BUILD_STATUS
fi

exit $BUILD_EXIT
59 changes: 54 additions & 5 deletions .github/workflows/snapshot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ on:
schedule:
- cron: '0 3 * * *'

env:
BUILD_STATUS: ${{ github.workspace }}/build_status.txt

jobs:
build_pypowsybl:
name: Build ${{ matrix.config.name }} ${{ matrix.python.name }} wheel
runs-on: ${{ matrix.config.os }}
outputs:
build_status_output: ${{ steps.build_status_step.outputs.build_status_output }} #Output job with build_status.txt content created in Read Build Status step

strategy:
matrix:
config:
Expand Down Expand Up @@ -92,7 +98,8 @@ jobs:
run: mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=${{ env.CORE_VERSION}} -DgenerateBackupPoms=false
working-directory: ./powsybl-open-loadflow
- name: Build LOADFLOW
run: mvn -batch-mode --no-transfer-progress clean install
continue-on-error: true
run: ${{ env.SCRIPTS_PATH }}/build_module.sh "LOADFLOW" "mvn -batch-mode --no-transfer-progress clean install"
working-directory: ./powsybl-open-loadflow
- name: Get LOADFLOW_VERSION
run: echo "LOADFLOW_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
Expand All @@ -111,7 +118,8 @@ jobs:
run: mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=${{ env.CORE_VERSION}} -DgenerateBackupPoms=false
working-directory: ./powsybl-diagram
- name: Build DIAGRAM
run: mvn -batch-mode --no-transfer-progress clean install
continue-on-error: true
run: ${{ env.SCRIPTS_PATH }}/build_module.sh "DIAGRAM" "mvn -batch-mode --no-transfer-progress clean install"
working-directory: ./powsybl-diagram
- name: Get DIAGRAM_VERSION version
run: echo "DIAGRAM_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
Expand All @@ -132,7 +140,8 @@ jobs:
mvn versions:set-property -Dproperty=powsyblopenloadflow.version -DnewVersion=${{ env.LOADFLOW_VERSION}} -DgenerateBackupPoms=false
working-directory: ./powsybl-entsoe
- name: Build ENTSOE
run: mvn -batch-mode --no-transfer-progress clean install
continue-on-error: true
run: ${{ env.SCRIPTS_PATH }}/build_module.sh "ENTSOE" "mvn -batch-mode --no-transfer-progress clean install"
working-directory: ./powsybl-entsoe
- name: Get ENTSOE_VERSION
run: echo "ENTSOE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
Expand All @@ -154,7 +163,8 @@ jobs:
mvn versions:set-property -Dproperty=powsybl.openloadflow.version -DnewVersion=${{ env.LOADFLOW_VERSION}} -DgenerateBackupPoms=false
working-directory: ./powsybl-openrao
- name: Build OPENRAO
run: mvn -batch-mode --no-transfer-progress clean install
continue-on-error: true
run: ${{ env.SCRIPTS_PATH }}/build_module.sh "OPENRAO" "mvn -batch-mode --no-transfer-progress clean install"
working-directory: ./powsybl-openrao
- name: Get OPENRAO_VERSION
run: echo "OPENRAO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
Expand All @@ -173,7 +183,8 @@ jobs:
run: mvn versions:set-property -Dproperty=powsybl-core.version -DnewVersion=${{ env.CORE_VERSION}} -DgenerateBackupPoms=false
working-directory: ./powsybl-dynawo
- name: Build DYNAWO
run: mvn -batch-mode --no-transfer-progress clean install
continue-on-error: true
run: ${{ env.SCRIPTS_PATH }}/build_module.sh "DYNAWO" "mvn -batch-mode --no-transfer-progress clean install"
working-directory: ./powsybl-dynawo
- name: Get DYNAWO_VERSION
run: echo "DYNAWO_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
Expand Down Expand Up @@ -202,6 +213,7 @@ jobs:
working-directory: ./powsybl-dependencies

- name: Install powsybl-dependencies
continue-on-error: true
run: mvn -batch-mode --no-transfer-progress clean install
working-directory: ./powsybl-dependencies

Expand Down Expand Up @@ -238,3 +250,40 @@ jobs:
with:
name: pypowsybl-wheel-${{ matrix.config.name }}-${{ matrix.python.name }}
path: dist/*.whl

- name: Record Job Name
if: failure()
run: |
echo "Failed job : Build ${{ matrix.config.name }} ${{ matrix.python.name }} wheel" >> $BUILD_STATUS

- name: Read Build Status
if: always()
id: build_status_step
run: |
echo "=== BUILD STATUS REPORT ==="
cat $BUILD_STATUS
echo "=========================="
echo "build_status_output<<EOF" >> $GITHUB_OUTPUT
cat $BUILD_STATUS >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT


#SLACK NOTIFICATION ON FAILURE
notify_slack:
needs: build_pypowsybl
runs-on: ubuntu-latest
if: failure()
steps:
- name: Send Slack Notification
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: |
:x: *Failed workflow ${{ github.workflow }}*
*Failure details:*
```
${{ needs.build_pypowsybl.outputs.build_status_output }}
```
See logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading