Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!400
fixing aux_image_metadata.json missing from staging area
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fixing aux_image_metadata.json missing from staging area
misc
into
main
Overview
0
Commits
8
Pipelines
3
Changes
2
Merged
Charlotte Hausman
requested to merge
misc
into
main
3 years ago
Overview
0
Commits
8
Pipelines
3
Changes
2
Expand
0
0
Merge request reports
Compare
main
version 2
918d2f8e
3 years ago
version 1
ffc6b173
3 years ago
main (base)
and
latest version
latest version
8f49d9d0
8 commits,
3 years ago
version 2
918d2f8e
6 commits,
3 years ago
version 1
ffc6b173
4 commits,
3 years ago
2 files
+
17
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
apps/cli/executables/pexable/ingest_envoy/ingest_envoy/collectors.py
+
10
−
5
Options
import
glob
import
os
import
pathlib
import
shutil
import
subprocess
import
sys
import
logging
import
json
from
ingest_envoy.schema
import
AbstractTextFile
@@ -17,6 +12,9 @@ class ImageCollector:
self
.
logger
=
logging
.
getLogger
(
"
ingest_envoy
"
)
self
.
parameters
=
parameters
self
.
spl
=
parameters
[
"
spl
"
]
self
.
staging_source_dir
=
(
self
.
parameters
[
"
staging_area
"
]
+
"
/
"
+
self
.
parameters
[
"
workflowDir
"
]
)
def
collect_image_metadata
(
self
)
->
AbstractTextFile
:
file
=
open
(
"
./aux_image_metadata.json
"
,
"
r
"
)
@@ -34,6 +32,13 @@ class ImageCollector:
stdout
=
sys
.
stdout
,
stderr
=
sys
.
stderr
,
)
self
.
aux_file_to_staging
()
def
aux_file_to_staging
(
self
):
shutil
.
copy2
(
"
./aux_image_metadata.json
"
,
self
.
staging_source_dir
,
)
def
create_artifacts_name
(
self
):
name
=
"
pipeline_artifacts_
"
Loading