From 0f066ad950bd6cfb2150c013e7345ae1437ff7b2 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 10:59:02 +0530
Subject: [PATCH 01/15] [Automated]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 4505e086c4a595d74a68965dcc77defc25bbf8e1 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 10:59:03 +0530
Subject: [PATCH 02/15] Update PR builder with Codecov steps
---
.github/workflows/pr-builder.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml
index 335ca5d5..47f26d05 100644
--- a/.github/workflows/pr-builder.yml
+++ b/.github/workflows/pr-builder.yml
@@ -43,3 +43,11 @@ 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 30d89dfd21efdf870e0f0d5da038095f78c9719c Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 10:59:07 +0530
Subject: [PATCH 03/15] Update root pom.xml with JaCoCo configuration
---
pom.xml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/pom.xml b/pom.xml
index a16a6424..8162237f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -249,6 +249,11 @@
${h2database.version}
test
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -284,6 +289,25 @@
false
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
@@ -436,5 +460,7 @@
2.1.210
+
+ 0.8.6
From 3ea3dcf0ef45a811b824e54b4585e562d4c567de Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:02:55 +0530
Subject: [PATCH 04/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.auth.service/pom.xml b/components/org.wso2.carbon.identity.auth.service/pom.xml
index 0c2e69a5..ecaf8434 100644
--- a/components/org.wso2.carbon.identity.auth.service/pom.xml
+++ b/components/org.wso2.carbon.identity.auth.service/pom.xml
@@ -111,6 +111,11 @@
test
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -223,6 +228,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From d24250778b47598d2aa7f301605e42ad161934ec Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:02:56 +0530
Subject: [PATCH 05/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.auth.valve/pom.xml b/components/org.wso2.carbon.identity.auth.valve/pom.xml
index d5c1516b..6bdaf6c6 100644
--- a/components/org.wso2.carbon.identity.auth.valve/pom.xml
+++ b/components/org.wso2.carbon.identity.auth.valve/pom.xml
@@ -125,6 +125,11 @@
tomcat
test
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -243,6 +248,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From b0dba80907969f6e3399bd580cfb0e93e9fc2b9b Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:02:58 +0530
Subject: [PATCH 06/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.authz.service/pom.xml b/components/org.wso2.carbon.identity.authz.service/pom.xml
index 3aaac600..93385d0b 100644
--- a/components/org.wso2.carbon.identity.authz.service/pom.xml
+++ b/components/org.wso2.carbon.identity.authz.service/pom.xml
@@ -58,6 +58,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.auth.service
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -100,6 +105,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From f1685efe09a0d63cd50f4f35907dfac7e6962cad Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:00 +0530
Subject: [PATCH 07/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.authz.valve/pom.xml b/components/org.wso2.carbon.identity.authz.valve/pom.xml
index 14fa65c2..def8e70e 100644
--- a/components/org.wso2.carbon.identity.authz.valve/pom.xml
+++ b/components/org.wso2.carbon.identity.authz.valve/pom.xml
@@ -66,6 +66,11 @@
org.wso2.carbon.identity.organization.management.core
org.wso2.carbon.identity.organization.management.service
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -105,6 +110,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From d2861340350d36f5d2957735bc1fb66fa0bc9b83 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:01 +0530
Subject: [PATCH 08/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..bd30ee94 100644
--- a/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml
+++ b/components/org.wso2.carbon.identity.context.rewrite.valve/pom.xml
@@ -38,6 +38,11 @@
org.wso2.carbon.identity.organization.management.core
org.wso2.carbon.identity.organization.management.service
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -63,6 +68,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 18e30f235b5b3d9d1386d2e363c5cdb190ba7d87 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:03 +0530
Subject: [PATCH 09/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.cors.service/pom.xml b/components/org.wso2.carbon.identity.cors.service/pom.xml
index 775705ff..00214222 100644
--- a/components/org.wso2.carbon.identity.cors.service/pom.xml
+++ b/components/org.wso2.carbon.identity.cors.service/pom.xml
@@ -52,6 +52,11 @@
org.wso2.carbon.identity.framework
org.wso2.carbon.identity.cors.mgt.core
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -84,6 +89,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 63afcd89796de593ce116fb12a30cbfcd61f9a05 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:05 +0530
Subject: [PATCH 10/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/components/org.wso2.carbon.identity.cors.valve/pom.xml b/components/org.wso2.carbon.identity.cors.valve/pom.xml
index b7070a4e..105deb7a 100644
--- a/components/org.wso2.carbon.identity.cors.valve/pom.xml
+++ b/components/org.wso2.carbon.identity.cors.valve/pom.xml
@@ -71,6 +71,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.cors.service
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -178,6 +183,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From a3e85f0c3f37a3ed965d74883fee5ebd081b6693 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:07 +0530
Subject: [PATCH 11/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..0da5a90e 100644
--- a/components/org.wso2.carbon.identity.custom.header.filter/pom.xml
+++ b/components/org.wso2.carbon.identity.custom.header.filter/pom.xml
@@ -33,6 +33,11 @@
org.wso2.carbon.identity.framework
org.wso2.carbon.identity.configuration.mgt.core
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -62,6 +67,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 0b61ca6a5b3f9283beb89b7cc9f8468dd584a601 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:08 +0530
Subject: [PATCH 12/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..ad3e7599 100644
--- a/features/org.wso2.carbon.identity.auth.server.feature/pom.xml
+++ b/features/org.wso2.carbon.identity.auth.server.feature/pom.xml
@@ -41,6 +41,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.auth.valve
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -107,6 +112,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From c97fa769a6f768f119d431be4f290f0ba3005181 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:10 +0530
Subject: [PATCH 13/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..2898b723 100644
--- a/features/org.wso2.carbon.identity.authz.server.feature/pom.xml
+++ b/features/org.wso2.carbon.identity.authz.server.feature/pom.xml
@@ -41,6 +41,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.authz.valve
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -83,6 +88,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 0159ca0e0e95747e5b279b59ff0d2e345cb8c32c Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:12 +0530
Subject: [PATCH 14/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..c88131c7 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,6 +37,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.context.rewrite.valve
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -76,6 +81,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
From 33b962ff5f7b8b91a2f34790aab443668955c381 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Fri, 16 Aug 2024 11:03:14 +0530
Subject: [PATCH 15/15] Update component pom.xml with JaCoCo configuration
---
.../pom.xml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
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..723ce190 100644
--- a/features/org.wso2.carbon.identity.cors.server.feature/pom.xml
+++ b/features/org.wso2.carbon.identity.cors.server.feature/pom.xml
@@ -39,6 +39,11 @@
org.wso2.carbon.identity.auth.rest
org.wso2.carbon.identity.cors.valve
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -81,6 +86,25 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+