Skip to content

Commit

Permalink
XX debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Mar 18, 2024
1 parent fea7a19 commit ac3f832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ def test_real_pr(config: Config, request, pod: PodData, host: Host, bots_sha: st

# wait until the unit-test got run and published, i.e. until the non-chunked raw log file exists
for _retry in range(60):
m = re.search(r'pull-1-[a-z0-9-]*-unit-tests/log(?=<)', get_s3(config, pod, 'logs/'))
logs_dir = get_s3(config, pod, 'logs/')
m = re.search(r'pull-1-[a-z0-9-]*-unit-tests/log(?=<)', logs_dir)
if m:
log_name = m.group(0)
break
Expand All @@ -699,6 +700,7 @@ def test_real_pr(config: Config, request, pod: PodData, host: Host, bots_sha: st

# validate test attachment if we ran cockpituous' own tests
if pr_repo.endswith('/cockpituous'):
print(f'----- S3 logs/ dir -----\n{logs_dir}\n-----------------')
slug = os.path.dirname(log_name) # strip off '/log'
assert 'heisenberg compensator' in get_s3(config, pod, f'logs/{slug}/bogus.log')
assert 'subdir-file' in get_s3(config, pod, f'logs/{slug}/data/subdir-file.txt')
Expand Down

0 comments on commit ac3f832

Please sign in to comment.