Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions codebundles/generics-editor/runbook.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ ${TASK_TITLE}
... cmd=${command}
... env=${raw_env_vars}
... &{secret_kwargs}
... timeout_seconds=${TIMEOUT_SECONDS}

${history}= RW.CLI.Pop Shell History

Expand Down Expand Up @@ -100,7 +101,12 @@ Suite Initialization
... description=A useful task title. This is useful for helping find this generic task with RunWhen Assistants.
... pattern=\w*
... example="Run a bash command"

${TIMEOUT_SECONDS}= RW.Core.Import User Variable TIMEOUT_SECONDS
... type=string
... description=The amount of seconds before the command is killed.
... pattern=\w*
... example=300
... default=300
Comment thread
cursor[bot] marked this conversation as resolved.
# env vars management
${env_vars_json}= RW.Core.Import User Variable CONFIG_ENV_MAP
... type=string
Expand Down Expand Up @@ -138,4 +144,5 @@ Suite Initialization
Set Suite Variable ${INTERPRETER} ${INTERPRETER}
Set Suite Variable ${GEN_CMD} ${GEN_CMD}
Set Suite Variable ${raw_env_vars} ${raw_env_vars}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${TIMEOUT_SECONDS}
13 changes: 10 additions & 3 deletions codebundles/generics-editor/sli.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ ${TASK_TITLE}
... cmd=${command}
... env=${raw_env_vars}
... &{secret_kwargs}

... timeout_seconds=${TIMEOUT_SECONDS}

${metric_file}= Set Variable ${raw_env_vars["CODEBUNDLE_TEMP_DIR"]}/metric_data.json
${metric}= Evaluate json.load(open(r'''${metric_file}''')) if os.path.exists(r'''${metric_file}''') and os.path.getsize(r'''${metric_file}''') > 0 else 0 modules=json,os

Expand All @@ -77,7 +78,12 @@ Suite Initialization
... description=A useful task title. This is useful for helping find this generic task with RunWhen Assistants.
... pattern=\w*
... example="Run a bash command"

${TIMEOUT_SECONDS}= RW.Core.Import User Variable TIMEOUT_SECONDS
... type=string
... description=The amount of seconds before the command is killed.
... pattern=\w*
... example=300
... default=300
# env vars management
${env_vars_json}= RW.Core.Import User Variable CONFIG_ENV_MAP
... type=string
Expand Down Expand Up @@ -114,4 +120,5 @@ Suite Initialization
Set Suite Variable ${INTERPRETER} ${INTERPRETER}
Set Suite Variable ${GEN_CMD} ${GEN_CMD}
Set Suite Variable ${raw_env_vars} ${raw_env_vars}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${TIMEOUT_SECONDS}
11 changes: 9 additions & 2 deletions codebundles/tool-builder/runbook.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ ${TASK_TITLE}
... cmd=${command}
... env=${raw_env_vars}
... &{secret_kwargs}
... timeout_seconds=${TIMEOUT_SECONDS}

${history}= RW.CLI.Pop Shell History

Expand Down Expand Up @@ -100,7 +101,12 @@ Suite Initialization
... description=A useful task title. This is useful for helping find this generic task with RunWhen Assistants.
... pattern=\w*
... example="Run a bash command"

${TIMEOUT_SECONDS}= RW.Core.Import User Variable TIMEOUT_SECONDS
... type=string
... description=The amount of seconds before the command is killed.
... pattern=\w*
... example=300
... default=300
# env vars management
${env_vars_json}= RW.Core.Import User Variable CONFIG_ENV_MAP
... type=string
Expand Down Expand Up @@ -138,4 +144,5 @@ Suite Initialization
Set Suite Variable ${INTERPRETER} ${INTERPRETER}
Set Suite Variable ${GEN_CMD} ${GEN_CMD}
Set Suite Variable ${raw_env_vars} ${raw_env_vars}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${TIMEOUT_SECONDS}
11 changes: 9 additions & 2 deletions codebundles/tool-builder/sli.robot
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ ${TASK_TITLE}
... cmd=${command}
... env=${raw_env_vars}
... &{secret_kwargs}
... timeout_seconds=${TIMEOUT_SECONDS}

${metric_file}= Set Variable ${raw_env_vars["CODEBUNDLE_TEMP_DIR"]}/metric_data.json
${metric}= Evaluate json.load(open(r'''${metric_file}''')) if os.path.exists(r'''${metric_file}''') and os.path.getsize(r'''${metric_file}''') > 0 else 0 modules=json,os
Expand All @@ -77,7 +78,12 @@ Suite Initialization
... description=A useful task title. This is useful for helping find this generic task with RunWhen Assistants.
... pattern=\w*
... example="Run a bash command"

${TIMEOUT_SECONDS}= RW.Core.Import User Variable TIMEOUT_SECONDS
... type=string
... description=The amount of seconds before the command is killed.
... pattern=\w*
... example=300
... default=300
# env vars management
${env_vars_json}= RW.Core.Import User Variable CONFIG_ENV_MAP
... type=string
Expand Down Expand Up @@ -114,4 +120,5 @@ Suite Initialization
Set Suite Variable ${INTERPRETER} ${INTERPRETER}
Set Suite Variable ${GEN_CMD} ${GEN_CMD}
Set Suite Variable ${raw_env_vars} ${raw_env_vars}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${secret_objs} ${secret_objs}
Set Suite Variable ${TIMEOUT_SECONDS}