bitter-ability-32190
11/09/2022, 8:27 PMwitty-crayon-22786
11/09/2022, 8:35 PMforce_mutable
witty-crayon-22786
11/09/2022, 8:36 PMancient-vegetable-10556
11/09/2022, 8:39 PMancient-vegetable-10556
11/09/2022, 8:40 PMbitter-ability-32190
11/09/2022, 8:40 PMProcess
level, but I'm thinking at the user-level. E.g. what if they wanna edit a huge-ass file in experimental_shell_command
?bitter-ability-32190
11/09/2022, 8:41 PMwitty-crayon-22786
11/09/2022, 8:41 PMancient-vegetable-10556
11/09/2022, 8:41 PMexperimental_shell_command
needs an overhaul anyway 😉bitter-ability-32190
11/09/2022, 8:42 PMbitter-ability-32190
11/09/2022, 8:44 PMexperimental_shell_command
is only an example. Any user-defined code running in the sandbox is at risk. Which is why I'm prone to puntancient-vegetable-10556
11/09/2022, 8:44 PMbitter-ability-32190
11/09/2022, 8:44 PMpython_test
(for whatever reason) could also be a problemwitty-crayon-22786
11/09/2022, 8:44 PMe_s_c
will still need a way to declare inputsancient-vegetable-10556
11/09/2022, 8:44 PMwitty-crayon-22786
11/09/2022, 8:46 PMbitter-ability-32190
11/09/2022, 8:47 PMlint
and check
has the same affliction, but we aren't so much running "user code", so yeah I agree maybe isolate this to test
and run
?witty-crayon-22786
11/09/2022, 8:47 PMbitter-ability-32190
11/09/2022, 8:48 PMcp
is a valid solutionwitty-crayon-22786
11/09/2022, 8:48 PMbitter-ability-32190
11/10/2022, 9:55 AMbitter-ability-32190
11/10/2022, 1:52 PMwitty-crayon-22786
11/10/2022, 5:40 PMwitty-crayon-22786
11/10/2022, 5:41 PMwitty-crayon-22786
11/10/2022, 5:46 PMbitter-ability-32190
11/10/2022, 5:55 PMif you don’t use them multiple times, you will have wasted that effort.The only effort here being creating the symlink right? This is onyl important for sandbox creation, which otherwise would be materializing the file. So for only-ever-one-sandbox we'd pay
Cost(materialize-in-tempdir) + Cost(symlink)
vs Cost(materialize)
which honestly should be small, right?
Unless what you're alluding to is that we materialize file-by-file which could maybe be more expensive than materializing the whole digest in certain situations?witty-crayon-22786
11/10/2022, 6:00 PMThe only effort here being creating the symlink right?that, and marking them readonly, which we only do for immutable inputs
witty-crayon-22786
11/10/2022, 6:01 PMbitter-ability-32190
11/10/2022, 6:01 PMwitty-crayon-22786
11/10/2022, 6:01 PMwitty-crayon-22786
11/10/2022, 6:01 PMbitter-ability-32190
11/10/2022, 6:02 PMwitty-crayon-22786
11/10/2022, 6:02 PMbitter-ability-32190
11/10/2022, 6:02 PMwitty-crayon-22786
11/10/2022, 6:03 PMbitter-ability-32190
11/10/2022, 6:18 PMbitter-ability-32190
11/10/2022, 6:19 PMwitty-crayon-22786
11/10/2022, 6:21 PMwitty-crayon-22786
11/10/2022, 6:21 PMbitter-ability-32190
11/10/2022, 6:21 PMwitty-crayon-22786
11/10/2022, 6:21 PMwitty-crayon-22786
11/10/2022, 6:21 PMWhen we materialize a file, is it an extra syscall to mark readonly or writable?yes
bitter-ability-32190
11/10/2022, 6:22 PMwitty-crayon-22786
11/10/2022, 6:22 PMbitter-ability-32190
11/10/2022, 6:22 PMwitty-crayon-22786
11/10/2022, 6:23 PMwitty-crayon-22786
11/10/2022, 6:23 PMbitter-ability-32190
11/10/2022, 6:23 PMbitter-ability-32190
11/10/2022, 6:24 PMwitty-crayon-22786
11/10/2022, 6:24 PMwitty-crayon-22786
11/10/2022, 6:25 PMmaterialize_directory/materialize_directory(ReadOnly, 10000, 100)
time: [6.8972 s 6.9628 s 7.0245 s]
materialize_directory/materialize_directory(Writable, 10000, 100)
time: [5.1541 s 5.2723 s 5.3758 s]
witty-crayon-22786
11/10/2022, 6:25 PMbitter-ability-32190
11/10/2022, 6:26 PMwitty-crayon-22786
11/10/2022, 6:26 PMwitty-crayon-22786
11/10/2022, 6:26 PMbitter-ability-32190
11/10/2022, 6:26 PMwitty-crayon-22786
11/10/2022, 6:27 PMbitter-ability-32190
11/10/2022, 6:27 PMwitty-crayon-22786
11/10/2022, 6:27 PM