Skip to content

Commit ef77771

Browse files
committed
Remove unused plugins
- Remove pitest as we do not use the results anywhere. - Remove dependency-check plugin as we use Sonatype Lift already which covers the same thing. - Remove dependency-check and mutation-test steps from CI. Closes #343.
1 parent 0373237 commit ef77771

File tree

12 files changed

+11
-302
lines changed

12 files changed

+11
-302
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -134,60 +134,12 @@ jobs:
134134
path: reports-${{ matrix.java-version }}-${{ matrix.os-name }}.tar.xz
135135
retention-days: 30
136136

137-
mutation-tests:
138-
name: Run mutation tests
139-
runs-on: ubuntu-22.04
140-
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
141-
142-
steps:
143-
- name: Checkout repository
144-
uses: actions/[email protected]
145-
with:
146-
fetch-depth: 2
147-
148-
- name: Initialize Java
149-
uses: actions/[email protected]
150-
with:
151-
distribution: 'zulu'
152-
java-version: 17
153-
cache: 'maven'
154-
155-
- name: Run mutation tests
156-
shell: bash
157-
# Do not run on multiple threads, the plugin does not support this properly.
158-
run: ./mvnw -B -U -am -pl java-compiler-testing -P mutation -Dcheckstyle.skip=true -Dlicense.skip=true test
159-
160-
# Compress first so that the collection job later takes far less time (order of a few minutes
161-
# or so). GitHub does not compress these until after the workflow finishes, meaning when
162-
# we unstash them to produce the coverage reports, it will make an HTTP call for every single
163-
# file. This can take several minutes and is somewhat painful to have to wait for.
164-
- name: Compress mutation test reports into tarball
165-
if: always()
166-
shell: bash
167-
run: |-
168-
# Allow ** globbing
169-
set +f -x
170-
# Allow globs to not match anything without causing errors.
171-
shopt -s nullglob
172-
# XZ with max compression, more efficient than using GZip.
173-
XZ_OPT=-9 tar -Jcvf reports-mutation-tests.tar.xz **/target/pit-reports/pit-reports/**
174-
175-
- name: Stash reports tarball
176-
uses: actions/[email protected]
177-
if: always()
178-
with:
179-
name: reports-mutation-tests
180-
if-no-files-found: error
181-
path: reports-mutation-tests.tar.xz
182-
retention-days: 30
183-
184137
publish-test-reports:
185138
name: Publish test reports
186139
runs-on: ubuntu-22.04
187140
if: always()
188141
needs:
189142
- build
190-
- mutation-tests
191143

192144
permissions:
193145
checks: write
@@ -251,8 +203,8 @@ jobs:
251203
#./codecov -c -F unit -v
252204
#./codecov -c -F integration -v
253205
254-
formatting:
255-
name: Check formatting and licenses
206+
linting:
207+
name: Linting
256208
runs-on: ubuntu-22.04
257209

258210
steps:
@@ -279,46 +231,6 @@ jobs:
279231
-Dmaven.test.skip
280232
verify
281233
282-
dependency-check:
283-
name: Run dependency check
284-
runs-on: ubuntu-22.04
285-
286-
steps:
287-
- name: Checkout repository
288-
uses: actions/[email protected]
289-
with:
290-
fetch-depth: 2
291-
292-
- name: Initialize Java
293-
uses: actions/[email protected]
294-
with:
295-
distribution: 'zulu'
296-
java-version: 17
297-
cache: 'maven'
298-
299-
- name: Run checks
300-
shell: bash
301-
run: >-
302-
./mvnw
303-
-B -U
304-
-P dependency-check
305-
-DskipTests=true
306-
-Dcheckstyle.skip=true
307-
-Dlicense.skip=true
308-
-Dmaven.main.skip
309-
-Dmaven.jar.skip
310-
-Dmaven.resources.skip
311-
-Dmaven.test.skip
312-
verify
313-
314-
- name: Archive Dependency Scan reports
315-
uses: actions/[email protected]
316-
if: always()
317-
with:
318-
name: dependency-scan-report
319-
path: '**/target/dependency-check-report.html'
320-
retention-days: 30
321-
322234
generate-documentation:
323235
name: Generate documentation
324236
runs-on: ubuntu-22.04

acceptance-tests/acceptance-tests-dogfood/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</parent>
2828

2929
<artifactId>acceptance-tests-dogfood</artifactId>
30-
<name>JCT dogfooding acceptance tests</name>
30+
<name>JCT-within-JCT acceptance tests (dogfood)</name>
3131
<description>Acceptance test that tests JCT can compile itself.</description>
3232

3333
<dependencies>

acceptance-tests/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@
3333
<description>Acceptance test components.</description>
3434

3535
<modules>
36+
<!-- Custom code proof-of-concept tests -->
37+
<module>acceptance-tests-serviceloader</module>
38+
<module>acceptance-tests-serviceloader-jpms</module>
39+
40+
<!-- Third-party library tests -->
3641
<module>acceptance-tests-avaje-inject</module>
3742
<module>acceptance-tests-avaje-jsonb</module>
3843
<module>acceptance-tests-checkerframework</module>
3944
<module>acceptance-tests-dagger</module>
40-
<module>acceptance-tests-dogfood</module>
4145
<module>acceptance-tests-error-prone</module>
4246
<module>acceptance-tests-google-auto-factory</module>
4347
<module>acceptance-tests-google-auto-service</module>
@@ -46,9 +50,10 @@
4650
<module>acceptance-tests-lombok</module>
4751
<module>acceptance-tests-mapstruct</module>
4852
<module>acceptance-tests-micronaut</module>
49-
<module>acceptance-tests-serviceloader</module>
50-
<module>acceptance-tests-serviceloader-jpms</module>
5153
<module>acceptance-tests-spring</module>
54+
55+
<!-- Dogfood tests -->
56+
<module>acceptance-tests-dogfood</module>
5257
</modules>
5358

