Adding extra container to tasks (#2847)

* adding extra container to tasks

* setup expand

* build fix

* generate docs

* build fix

* build fix

* build fix

* format

* format

* build fix

* fix extra container references

* format

* Update "Needs Triage" label to the one we use. (#2845)

* Report extension errors (#2846)

Old failure message:
```
failed to launch extension
```

New failure message:

```
failed to launch extension(s): Errors for extension 'CustomScriptExtension':
:Error: ProvisioningState/failed/3 (Provisioning failed) - Failed to download all specified files. Exiting. Error Message: The remote server returned an error: (400) Bad Request.
```

* Sematically validate notification configs (#2850)

* Add new command

* Update remaining jinja templates and references to use scriban

* Add ado template validation

* Validate ado and github templates

* Remove unnecessary function

* Update src/ApiService/ApiService/OneFuzzTypes/Model.cs

Co-authored-by: Cheick Keita <kcheick@gmail.com>

---------

Co-authored-by: Cheick Keita <kcheick@gmail.com>

* adding extra container to integration tests

* adding doc

* update tests

* format

* build and clippy fix

* Update src/agent/onefuzz-task/src/tasks/report/generic.rs

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>

---------

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
Co-authored-by: George Pollard <gpollard@microsoft.com>
Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
This commit is contained in:
Cheick Keita
2023-02-23 11:08:01 -08:00
committed by GitHub
parent dfb0db87c1
commit b84896802c
47 changed files with 367 additions and 27 deletions

View File

@ -109,6 +109,7 @@ TARGETS: Dict[str, Integration] = {
},
reboot_after_setup=True,
inject_fake_regression=True,
fuzzing_target_options=["--test:{extra}"],
),
"linux-libfuzzer-with-options": Integration(
template=TemplateType.libfuzzer,
@ -180,6 +181,7 @@ TARGETS: Dict[str, Integration] = {
os=OS.linux,
target_exe="fuzz_target_1",
wait_for_files={ContainerType.unique_reports: 1, ContainerType.coverage: 1},
fuzzing_target_options=["--test:{extra}"],
),
"linux-trivial-crash": Integration(
template=TemplateType.radamsa,
@ -209,6 +211,7 @@ TARGETS: Dict[str, Integration] = {
ContainerType.coverage: 1,
},
inject_fake_regression=True,
fuzzing_target_options=["--test:{extra}"],
),
"windows-libfuzzer-linked-library": Integration(
template=TemplateType.libfuzzer,
@ -575,6 +578,8 @@ class TestOnefuzz:
job: Optional[Job] = None
if config.template == TemplateType.libfuzzer:
# building the extra container to test this variable substitution
extra = self.of.containers.create("extra")
job = self.of.template.libfuzzer.basic(
self.project,
target,
@ -588,6 +593,7 @@ class TestOnefuzz:
reboot_after_setup=config.reboot_after_setup or False,
target_options=config.target_options,
fuzzing_target_options=config.fuzzing_target_options,
extra_container=Container(extra.name),
)
elif config.template == TemplateType.libfuzzer_dotnet:
if setup is None: