Commit 5dbabebf authored by Mitar's avatar Mitar

Match pipeline check to pipeline CI.

parent 9236ec2e
......@@ -743,10 +743,27 @@ def validate_installation(primitive_names, interface_version, installation, anno
for pipeline_name in pipeline_names:
if pipeline_name in pipelines_with_meta:
# Checked as a standard pipeline (Dataset inputs and DataFrame predictions output).
docker_exec(docker_container, ['python3', '-m', 'd3m.metadata.pipeline', '-c', '-p', '/tmp/pipelines', '/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name)], print_output=False, run_as_nobody=True)
docker_exec(docker_container, [
'python3',
'-m',
'd3m.metadata.pipeline',
'--strict-resolving',
'--check',
'--pipelines-path', '/tmp/pipelines',
'/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name),
], print_output=False, run_as_nobody=True)
else:
# Checked as a non-standard pipeline (any inputs and outputs are allowed).
docker_exec(docker_container, ['python3', '-m', 'd3m.metadata.pipeline', '-c', '-t', '-p', '/tmp/pipelines', '/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name)], print_output=False, run_as_nobody=True)
docker_exec(docker_container, [
'python3',
'-m',
'd3m.metadata.pipeline',
'--strict-resolving',
'--check',
'--not-standard-pipeline',
'--pipelines-path', '/tmp/pipelines',
'/tmp/pipelines/{pipeline_name}'.format(pipeline_name=pipeline_name),
], print_output=False, run_as_nobody=True)
except Exception as error:
error_count += 1
......
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