1894 Commits

Author SHA1 Message Date
Cheick Keita
b1625d3033
Fix notification logic (#2751)
* Fix notification logic
This bug was preventing the rest of the NewFils logic to proceed if no notification was associated with the container

* build fix
2023-01-19 22:04:56 +00:00
Teo Voinea
61685e6e6f
Wrap fallible ORM functions in try/catch (#2745) 2023-01-19 21:38:36 +00:00
Cheick Keita
81de10258b
Added machine_id to config_path and failure path of the agent (#2731) 2023-01-17 20:20:00 -08:00
Cheick Keita
7227856e98
Adds an optional analysis task to the libfuzzer template (#2748)
* Adding an analysis task to the libfuzzer template

* format

* build fix

* Use `elsa` for debuggable_module::loader (#2703)

* build fix

Co-authored-by: George Pollard <gpollard@microsoft.com>
2023-01-17 17:14:37 -08:00
George Pollard
748270080b
Use elsa for debuggable_module::loader (#2703) 2023-01-17 15:19:38 -08:00
George Pollard
5bf0c21b57
Update bumpalo to address RUSTSEC-2022-0078 (#2744) 2023-01-17 19:44:36 +00:00
Teo Voinea
8058497e17
Truncate large webhook events (#2742)
* Add ITrunctable

* Tests

* Pass some more tests

* Cleanup
2023-01-13 14:16:46 -05:00
Cheick Keita
cd659d2f27
Fixed the database query to retrieve the proxy for a region (#2743) 2023-01-12 19:17:15 -08:00
Adam
6c3b465dbe
Update azure cli (#2733)
* update azure-cli to v2.43 along with supporting dependencies
2023-01-10 09:19:16 -08:00
Adam
64a6c155e1
Bump Tokio from 1.16.0 to 1.24.1 in /src/agent (#2735)
* Bump tokio from 1.16.0 to 1.24.1 in /src/agent

* update dependent mio 0.8.2 -> 0.8.5
2023-01-09 16:48:35 -08:00
dependabot[bot]
7361e92d6e
Bump tokio from 1.23.0 to 1.24.1 in /src/proxy-manager (#2734)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.24.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 12:11:06 -08:00
Adam
af25752c55
Add arg to deploy.py for custom_domain (#2720) 2023-01-05 10:28:17 -08:00
Joe Ranweiler
b995cc25ad
Add more into-JSON coverage conversions (#2725) 2023-01-04 10:54:20 -08:00
Joe Ranweiler
a8d5ab7c5c
Add binary coverage merging (#2724) 2023-01-04 10:11:40 -08:00
Joe Ranweiler
df40c99cb9
Use a custom Output type when recording coverage (#2723) 2022-12-22 12:01:51 -08:00
Joe Ranweiler
0d6a0d7d89
Escape periods when converting globs (#2721) 2022-12-22 10:14:53 -08:00
Joe Ranweiler
d51d4e0c7e
Ignore benign recv hangup in timer (#2722) 2022-12-22 10:02:48 -08:00
Joe Ranweiler
07a0a926c6
Add deserialization compat functions (#2719) 2022-12-21 13:32:41 -08:00
Joe Ranweiler
04f83e0b9c
Add lines key to v1 source coverage JSON (#2718) 2022-12-21 11:46:09 -08:00
Cheick Keita
4dbc9c099a
Reduce mutation in the agent state machine (#2710)
* reduce unnecessary mutation in the agent

* cleanup and fix test

* cleanup

* reduce log some levels

* desambiguate self call in the coordinator
2022-12-21 19:20:09 +00:00
Joe Ranweiler
3a5101be9b
Capture target output, allow Loader reuse (#2716) 2022-12-21 09:13:06 -08:00
Teo Voinea
a1060c119d
Use FF to get node disposal strategy (#2713) 2022-12-21 14:46:50 +00:00
Joe Ranweiler
f7bd50853f
Add key for block coverage, tests (#2715) 2022-12-20 15:01:25 -08:00
dependabot[bot]
1726beda87
Bump rayon from 1.5.1 to 1.6.1 in /src/agent (#2690)
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.5.1 to 1.6.1.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/v1.5.1...rayon-core-v1.6.1)

---
updated-dependencies:
- dependency-name: rayon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 19:58:56 +00:00
George Pollard
188a7ca42e
Rust 1.66 (#2704)
* Bump to Rust 1.66

* Another fix

* One more

* Lint
2022-12-19 10:04:04 -08:00
Joe Ranweiler
aa902d34d0
Add onefuzz-file-format (#2706)
* Add `onefuzz-file-format`

* Add license

* Add newline

* Lint
2022-12-19 09:13:56 +13:00
Noah McGregor Harper
349604f03a
Removing Remaining App Function References from Deployment Code. (#2682)
* Removing Remaining App Function References from Deployment Code.

* Update src/deployment/deploy.py

Co-authored-by: Adam <103067949+AdamL-Microsoft@users.noreply.github.com>

* Consolidating.

* Updating function  handles.

* Removing copy.

* Fixing.

* Formatting.

* Fixing array calls.

* Adding json settings back.

* Formatting.

Co-authored-by: Adam <103067949+AdamL-Microsoft@users.noreply.github.com>
2022-12-15 20:03:42 -08:00
Cheick Keita
0fb8bc4a86
Bug fixes and documentation (#2694) 2022-12-15 19:39:17 -08:00
Joe Ranweiler
ff923d28e7
Record coverage using debuggable-module (#2701) 2022-12-15 15:20:26 -08:00
Noah McGregor Harper
054910e39b
Adding Public Identifier to Events. (#2705)
* Adding Public Identifier to Events.

* Fixing.
2022-12-15 14:35:53 -08:00
dependabot[bot]
abcfa4fc36
Bump tokio from 1.20.0 to 1.23.0 in /src/proxy-manager (#2674)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.20.0 to 1.23.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.20.0...tokio-1.23.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-15 16:36:40 +13:00
Joe Ranweiler
e2dc560bcb
Add debuggable-module (#2700) 2022-12-14 10:53:54 -08:00
Cheick Keita
31929a8850
Fixing build issue related to dotnet version 7.0.101 (#2698) 2022-12-13 21:50:37 +00:00
Cheick Keita
4c1adb6e96
rename client_id in pool to object_id (#2673)
* rename client_id in pool to object_id

* fix tests

* print out the content body when receiving an error response in the agent

* fix test

* Apply suggestions from code review

* Update src/ApiService/ApiService/Functions/AgentRegistration.cs

* format

* cleanup

* format

* address pr comment
2022-12-13 03:39:49 +00:00
George Pollard
3cf09c6a40
Include dotnet version in info response (#2693)
* Include dotnet info in version response

* Python code requires non-null
2022-12-13 15:13:36 +13:00
Teo Voinea
4af4f93167
Only warn on cannot delete nodes from scaleset warning (#2691) 2022-12-12 14:57:29 -05:00
Cheick Keita
fa3e6a4fdd
Fix NullRef exception when getting a scaleset that does not exist (#2692)
* Fix NullRef exception when getting a scaleset that does not exist
Updated the ScalesetOperations.GetNodes to return a non nullable dictionary

* build fix
2022-12-12 10:00:44 -08:00
Cheick Keita
fdd05aeb78
Include missing fields in the report record (#2679)
* Include missing field  in the report

* update tests
2022-12-12 17:00:53 +00:00
Cheick Keita
a45bda9838
Allow multiple agents to run on the same machine (#2671)
* Allow multiple agents to run on the same machine
- Move the work directory for each agent into a machine specific folder
- added option on the command line to override the machine id and name
- added an option to remove the done lock when starting the agent

* add git_ignore

* fix tests

* clippy+ format

* fix linux build

* fix test

* cleanup

* cleanup

* fix reset_lock parsing

* clippy
2022-12-09 20:31:38 -08:00
Teo Voinea
2a44900c71
Support Contains Words in WIQL (#2686) 2022-12-09 16:15:37 +00:00
Joe Ranweiler
f48546f542
Rename coverage to coverage-legacy (#2685) 2022-12-08 16:26:33 -08:00
Joe Ranweiler
11923d2b9d
Remove unused coverage recorder from input-tester (#2681) 2022-12-08 15:15:10 -08:00
George Pollard
aad29295e1
Repro Create should fail if insert fails, add tests (#2678)
At the moment the result of the insert is ignored.
2022-12-08 21:31:40 +00:00
Stas
97910e4793
post JobCreated when job is created (#2677)
* post JobCreated when job is created
2022-12-08 12:22:54 -08:00
Teo Voinea
3f37fd2b58
Validate notification template (#2655)
* Need to keep working on making dummy values

* Create endpoing to validate scriban templates

* Fix dev experience with app config manager, allow scriban validate endpoint to override jinja converssion

* Use strict validation

Co-authored-by: Teo Voinea <Teodor.Voinea@microsoft.com>
2022-12-08 09:16:03 -05:00
George Pollard
b356c85df5
Update LLVM from v10 to v12 (#2617)
While I was investigating `llvm-symbolizer` issues, I found that we are installing LLVM-10 by default.

Now that we are using the Ubuntu 20.04 image as the default, use the latest LLVM version available for that release. (In addition, v12 is also available on 22.04, whereas v10 is not.)
2022-12-06 01:44:36 +00:00
Cheick Keita
2685cb6b3f
Fix local fuzzing mode (#2669)
* repairing local fuzzing mode

* make clippy happy

* make the ui an option
2022-12-05 13:59:12 -08:00
Adam
7091c5460d
Except on uppercase application names in deployments (#2665)
* Adding check to deploy.py for uppercase names in application names

Co-authored-by: Cheick Keita <kcheick@gmail.com>
2022-12-05 08:28:25 -08:00
Teo Voinea
59360103f1
Add support for feature flags (#2620)
* Foundation for feature flags

* Demo usage

* Use managed identity

* Add FFs using DI method

* missed a file

* Cleanup

* Forgot test context

* Default is off if the FF doesn't already exist

* Update src/ApiService/ApiService/Program.cs

Co-authored-by: George Pollard <porges@porg.es>

* force evaluate lock files

Co-authored-by: Teo Voinea <Teodor.Voinea@microsoft.com>
Co-authored-by: George Pollard <porges@porg.es>
2022-12-05 09:07:00 -05:00
Noah McGregor Harper
7fc6fc3668
Reverting Enable/Disable App Function Changes - Force -net App Function To Only Run Agent Functions (#2660)
* Testing app function.

* Addding functions back.

* Fixing name.

* updating to string.

* Fixing bicep.

* Fixing function names.

* Update src/ApiService/ApiService/Functions/ReproVmss.cs

Co-authored-by: George Pollard <gpollard@microsoft.com>

* Adding route specifier.

* Update src/ApiService/ApiService/Functions/NodeAddSshKey.cs

Co-authored-by: George Pollard <gpollard@microsoft.com>

* Update src/ApiService/ApiService/Functions/WebhookLogs.cs

Co-authored-by: George Pollard <gpollard@microsoft.com>

* Update src/ApiService/ApiService/Functions/WebhookPing.cs

Co-authored-by: George Pollard <gpollard@microsoft.com>

* Fixing function names.

* Increasing pool_size

* Adding logging statements.

* Adding check for transient failure.

* Adding check to else.

* Fix var

* Adding retry logic to dbg_lnx

* FIxing retry.

* Maybe fixed integration test.

* Formatting.

* Adding try and fail logic.

* Changing error.

* Refactoring logic.

* Fixing logic.

* Logic.

* Removing bad comparison.

* Fixing.

* All ready.

* Switching back to call.

* Add.

* Fixing

* Adding quit back.

* Reversing cli changes.

* Removing bad file.

* Formatting.

Co-authored-by: George Pollard <gpollard@microsoft.com>
2022-12-02 11:14:13 -08:00