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

Test qa #5

Closed
wants to merge 107 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
1f469a4
Test_centos7_release_7
ARnDOSrte Oct 10, 2023
1f31e26
Test_centos7_release_8
ARnDOSrte Oct 10, 2023
782de50
Test_centos7_release_9
ARnDOSrte Oct 11, 2023
c33bbf0
Test_centos7_release_10
ARnDOSrte Oct 11, 2023
65f2f96
Test_centos7_release_11
ARnDOSrte Oct 11, 2023
5f8dab3
Test_centos7_release_12
ARnDOSrte Oct 11, 2023
5dba23e
Test_centos7_release_13
ARnDOSrte Oct 11, 2023
eed9ab6
Test_centos7_release_14
ARnDOSrte Oct 11, 2023
7cf62d9
Test_centos7_release_15
ARnDOSrte Oct 11, 2023
3717ebd
Test_centos7_release_16
ARnDOSrte Oct 11, 2023
f07a528
Test_centos7_release_17
ARnDOSrte Oct 11, 2023
2db9516
Test_centos7_release_18
ARnDOSrte Oct 11, 2023
ba3fbcd
Test_centos7_release_19
ARnDOSrte Oct 11, 2023
872953a
Test_centos7_release_20
ARnDOSrte Oct 11, 2023
cea0020
Test_centos7_release_21
ARnDOSrte Oct 11, 2023
ab714cb
Test_centos7_release_22
ARnDOSrte Oct 11, 2023
9d75e92
Test_centos7_release_23
ARnDOSrte Oct 11, 2023
bfb9461
Test_centos7_release_24
ARnDOSrte Oct 11, 2023
c7b52c3
Test_centos7_release_25
ARnDOSrte Oct 12, 2023
0d2812c
Test_centos7_release_26
ARnDOSrte Oct 12, 2023
9c9cd6e
Test_centos7_release_27
ARnDOSrte Oct 12, 2023
3a0cf58
Test_centos7_release_28
ARnDOSrte Oct 12, 2023
21f56c1
Test_centos7_release_29
ARnDOSrte Oct 12, 2023
f88cf39
Test_centos7_release_30
ARnDOSrte Oct 12, 2023
ee3cf04
Test_centos7_release_31
ARnDOSrte Oct 12, 2023
decd187
Test_centos7_release_32
ARnDOSrte Oct 16, 2023
1fd5c63
Test_centos7_release_33
ARnDOSrte Oct 16, 2023
3e65463
Test_centos7_release_34
ARnDOSrte Oct 16, 2023
1e23de7
Test_centos7_release_35
ARnDOSrte Oct 16, 2023
1bdd779
Test_centos7_release_36
ARnDOSrte Oct 16, 2023
020b7cc
Test_centos7_release_37
ARnDOSrte Oct 16, 2023
82c9639
Test_centos7_release_38
ARnDOSrte Oct 16, 2023
f6367ed
Test_centos7_release_39
ARnDOSrte Oct 16, 2023
0672a68
Test_centos7_release_40
ARnDOSrte Oct 16, 2023
30f9cd9
Test_centos7_release_41
ARnDOSrte Oct 16, 2023
c67882b
Test_centos7_release_42
ARnDOSrte Oct 16, 2023
40f481b
Test_centos7_release_43
ARnDOSrte Oct 16, 2023
da01963
correction reseau.cpp
ARnDOSrte Oct 16, 2023
334255b
Test_centos7_release_44
ARnDOSrte Oct 16, 2023
f27a108
Test_centos7_release_45
ARnDOSrte Oct 16, 2023
fd51708
Test_centos7_release_46
ARnDOSrte Oct 16, 2023
89e8579
Test_centos7_release_47
ARnDOSrte Oct 16, 2023
e029531
Test_centos7_release_48
ARnDOSrte Oct 16, 2023
d5619f0
Test_centos7_release_49
ARnDOSrte Oct 16, 2023
c6b2fc6
Test_centos7_release_50
ARnDOSrte Oct 16, 2023
e3aa2d4
Test_centos7_release_51
ARnDOSrte Oct 16, 2023
7d9a621
Test_centos7_release_52
ARnDOSrte Oct 16, 2023
f9fe576
Test_centos7_release_53
ARnDOSrte Oct 16, 2023
070537b
Test_centos7_release_54
ARnDOSrte Oct 16, 2023
9df7a40
Test_centos7_release_55
ARnDOSrte Oct 16, 2023
c549365
Test_centos7_release_56
ARnDOSrte Oct 16, 2023
2a72c90
Test_centos7_release_57
ARnDOSrte Oct 16, 2023
40448b1
Test_centos7_release_58
ARnDOSrte Oct 16, 2023
6773ae3
Test_centos7_release_59
ARnDOSrte Oct 16, 2023
8fe00f8
Test_centos7_release_60
ARnDOSrte Oct 16, 2023
eda9ec2
Test_centos7_release_61
ARnDOSrte Oct 16, 2023
0e561b9
Test_centos7_release_62
ARnDOSrte Oct 16, 2023
0a775c3
Test_centos7_release_63
ARnDOSrte Oct 16, 2023
37c6197
Test_centos7_release_64
ARnDOSrte Oct 17, 2023
b340566
Test_centos7_release_65
ARnDOSrte Oct 17, 2023
aa795d6
Test_centos7_release_66
ARnDOSrte Oct 17, 2023
388ff98
Test_centos7_release_67
ARnDOSrte Oct 17, 2023
8fc403f
Test_centos7_release_68
ARnDOSrte Oct 17, 2023
12532cc
Test_centos7_release_69
ARnDOSrte Oct 17, 2023
29e2d7b
Test_centos7_release_70
ARnDOSrte Oct 17, 2023
a8fdadc
Test_centos7_release_71
ARnDOSrte Oct 17, 2023
64255fc
Test_centos7_release_72
ARnDOSrte Oct 17, 2023
86f3848
Test_centos7_release_73
ARnDOSrte Oct 17, 2023
229debb
Test_centos7_release_74
ARnDOSrte Oct 17, 2023
3336cb2
Test_centos7_release_75
ARnDOSrte Oct 17, 2023
9b9d057
Test_centos7_release_76
ARnDOSrte Oct 17, 2023
8d75fa8
Test_centos7_release_77
ARnDOSrte Oct 17, 2023
1813fe7
Test_centos7_release_78
ARnDOSrte Oct 17, 2023
a276d1f
Test_centos7_release_79
ARnDOSrte Oct 17, 2023
8902fd8
Test_centos7_release_80
ARnDOSrte Oct 17, 2023
6609bf1
Test_centos7_release_81
ARnDOSrte Oct 17, 2023
3f11681
Test_centos7_release_82
ARnDOSrte Oct 17, 2023
06304a7
Test_centos7_release_83
ARnDOSrte Oct 17, 2023
9cf3351
Test_centos7_release_84
ARnDOSrte Oct 17, 2023
c6edcb2
Test_centos7_release_85
ARnDOSrte Oct 17, 2023
79a9029
Test_centos7_release_86
ARnDOSrte Oct 17, 2023
fa8fecd
Test_centos7_release_87
ARnDOSrte Oct 17, 2023
d4704e7
Test_centos7_release_88
ARnDOSrte Oct 17, 2023
534e047
Test_centos7_release_89
ARnDOSrte Oct 17, 2023
5141adc
Test_centos7_release_90
ARnDOSrte Oct 17, 2023
c392f14
Test_centos7_release_91
ARnDOSrte Oct 18, 2023
959e92e
Test_centos7_release_92
ARnDOSrte Oct 18, 2023
a2a1109
Test_centos7_release_93
ARnDOSrte Oct 18, 2023
0561dd3
Test_centos7_release_94
ARnDOSrte Oct 18, 2023
77cea70
Test_centos7_release_95
ARnDOSrte Oct 18, 2023
dc2c65f
Test_centos7_release_96
ARnDOSrte Oct 18, 2023
2e6d64b
Test_centos7_release_97
ARnDOSrte Oct 19, 2023
dc1b9d3
Test_centos7_release_87
ARnDOSrte Oct 19, 2023
0b686c9
Test_centos7_release_98
ARnDOSrte Oct 19, 2023
7599eb6
Test_centos7_release_99
ARnDOSrte Oct 19, 2023
6ad479e
Test_centos7_release_100
ARnDOSrte Oct 19, 2023
66c12c4
Test_centos7_release_101
ARnDOSrte Oct 20, 2023
15979b2
Test_centos7_release_102
ARnDOSrte Oct 20, 2023
83926bf
Test_centos7_release_103
ARnDOSrte Oct 20, 2023
7f4c663
Test_centos7_release_104
ARnDOSrte Oct 20, 2023
9a7c895
Test_centos7_release_105
ARnDOSrte Oct 20, 2023
d6a9076
Test_centos7_release_106
ARnDOSrte Oct 20, 2023
2a6f13f
Test_centos7_release_107
ARnDOSrte Oct 20, 2023
a603bbc
Test_centos7_release_108
ARnDOSrte Oct 20, 2023
771fc15
Test_centos7_release_109
ARnDOSrte Oct 20, 2023
8ed3f6e
Test_centos7_release_110
ARnDOSrte Oct 20, 2023
6fc20ce
Test_centos7_release_111
ARnDOSrte Oct 20, 2023
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
45 changes: 32 additions & 13 deletions .github/workflows/ci_centos7.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI-cpp-centos7

