#1460  mount external volume for integration test purposes?
Closed
Jerome St-Louis opened 10 months ago

How would you recommend to address a use case for integration testing purposes within a shell executor where a very large amount of input and golden files comparison data is necessary? Currently we're relying on ~68 GB of data for these tests. If there would be a way to mount an external volume, or to make some directory available for the Docker, I could set up a OneDev pipeline step where I manually trigger this comprehensive integration testing step on successful candidate integration builds.

Thank you!

Could this be done with a particular Job Executor that gets --mount ( https://docs.docker.com/storage/volumes/ ) Run Options for a Server Docker Executor?

--mount source=/test-data/,destination=/path/in/container,readonly

Robin Shen commented 10 months ago

Using run options of docker executor is suggested approach in this case.

PS: The command step does not have option to mount external volumes as OneDev tries to make the build reproducible, and external dependencies are not encouraged.

Jerome St-Louis commented 10 months ago

Right, thank you.

These large input and golden files are dependencies to further verify a successful build (integration testing), but not to produce it.

Robin Shen changed state to 'Closed' 10 months ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Minor
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1460
Please wait...
Page is in error, reload to recover