From dd19dfa4546edbae948f8dca8254c9e588178abe Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:25 +0530 Subject: [PATCH 01/15] Add Codecov configuration --- codecov.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..9571a5f2 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,16 @@ + +codecov: + require_ci_to_pass: yes + notify: + wait_for_ci: yes +coverage: + status: + project: + default: + enabled: yes + threshold: null + target: auto + patch: + default: + target: 80% + threshold: 40% From ca758f426065886b0bc4f504c2ed09b22e5b096a Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:27 +0530 Subject: [PATCH 02/15] Update PR builder with Codecov steps --- .github/workflows/pr-builder.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 335ca5d5..11fc6bd5 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -43,3 +43,12 @@ jobs: - name: Build with Maven run: mvn clean install -U -B + + - name: Generate coverage report + run: mvn test jacoco:report + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files : target/site/jacoco/jacoco.xml From ffa5d3bc22bdffc3ac5cb8d305f9342a5830883b Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:31 +0530 Subject: [PATCH 03/15] Update pom.xml with JaCoCo configuration --- pom.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index a16a6424..6b1e6e5a 100644 --- a/pom.xml +++ b/pom.xml @@ -249,7 +249,13 @@ ${h2database.version} test - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -284,7 +290,27 @@ false - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + + @@ -332,6 +358,26 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + @@ -436,5 +482,7 @@ 2.1.210 - - + + 0.8.6 + + \ No newline at end of file From 9389c3f048705772c212047da7addae557aeef15 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:42 +0530 Subject: [PATCH 04/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.auth.service/pom.xml b/components/org.wso2.carbon.identity.auth.service/pom.xml index 0c2e69a5..b54ce613 100644 --- a/components/org.wso2.carbon.identity.auth.service/pom.xml +++ b/components/org.wso2.carbon.identity.auth.service/pom.xml @@ -111,7 +111,13 @@ test - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -223,7 +229,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From a11f4cabc5080a93d1374f42567bc674bddffd57 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:44 +0530 Subject: [PATCH 05/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.auth.valve/pom.xml b/components/org.wso2.carbon.identity.auth.valve/pom.xml index d5c1516b..32e55db9 100644 --- a/components/org.wso2.carbon.identity.auth.valve/pom.xml +++ b/components/org.wso2.carbon.identity.auth.valve/pom.xml @@ -125,7 +125,13 @@ tomcat test - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -243,7 +249,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From fec06e6fc327865556d607f235982d948f4261a3 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:46 +0530 Subject: [PATCH 06/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.authz.service/pom.xml b/components/org.wso2.carbon.identity.authz.service/pom.xml index 3aaac600..e818a492 100644 --- a/components/org.wso2.carbon.identity.authz.service/pom.xml +++ b/components/org.wso2.carbon.identity.authz.service/pom.xml @@ -58,7 +58,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.auth.service - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -100,7 +106,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 28f3348144da8ea2b44745eb19c160ec239641ba Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:49 +0530 Subject: [PATCH 07/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.authz.valve/pom.xml b/components/org.wso2.carbon.identity.authz.valve/pom.xml index 14fa65c2..cf11fe6f 100644 --- a/components/org.wso2.carbon.identity.authz.valve/pom.xml +++ b/components/org.wso2.carbon.identity.authz.valve/pom.xml @@ -66,7 +66,13 @@ org.wso2.carbon.identity.organization.management.core org.wso2.carbon.identity.organization.management.service - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -105,7 +111,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 0202f6c2cbaee9e8816881744011f941c25f85b4 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:51 +0530 Subject: [PATCH 08/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml b/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml index e7bf6ae4..123aa93d 100644 --- a/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml +++ b/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml @@ -38,7 +38,13 @@ org.wso2.carbon.identity.organization.management.core org.wso2.carbon.identity.organization.management.service - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -63,7 +69,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 97034916eb880412e7fa2a730e911a895026f1c3 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:53 +0530 Subject: [PATCH 09/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.cors.service/pom.xml b/components/org.wso2.carbon.identity.cors.service/pom.xml index 775705ff..08d5ea3d 100644 --- a/components/org.wso2.carbon.identity.cors.service/pom.xml +++ b/components/org.wso2.carbon.identity.cors.service/pom.xml @@ -52,7 +52,13 @@ org.wso2.carbon.identity.framework org.wso2.carbon.identity.cors.mgt.core - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -84,6 +90,26 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From cc2161c49fbac6756478fbeba5f91dbf687e2e90 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:56 +0530 Subject: [PATCH 10/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.cors.valve/pom.xml b/components/org.wso2.carbon.identity.cors.valve/pom.xml index b7070a4e..c809ed0b 100644 --- a/components/org.wso2.carbon.identity.cors.valve/pom.xml +++ b/components/org.wso2.carbon.identity.cors.valve/pom.xml @@ -71,7 +71,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.cors.service - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -178,6 +184,26 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From a86c2eee4eb952b4105cf0d31da3e518d9ba7387 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:58 +0530 Subject: [PATCH 11/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/org.wso2.carbon.identity.custom.header.filter/pom.xml b/components/org.wso2.carbon.identity.custom.header.filter/pom.xml index b19cb8d5..6d0d886c 100644 --- a/components/org.wso2.carbon.identity.custom.header.filter/pom.xml +++ b/components/org.wso2.carbon.identity.custom.header.filter/pom.xml @@ -33,7 +33,13 @@ org.wso2.carbon.identity.framework org.wso2.carbon.identity.configuration.mgt.core - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -62,7 +68,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 286c7efc3911e19b99811fe79f6bfa4a2d2023ca Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:37:00 +0530 Subject: [PATCH 12/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/features/org.wso2.carbon.identity.auth.server.feature/pom.xml b/features/org.wso2.carbon.identity.auth.server.feature/pom.xml index 8630c7f3..c03f5c19 100644 --- a/features/org.wso2.carbon.identity.auth.server.feature/pom.xml +++ b/features/org.wso2.carbon.identity.auth.server.feature/pom.xml @@ -41,7 +41,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.auth.valve - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -107,7 +113,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From a44dc97ebbf25be33526a8122f08d57daad115be Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:37:02 +0530 Subject: [PATCH 13/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/features/org.wso2.carbon.identity.authz.server.feature/pom.xml b/features/org.wso2.carbon.identity.authz.server.feature/pom.xml index 498f7261..235ce1ef 100644 --- a/features/org.wso2.carbon.identity.authz.server.feature/pom.xml +++ b/features/org.wso2.carbon.identity.authz.server.feature/pom.xml @@ -41,7 +41,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.authz.valve - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -83,7 +89,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 7c8a4eb64d95adb24a6146be30d701ad05e7304b Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:37:04 +0530 Subject: [PATCH 14/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/features/org.wso2.carbon.identity.context.rewrite.server.feature/pom.xml b/features/org.wso2.carbon.identity.context.rewrite.server.feature/pom.xml index 7d3b4994..a26a5da7 100644 --- a/features/org.wso2.carbon.identity.context.rewrite.server.feature/pom.xml +++ b/features/org.wso2.carbon.identity.context.rewrite.server.feature/pom.xml @@ -37,7 +37,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.context.rewrite.valve - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -76,7 +82,27 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file From 6183c8136d057e4b1ce24b6291cbd6eb9023ffa4 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:37:05 +0530 Subject: [PATCH 15/15] Update pom.xml with JaCoCo configuration --- .../pom.xml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/features/org.wso2.carbon.identity.cors.server.feature/pom.xml b/features/org.wso2.carbon.identity.cors.server.feature/pom.xml index 00552f5f..dd167569 100644 --- a/features/org.wso2.carbon.identity.cors.server.feature/pom.xml +++ b/features/org.wso2.carbon.identity.cors.server.feature/pom.xml @@ -39,7 +39,13 @@ org.wso2.carbon.identity.auth.rest org.wso2.carbon.identity.cors.valve - + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + @@ -81,6 +87,26 @@ + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + + - + \ No newline at end of file