improve same_worker UX clarity

This commit is contained in:
Ruben Fiszel
2022-11-17 18:03:07 +01:00
parent 77d9e57311
commit 255c7a14bd
2 changed files with 18 additions and 1 deletions
+10 -1
View File
@@ -847,8 +847,17 @@ mount {{
))?,
)
} else {
"".to_string()
r#"
mount {
dst: "/shared"
fstype: "tmpfs"
rw: true
options: "size=500000000"
}
"#
.to_string()
};
let result: error::Result<serde_json::Value> = match language {
None => {
return Err(Error::ExecutionErr(
@@ -10,6 +10,8 @@
import Button from './common/button/Button.svelte'
import { faRotateRight } from '@fortawesome/free-solid-svg-icons'
import { flowStateStore } from './flows/flowState'
import { flowStore } from './flows/flowStore'
import { Alert } from './common'
let testJobLoader: TestJobLoader
@@ -54,6 +56,12 @@
/>
<Splitpanes>
<Pane size={50} minSize={20} class="p-4">
{#if $flowStore.value.same_worker}
<div class="mb-1 bg-yellow-100 text-yellow-700 p-1 text-xs"
>Using same_worker does not preserve /shared across individual step tests</div
>
{/if}
<RunForm
runnable={{ summary: mod.summary ?? '', schema, description: '' }}
runAction={(_, args) => runTest(args)}