mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 03:48:09 +00:00
Add dotnet coverage task (#2062)
* checkpoint * some more progress * more progress * More progress * Now it's time to test it * It works locally 🎉 * Attempting clean build * fmt * temporarily stub out macos * missed a few * please be the last one * . * . * . * noop change to unstuck actions * . * . * Fix setup script * Some fixes * It works except for a race condition -- use a directory watcher to fix it * It works end to end! * Execute the commands using tokio's structs and timeout mechanism * It works.... for real this time * Undo timer changes * Cleanup * 🧹 * Fix import * . * PR comments * Fix clippy * Clippy whyyy * Only check dotnet path once * fmt * Fix a couple more comments
This commit is contained in:
@ -558,4 +558,40 @@ TASK_DEFINITIONS = {
|
||||
),
|
||||
],
|
||||
),
|
||||
TaskType.dotnet_coverage: TaskDefinition(
|
||||
features=[
|
||||
TaskFeature.target_exe,
|
||||
TaskFeature.target_env,
|
||||
TaskFeature.target_options,
|
||||
TaskFeature.target_timeout,
|
||||
TaskFeature.coverage_filter,
|
||||
TaskFeature.target_must_use_input,
|
||||
],
|
||||
vm=VmDefinition(compare=Compare.Equal, value=1),
|
||||
containers=[
|
||||
ContainerDefinition(
|
||||
type=ContainerType.setup,
|
||||
compare=Compare.Equal,
|
||||
value=1,
|
||||
permissions=[ContainerPermission.Read, ContainerPermission.List],
|
||||
),
|
||||
ContainerDefinition(
|
||||
type=ContainerType.readonly_inputs,
|
||||
compare=Compare.AtLeast,
|
||||
value=1,
|
||||
permissions=[ContainerPermission.Read, ContainerPermission.List],
|
||||
),
|
||||
ContainerDefinition(
|
||||
type=ContainerType.coverage,
|
||||
compare=Compare.Equal,
|
||||
value=1,
|
||||
permissions=[
|
||||
ContainerPermission.List,
|
||||
ContainerPermission.Read,
|
||||
ContainerPermission.Write,
|
||||
],
|
||||
),
|
||||
],
|
||||
monitor_queue=ContainerType.readonly_inputs,
|
||||
),
|
||||
}
|
||||
|
Reference in New Issue
Block a user