Build branch save-params with version save-params (cc910b4)

Build pipeline: viash-hub.htrnaseq.save-params-7scdj

Source commit: cc910b4284

Source message: add save_params to runner
This commit is contained in:
CI
2025-05-06 15:25:13 +00:00
parent d67e37efb9
commit ae146ee219
76 changed files with 339 additions and 111 deletions

View File

@@ -22,14 +22,16 @@ argument_groups:
multiple_sep: ";"
- name: "Outputs"
arguments:
- type: "string"
- type: "file"
name: "--output"
description: "The output YAML file\n"
info: null
example:
- "output.yaml"
must_exist: true
create_parent: true
required: true
direction: "input"
direction: "output"
multiple: false
multiple_sep: ";"
resources:
@@ -146,7 +148,7 @@ build_info:
output: "target/executable/utils/save_params"
executable: "target/executable/utils/save_params/save_params"
viash_version: "0.9.2"
git_commit: "afdc3f4ed8c09d39a40ba036f794b7061a689bd6"
git_commit: "cc910b428428dd32f183df0c2009fc36e75394e0"
git_remote: "https://github.com/viash-hub/htrnaseq"
package_config:
name: "htrnaseq"

View File

@@ -453,9 +453,9 @@ RUN pip install --upgrade pip && \
pip install --upgrade --no-cache-dir "pyyaml"
LABEL org.opencontainers.image.description="Companion container for running component utils save_params"
LABEL org.opencontainers.image.created="2025-05-06T08:16:06Z"
LABEL org.opencontainers.image.created="2025-05-06T14:35:26Z"
LABEL org.opencontainers.image.source="https://github.com/viash-hub/htrnaseq"
LABEL org.opencontainers.image.revision="afdc3f4ed8c09d39a40ba036f794b7061a689bd6"
LABEL org.opencontainers.image.revision="cc910b428428dd32f183df0c2009fc36e75394e0"
LABEL org.opencontainers.image.version="save-params"
VIASHDOCKER
@@ -588,7 +588,7 @@ function ViashHelp {
echo ""
echo "Outputs:"
echo " --output"
echo " type: string, required parameter"
echo " type: file, required parameter, output, file must exist"
echo " example: output.yaml"
echo " The output YAML file"
echo ""
@@ -958,6 +958,11 @@ if [[ -n "$VIASH_META_MEMORY_PIB" ]]; then
fi
fi
# create parent directories of output files, if so desired
if [ ! -z "$VIASH_PAR_OUTPUT" ] && [ ! -d "$(dirname "$VIASH_PAR_OUTPUT")" ]; then
mkdir -p "$(dirname "$VIASH_PAR_OUTPUT")"
fi
if [ "$VIASH_ENGINE_ID" == "native" ] ; then
if [ "$VIASH_MODE" == "run" ]; then
VIASH_CMD="bash"
@@ -970,6 +975,11 @@ fi
if [[ "$VIASH_ENGINE_TYPE" == "docker" ]]; then
# detect volumes from file arguments
VIASH_CHOWN_VARS=()
if [ ! -z "$VIASH_PAR_OUTPUT" ]; then
VIASH_DIRECTORY_MOUNTS+=( "$(ViashDockerAutodetectMountArg "$VIASH_PAR_OUTPUT")" )
VIASH_PAR_OUTPUT=$(ViashDockerAutodetectMount "$VIASH_PAR_OUTPUT")
VIASH_CHOWN_VARS+=( "$VIASH_PAR_OUTPUT" )
fi
if [ ! -z "$VIASH_META_RESOURCES_DIR" ]; then
VIASH_DIRECTORY_MOUNTS+=( "$(ViashDockerAutodetectMountArg "$VIASH_META_RESOURCES_DIR")" )
VIASH_META_RESOURCES_DIR=$(ViashDockerAutodetectMount "$VIASH_META_RESOURCES_DIR")
@@ -1085,8 +1095,6 @@ def decode_params_yaml(encoded_yaml):
return yaml_data
print(par['params_yaml'])
params = decode_params_yaml(par['params_yaml'])
with open(par["output"], 'w') as f:
@@ -1101,6 +1109,9 @@ VIASHEOF
if [[ "$VIASH_ENGINE_TYPE" == "docker" ]]; then
# strip viash automount from file paths
if [ ! -z "$VIASH_PAR_OUTPUT" ]; then
VIASH_PAR_OUTPUT=$(ViashDockerStripAutomount "$VIASH_PAR_OUTPUT")
fi
if [ ! -z "$VIASH_META_RESOURCES_DIR" ]; then
VIASH_META_RESOURCES_DIR=$(ViashDockerStripAutomount "$VIASH_META_RESOURCES_DIR")
fi
@@ -1116,4 +1127,11 @@ if [[ "$VIASH_ENGINE_TYPE" == "docker" ]]; then
fi
# check whether required files exist
if [ ! -z "$VIASH_PAR_OUTPUT" ] && [ ! -e "$VIASH_PAR_OUTPUT" ]; then
ViashError "Output file '$VIASH_PAR_OUTPUT' does not exist."
exit 1
fi
exit 0