mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
Add generic coverage task (#763)
**Todo:** - [x] Finalize format for coverage file(s) - [x] Add service support - [x] Integration test - [x] Merge #926 - [x] Merge #929
This commit is contained in:
@ -80,6 +80,7 @@ class TaskFeature(Enum):
|
||||
expect_crash_on_failure = "expect_crash_on_failure"
|
||||
report_list = "report_list"
|
||||
minimized_stack_depth = "minimized_stack_depth"
|
||||
coverage_filter = "coverage_filter"
|
||||
|
||||
|
||||
# Permissions for an Azure Blob Storage Container.
|
||||
@ -147,6 +148,7 @@ class TaskState(Enum):
|
||||
|
||||
|
||||
class TaskType(Enum):
|
||||
coverage = "coverage"
|
||||
libfuzzer_fuzz = "libfuzzer_fuzz"
|
||||
libfuzzer_coverage = "libfuzzer_coverage"
|
||||
libfuzzer_crash_report = "libfuzzer_crash_report"
|
||||
|
@ -172,6 +172,7 @@ class TaskDetails(BaseModel):
|
||||
preserve_existing_outputs: Optional[bool]
|
||||
report_list: Optional[List[str]]
|
||||
minimized_stack_depth: Optional[int]
|
||||
coverage_filter: Optional[str]
|
||||
|
||||
@validator("check_retry_count", allow_reuse=True)
|
||||
def validate_check_retry_count(cls, value: int) -> int:
|
||||
@ -406,6 +407,7 @@ class TaskUnitConfig(BaseModel):
|
||||
ensemble_sync_delay: Optional[int]
|
||||
report_list: Optional[List[str]]
|
||||
minimized_stack_depth: Optional[int]
|
||||
coverage_filter: Optional[str]
|
||||
|
||||
# from here forwards are Container definitions. These need to be inline
|
||||
# with TaskDefinitions and ContainerTypes
|
||||
|
Reference in New Issue
Block a user