From d47a89aa0864f7f207b1e1f05b1dc99e33c8a32f Mon Sep 17 00:00:00 2001 From: MartinWheelerMT Date: Tue, 15 Sep 2026 13:00:05 +0100 Subject: [PATCH] NIAD-3463: Remove PI Test from gradle /CI/CD. * Remove all references, licences and workflows relating to mutation testing as repositories must be made private, but our license is for open source repositories only. --- .github/workflows/mutation-tests.yml | 29 ---------------------------- arcmutate-licence.txt | 7 ------- gp2gp-translator/build.gradle | 27 -------------------------- gpc-api-facade/build.gradle | 27 -------------------------- 4 files changed, 90 deletions(-) delete mode 100644 .github/workflows/mutation-tests.yml delete mode 100644 arcmutate-licence.txt diff --git a/.github/workflows/mutation-tests.yml b/.github/workflows/mutation-tests.yml deleted file mode 100644 index b923c6862..000000000 --- a/.github/workflows/mutation-tests.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: "Mutation Testing Workflow" -on: - pull_request: - -jobs: - gp2gp-translator-mutation-testing: - name: "Mutation Testing" - if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' - strategy: - matrix: - path: [ ./gpc-api-facade, ./gp2gp-translator] - runs-on: ubuntu-latest - steps: - - name: Checkout project - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - with: - fetch-depth: 2 - - name: Setup Java JDK - uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c - with: - distribution: 'temurin' - java-version: 21 - cache: 'gradle' - - - name: run pitest - working-directory: ${{ matrix.path }} - run: ./gradlew pitest-github - env: - REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/arcmutate-licence.txt b/arcmutate-licence.txt deleted file mode 100644 index c5eb13798..000000000 --- a/arcmutate-licence.txt +++ /dev/null @@ -1,7 +0,0 @@ -#Licence file for arcmutate mutation testing https://www.arcmutate.com -#Mon Mar 02 15:05:33 GMT 2026 -expires=02/03/2028 -keyVersion=1 -packages=uk.nhs.adaptors.* -signature=gHD48A9cz8Eh2ZeppQYMkJAVXXYd1rS9/9E+KcipPuFilQSermPonHMcuRPZQUdURzHbfKLE7EOSeEfLAobQV9nkY5THe30apfWTImPXRpxi+IZsZUV7k5snC9EwmYVSFd92Ya/8Q3j+Th+5hharrN/gGKscsqzCo2hUoVDde0Q\= -type=OSSS \ No newline at end of file diff --git a/gp2gp-translator/build.gradle b/gp2gp-translator/build.gradle index 8460d3ada..47fa95308 100644 --- a/gp2gp-translator/build.gradle +++ b/gp2gp-translator/build.gradle @@ -5,10 +5,6 @@ plugins { id 'checkstyle' id 'com.github.spotbugs' version '6.5.11' id 'io.freefair.lombok' version '9.5.0' - - // Mutation testing - id 'info.solidsoft.pitest' version '1.15.0' - id 'com.arcmutate.github' version '2.0.0' } apply plugin: 'java' @@ -54,9 +50,6 @@ dependencies { testImplementation 'io.findify:s3mock_2.13:0.2.6' testImplementation 'org.testcontainers:testcontainers-azure:2.0.5' - pitest 'com.arcmutate:base:1.3.2' - pitest 'com.arcmutate:pitest-git-plugin:2.0.0' - spotbugs 'com.github.spotbugs:spotbugs:4.9.7' spotbugs 'com.github.spotbugs:spotbugs-annotations:4.9.7' compileOnly 'com.github.spotbugs:spotbugs-annotations:4.9.7' @@ -140,26 +133,6 @@ tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { } } -pitest { - pitestVersion = '1.16.1' - junit5PluginVersion = '1.2.1' - outputFormats = ['gitci'] - - // git feature limits analysis to contents of PR only - features = ["+GIT(from[HEAD~1])"] - - // PRs which don't introduce any production code changes, shouldn't fail the Mutation Testing Actions Workflow - failWhenNoMutations = false - - mutators = ['STRONGER', 'EXTENDED_ALL'] - - threads = project.getGradle().getStartParameter().getMaxWorkerCount() -} - -pitestGithub { - deleteOldSummaries = true -} - checkstyle { configFile file('../config/checkstyle/checkstyle.xml') toolVersion '13.0.0' diff --git a/gpc-api-facade/build.gradle b/gpc-api-facade/build.gradle index b3cf135a6..020e20488 100644 --- a/gpc-api-facade/build.gradle +++ b/gpc-api-facade/build.gradle @@ -5,10 +5,6 @@ plugins { id 'checkstyle' id 'com.github.spotbugs' version '6.5.11' id 'io.freefair.lombok' version '9.5.0' - - // Mutation testing - id 'info.solidsoft.pitest' version '1.15.0' - id 'com.arcmutate.github' version '2.0.0' } apply plugin: 'java' @@ -40,9 +36,6 @@ dependencies { testImplementation 'org.mockito:mockito-inline:5.2.0' testImplementation 'io.rest-assured:rest-assured:5.5.0' - pitest 'com.arcmutate:base:1.3.2' - pitest 'com.arcmutate:pitest-git-plugin:2.0.0' - spotbugs 'com.github.spotbugs:spotbugs:4.9.7' spotbugs 'com.github.spotbugs:spotbugs-annotations:4.9.7' compileOnly 'com.github.spotbugs:spotbugs-annotations:4.9.7' @@ -103,23 +96,3 @@ tasks.withType(com.github.spotbugs.snom.SpotBugsTask) { html.enabled = false } } - -pitest { - pitestVersion = '1.16.1' - junit5PluginVersion = '1.2.1' - outputFormats = ['gitci'] - - // git feature limits analysis to contents of PR only - features = ["+GIT(from[HEAD~1])"] - - // PRs which don't introduce any production code changes, shouldn't fail the Mutation Testing Actions Workflow - failWhenNoMutations = false - - mutators = ['STRONGER', 'EXTENDED_ALL'] - - threads = project.getGradle().getStartParameter().getMaxWorkerCount() -} - -pitestGithub { - deleteOldSummaries = true -}