Commit 29e86dfd authored by Mitar's avatar Mitar
Browse files

Use pipeline validation command.

parent 4948372a
Pipeline #109119375 failed with stages
in 9 minutes and 53 seconds
......@@ -460,16 +460,22 @@ def validate_installation(primitive_names, interface_version, installation, anno
image_interface_version = 'devel'
docker_image = f'registry.gitlab.com/datadrivendiscovery/images/primitives:ubuntu-{image_ubuntu_version}-{image_interface_version}'
new_cli_interface = True
has_pipeline_validate = True
elif interface_version in ['v2019.4.4']:
image_ubuntu_version = 'bionic-python36'
image_interface_version = interface_version
docker_image = f'registry.gitlab.com/datadrivendiscovery/images/primitives:ubuntu-{image_ubuntu_version}-{image_interface_version}'
new_cli_interface = False
has_pipeline_validate = False
else:
image_ubuntu_version = 'bionic-python36'
image_interface_version = interface_version
docker_image = f'registry.gitlab.com/datadrivendiscovery/images/primitives:ubuntu-{image_ubuntu_version}-{image_interface_version}'
new_cli_interface = True
if interface_version in ['v2019.6.7', 'v2019.11.10', 'v2020.1.9']:
has_pipeline_validate = False
else:
has_pipeline_validate = True
# Run a container which sleeps until we stop it. First we remove all existing Docker images to make the space for the new one.
if arguments.clean:
......@@ -885,6 +891,18 @@ def validate_installation(primitive_names, interface_version, installation, anno
'/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name),
], print_output=False, run_as_nobody=True)
if has_pipeline_validate:
# We use a pipeline validation, but ignore digest.
docker_exec(docker_container, [
'python3',
'-m',
'd3m',
'pipeline',
'validate',
'--ignore-digest',
'/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name),
], print_output=False, run_as_nobody=True)
# Disabled on older versions of the core package, because of the bug in the pipeline run validation CLI.
# See: https://gitlab.com/datadrivendiscovery/d3m/commit/8dbac7e7c1fcc763538e6836d3e664b77d73eeaa
if not new_cli_interface:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment