Skip to content

Commit

Permalink
connectors-ci: force compression to GZIP on export for tests (#26500)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed May 24, 2023
1 parent 7d7996f commit 75b051d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ci_connector_ops/ci_connector_ops/pipelines/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import click
import git
from ci_connector_ops.utils import DESTINATION_CONNECTOR_PATH_PREFIX, SOURCE_CONNECTOR_PATH_PREFIX, Connector, get_connector_name_from_path
from dagger import Config, Connection, Container, DaggerError, File, QueryError
from dagger import Config, Connection, Container, DaggerError, File, ImageLayerCompression, QueryError
from more_itertools import chunked

if TYPE_CHECKING:
Expand Down Expand Up @@ -346,7 +346,7 @@ async def export_container_to_tarball(
tar_file_name = f"{context.connector.technical_name}_{context.git_revision}.tar"
tar_file_name = slugify(tar_file_name)
local_path = Path(f"{context.host_image_export_dir_path}/{tar_file_name}")
export_success = await container.export(str(local_path))
export_success = await container.export(str(local_path), forced_compression=ImageLayerCompression.Gzip)
if export_success:
exported_file = (
context.dagger_client.host().directory(context.host_image_export_dir_path, include=[tar_file_name]).file(tar_file_name)
Expand Down

0 comments on commit 75b051d

Please sign in to comment.