We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553f5b0 commit 19573b4Copy full SHA for 19573b4
tests/functional/cli/test_cli_artifacts.py
@@ -24,12 +24,24 @@
24
25
@pytest.fixture(scope="module")
26
def job_with_artifacts(gitlab_runner, project):
27
+ start_time = time.time()
28
+
29
project.files.create(data)
30
31
jobs = None
32
while not jobs:
33
time.sleep(0.5)
34
jobs = project.jobs.list(scope="success")
35
+ if time.time() - start_time > 60:
36
+ print("ERROR: job never succeeded")
37
+ for job in project.jobs.list():
38
+ job = project.jobs.get(job.id)
39
+ job.pprint()
40
+ if job.status == "failed":
41
+ print()
42
+ print("job log/trace:", job.trace())
43
44
+ assert None, "Fixture 'job_with_artifact' failed"
45
46
return project.jobs.get(jobs[0].id)
47
0 commit comments