Fix DebugLineNumbersTest and run it on extended test runs. (#1294)

This commit is contained in:
modmuss
2025-04-25 19:14:38 +01:00
committed by GitHub
parent cc31f1c849
commit e62b8692d3
4 changed files with 7 additions and 5 deletions

View File

@@ -86,6 +86,7 @@ jobs:
- run: ./gradlew printActionsTestName --name="${{ matrix.test }}" test --tests ${{ matrix.test }} --stacktrace --warning-mode fail
env:
TEST_WARNING_MODE: fail
EXTENDED_TESTS: ${{ github.event.inputs.extended_tests }}
id: test
- uses: actions/upload-artifact@v4

View File

@@ -336,6 +336,7 @@ publishing {
tasks.register('writeActionsTestMatrix') {
doLast {
def testMatrix = []
def extendedTests = Boolean.parseBoolean(System.getenv('EXTENDED_TESTS') ?: 'false')
file('src/test/groovy/net/fabricmc/loom/test/integration').eachFile {
if (it.name.endsWith("Test.groovy")) {
if (it.name.endsWith("ReproducibleBuildTest.groovy")) {
@@ -343,7 +344,7 @@ tasks.register('writeActionsTestMatrix') {
return
}
if (it.name.endsWith("DebugLineNumbersTest.groovy")) {
if (it.name.endsWith("DebugLineNumbersTest.groovy") && !extendedTests) {
// Known flakey test
return
}

View File

@@ -3,7 +3,7 @@ spock = "2.3-groovy-3.0"
junit = "5.12.2"
javalin = "6.6.0"
mockito = "5.17.0"
java-debug = "0.52.0"
java-debug = "0.53.1"
mixin = "0.15.3+mixin.0.8.7"
bouncycastle = "1.80"

View File

@@ -52,9 +52,9 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
class DebugLineNumbersTest extends Specification implements GradleProjectTestTrait {
static final String MAPPINGS = "1.20.1-net.fabricmc.yarn.1_20_1.1.20.1+build.1-v2"
static final Map<String, Integer> BREAKPOINTS = [
"net.minecraft.server.dedicated.ServerPropertiesLoader": 16,
"net.minecraft.server.dedicated.MinecraftDedicatedServer": 107,
"net.minecraft.registry.RegistryOps": 67
"net.minecraft.server.dedicated.ServerPropertiesLoader": 12,
"net.minecraft.server.dedicated.MinecraftDedicatedServer": 105,
"net.minecraft.registry.RegistryOps": 44
]
def "Debug test"() {