Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions .github/workflows/spring-boot-4-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,33 +71,18 @@ jobs:
- name: Build sample artifacts
run: |
./gradlew \
:sentry-samples:sentry-samples-spring-boot-4-opentelemetry:bootJar \
:sentry-samples:sentry-samples-spring-boot-4-opentelemetry:testClasses \
:sentry-samples:sentry-samples-spring-7:war \
:sentry-samples:sentry-samples-spring-7:testClasses \
:sentry-opentelemetry:sentry-opentelemetry-agent:assemble
:sentry-samples:sentry-samples-spring-7:testClasses

- name: Test sentry-spring-boot-4 integration suites
run: |
./gradlew \
:sentry-spring-boot-4:integrationTest \
:sentry-spring-boot-4:integrationTestWebflux \
:sentry-spring-boot-4:integrationTestOtelNoAgent \
:sentry-spring-boot-4:integrationTestLog4j2

- name: Run sentry-samples-spring-boot-4-opentelemetry agent init true
run: |
python3 test/system-test-runner.py test \
--module "sentry-samples-spring-boot-4-opentelemetry" \
--agent true \
--auto-init "true"

- name: Run sentry-samples-spring-boot-4-opentelemetry agent init false
run: |
python3 test/system-test-runner.py test \
--module "sentry-samples-spring-boot-4-opentelemetry" \
--agent true \
--auto-init "false"
:sentry-spring-boot-4:integrationTestLog4j2 \
:sentry-spring-boot-4:integrationTestOtelAgent \
:sentry-spring-boot-4:integrationTestOtelAgentWithoutAutoInit

- name: Run sentry-samples-spring-7
run: |
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/system-tests-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ jobs:
- sample: "sentry-samples-jul"
agent: "false"
agent-auto-init: "true"
- sample: "sentry-samples-spring-boot-4-opentelemetry"
agent: "true"
agent-auto-init: "true"
- sample: "sentry-samples-spring-boot-4-opentelemetry"
agent: "true"
agent-auto-init: "false"
- sample: "sentry-samples-spring-boot-4-otlp"
agent: "false"
agent-auto-init: "true"
Expand Down
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ tasks.register("integrationTests") {
":sentry-spring-boot-4:integrationTestWebflux",
":sentry-spring-boot-4:integrationTestOtelNoAgent",
":sentry-spring-boot-4:integrationTestLog4j2",
":sentry-spring-boot-4:integrationTestOtelAgent",
":sentry-spring-boot-4:integrationTestOtelAgentWithoutAutoInit",
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ plugins {
alias(libs.plugins.spring.dependency.management)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.spring)
id("io.sentry.systemtest")
}

group = "io.sentry.sample.spring-boot-4"
Expand Down Expand Up @@ -69,17 +68,6 @@ dependencies {
// database query tracing
implementation(projects.sentryJdbc)
runtimeOnly(libs.hsqldb)

testImplementation(kotlin(Config.kotlinStdLib))
testImplementation(projects.sentrySystemTestSupport)
testImplementation(libs.apollo3.kotlin)
testImplementation(libs.kotlin.test.junit)
testImplementation(libs.slf4j2.api)
testImplementation(libs.springboot4.starter.test) {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
testImplementation("ch.qos.logback:logback-classic:1.5.16")
testImplementation("ch.qos.logback:logback-core:1.5.16")
}

tasks.register<BootRun>("bootRunWithAgent").configure {
Expand All @@ -106,25 +94,3 @@ tasks.register<BootRun>("bootRunWithAgent").configure {

jvmArgs = listOf("-Dotel.javaagent.debug=true", "-javaagent:$agentJarPath")
}

// The runner launches this sample with -javaagent, so track the agent jar as a systemTest input.
sentrySystemTest { usesOpenTelemetryAgent = true }

tasks.register<Test>("systemTest").configure {
group = "verification"
description = "Runs the System tests"

val test = project.extensions.getByType<SourceSetContainer>()["test"]
testClassesDirs = test.output.classesDirs
classpath = test.runtimeClasspath

maxParallelForks = 1

filter { includeTestsMatching("io.sentry.systemtest*") }
}

tasks.named("test").configure {
require(this is Test)

filter { excludeTestsMatching("io.sentry.systemtest.*") }
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading