Skip to content

Commit 80bef73

Browse files
authored
Merge branch 'main' into mysql-advanced-monitoring
2 parents ba26317 + 2671ccd commit 80bef73

File tree

6 files changed

+43
-27
lines changed

6 files changed

+43
-27
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,16 @@ jobs:
303303
distribution: 'temurin'
304304

305305
- name: Set up Python
306-
uses: actions/setup-python@v5
307-
with:
308-
python-version: ${{env.PYTHON_VERSION}}
306+
uses: actions/setup-python@v5
307+
with:
308+
python-version: ${{env.PYTHON_VERSION}}
309309

310-
- name: Install Python dependencies
310+
- name: Install Python dependencies
311311
working-directory: ./scripts/anonymization
312312
run: |
313313
if [[ ${{matrix.benchmark}} == anonymization ]]; then
314314
python -m pip install --upgrade pip
315-
pip install -r requirements.txt
315+
pip install -r requirements.txt
316316
else
317317
echo "Dependency installation not necessary for benchmark"
318318
fi
@@ -635,10 +635,11 @@ jobs:
635635
ACCEPT_EULA: Y
636636
SA_PASSWORD: SApassword1
637637
options: >-
638-
--health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P SApassword1 -b -Q 'SELECT 1;'"
639-
--health-interval 10s
638+
--health-cmd="find /opt/mssql-tools*/bin/ -name sqlcmd -executable -print -quit | xargs -t -I% sh -c '% -C -S localhost -U sa -P SApassword1 -b -Q \"SELECT 1;\"'"
639+
--health-interval 5s
640640
--health-timeout 5s
641641
--health-retries 5
642+
--health-start-period 5s
642643
ports:
643644
- 1433:1433
644645
steps:

docker/postgres-latest/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
ports:
1515
- "5432:5432"
1616
healthcheck:
17-
test: pg_isready
17+
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
1818
interval: 10s
1919
timeout: 5s
2020
retries: 5
@@ -33,4 +33,4 @@ services:
3333
ports:
3434
- "8888:8080"
3535
volumes:
36-
- ${PWD}/servers.json:/pgadmin4/servers.json
36+
- ${PWD}/servers.json:/pgadmin4/servers.json

docker/postgres-latest/up.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ docker compose up -d $services
1010

1111
# Wait until ready
1212
for i in {1..5}; do
13-
if docker exec postgres pg_isready && sleep 2 && docker exec postgres pg_isready; then
13+
if /usr/bin/docker inspect --format="{{print .State.Health.Status}}" postgres | grep -q -x healthy; then
1414
break
1515
else
16-
sleep 5
16+
sleep 10
1717
fi
1818
done
1919

docker/sqlserver-latest/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ services:
66
container_name: sqlserver
77
hostname: sqlserver
88
image: mcr.microsoft.com/mssql/server:latest
9+
healthcheck:
10+
test: ["CMD-SHELL", "find /opt/mssql-tools*/bin/ -name sqlcmd -executable -print -quit | xargs -t -I% sh -c '% -C -S localhost -U sa -P SApassword1 -b -Q \"SELECT 1;\"'"]
11+
interval: 5s
12+
timeout: 5s
13+
retries: 5
14+
start_period: 5s
915
environment:
1016
ACCEPT_EULA: Y
1117
SA_PASSWORD: SApassword1

docker/sqlserver-latest/up.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@ cd "$scriptdir/"
66

77
docker compose up -d
88

9-
network=$(docker ps --format "{{.Names}} {{.Networks}}" | awk '( $1 ~ /^'$BENCHBASE_PROFILE'/ ) { print $2 }')
9+
network=$(docker ps --format "{{.Names}} {{.Networks}}" | awk '( $1 ~ /^sqlserver/ ) { print $2 }')
1010

1111
# Also setup the database for use with the sample configs.
1212
# See Also: .github/workflows/maven.yml
1313

