mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-21 05:42:14 +00:00
Support for retention policies on containers (#3501)
- [x] ability to specify a retention period on a container, which applies to newly-created blobs - [x] specify default retention periods in templates from CLI side There's a small breaking change to the Python JobHelper class.
This commit is contained in:
committed by
Cheick Keita
parent
80fe109a50
commit
1cee562cf5
@ -74,15 +74,15 @@ def main() -> None:
|
||||
helper.create_containers()
|
||||
|
||||
of.containers.files.upload_file(
|
||||
helper.containers[ContainerType.tools], f"{args.tools}/source-coverage.sh"
|
||||
helper.container_name(ContainerType.tools), f"{args.tools}/source-coverage.sh"
|
||||
)
|
||||
|
||||
containers = [
|
||||
(ContainerType.setup, helper.containers[ContainerType.setup]),
|
||||
(ContainerType.analysis, helper.containers[ContainerType.analysis]),
|
||||
(ContainerType.tools, helper.containers[ContainerType.tools]),
|
||||
(ContainerType.setup, helper.container_name(ContainerType.setup)),
|
||||
(ContainerType.analysis, helper.container_name(ContainerType.analysis)),
|
||||
(ContainerType.tools, helper.container_name(ContainerType.tools)),
|
||||
# note, analysis is typically for crashes, but this is analyzing inputs
|
||||
(ContainerType.crashes, helper.containers[ContainerType.inputs]),
|
||||
(ContainerType.crashes, helper.container_name(ContainerType.inputs)),
|
||||
]
|
||||
|
||||
of.logger.info("Creating generic_analysis task")
|
||||
|
@ -61,15 +61,15 @@ def main() -> None:
|
||||
helper.upload_inputs(args.inputs)
|
||||
|
||||
of.containers.files.upload_file(
|
||||
helper.containers[ContainerType.tools], f"{args.tools}/source-coverage.sh"
|
||||
helper.container_name(ContainerType.tools), f"{args.tools}/source-coverage.sh"
|
||||
)
|
||||
|
||||
containers = [
|
||||
(ContainerType.setup, helper.containers[ContainerType.setup]),
|
||||
(ContainerType.analysis, helper.containers[ContainerType.analysis]),
|
||||
(ContainerType.tools, helper.containers[ContainerType.tools]),
|
||||
(ContainerType.setup, helper.container_name(ContainerType.setup)),
|
||||
(ContainerType.analysis, helper.container_name(ContainerType.analysis)),
|
||||
(ContainerType.tools, helper.container_name(ContainerType.tools)),
|
||||
# note, analysis is typically for crashes, but this is analyzing inputs
|
||||
(ContainerType.crashes, helper.containers[ContainerType.inputs]),
|
||||
(ContainerType.crashes, helper.container_name(ContainerType.inputs)),
|
||||
]
|
||||
|
||||
of.logger.info("Creating generic_analysis task")
|
||||
|
Reference in New Issue
Block a user