Skip to content
Merged
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
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ dependencies {
implementation("gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.7.3")
implementation("de.thetaphi:forbiddenapis:3.8")
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:6.1.0")
implementation("org.gradle:test-retry-gradle-plugin:1.6.1")
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins {
id("com.github.spotbugs")
id("net.ltgt.errorprone")
id("com.google.osdetector")
id("org.gradle.test-retry")
}

dependencies {
Expand Down Expand Up @@ -95,6 +96,12 @@ tasks {
dependsOn(checkstyleMain, checkstyleTest, pmdMain, pmdTest, spotbugsMain, spotbugsTest)
finalizedBy(jacocoTestReport, jacocoTestCoverageVerification)
maxParallelForks = 1

retry {
maxRetries.set(1)
maxFailures.set(3)
failOnPassedAfterRetry.set(false)
}
}

jacocoTestCoverageVerification {
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ services:

postgres:
container_name: postgres
image: postgres:17.0
image: postgres:17.2
shm_size: "2gb"
environment:
POSTGRES_DB: "otel_demo_db"
Expand Down
1 change: 1 addition & 0 deletions spring-boot-2-demo-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
app:
external-base-url: "http://worldtimeapi.org/api/timezone/"
retries: 3
tenant.name: ru-a1-private

server:
port: 8090
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class IndexesMaintenanceTest extends TestBase {
void checkPostgresVersion() {
final String pgVersion = jdbcTemplate.queryForObject("select version();", String.class);
assertThat(pgVersion)
.startsWith("PostgreSQL 17.0");
.startsWith("PostgreSQL 17.2");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class PostgresInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

private static final DockerImageName IMAGE = DockerImageName.parse("postgres:17.0");
private static final DockerImageName IMAGE = DockerImageName.parse("postgres:17.2");
private static final Network NETWORK = Network.newNetwork();
private static final PostgreSQLContainer<?> CONTAINER = new PostgreSQLContainer<>(IMAGE);

Expand Down
1 change: 1 addition & 0 deletions spring-boot-3-demo-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
app:
external-base-url: "http://worldtimeapi.org/api/timezone/"
retries: 3
tenant.name: ru-a1-private

server:
port: 8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class IndexesMaintenanceTest extends TestBase {
void checkPostgresVersion() {
final String pgVersion = jdbcTemplate.queryForObject("select version();", String.class);
assertThat(pgVersion)
.startsWith("PostgreSQL 17.0");
.startsWith("PostgreSQL 17.2");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class PostgresInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

private static final DockerImageName IMAGE = DockerImageName.parse("postgres:17.0");
private static final DockerImageName IMAGE = DockerImageName.parse("postgres:17.2");
private static final Network NETWORK = Network.newNetwork();
private static final PostgreSQLContainer<?> CONTAINER = new PostgreSQLContainer<>(IMAGE);

Expand Down