14+
# Wait until ready
15+
for i in {1..60}; do
16+
if /usr/bin/docker inspect --format="{{print .State.Health.Status}}" sqlserver | grep -q -x healthy; then
17+
break
18+
else
19+
sleep 5
20+
fi
21+
done
22+
1423
function run_sqlcmd_in_docker() {
1524
set -x
1625
docker run --rm --network=$network --entrypoint /opt/mssql-tools/bin/sqlcmd mcr.microsoft.com/mssql-tools:latest \

pom.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<dependency>
6565
<groupId>org.xerial</groupId>
6666
<artifactId>sqlite-jdbc</artifactId>
67-
<version>3.46.0.0</version>
67+
<version>3.46.1.3</version>
6868
</dependency>
6969
</dependencies>
7070
</profile>
@@ -83,7 +83,7 @@
8383
<dependency>
8484
<groupId>org.postgresql</groupId>
8585
<artifactId>postgresql</artifactId>
86-
<version>42.7.3</version>
86+
<version>42.7.4</version>
8787
<scope>runtime</scope>
8888
</dependency>
8989
</dependencies>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.oracle.database.jdbc</groupId>
127127
<artifactId>ojdbc11</artifactId>
128-
<version>23.4.0.24.05</version>
128+
<version>23.5.0.24.07</version>
129129
<scope>runtime</scope>
130130
</dependency>
131131
</dependencies>
@@ -145,7 +145,7 @@
145145
<dependency>
146146
<groupId>org.mariadb.jdbc</groupId>
147147
<artifactId>mariadb-java-client</artifactId>
148-
<version>3.4.0</version>
148+
<version>3.4.1</version>
149149
<scope>runtime</scope>
150150
</dependency>
151151
</dependencies>
@@ -165,7 +165,7 @@
165165
<dependency>
166166
<groupId>com.google.cloud</groupId>
167167
<artifactId>google-cloud-spanner-jdbc</artifactId>
168-
<version>2.20.1</version>
168+
<version>2.22.1</version>
169169
<scope>runtime</scope>
170170
</dependency>
171171
</dependencies>
@@ -185,7 +185,7 @@
185185
<dependency>
186186
<groupId>org.postgresql</groupId>
187187
<artifactId>postgresql</artifactId>
188-
<version>42.7.3</version>
188+
<version>42.7.4</version>
189189
<scope>runtime</scope>
190190
</dependency>
191191
</dependencies>
@@ -236,14 +236,14 @@
236236
<dependency>
237237
<groupId>org.slf4j</groupId>
238238
<artifactId>slf4j-api</artifactId>
239-
<version>2.0.13</version>
239+
<version>2.0.16</version>
240240
</dependency>
241241

242242
<dependency>
243243
<!-- Drop-in replacement of log4j -->
244244
<groupId>org.slf4j</groupId>
245245
<artifactId>slf4j-reload4j</artifactId>
246-
<version>2.0.13</version>
246+
<version>2.0.16</version>
247247
</dependency>
248248

249249
<dependency>
@@ -262,19 +262,19 @@
262262
<dependency>
263263
<groupId>org.apache.commons</groupId>
264264
<artifactId>commons-lang3</artifactId>
265-
<version>3.14.0</version>
265+
<version>3.17.0</version>
266266
</dependency>
267267

268268
<dependency>
269269
<groupId>commons-cli</groupId>
270270
<artifactId>commons-cli</artifactId>
271-
<version>1.8.0</version>
271+
<version>1.9.0</version>
272272
</dependency>
273273

274274
<dependency>
275275
<groupId>commons-io</groupId>
276276
<artifactId>commons-io</artifactId>
277-
<version>2.16.1</version>
277+
<version>2.17.0</version>
278278
</dependency>
279279

280280
<dependency>
@@ -451,7 +451,7 @@
451451
</plugin>
452452
<plugin>
453453
<artifactId>maven-clean-plugin</artifactId>
454-
<version>3.3.2</version>
454+
<version>3.4.0</version>
455455
<configuration>
456456
<filesets>
457457
<fileset>
@@ -466,7 +466,7 @@
466466
</plugin>
467467
<plugin>
468468
<artifactId>maven-release-plugin</artifactId>
469-
<version>3.0.1</version>
469+
<version>3.1.1</version>
470470
<configuration>
471471
<useReleaseProfile>false</useReleaseProfile>
472472
<tagNameFormat>v@{version}</tagNameFormat>
@@ -501,7 +501,7 @@
501501
<plugin>
502502
<groupId>org.apache.maven.plugins</groupId>
503503
<artifactId>maven-dependency-plugin</artifactId>
504-
<version>3.7.1</version>
504+
<version>3.8.0</version>
505505
<executions>
506506
<execution>
507507
<id>analyze</id>
@@ -540,7 +540,7 @@
540540
<plugin>
541541
<groupId>org.codehaus.mojo</groupId>
542542
<artifactId>exec-maven-plugin</artifactId>
543-
<version>3.3.0</version>
543+
<version>3.4.1</version>
544544
<configuration>
545545
<mainClass>com.oltpbenchmark.DBWorkload</mainClass>
546546
</configuration>

0 commit comments

Comments
 (0)