Skip to content

Commit ed81a05

Browse files
committed
remove debug logs for integration tests
1 parent 9d5f624 commit ed81a05

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ jobs:
5757
# uncomment these next few lines and the corresponding log import
5858
# in the setup script you're trying to debug if you're having trouble
5959
# in CI. All the best, brave engineer ( ̄^ ̄ )ゞ
60-
continue-on-error: true
60+
# continue-on-error: true
6161

62-
- name: Upload Docker Logs
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: docker-logs
66-
path: |
67-
./test-results/logs-before-tests.txt
68-
./test-results/logs-after-tests.txt
62+
# - name: Upload Docker Logs
63+
# uses: actions/upload-artifact@v4
64+
# with:
65+
# name: docker-logs
66+
# path: |
67+
# ./test-results/logs-before-tests.txt
68+
# ./test-results/logs-after-tests.txt
6969

70-
- name: Exit with proper code
71-
if: steps.run_unit_and_integration_tests.outcome == 'failure'
72-
run: exit 1 # Force the workflow to fail if tests failed
70+
# - name: Exit with proper code
71+
# if: steps.run_unit_and_integration_tests.outcome == 'failure'
72+
# run: exit 1 # Force the workflow to fail if tests failed
7373

7474
- name: Upload coverage reports to Codecov
7575
uses: codecov/codecov-action@v5

setup-scripts/unit_and_integration_tests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

3-
# set -e # Exit immediately if a command exits with a non-zero status. Comment this if debugging in CI
3+
set -e # Exit immediately if a command exits with a non-zero status. Comment this if debugging in CI
44
docker compose down --volumes --remove-orphans
55
docker compose -f docker-compose-integration.yaml up -d
66

77
# wait for Aidbox to finish running before...
88
docker compose -f docker-compose-integration.yaml logs aidbox-seeder | grep -q "Finished configuring Aidbox and database"
99

1010
# uncomment these and the corresponding block in ci.yaml to get logs in CI. Make sure also to comment the set -e command at the top of this file too!
11-
mkdir test-results
12-
docker compose -f docker-compose-integration.yaml logs > test-results/logs-before-tests.txt
11+
# mkdir test-results
12+
# docker compose -f docker-compose-integration.yaml logs > test-results/logs-before-tests.txt
1313

1414
# make an env file
1515
touch .env.integration
@@ -36,8 +36,8 @@ eval $JEST_CMD
3636
JEST_EXIT_CODE=$?
3737

3838
# uncomment these and the corresponding block in ci.yaml to get logs in CI
39-
docker compose -f docker-compose-e2e.yaml logs query-connector >> test-results/logs-after-tests.txt
40-
docker compose -f docker-compose-e2e.yaml logs aidbox >> test-results/logs-after-tests.txt
39+
# docker compose -f docker-compose-e2e.yaml logs query-connector >> test-results/logs-after-tests.txt
40+
# docker compose -f docker-compose-e2e.yaml logs aidbox >> test-results/logs-after-tests.txt
4141

4242
# Teardown containers
4343
docker compose -f docker-compose-integration.yaml down

0 commit comments

Comments
 (0)