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
!1601
don't create artifacts tars for curation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
don't create artifacts tars for curation
fixing-full-ui-launching
into
2.8.2.3-DEVELOPMENT
Overview
0
Commits
4
Pipelines
4
Changes
3
Merged
Charlotte Hausman
requested to merge
fixing-full-ui-launching
into
2.8.2.3-DEVELOPMENT
1 year ago
Overview
0
Commits
4
Pipelines
4
Changes
3
Expand
0
0
Merge request reports
Compare
2.8.2.3-DEVELOPMENT
version 3
9354c4d2
1 year ago
version 2
c06a7a8e
1 year ago
version 1
6dd3b489
1 year ago
2.8.2.3-DEVELOPMENT (base)
and
latest version
latest version
5fc93c41
4 commits,
1 year ago
version 3
9354c4d2
3 commits,
1 year ago
version 2
c06a7a8e
2 commits,
1 year ago
version 1
6dd3b489
1 commit,
1 year ago
3 files
+
41
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
apps/cli/executables/pexable/ingest_envoy/ingest_envoy/ingestion_manifest.py
+
22
−
2
Options
@@ -440,11 +440,19 @@ class IngestionManifestBuilder:
destination_dir
=
self
.
manifest_destination_dir
,
)
artifacts_ap
=
self
.
_build_artifacts_product
()
if
is_full_curation
:
# find the existing artifacts tar file name
artifacts_ap
=
self
.
_find_existing_record
(
self
.
files_found
)
else
:
# build new artifacts tar
artifacts_ap
=
self
.
_build_artifacts_product
()
if
artifacts_ap
not
in
manifest
.
output_group
.
ancillary_products
:
manifest
.
output_group
.
ancillary_products
.
append
(
artifacts_ap
)
manifest_file
=
manifest
.
write
()
self
.
write_ingestion_artifacts_tar
(
self
.
manifest_destination_dir
/
artifacts_ap
.
filename
)
if
not
is_full_curation
:
# we're running initial ingestion, make a new artifacts tar
self
.
write_ingestion_artifacts_tar
(
self
.
manifest_destination_dir
/
artifacts_ap
.
filename
)
return
manifest
,
manifest_file
@@ -548,6 +556,18 @@ class IngestionManifestBuilder:
AncillaryProductType
.
INGESTION_ARTIFACTS
,
IngestionManifestBuilder
.
_build_artifacts_filename
()
)
@staticmethod
def
_find_existing_record
(
available_files
:
list
)
->
AncillaryProduct
:
"""
Find an existing artifacts tar for curation
:param available_files: existing files list
:return: Ancillary Product of existing tar
"""
for
file
in
available_files
:
if
INGESTION_ARTIFACTS_NAME
in
file
.
name
:
return
AncillaryProduct
(
AncillaryProductType
.
INGESTION_ARTIFACTS
,
file
.
name
)
def
write_ingestion_artifacts_tar
(
self
,
artifacts_path
:
Path
)
->
tarfile
.
TarFile
:
"""
Take the list of files and write a tar file for inclusion in the archive.
Loading