Mount repo inside the sandbox #13
Labels
No Label
bug
component
executor
component
framework
component
parser
component
UI
duplicate
enhancement
help wanted
invalid
priority
p0
priority
p1
priority
p2
priority
p3
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/JOJ3#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If we execute everything inside the sandbox, we do not want to copy in the whole repo every stage.
See https://github.com/criyle/go-judge/blob/master/mount.yaml
It can be tricky as drone use
/tmp/drone-${RANDOM}/drone/src
as workspace. (See https://docs.drone.io/pipeline/ssh/syntax/workspace/)Maybe we should not mount it. We just provide extra options for the sandbox executor so that it can add everything in the workspace to
copyIn
.copyIn
field supports reading local files and add them to sandbox. As the repo size is not large and both src and dst use tmpfs, it will not be a bottleneck to copy all the files in the repo to the sandbox.Tested with
wrk
, copy 30 3KB files from non-tmpfs src to the disk will cost 1ms.