debug #10661
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Dave Verwer, Sven A. Schmidt, and other contributors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: Continuous Integration | |
on: | |
workflow_dispatch: | |
push: | |
schedule: | |
- cron: "0 8 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-linux: | |
name: Test | |
runs-on: ubuntu-latest | |
container: | |
image: registry.gitlab.com/finestructure/spi-base:46fc194706b255239d764c87f05f825ad9f98303 | |
options: --privileged | |
steps: | |
- name: GH Runner bug workaround | |
run: sysctl -w vm.mmap_rnd_bits=28 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: { 'fetch-depth': 0 } | |
- name: Install postgres | |
run: | | |
apt-get update && apt -y install postgresql | |
which psql | |
PGPASSWORD=xxx psql -h db-6000 -U spi_test spi_test -p 6000 -c "select 'ok';" || 0 | |
PGPASSWORD=xxx psql -h localhost -U spi_test spi_test -p 6000 -c "select 'ok';" || 0 | |
env: | |
COLLECTION_SIGNING_PRIVATE_KEY: ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }} | |
DATABASEPOOL_SIZE: 8 | |
services: | |
# Make sure the ports expose here (6000-6007) align with the ports | |
# hard-coded in DatabasePool.runningDatabases(). | |
db-6000: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6000:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6001: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6001:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6002: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6002:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6003: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6003:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6004: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6004:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6005: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6005:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6006: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6006:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
db-6007: | |
image: postgres:16-alpine | |
env: | |
POSTGRES_DB: spi_test | |
POSTGRES_USER: spi_test | |
POSTGRES_PASSWORD: xxx | |
ports: | |
- '6007:5432' | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 |