Skip to content

Commit

Permalink
probe jobs are not published. Fix #7833 (#7834)
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Aug 17, 2023
1 parent 33f7a9f commit 53e93d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/container/testingScripts/statusTracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@ def parse_result(listOfTasks, checkPublication=False):
if ('finished', total_jobs) in task['jobsPerStatus'].items():
result = 'TestPassed'
if checkPublication:
if finished_jobs == published_in_transfersdb and finished_jobs == published_in_dbs:
# remove probe jobs (job id of X-Y kind) if any from count
jobsToPublish = total_jobs
for job in task['jobs'].keys():
if '-' in job:
jobsToPublish -= 1
if published_in_transfersdb == jobsToPublish and published_in_dbs == jobsToPublish:
result = 'TestPassed'
elif failedPublications:
result = 'TestFailed'

else:
result = 'TestRunning'
elif any(k in task['jobsPerStatus'] for k in ('failed', 'held')):
Expand Down

0 comments on commit 53e93d5

Please sign in to comment.