Skip to content

Commit

Permalink
Test: Store API logs (#2353)
Browse files Browse the repository at this point in the history
* Test: Store API logs

* Feat: Copy logs to artifacts

* Chore: Try workflow without uploading logs

* Test: Avoid waiting for files

* Chore: Upload logs to artifacts

* Test: Remove sleep
  • Loading branch information
carlosmondra authored Sep 25, 2024
1 parent ac4c826 commit d5f1f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ jobs:
TEST_FILES=$(circleci tests glob "tests/test_*.py" | circleci tests split --split-by=timings)
mkdir test-reports
pytest --durations=0 --junitxml=test-reports/junit.xml --driver Firefox --driver-path tests/drivers/geckodriver $TEST_FILES
- run:
name: Copy API logs to artifacts
command: |
cp ~/openreview/logs/* ~/openreview-py-repo/test-reports/
cp ~/openreview-v2/logs/* ~/openreview-py-repo/test-reports/
- store_test_results:
path: test-reports
- store_artifacts:
Expand Down
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def await_queue():
jobs = super_client.get_jobs_status()
jobCount = 0
for jobName, job in jobs.items():
if jobName == 'fileUploaderQueueStatus' or jobName == 'fileDeletionQueueStatus':
continue
jobCount += job.get('waiting', 0) + job.get('active', 0) + job.get('delayed', 0)

if jobCount == 0:
Expand Down

0 comments on commit d5f1f8c

Please sign in to comment.