Commit Graph

2050 Commits

Author SHA1 Message Date
c4f1adeff6 Fixing .NET crash report no-repro (#2642)
The minidump file being generated did not have enough information for SOS to correctly locate the exception object. Switch to “full” minidumps instead.

- Fix a small bug with coverage reporting task ID as job ID.

- I had thought we needed .NET 6 installed as well to run SharpFuzz, but now I'm not so sure. In any case, installing both versions will not hurt (and may help users).
2022-11-28 20:54:41 +00:00
56bde9fbb0 Add a test for parse_sos_print_exception_output (#2648)
A very simple test, mostly to show the expected input format.
2022-11-28 18:52:35 +00:00
95abeeacef Improve logging around notification failures (#2653)
Co-authored-by: Teo Voinea <Teodor.Voinea@microsoft.com>
2022-11-25 09:04:42 -05:00
e0634a3365 Deploy update (#2650)
* Remove Python App Function Deployment Code and  Code.

* Updating yml and zip names.

* Fixing ci.yml.

* Typo.

* Format

* Trying to remove python service.

* Updating directories.

* Removing flag.

* Format.

* Fixng api-service-net ref.

* Re-add requirement.

* Fixing refs in bicep.

* Specifying version.

* Removing dotnet refs in integration tests.

* Updating role assignment naming convention.

* Adding ignore.

* Update src/deny.toml

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

* Update version.

* Removing onefuzztypes dependency.

* Switch app service plan to windows.

* Update test version.

* Changing version.

* Returning version.

* Trying to add onefuzz types back.

* Force pipenv version.

* Fix.

* Syntax.

* Renaming.

* Trying different version.

* Removing build step.

* Fixing bicep parameter.

* Retrying run with older version.

* Trying pipenv with another version.

* Forcing pipenv version in tox.

* Adding pipenv fix and updating version.

Co-authored-by: George Pollard <porges@porg.es>
2022-11-23 17:48:30 -08:00
6c981f613d Making machine identity a parameter of the agent config (#2649)
* making machine identity a parameter

* build fix

* build fix

* format
2022-11-23 16:32:19 -08:00
ae827b2dda Fix invocation of functionapp in the deployment script (#2645) 2022-11-21 21:13:53 -08:00
abb7b4781e Add gitignore for C# artifacts (#2640) 2022-11-21 21:35:43 +00:00
1755683be4 More default devcontainer settings (#2641) 2022-11-21 21:06:44 +00:00
06849b29f0 Bump azure_* crates (#2637) 2022-11-21 20:38:44 +00:00
04d39a3f28 Setup cargo-deny (#2638)
Using [`cargo-deny`](https://embarkstudios.github.io/cargo-deny/) to ensure that disallowed dependencies removed in #2423 do not accidentally make their way back in.

`cargo-deny` subsumes the `cargo-audit` functionality, so switch to the `cargo-deny` version.

Setting this up required explicitly stating the license which was not in some of our `Cargo.toml` files.
2022-11-21 08:23:20 -05:00
894dcc62be Update to .NET 7 (#2615)
Update service code to .NET 7.0.

Also update the version installed onto agent nodes via setup scripts to 7.0.100.
2022-11-18 10:39:45 +13:00
1f46388e6d Bug fixes related to the unmanaged nodes (#2632)
* bug fixes related to the unmanaged nodes
- fix the token request in the client
- adding a is_unmnaged field to the agentConfig
- fix typo in the appId claim type
- fix typo in the UnmanagedNode claim value
- fix query PoolOperation.GetByClientId

* remove unused import

* build fix

* change unmanaged  field to managed

* Apply suggestions from code review

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

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-11-17 20:51:52 +00:00
5bc3dac1ae Fix clippy failure (#2634) 2022-11-17 20:38:14 +00:00
21205198c9 Update OMI to 1.6.10.2 on Ubuntu VMs (#2629)
* updating OMI version
2022-11-16 15:37:31 -08:00
40c85b8c16 Make the --container_type parameter required (#2631)
* Make --container_type a required parameter (#2574)

* Fix targetUrl so it no longer contains full exe path

* Make --container_type a required parameter (#2574)
2022-11-16 11:38:42 -08:00
2a3f1e7241 Fix a logic bug in the notification hook (#2627)
* Fix a logic bug in the notification hook

* Format
2022-11-15 08:41:52 -08:00
07befc58b2 Fix SignalR client code not reading responses correctly (#2626)
The `Response` object must have the JSON loaded via `json()` (`backend.request` was updated but this callsite was missed).

Also, import the `Onefuzz` type so that this is type-checked to avoid the same problem in future.
2022-11-15 02:16:06 +00:00
e546f78cce Release 5.20.0 (#2614) 2022-11-15 00:44:01 +00:00
b41e61a784 Fix targetUrl so it no longer contains full exe path (#2625) 2022-11-14 14:13:05 -08:00
c5840eb69b Use broker or browser login instead of device flow (#2612)
Update CLI to attempt broker or browser-based authentication first; if you `Ctrl-C` to cancel it, you can fall back to device code login.

Also updated the MSAL dependency to latest version and pass `allow_broker=True` which will allow the use of Web Account Manager (WAM), if it is available.

Using browser auth requires the `http://localhost` redirect URI, and using the broker requires a special custom URI including the app ID (see code).
2022-11-14 20:13:36 +00:00
0caac2fc00 Only add "re-opened" comment if bug was reopened (#2623) 2022-11-15 08:51:59 +13:00
b4750ae52c Make Proxy TelemetryKey optional (#2619) 2022-11-14 03:18:36 +00:00
0b19af3381 Switch to quick-xml (#2611) 2022-11-14 12:45:05 +13:00
f5851d0764 Update the Authorization layer to allow unmanaged nodes (#2584)
* create the config_path folder if it does not exist

* Update the Authorization layer to allow unmanaged nodes

* check the role assignment

* fix merge

* build fix

* fix typo

* formatting

* formatting
2022-11-10 17:58:20 +00:00
ff85b808e9 Adding an optional retry_limit to onefuzz debug connect (#2609)
* adding an optional retry_limit to onefuzz debug connect

* make none the default retry limit

* fix logic

* fix default
2022-11-10 01:51:35 +00:00
c50a9daf20 Bump cpufeatures to 0.2.5 (#2608) 2022-11-09 20:33:20 +00:00
7b9fbae38d Ensure wheel updated when pipenv check invoked (#2593) 2022-11-09 10:19:36 -08:00
09e564f6fd Catching Model Exceptions During VMSS Update (#2607)
* Catching Update VMSS Exceptions.

* Adding additional exception handling.

* Updating wording.

* Adding handler for model error when catching scale protection exceptions.

* Fixing error messaging.
2022-11-08 15:20:49 -08:00
f20c482052 Adding Additional Information to Decommission Functionality. (#2605)
* Adding Additional Information to Decommission Function.

* Separating instance and machine ids
2022-11-08 10:04:18 -08:00
2a7a072333 Fixing status top bug (#2604) 2022-11-08 01:03:55 +00:00
7e9ff9cd11 Add endpoint to download the agent binaries (#2600)
* Add endpoint to download the agent binaries

* build fix

* fix types

* adding test

* format

* remove comments

* address pr comment

* build fix
2022-11-07 15:28:22 -08:00
f7dd265fdd Release-5.19.0 (#2599)
* Release-5.19.0

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2022-11-07 15:09:01 -08:00
1c23b87f83 Release 5.18.0 (#2582)
* Release 5.18.0

* Combining PRs.

* Typo.

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* Updating changelog.

* Adding fix PR.

Co-authored-by: Marc Greisen <mgreisen@microsoft.com>
2022-11-03 10:09:18 -07:00
fb8a4e36f1 Add a registration command to allow an application registration to connect to the Onefuzz (#2571) 2022-11-03 16:41:38 +00:00
6cc7caf67b Handle duplicate containers across accounts (#2596) 2022-11-03 01:21:35 +00:00
f1f6400dad Improve AppInsights setup (#2597)
Switch to using the package provided by Azure Functions to set up Application Insights.

Using the provided setup method `AddApplicationInsightsTelemetry` will configure the dependency collector by default as well as set up some other things that we haven’t done manually, including application version, which would be very useful.

This also means that `operation_Id` is populated more consistently which permits joining `traces` or `dependencies` on the `requests` table.

This also means that the end-to-end data in AI is now correct, so the chart works:
![MicrosoftTeams-image](https://user-images.githubusercontent.com/12575/199629195-f442c9b4-2bb3-4f78-a532-3936cf6bf74f.png)
2022-11-03 01:09:51 +00:00
22cb201805 Fix the notification get request (#2591)
* Fix the notification get request

* remove unused import
2022-11-02 17:56:50 -07:00
e6dd1ac35b Only ignore known issue (#2595) 2022-11-02 20:27:45 +00:00
d655fcd5c4 Optimize the output side of srcview (#2515) 2022-11-01 17:59:37 -07:00
323106b48b Temporarily disable pipenv check call (#2594) 2022-11-01 17:48:34 -07:00
33e2d5c954 Delete nodes on decommission instead of just releasing scale in protection (#2586)
Co-authored-by: Teo Voinea <Teodor.Voinea@microsoft.com>
2022-11-01 08:48:42 -04:00
8be6e3c946 do not break the for loop, and cache all instance ids (#2548)
Co-authored-by: stas <statis@microsoft.com>
2022-10-29 11:43:57 -07:00
d7d55c77fc create the config_path folder if it does not exist (#2583) 2022-10-28 17:18:49 -07:00
36265895ee Reduce fetches to VMSS (#2577)
* Remove one GET from ListInstanceIds

* Only invoke ListInstanceIds if needed

* Format code

* Downgrade Exception log to Verbose

* Insert InstanceID during CleanupNodes

Co-authored-by: Cheick Keita <chkeita@microsoft.com>
2022-10-28 19:45:27 +00:00
4b305d0e55 Release-5.17.0 (#2537)
* Release-5.17.0
2022-10-28 10:41:04 -07:00
c277cd1ec3 Update References to Ubuntu 18.04 to 20.04 (#2535)
* Update References to 18.04 to 20.04

* Fixing Ubuntu Image.

* Fix image.
2022-10-28 10:17:57 -07:00
539861b573 Fix Github actions warnings (#2576)
Node.js 12 actions are deprecated, as well as `::set-output` 

- Update `actions/checkout` to v3
- Update `actions/upload-artifact` to v3
- Update `actions/setup-python` to v4
- Update `actions/cache` to v3
- `set-output` on stdout is deprecated, update to `$GITHOUT_OUTPUT` method
- Change from `actions-rs/toolchain` (unsupported) to `dtolnay/rust-toolchain`

The only warning remaining after this is the one about Ubuntu 18.04.
2022-10-27 17:21:30 -07:00
fc2f29dc6f Reduce number of ARM calls in ListVmss (#2539)
1. `ListVmss` was invoking `GetVirtualMachineScaleSetAsync` and then `GetVirtualMachineScaleSetVms`; instead we can get the VMSS resource directly and invoke `GetVirtualMachineScaleSetVms` on it.

2. I also removed some unneeded invocations of `AsAsyncEnumerable` which might be turning async enumerables into sync enumerables.

3. Do the same `HasData` check in the instance ID lookup that we were already doing in `ListVmss`.

After this change (#3) we no longer do any `GET`s against individual VMSS VMs during the `check-pr` run: 
![image](https://user-images.githubusercontent.com/12575/198410236-250ed8d7-f7a1-4c2d-8bf4-2ebd1c1a0f7a.png)
2022-10-27 22:40:34 +00:00
228fe99bc1 Update to released version of appinsights-rs (#2573) 2022-10-27 14:01:31 -07:00
7232981d95 Use records to unpack the request parameters in AgentRegistration (#2570) 2022-10-27 10:26:34 -07:00