on: [push]
on:
workflow_dispatch: {}
pull_request:
push:
release:

defaults:
run:
Expand Down Expand Up @@ -28,34 +32,49 @@ jobs:
uses: actions/checkout@v1

- name: Download Boost-release
uses: pozetroninc/github-action-get-latest-release@master
uses: dsaltares/fetch-gh-release-asset@master
with:
owner: ARnDOSrte
repo: Boost
repo: 'ARnDOSrte/Boost'
file: 'boost_1_73_0.zip'
target: 'boost_1_73_0.zip'
token: ${{ secrets.TEST_TOKEN_RELEASE }}

- name: Unzip Boost
run: |
pwd
ls
unzip boost_1_73_0.zip
run: unzip boost_1_73_0.zip

- name: Configure 3rd parties
run: |
source /opt/rh/devtoolset-9/enable
cmake -S $GITHUB_WORKSPACE/metrix-simulator/external -B $GITHUB_WORKSPACE/metrix-simulator/build-linux/external
cmake -S $GITHUB_WORKSPACE/metrix-simulator/external -B $GITHUB_WORKSPACE/metrix-simulator/build-centos7/external

- name: Build 3rd parties
run: |
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build-linux/external --parallel 2
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build-centos7/external --parallel 2

- name: Configure CMake
run: |
source /opt/rh/devtoolset-9/enable
cmake -S $GITHUB_WORKSPACE/metrix-simulator -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/metrix-simulator/build-linux/install -B $GITHUB_WORKSPACE/metrix-simulator/build-linux
cmake -S $GITHUB_WORKSPACE/metrix-simulator -Wno-dev -DCMAKE_BUILD_TYPE=Release -DBoost_ROOT=$GITHUB_WORKSPACE/__w/Boost/Boost/boost_1_73_0/installBoost -DBoost_INCLUDE_DIR=$GITHUB_WORKSPACE/__w/Boost/Boost/boost_1_73_0/installBoost -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/metrix-simulator/build-centos7/install -B $GITHUB_WORKSPACE/metrix-simulator/build-centos7

