Skip to content
Open
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
3 changes: 1 addition & 2 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ jobs:
sha256: 96f6f1f416d868b78addd22746eefc7f4bf7820c6a3afa392a9f653f708c1644
working_directory: .mise/envs/native
- name: Run native tests
working-directory: .mise/envs/native
run: mise native-test
run: mise //.mise/envs/native:native-test
9 changes: 6 additions & 3 deletions .mise/envs/native/mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
java = "oracle-graalvm-25.0.1"

[tasks.native-test]
depends = "build"
run = "../../mvnw test -PnativeTest"
dir = "../../../integration-tests/it-spring-boot-smoke-test"
depends = "//:build"
# Native Test uses Surefire, so explicitly select the Failsafe-named test class.
run = '''
cd "$MISE_MONOREPO_ROOT/integration-tests/it-spring-boot-smoke-test"
"$MISE_MONOREPO_ROOT/mvnw" test -PnativeTest -Dtest=ApplicationIT
'''
13 changes: 13 additions & 0 deletions integration-tests/it-spring-boot-smoke-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- Run after package so reactor dependencies resolve to their shaded artifacts. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
class ApplicationTest {
class ApplicationIT {
@Test
void testUsesShadedProtobufRuntime() {
assertThat(Metrics.MetricFamily.class.getSuperclass().getName())
.startsWith("io.prometheus.metrics.shaded.com_google_protobuf_");
}

@Test
void testPrometheusProtobufFormat() throws IOException {
ExporterTest.Response response =
Expand Down
5 changes: 5 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
monorepo_root = true

[monorepo]
config_roots = [".mise/envs/*"]

[tools]
"aqua:grafana/gcx" = "v1.1.0"
"aqua:grafana/oats" = "0.10.0"
Expand Down