Skip to content

Commit b157f8b

Browse files
committed
revert port change
1 parent 2530c78 commit b157f8b

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

.github/workflows/coprocessor-cargo-tests.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ jobs:
120120
run: |
121121
nohup docker compose up -d --build db-migration > /tmp/db-init.log 2>&1 &
122122
working-directory: coprocessor/fhevm-engine/tfhe-worker
123-
env:
124-
DB_HOST_PORT: 15432
125123

126124
- name: Setup Rust toolchain file
127125
run: cp coprocessor/fhevm-engine/rust-toolchain.toml .
@@ -163,7 +161,7 @@ jobs:
163161

164162
- name: Compile tests with coverage instrumentation
165163
env:
166-
DATABASE_URL: postgresql://postgres:postgres@localhost:15432/coprocessor
164+
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/coprocessor
167165
SQLX_OFFLINE: 'true'
168166
TEST_PACKAGE: ${{ matrix.package }}
169167
run: |
@@ -201,23 +199,9 @@ jobs:
201199
fi
202200
echo "Database migration completed"
203201
204-
- name: Verify database is accessible
205-
if: ${{ matrix.needs_db }}
206-
run: |
207-
echo "=== Docker containers ==="
208-
docker ps -a
209-
echo "=== Port mapping for db container ==="
210-
docker port db || true
211-
echo "=== db-init.log ==="
212-
cat /tmp/db-init.log || true
213-
echo "=== Checking localhost:15432 ==="
214-
docker exec db psql -U postgres -c '\l' || true
215-
echo "=== Checking from host ==="
216-
PGPASSWORD=postgres psql -h localhost -p 15432 -U postgres -c '\l' 2>&1 || true
217-
218202
- name: Run tests with coverage
219203
env:
220-
DATABASE_URL: postgresql://postgres:postgres@localhost:15432/coprocessor
204+
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/coprocessor
221205
SQLX_OFFLINE: 'true'
222206
COPROCESSOR_TEST_LOCALHOST: '1'
223207
TEST_GLOBAL_LOCALSTACK: ${{ matrix.needs_localstack && '1' || '0' }}

.github/workflows/coprocessor-gpu-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ jobs:
171171
run: |
172172
nohup docker compose up -d --build db-migration > /tmp/db-init.log 2>&1 &
173173
working-directory: coprocessor/fhevm-engine/tfhe-worker
174-
env:
175-
DB_HOST_PORT: 15432
176174

177175
- name: Use Node.js
178176
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
@@ -220,7 +218,7 @@ jobs:
220218
env:
221219
IS_MERGE_QUEUE: ${{ startsWith(github.head_ref, 'mergify/merge-queue/') && '1' || '0' }}
222220
run: |
223-
export DATABASE_URL=postgresql://postgres:postgres@localhost:15432/coprocessor
221+
export DATABASE_URL=postgresql://postgres:postgres@localhost:5432/coprocessor
224222
export COPROCESSOR_TEST_LOCALHOST=1
225223
# Merge queue: leave unset so supported_types() defaults to full matrix.
226224
# PR CI: run only FHEUint64 for faster feedback.

coprocessor/fhevm-engine/tfhe-worker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
POSTGRES_USER: postgres
1010
POSTGRES_PASSWORD: postgres
1111
ports:
12-
- '${DB_HOST_PORT:-5432}:5432'
12+
- '5432:5432'
1313
healthcheck:
1414
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
1515
interval: 10s

0 commit comments

Comments
 (0)