From 203e684c4467e163c06ffd6055d58191820fe727 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:04 +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 e66a3386a63b52181b1e1b5d24193afcb9a030e5 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:06 +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 92735f436086fc85e0052e3f90c0a677efabebe6 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:10 +0530
Subject: [PATCH 03/15] Update pom.xml with JaCoCo configuration
---
pom.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 46 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index a16a6424..0635cd5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -248,6 +248,11 @@
h2
${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
+
+
+
+
@@ -332,7 +356,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
@@ -436,5 +479,6 @@
2.1.210
-
+ 0.8.6
+
From e79e3519aa66945a7fb9c8a664a54fed941517d1 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:22 +0530
Subject: [PATCH 04/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.auth.service/pom.xml b/components/org.wso2.carbon.identity.auth.service/pom.xml
index 0c2e69a5..1d939ae1 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,7 +228,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From d96ad83d475ccabaea32c867f3e97a10b111e77a Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:24 +0530
Subject: [PATCH 05/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.auth.valve/pom.xml b/components/org.wso2.carbon.identity.auth.valve/pom.xml
index d5c1516b..1669931e 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,7 +248,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 2d17f6be9225a4c30b1b6a437c8786d797acdd17 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:26 +0530
Subject: [PATCH 06/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.authz.service/pom.xml b/components/org.wso2.carbon.identity.authz.service/pom.xml
index 3aaac600..837b0882 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,7 +105,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 151243dd4fcfccfb3cae36aa4e29c0f1a66d2924 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:29 +0530
Subject: [PATCH 07/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.authz.valve/pom.xml b/components/org.wso2.carbon.identity.authz.valve/pom.xml
index 14fa65c2..ef51316a 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,7 +110,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 18eb50947a712e7a01f1d31870de22f8181bb9a5 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:31 +0530
Subject: [PATCH 08/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..6f31f833 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,7 +68,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 3e4ff791fd84d9f55b28e541905b5ee5d2c880b2 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:33 +0530
Subject: [PATCH 09/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.cors.service/pom.xml b/components/org.wso2.carbon.identity.cors.service/pom.xml
index 775705ff..d22a0ba4 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 120955abf96ffd89aa4855e361b5f351823aafcf Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:35 +0530
Subject: [PATCH 10/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/components/org.wso2.carbon.identity.cors.valve/pom.xml b/components/org.wso2.carbon.identity.cors.valve/pom.xml
index b7070a4e..58f2b483 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 8e396ac18371730070aeafe64962220999f07b61 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:38 +0530
Subject: [PATCH 11/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..8acc8257 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,7 +67,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 156f65191c100fb12b607287978adc3fc7eca25b Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:40 +0530
Subject: [PATCH 12/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..76483be7 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,7 +112,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 420c1ddacacae36fa629978481d44efc4441b1d6 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:42 +0530
Subject: [PATCH 13/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..3c061804 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,7 +88,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From ae4aa086c8ca9263577f7c1d426f418d3cbcf81c Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:44 +0530
Subject: [PATCH 14/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..bb510d78 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,7 +81,26 @@
-
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
+
+
+ prepare-agent
+
+
+
+ report
+ test
+
+ report
+
+
+
+
+
From 7a69084b50fba3ca5ca14a00bef585b094ea54ea Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:06:46 +0530
Subject: [PATCH 15/15] Update pom.xml with JaCoCo configuration
---
.../pom.xml | 26 ++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
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..aa9b74d4 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
+
+
+
+
+