5459
<properties>

java-compiler-testing/pom.xml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -167,45 +167,5 @@
167167
</plugins>
168168
</build>
169169
</profile>
170-
171-
<profile>
172-
<id>mutation</id>
173-
174-
<build>
175-
<plugins>
176-
<plugin>
177-
<groupId>org.apache.maven.plugins</groupId>
178-
<artifactId>maven-surefire-plugin</artifactId>
179-
180-
<configuration>
181-
<!-- Don't run normal tests alongside pitest -->
182-
<skip>true</skip>
183-
</configuration>
184-
</plugin>
185-
186-
<plugin>
187-
<groupId>org.apache.maven.plugins</groupId>
188-
<artifactId>maven-failsafe-plugin</artifactId>
189-
190-
<configuration>
191-
<!-- Don't run normal tests alongside pitest -->
192-
<skip>true</skip>
193-
</configuration>
194-
</plugin>
195-
196-
197-
<plugin>
198-
<groupId>org.pitest</groupId>
199-
<artifactId>pitest-maven</artifactId>
200-
201-
<configuration>
202-
<excludedGroups>
203-
<excludedGroup>no-mutation</excludedGroup>
204-
</excludedGroups>
205-
</configuration>
206-
</plugin>
207-
</plugins>
208-
</build>
209-
</profile>
210170
</profiles>
211171
</project>

java-compiler-testing/security-suppressions.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/helpers/DoNotMutationTest.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/integration/BasicLegacyCompilationIntegrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import io.github.ascopes.jct.compilers.JctCompiler;
2121
import io.github.ascopes.jct.junit.JavacCompilerTest;
22-
import io.github.ascopes.jct.tests.helpers.DoNotMutationTest;
2322
import io.github.ascopes.jct.workspaces.PathStrategy;
2423
import io.github.ascopes.jct.workspaces.Workspaces;
2524
import javax.tools.StandardLocation;
@@ -31,7 +30,6 @@
3130
* @author Ashley Scopes
3231
*/
3332
@DisplayName("Basic legacy compilation integration tests")
34-
@DoNotMutationTest
3533
class BasicLegacyCompilationIntegrationTest {
3634

3735
@DisplayName("I can compile a 'Hello, World!' program using a RAM directory")

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/integration/BasicModuleCompilationIntegrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import io.github.ascopes.jct.compilers.JctCompiler;
2121
import io.github.ascopes.jct.junit.JavacCompilerTest;
22-
import io.github.ascopes.jct.tests.helpers.DoNotMutationTest;
2322
import io.github.ascopes.jct.workspaces.PathStrategy;
2423
import io.github.ascopes.jct.workspaces.Workspaces;
2524
import org.junit.jupiter.api.DisplayName;
@@ -30,7 +29,6 @@
3029
* @author Ashley Scopes
3130
*/
3231
@DisplayName("Basic module compilation integration tests")
33-
@DoNotMutationTest
3432
class BasicModuleCompilationIntegrationTest {
3533

3634
@DisplayName("I can compile a 'Hello, World!' module program using a RAM disk")

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/integration/BasicMultiModuleCompilationIntegrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import io.github.ascopes.jct.compilers.JctCompiler;
2121
import io.github.ascopes.jct.junit.JavacCompilerTest;
22-
import io.github.ascopes.jct.tests.helpers.DoNotMutationTest;
2322
import io.github.ascopes.jct.workspaces.PathStrategy;
2423
import io.github.ascopes.jct.workspaces.Workspaces;
2524
import org.junit.jupiter.api.DisplayName;
@@ -30,7 +29,6 @@
3029
* @author Ashley Scopes
3130
*/
3231
@DisplayName("Basic multi-module compilation integration tests")
33-
@DoNotMutationTest
3432
class BasicMultiModuleCompilationIntegrationTest {
3533

3634
@DisplayName("I can compile a single module using multi-module layout using a RAM disk")

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/unit/filemanagers/LoggingFileManagerProxyTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
import io.github.ascopes.jct.filemanagers.JctFileManager;
3636
import io.github.ascopes.jct.filemanagers.LoggingFileManagerProxy;
37-
import io.github.ascopes.jct.tests.helpers.DoNotMutationTest;
3837
import io.github.ascopes.jct.tests.helpers.Slf4jLoggerFake;
3938
import io.github.ascopes.jct.utils.LoomPolyfill;
4039
import java.lang.reflect.Array;
@@ -73,7 +72,6 @@
7372
* @author Ashley Scopes
7473
*/
7574
@DisplayName("LoggingFileManagerProxy tests")
76-
@DoNotMutationTest
7775
@ExtendWith(MockitoExtension.class)
7876
@Isolated("Messes with proxies and side effects")
7977
@MockitoSettings(strictness = Strictness.LENIENT)

0 commit comments

Comments
 (0)