Skip to content

Commit 248183b

Browse files
committed
Free more space & run ClickHouse later
Also fix the SQLite minimum version for 2026 and emit a message for each client being installed.
1 parent 42b7192 commit 248183b

10 files changed

Lines changed: 37 additions & 15 deletions

File tree

.github/ubuntu/clickhouse.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing ClickHouse Clients"
6+
57
if [ -z "$SKIP_DEPENDS" ]; then
68
sudo apt-get update -qq
79
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -qq unixodbc-dev odbcinst unixodbc

.github/ubuntu/exasol.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing Exasol Clients"
6+
57
# Download dependencies.
68
if [ -z "$SKIP_DEPENDS" ]; then
79
sudo apt-get update -qq

.github/ubuntu/firebird.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing Firebird"
6+
57
# Download dependencies.
68
if [ -z "$SKIP_DEPENDS" ]; then
79
sudo apt-get update -qq

.github/ubuntu/mysql.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing MySQL Clients"
6+
57
# Download dependencies.
68
if [ -z "$SKIP_DEPENDS" ]; then
79
sudo apt-get update -qq

.github/ubuntu/oracle.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing Oracle Clients"
6+
57
version=23.26.0.0.0
68
icdr=2326000
79

.github/ubuntu/pg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PGVERSION=${PGVERSION:=${1:-"$(curl -s https://ftp.postgresql.org/pub/latest/ |
77
echo "Installing PostgreSQL $PGVERSION"
88

99
curl -O https://salsa.debian.org/postgresql/postgresql-common/-/raw/master/pgdg/apt.postgresql.org.sh
10-
sudo sh apt.postgresql.org.sh -i -t -v $PGVERSION
10+
sudo sh apt.postgresql.org.sh -i -v $PGVERSION || apt-cache policy postgresql-18 postgresql-17 postgresql-common && exit 2
1111
sudo pg_createcluster --start $PGVERSION test -p 5432 --locale=C -- -A trust -E UTF8
1212

1313
if [[ -n "$GITHUB_PATH" ]]; then

.github/ubuntu/snowflake.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing Snowflake Clients"
6+
57
# Set up Snowflake.
68
if [ -z "$SKIP_DEPENDS" ]; then
79
sudo apt-get update -qq

.github/ubuntu/sqlite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SQLITE=$(perl -e 'my @v = split /[.]/, shift; printf "%d%02d%02d%02d\n", @v[0..3
1212
# 3.18.2, 3.18.1, 3.9.3, and 3.7.11 missing.
1313
# https://sqlite.org/chronology.html
1414
# https://stackoverflow.com/a/37712117/79202
15-
if (( SQLITE >= 3512000 )); then YEAR=2026
15+
if (( SQLITE >= 3510200 )); then YEAR=2026
1616
elif (( SQLITE >= 3480000 )); then YEAR=2025
1717
elif (( SQLITE >= 3450000 )); then YEAR=2024
1818
elif (( SQLITE >= 3400200 )); then YEAR=2023

.github/ubuntu/vertica.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
echo "Installing Vertica Clients"
6+
57
if [ -z "$SKIP_DEPENDS" ]; then
68
sudo apt-get update -qq
79
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -qq unixodbc-dev odbcinst unixodbc

.github/workflows/coverage.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,31 @@ jobs:
4242
vertica:
4343
image: cjonesy/docker-vertica:9.2.1-0
4444
ports: [ 5433 ]
45-
clickhouse:
46-
image: clickhouse:latest
47-
ports: [ 8123, 9000 ]
48-
env:
49-
CLICKHOUSE_SKIP_USER_SETUP: 1
50-
options: >-
45+
steps:
46+
- name: Free Disk Space
47+
uses: endersonmenezes/free-disk-space@v3
48+
with:
49+
rm_cmd: rmz
50+
remove_android: true
51+
remove_dotnet: true
52+
remove_haskell: true
53+
remove_tool_cache: true
54+
remove_swap: true
55+
remove_packages: "azure-cli google-cloud-cli microsoft-edge-stable google-chrome-stable firefox postgresql* temurin-* *llvm* mysql* dotnet-sdk-*"
56+
remove_packages_one_command: true
57+
remove_folders: "/usr/share/swift /usr/share/miniconda /usr/share/az* /usr/local/lib/node_modules /usr/local/share/chromium /usr/local/share/powershell /usr/local/julia /usr/local/aws-cli /usr/local/aws-sam-cli /usr/share/gradle"
58+
- name: Start CockroachDB
59+
run: docker run -d -p 26257:26257 cockroachdb/cockroach:latest start-single-node --insecure
60+
- name: Start ClickHouse
61+
env: { CLICKHOUSE_SKIP_USER_SETUP: 1 }
62+
run: >-
63+
docker run -d -p 8123:8123 -p 9000:9000
5164
--ulimit nofile=262144:262144
5265
--health-cmd "clickhouse-client --query 'SELECT 1'"
5366
--health-interval 20s
5467
--health-timeout 10s
5568
--health-retries 10
56-
steps:
57-
# https://github.com/orgs/community/discussions/25678#discussioncomment-9017167
58-
- name: Free Disk Space
59-
run: find /opt -maxdepth 1 -mindepth 1 '!' -path ./containerd '!' -path ./actionarchivecache '!' -path ./runner '!' -path ./runner-cache -exec rm -rf '{}' ';'
60-
- name: Start CockroachDB
61-
run: docker run -d -p 26257:26257 cockroachdb/cockroach:latest start-single-node --insecure
69+
clickhouse:latest
6270
- uses: actions/checkout@v4
6371
- name: Setup Perl
6472
id: perl
@@ -113,7 +121,7 @@ jobs:
113121
LIVE_COCKROACH_REQUIRED: true
114122
SQITCH_TEST_COCKROACH_URI: db:cockroach://root@localhost:26257/
115123
LIVE_CLICKHOUSE_REQUIRED: true
116-
SQITCH_TEST_CLICKHOUSE_URI: db:clickhouse://default@localhost:${{ job.services.clickhouse.ports[8123] }}/default?Driver=ClickHouse&NativePort=${{ job.services.clickhouse.ports[9000] }}
124+
SQITCH_TEST_CLICKHOUSE_URI: db:clickhouse://default@localhost:8123/default?Driver=ClickHouse&NativePort=9000
117125
run: prove -lrj4 t
118126
- name: Report Coverage
119127
env:

0 commit comments

Comments
 (0)