- name: Build
run: cmake --build $GITHUB_WORKSPACE/metrix-simulator/build-linux --target install --parallel 2
run: cmake --build $GITHUB_WORKSPACE/metrix-simulator/build-centos7 --target install --parallel 2

- name: Tests
run: cd $GITHUB_WORKSPACE/metrix-simulator/build-linux && ctest -j2 --output-on-failure
run: cd $GITHUB_WORKSPACE/metrix-simulator/build-centos7 && ctest -j2 --output-on-failure

- name: Prepare Metrix install
if: github.event_name == 'workflow_dispatch'
id: metrix-install
run: |
ARCHIVE_NAME="metrix-simulator-centos7.zip"
ARCHIVE_PATH="$PWD/${ARCHIVE_NAME}"
zip $ARCHIVE_PATH /__w/powsybl-metrix/powsybl-metrix/metrix-simulator/build-centos7/install/bin/metrix-simulator
echo "::set-output name=archive_name::$ARCHIVE_NAME"
echo "::set-output name=archive_path::$ARCHIVE_PATH"

- name: Upload OR-Tools install artifact
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v3
with:
name: ${{ steps.metrix-install.outputs.archive_name }}
path: ${{ steps.metrix-install.outputs.archive_path }}
151 changes: 79 additions & 72 deletions .github/workflows/ci_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI-cpp-ubuntu

on: [push]
on:
workflow_dispatch: {}
pull_request:
types: [opened, ready_for_review]
push:
release:

defaults:
run:
Expand Down Expand Up @@ -39,74 +44,76 @@ jobs:
- name: Tests
run: cd $GITHUB_WORKSPACE/metrix-simulator/build-linux && ctest -j8 --output-on-failure

# qa:
# name: QA - CI
# runs-on: ubuntu-latest
# steps:
# - name: Install Java 11
# uses: actions/setup-java@v1
# with:
# java-version: 11

# - name: Install gcovr
# run: |
# sudo apt-get update -y
# sudo apt-get install -y gcovr

# - name: Install Sonar wrapper
# working-directory: ${{ runner.workspace }}
# run: |
# wget https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
# unzip build-wrapper-linux-x86.zip

# - name: Install Sonar scanner
# working-directory: ${{ runner.workspace }}
# run: |
# wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
# unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
# ln -s sonar-scanner-${SONAR_SCANNER_VERSION} sonar
# rm sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
# env:
# SONAR_SCANNER_VERSION: 3.3.0.1492

# - name: Install Boost
# run: |
# sudo apt-get update -y
# sudo apt-get install -y libboost-all-dev

# - name: Checkout sources
# uses: actions/checkout@v1

