Skip to content

Commit

Permalink
Try to debug GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Jan 31, 2024
1 parent 3e01748 commit 47ccdf3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
# run test suite
- name: Run pytests
run: |
pytest -m "quick or ci" --verbose --exitfirst --cov=src tests/
pytest -m "quick or ci" --capture=no --verbose --exitfirst --cov=src tests/
10 changes: 8 additions & 2 deletions tests/retrieval/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def _run(
while ((len(active_processes) < process_count) and
(len(pending_processes) > 0)):
p = pending_processes.pop(0)
print(f"Starting process {p.name}")
p.start()
active_processes.append(p)
print(f"Started process {p.name}")
Expand All @@ -230,6 +231,7 @@ def _run(
newly_finished_processes.append(p)

for p in newly_finished_processes:
print(f"Joining process {p.name}")
p.join()
active_processes.remove(p)
container_factory.remove_container(p.name.split(":")[0])
Expand All @@ -239,8 +241,12 @@ def _run(
if len(active_processes) == 0 and len(pending_processes) == 0:
break

if len(newly_finished_processes) == 0:
time.sleep(2)
time.sleep(1)
print("Waiting ...")
print(
f"Pending | Active | Finished: {len(pending_processes)} |" +
f" {len(active_processes)} | {len(finished_processes)}"
)


def _point_config_to_test_data(config: src.types.Config) -> None:
Expand Down
1 change: 0 additions & 1 deletion tests/retrieval/test_get_ils_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@pytest.mark.quick
def test_get_ils_params() -> None:
for month in [1, 5, 11]:
print(month)
src.retrieval.utils.ils.get_ils_params(
61, datetime.date(2020, month, 1)
)
Expand Down

0 comments on commit 47ccdf3

Please sign in to comment.