Skip to content

Commit 959b225

Browse files
committed
debug
1 parent 8ee3f16 commit 959b225

File tree

1 file changed

+12
-105
lines changed

1 file changed

+12
-105
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -31,121 +31,28 @@ jobs:
3131
container:
3232
image: registry.gitlab.com/finestructure/spi-base:46fc194706b255239d764c87f05f825ad9f98303
3333
options: --privileged
34-
steps:
35-
- name: GH Runner bug workaround
36-
run: sysctl -w vm.mmap_rnd_bits=28
37-
- name: Install postgres
38-
run: |
39-
apt-get update && apt -y install postgresql
40-
which psql
41-
PGPASSWORD=xxx psql -h localhost -U spi_test spi_test -p 6000 -c "select 'ok';"
42-
env:
43-
COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
44-
DATABASEPOOL_SIZE: 8
4534
services:
46-
# Make sure the ports expose here (6000-6007) align with the ports
47-
# hard-coded in DatabasePool.runningDatabases().
48-
db-6000:
49-
image: postgres:16-alpine
50-
env:
51-
POSTGRES_DB: spi_test
52-
POSTGRES_USER: spi_test
53-
POSTGRES_PASSWORD: xxx
54-
ports:
55-
- '6000:5432'
56-
options: >-
57-
--health-cmd pg_isready
58-
--health-interval 10s
59-
--health-timeout 5s
60-
--health-retries 5
61-
db-6001:
62-
image: postgres:16-alpine
63-
env:
64-
POSTGRES_DB: spi_test
65-
POSTGRES_USER: spi_test
66-
POSTGRES_PASSWORD: xxx
67-
ports:
68-
- '6001:5432'
69-
options: >-
70-
--health-cmd pg_isready
71-
--health-interval 10s
72-
--health-timeout 5s
73-
--health-retries 5
74-
db-6002:
75-
image: postgres:16-alpine
76-
env:
77-
POSTGRES_DB: spi_test
78-
POSTGRES_USER: spi_test
79-
POSTGRES_PASSWORD: xxx
80-
ports:
81-
- '6002:5432'
82-
options: >-
83-
--health-cmd pg_isready
84-
--health-interval 10s
85-
--health-timeout 5s
86-
--health-retries 5
87-
db-6003:
35+
postgres:
8836
image: postgres:16-alpine
8937
env:
9038
POSTGRES_DB: spi_test
9139
POSTGRES_USER: spi_test
9240
POSTGRES_PASSWORD: xxx
9341
ports:
94-
- '6003:5432'
42+
- '5432:5432'
9543
options: >-
9644
--health-cmd pg_isready
9745
--health-interval 10s
9846
--health-timeout 5s
9947
--health-retries 5
100-
db-6004:
101-
image: postgres:16-alpine
102-
env:
103-
POSTGRES_DB: spi_test
104-
POSTGRES_USER: spi_test
105-
POSTGRES_PASSWORD: xxx
106-
ports:
107-
- '6004:5432'
108-
options: >-
109-
--health-cmd pg_isready
110-
--health-interval 10s
111-
--health-timeout 5s
112-
--health-retries 5
113-
db-6005:
114-
image: postgres:16-alpine
115-
env:
116-
POSTGRES_DB: spi_test
117-
POSTGRES_USER: spi_test
118-
POSTGRES_PASSWORD: xxx
119-
ports:
120-
- '6005:5432'
121-
options: >-
122-
--health-cmd pg_isready
123-
--health-interval 10s
124-
--health-timeout 5s
125-
--health-retries 5
126-
db-6006:
127-
image: postgres:16-alpine
128-
env:
129-
POSTGRES_DB: spi_test
130-
POSTGRES_USER: spi_test
131-
POSTGRES_PASSWORD: xxx
132-
ports:
133-
- '6006:5432'
134-
options: >-
135-
--health-cmd pg_isready
136-
--health-interval 10s
137-
--health-timeout 5s
138-
--health-retries 5
139-
db-6007:
140-
image: postgres:16-alpine
48+
steps:
49+
- name: GH Runner bug workaround
50+
run: sysctl -w vm.mmap_rnd_bits=28
51+
- name: Install postgres
52+
run: |
53+
apt-get update && apt -y install postgresql
54+
which psql
55+
PGPASSWORD=xxx psql -h postgres -U spi_test spi_test -p 5432 -c "select 'ok';"
14156
env:
142-
POSTGRES_DB: spi_test
143-
POSTGRES_USER: spi_test
144-
POSTGRES_PASSWORD: xxx
145-
ports:
146-
- '6007:5432'
147-
options: >-
148-
--health-cmd pg_isready
149-
--health-interval 10s
150-
--health-timeout 5s
151-
--health-retries 5
57+
COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
58+
DATABASEPOOL_SIZE: 8

0 commit comments

Comments
 (0)