Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
2b5e7af5
Commit
2b5e7af5
authored
1 year ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
fix test (and potential bug)
parent
dff7f1e6
Branches
Branches containing commit
No related tags found
1 merge request
!343
added mechanism and structure to check if a task is a 'summary' task
Pipeline
#73244
passed
1 year ago
Stage: test
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/models.py
+9
-5
9 additions, 5 deletions
atdb/taskdatabase/models.py
with
9 additions
and
5 deletions
atdb/taskdatabase/models.py
+
9
−
5
View file @
2b5e7af5
...
@@ -149,11 +149,15 @@ def check_if_summary(task):
...
@@ -149,11 +149,15 @@ def check_if_summary(task):
for backward compatiblity reasons this is done very ugly, by looking if certain filenames contain the substring
'
summary
'
for backward compatiblity reasons this is done very ugly, by looking if certain filenames contain the substring
'
summary
'
"""
"""
# look in the outputs.tar_archive
# look in the outputs.tar_archive
try
:
tars
=
task
.
outputs
[
'
tar_archive
'
]
tars
=
task
.
outputs
[
'
tar_archive
'
]
for
tar
in
tars
:
for
tar
in
tars
:
if
'
summary
'
in
tar
[
'
basename
'
]:
if
'
summary
'
in
tar
[
'
basename
'
]:
# a summary tarball was found, this task is a summary task
# a summary tarball was found, this task is a summary task
return
True
return
True
except
:
# no 'tar_archive' was found
return
False
return
False
return
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment