Commit Graph

1471 Commits

Author SHA1 Message Date
ee1ad0abd8 Functional tests (#2333)
* more tests

* revert compute, since "released" version has bug when creating scaleset extensions

* format

* found bug, i think...

* now should be fixed

Co-authored-by: stas <statis@microsoft.com>
2022-09-02 08:16:48 -07:00
c54db04083 Enforce that there no extra properties in request JSON, and that non-null properties are [Required] (#2328)
Closes #2314 via two fixes, one for additional properties and one for missing properties:

- Make all request types inherit from `BaseRequest` which has an `ExtensionData` property, and ensure that it is empty in `ParseRequest`.
- Add `[Required]` attribute to non-nullable properties that do not have defaults, and add a test that ensures we have this attribute where necessary.
2022-09-02 01:59:24 +00:00
52ba57bf0d Remove some response-only properties from the Task model (#2335) 2022-09-01 23:33:04 +00:00
440f19baeb Remove dead libfuzzer_coverage scripts (#2288) 2022-09-01 14:49:50 -07:00
ecc099203b Add Cobertura XML output to src-cov example binary (#2334) 2022-09-01 12:10:30 -07:00
b737dcd98a Remove the max_elapsed_time limit from az_copy (#2332)
* Remove the max_elapsed_time  limit from az_copy
The code still relies on the number of retry to limit the requests

* add MAX_FAILURE_COUNT and MAX_RETRY_COUNT
2022-09-01 00:51:59 +00:00
f7e37355d0 Remove IDisposable from Creds (#2327) 2022-08-31 22:51:06 +00:00
366b671942 Cache InstanceConfig (#2329) 2022-08-31 22:30:38 +00:00
d711172ed7 Add scriban dependency and some template tests (#2330)
* Add scriban dependency and some template tests

* Resolve

* Missed force-evaluate

* fmt
2022-08-31 13:21:22 -04:00
0c88116a0d Added deploy.py flags onefuzz_app_id and auto_create_cli_app to allow custom app registrations. (#2305)
* Update Deployment Params to use custom CLI

* Adding failure mode if app id not found.

* Formatting.

* Fixing path.

* Cleaning up condition path.

* Update param name.

* Adding identiy assignment.

* Adding correct identity.

* FIxing app role assignment.
2022-08-30 22:05:44 -07:00
8b31dfe4ef Update deploy to set all settings at once (#2325) 2022-08-30 23:34:35 +00:00
8d23df328d bump nuget packages (#2321)
Co-authored-by: stas <statis@microsoft.com>
2022-08-30 13:58:07 -07:00
ea4d589abf Functional tests (#2317)
* more functional tests

* more tests

* bug fixes

* OneFuzz results do not map one to one with datastructures. So add support for multiple datastructures to be returned per API

* more tests

* format fixes

Co-authored-by: stas <statis@microsoft.com>
2022-08-30 12:26:06 -07:00
9ecc383981 trying to fix python break (#2319)
Co-authored-by: stas <statis@microsoft.com>
2022-08-30 11:47:45 -07:00
63c54193a9 Enable AppInsights dependency tracking (#2315) 2022-08-30 16:35:35 +12:00
ef434db201 Fix ServiceConfiguration.OneFuzzVersion (#2316) 2022-08-30 00:08:56 +00:00
5a8aa33af1 functional tests and bug fixes (#2301)
Co-authored-by: stas <statis@microsoft.com>
2022-08-29 09:33:15 -07:00
ae6df1e22f Create tables on startup (#2309) 2022-08-29 15:12:19 +12:00
4e2d2d2879 Release 5.12.0 (#2304)
* Release 5.12.0

* Removing dockercontainer changes.

* Update CHANGELOG.md

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>

* Update CHANGELOG.md

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>

* Adding az_copy logging.

* Adding ado logging.

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
5.12.0
2022-08-26 17:44:35 -07:00
163e324227 Specifying initial size for scaleset create in integration-tests. (#2307)
* Specifying initial size for scaleset create in integration-tests.

* Spell check.
2022-08-26 16:09:36 -07:00
c94ae0bbb6 log the work item id when notifying ado (#2291)
* log the work item id when notifying ado

* format

* refactoring

* fix build

* fix

* format
2022-08-26 19:08:31 +00:00
55a29cf1cd added some logging (#2303) 2022-08-26 18:06:31 +00:00
dcb706fa6a Changing CLI Scaleset size parameter to max_size. (#2293)
* Changing size parameter to max_size.

* Adding default param for clarity.

* FIxing param

* Setting size to 1.

* Adding comment.

* Trailing white spaces.

* Adding initialized_size param.

* Using initialized_at.

* Changing variable name.
2022-08-26 09:57:51 -07:00
d213eac44e Implement negotiate function (#2183) 2022-08-26 02:59:31 +00:00
d615fccd6d Fixing set_admins.py Script. (#2300)
* Fixing set_admins.

* Moving set_admins to another directory.

* Fixing imports.
2022-08-25 15:00:42 -07:00
c7e7fa1d27 Port autoscaling to C# (#2296)
Co-authored-by: stas <statis@microsoft.com>
2022-08-25 13:13:24 -07:00
1a63f195f3 porting the proxy state machine (#2286)
* porting the proxy state machine

* use async version

* is used

* rename base state to state

* fix auth
fix extension path

* ignore log info in check logs
2022-08-25 19:42:01 +00:00
402d549d02 Dockerfile fix (#2297) 2022-08-25 15:17:32 -04:00
c3c9e0d942 fix function name (#2282) 2022-08-25 03:27:36 +00:00
e263b245f5 Add --use_dotnet_agent_functions to deploy.py and Python service (#2292) 2022-08-25 11:50:01 +12:00
0133b3e42f Include serialization options when sending event message (#2290) 2022-08-24 19:42:34 +00:00
39e22b060a Only save the job once when creating it (#2289)
* Convert exception to warning

* don't save job before creating the log container

* same as the python code

* test fix

* format

* format

* don't schedule the task if the log container is missing
2022-08-24 10:19:18 -07:00
07fb794f8a Devcontainer updates (#2279) 5.11.0 2022-08-23 22:47:13 +00:00
f511862b34 Pull in a null reference error and a rust dependency update to release 5.11. (#2284) 2022-08-23 12:28:12 +12:00
21a4231912 Fix NullReferenceException in CreateQueue (#2283) 2022-08-22 23:21:56 +00:00
cddaed1bf1 Update Rust azure_* crates (#2266) 2022-08-23 10:45:47 +12:00
f92d207dd4 Bump nix from 0.23.0 to 0.25.0 (and pete, ctrlc) (#2270)
* Bump nix from 0.23.0 to 0.25.0 in /src/agent
* Bump ctrlc from 3.2 (3.2.1 lockfile) to 3.2.3
* Bump pete from 0.8 to 0.9
2022-08-22 21:12:30 +00:00
f442fc6da8 Pull in a couple of PR's into the release. (#2281) 2022-08-22 12:59:19 -07:00
dc3ab3d95a Clone the JsonSerilizerOption instead of modifying it (#2280) 2022-08-22 11:01:34 -07:00
d83723b8ae Properly compare job/task state enums (#2004) 2022-08-22 16:36:56 +12:00
80b6a3712a Release 5.11.0 (#2275) 2022-08-19 16:29:01 -07:00
e22164ae8d Increase the size of the output collected from the worker (#2166)
* [DEBUG] TEsting az_copy behavior
- increased the size of the buffer used to collect the onfuzz task output
- removed the deletion of the azcopy logs

* formatting

* build fix

* fix unit tests

* reverting the temp folder change

Co-authored-by: George Pollard <gpollard@microsoft.com>
2022-08-19 19:11:58 +00:00
6cb7e7e24a Make EntityConverter singleton (#2267)
* Make the EntityConverter a singleton

* Make the EntityConverter a singleton

* format

* fix tests
2022-08-19 18:57:19 +00:00
ad0756f47c Ignore info advisory (#2276) 2022-08-19 11:13:47 -07:00
ac54c576ae Provide a default for settings (#2269) 2022-08-18 15:23:47 -04:00
e74671bcc4 fix pool comparison in the scheduler (#2260)
* fix pool comparison in the scheduler

* format
2022-08-18 01:49:09 +00:00
f134c0f122 Enabling csharp webhook and proxy heartbeat functions (#2263)
* Enabling csharp webhook and proxy heartbeat trigger

* Adding deploy exemption.

* Fixing queue table.

* Adding function to bicep.

* Renaming function.
2022-08-17 16:29:47 -07:00
f5b647ef1b Fixing Scaleset State Check. (#2265) 2022-08-17 15:39:02 -07:00
24c4219949 Port auto scale scaleset shutdown bug fix to csharp (#2262)
* Checkpoint

* Merge main

* Implement the bug fix + some missing functionality in C#

* Test fix
2022-08-17 19:33:56 +00:00
fdd16df847 Autoscale Table Synces Current Scaleset Settings (#2255)
* Autoscale Table Syncs Current Scaleset Settings.

* Fixing formatting.

* Fixing lint.

* Remove white space.

* Adding default check.

* Formatting.

* Fix.

* Fixing import.

* Fixing ref.

* Trying regular save.

* using self.

* Trying to fix lint.

* Fixing args.

* Fixed.

* Adding function call.

* Reformat.

* Formatting.

* trying again.

* FIxing profile call.

* Fixing type.

* Fixing type.

* Fixing format.

* Fixing typing.

* Fixing.

* Fixing function call

* Getting rid of length check.

* Getting rid of length check.

* Ready for review.

* Formatting.

* Removing bad change.
2022-08-17 10:41:48 -07:00