Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precommit checks #126

Merged
merged 1 commit into from
Aug 28, 2024
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
2 changes: 1 addition & 1 deletion src/ui/src/components/Workflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const data_headers = [


]
props.steps.forEach((step : any)=> { test.value[step.id] = {}; if(step.result.data)
props.steps.forEach((step : any)=> { test.value[step.id] = {}; if(step.result && step.result.data)
{Object.keys(step.result.data).forEach(async (key: string) => {

let val = await ((await fetch( "http://".concat(window.location.host).concat("/runs/data/").concat(step.result.data[key]).concat("/info"))).json())
Expand Down
6 changes: 4 additions & 2 deletions tests/test_module/test_rest_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
REST-based node that interfaces with WEI and provides various fake actions for testing purposes
"""

import time
from typing import Annotated

from fastapi import UploadFile
Expand Down Expand Up @@ -67,6 +68,7 @@ def transfer(
source: Annotated[Location[str], "the location to transfer from"] = "",
) -> StepResponse:
"""Transfers a sample from source to target"""
time.sleep(5)
return StepResponse.step_succeeded()


Expand All @@ -83,7 +85,7 @@ def synthesize(
print(protocol)

state.foobar = foo + bar

time.sleep(5)
return StepResponse.step_succeeded()


Expand All @@ -103,7 +105,7 @@ def measure_action(state: State, action: ActionRequest) -> StepResponse:
f.write("test")
with open("test2.txt", "w") as f:
f.write("test")

time.sleep(5)
return StepFileResponse(
StepStatus.SUCCEEDED,
files={"test_file": "test.txt", "test2_file": "test2.txt"},
Expand Down
Loading