From ea94c54ba7bfcbd8a63085a11442d03b84e0992f Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:28 +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 951cc9c928a88ec35790187544156b9ac09e7693 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:30 +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 3f315d35686705593db9867975fc33c8f4a32717 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:34 +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..8333e455 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 78520e35ad68b9a9f0e71e1b3c67239373c1cfb0 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:46 +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..ca02ef9b 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 d83c9ca0faaa046e53d3dad656ac9aab1112c325 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:48 +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..51e51382 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 dd08de7b37da7346cdf171372830d60f44c680f3 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:50 +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..c3899417 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 02615e66b9569e9952265a92853e27ed39fe01a5 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:53 +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..4683caf2 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 b14c74bcb9c55e02b12dc96ff3807a334808e5f4 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:55 +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..91aa00c9 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 d133348ca1b20853fde993e290426e0b0dc6792d Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:14:58 +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..2d019f4c 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 5758b0d0c4ed13972d2b7b0881dbff9b29d66b81 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:00 +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..5cf97282 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 5056f328f104e560c137b0a6527bf4fa24b1e1d4 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:03 +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..3f54cf77 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 a849443fac52a822365604f337b6e326dd5cb2ba Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:05 +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..cf3721ea 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 4a02070e3c8ad3d9fcdc6dc73c6c1b696cb5dc65 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:08 +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..1c214803 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 f76ebdd31e7dee5dd4dff79e9c206ac40a1ea324 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:09 +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..3994f48a 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 7796d2d09c2ed3c480434259bd9d93e3f849d790 Mon Sep 17 00:00:00 2001
From: asekawa <40081059+asekawa@users.noreply.github.com>
Date: Thu, 15 Aug 2024 11:15:12 +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..92d64f16 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
+
+
+
+
+