# - name: Configure 3rd parties
# run: >
# cmake -S $GITHUB_WORKSPACE/metrix-simulator/external -B $GITHUB_WORKSPACE/metrix-simulator/build/external

# - name: Build 3rd parties
# run: >
# cmake --build $GITHUB_WORKSPACE/metrix-simulator/build/external --parallel 2

# - name: Configure CMake
# run: >
# cmake -Wno-dev -S $GITHUB_WORKSPACE/metrix-simulator -B $GITHUB_WORKSPACE/metrix-simulator/build
# -DCMAKE_BUILD_TYPE=Debug
# -DCODE_COVERAGE=TRUE
# -DMETRIX_RUN_ALL_TESTS=OFF
# -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/metrix-simulator/build/install

# - name: Build
# run: >
# ${{ runner.workspace }}/build-wrapper-linux-x86/build-wrapper-linux-x86-64
# --out-dir $GITHUB_WORKSPACE/metrix-simulator/build/output
# cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --parallel 2 --target install

# - name: Tests
# run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 --output-on-failure

# - name: Sonarcloud
# working-directory: ${{ runner.workspace }}/powsybl-metrix/metrix-simulator
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: >
# ${{ runner.workspace }}/sonar/bin/sonar-scanner
# -Dsonar.host.url=https://sonarcloud.io
qa:
name: QA - CI
runs-on: ubuntu-latest
# if: (github.event_name == 'pull_request' && (github.event.action == 'ready_for_review' || github.event.action == 'opened')) || github.event_name == 'release'
# if: github.event_name == 'pull_request' && github.event.action == 'ready_for_review'
steps:
- name: Install Java 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Install gcovr
run: |
sudo apt-get update -y
sudo apt-get install -y gcovr

- name: Install Sonar wrapper
working-directory: ${{ runner.workspace }}
run: |
wget https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip build-wrapper-linux-x86.zip

- name: Install Sonar scanner
working-directory: ${{ runner.workspace }}
run: |
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
ln -s sonar-scanner-${SONAR_SCANNER_VERSION} sonar
rm sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
env:
SONAR_SCANNER_VERSION: 3.3.0.1492

- name: Install Boost
run: |
sudo apt-get update -y
sudo apt-get install -y libboost-all-dev

- name: Checkout sources
uses: actions/checkout@v1

- name: Configure 3rd parties
run: >
cmake -S $GITHUB_WORKSPACE/metrix-simulator/external -B $GITHUB_WORKSPACE/metrix-simulator/build/external

- name: Build 3rd parties
run: >
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build/external --parallel 2

- name: Configure CMake
run: >
cmake -Wno-dev -S $GITHUB_WORKSPACE/metrix-simulator -B $GITHUB_WORKSPACE/metrix-simulator/build
-DCMAKE_BUILD_TYPE=Debug
-DCODE_COVERAGE=TRUE
-DMETRIX_RUN_ALL_TESTS=OFF
-DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/metrix-simulator/build/install

- name: Build
run: >
${{ runner.workspace }}/build-wrapper-linux-x86/build-wrapper-linux-x86-64
--out-dir $GITHUB_WORKSPACE/metrix-simulator/build/output
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --parallel 2 --target install

- name: Tests
run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 --output-on-failure

- name: Sonarcloud
working-directory: ${{ runner.workspace }}/powsybl-metrix/metrix-simulator
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: >
${{ runner.workspace }}/sonar/bin/sonar-scanner
-Dsonar.host.url=https://sonarcloud.io
8 changes: 7 additions & 1 deletion .github/workflows/maven_centos7.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI_centos7

on: [push]
on:
push:
branches:
- 'main'
- 'release-v**'
- 'full-sonar-analysis-**'
pull_request:

jobs:
build:
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/maven_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: CI_ubuntu
name: CI-UBUNTU

on: [push]
on:
push:
branches:
- 'main'
- 'release-v**'
- 'full-sonar-analysis-**'
pull_request:

jobs:
build:
Expand All @@ -11,25 +17,25 @@ jobs:
os: [ubuntu-latest]

steps:
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Checkout sources
uses: actions/checkout@v1

- name: Build with Maven
run: mvn --batch-mode package

# - name: Run SonarCloud analysis
# if: matrix.os == 'ubuntu-latest'
# run: >
# mvn --batch-mode -Pjacoco verify sonar:sonar
# -Dsonar.host.url=https://sonarcloud.io
# -Dsonar.organization=powsybl-ci-github
# -Dsonar.projectKey=com.powsybl:powsybl-metrix
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run SonarCloud analysis
if: matrix.os == 'ubuntu-latest'
run: >
mvn --batch-mode -Pjacoco verify sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=com.powsybl:powsybl-metrix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Loading
Loading