Commit Graph

158 Commits

Author SHA1 Message Date
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
d213eac44e Implement negotiate function (#2183) 2022-08-26 02:59:31 +00: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
c3c9e0d942 fix function name (#2282) 2022-08-25 03:27:36 +00: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
21a4231912 Fix NullReferenceException in CreateQueue (#2283) 2022-08-22 23:21:56 +00:00
dc3ab3d95a Clone the JsonSerilizerOption instead of modifying it (#2280) 2022-08-22 11:01:34 -07: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
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
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
d1bfaefd0d Implement scaleset function for C# (#2191)
Implements #2194
2022-08-17 15:00:57 +12:00
a3f1d59f70 Set autocrlf by default, update affected files (#2261) 2022-08-17 13:07:20 +12:00
2382ce5ca5 migrate webhooks (#2254)
* migrate webhooks

* webhook_logs and webhook_ping

* fix saving uri to db

* fix tests

* fix deploy.py
2022-08-16 12:20:16 -07:00
8738ef0044 timer workers fix up (#2257)
* timer workers fix up

* remove unused includes

* revert breaking changes

* update autoscale definition

Co-authored-by: stas <statis@microsoft.com>
2022-08-15 20:20:46 -07:00
90d3ec987b Port TimerWorkers to C# (#2235)
* Port TimerWorkers to C#

* test logs

* ..

* Some VMSS extensions have settings as null

* fix for

Cannot set DoNotRunExtensionsOnOverprovisionedVMs to true on Virtual Machine Scale Set which does not have overprovision enabled.

Co-authored-by: stas <statis@microsoft.com>
2022-08-15 16:54:48 -07:00
b4a3905495 Convert the remaining events to the C# (#2253)
Added a new attribute to associate  the enum to the event class
2022-08-15 12:05:04 -07:00
ef0367cb7a Make log sinks a singleton (#2247)
* Make log sinks a singleton, continue passing new log tracer for every invocation

* Remove no longer used code
2022-08-15 14:42:24 +00:00
c798659d0e migrate tasks (#2233)
* migrate task

* cleanup

* NotSupported instead of NotImplemented

* address pr comments
fix function name

* fix default value

* rename base state

* add caching

* return the task when deleting

* build fix

* format
2022-08-10 18:56:07 -07:00
e3e001a172 Convert pool function to C# (#2178)
#2177
2022-08-11 09:29:13 +12:00
20faf88902 Change some NotImplementedException to NotSupportedException (#2234) 2022-08-09 21:07:10 +00:00
d15d80cd64 Enable containers function (#2197)
Fixup auth and enable function.
2022-08-09 01:16:57 +00:00
f5afbf8932 Fix Queue Issue for WebhookOperations. (#2231)
* Fix Queue Issue for WebhookOperations.

* Fix formatting.
2022-08-08 16:17:20 -07:00
cd356e277f Enable TimerRetention (#2228)
Co-authored-by: stas <statis@microsoft.com>
2022-08-08 13:53:42 -07:00
7c0ac7a654 Add repro operations (#2222)
* Add repro operations

* bug fixes

* fmt

* The python code overwrites the security rules

* small logic bug got reintroduced
2022-08-08 19:59:07 +00:00
b32e8c8825 enable timer daily (#2220) 2022-08-05 15:49:47 +00:00
6ca64b3eeb migrate repro_vmss (#2211)
* migrate repro_vmss

* build fix

* fix name
2022-08-05 08:40:58 -07:00
6d07095eea migrate proxy (#2206)
* migrate proxy function

* - added private ip address query
- updated Azure.ResourceManager.Storage to non beta release

* remove comment

* extracting nework interface query

* format

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

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

* fix function name

* Fix merge conflict

Co-authored-by: Teo Voinea <58236992+tevoinea@users.noreply.github.com>
2022-08-04 20:09:09 +00:00
3a0e8bb2e3 Add extensions functionality for C# refactor (#2218)
* Add extensions functionality

* Small cleanup

* Use context, fix typo
2022-08-04 15:27:41 -04:00
d0f0fc576b Add networking related operations for C# refactor (#2216)
* Add some networking related operations

* Add nsg operations

* Fix tests

* Use creds from context

* Use creds from context

* PR comment
2022-08-04 17:39:50 +00:00
f19c819751 migrate add_node_ssh_key (#2193)
* migrate add_node_ssh_key

* build fix

* fix

* format

* fix return value and function name
2022-08-02 11:51:48 -07:00
eaf74d936a Add missing job state transition (#2202)
* Add missing job state transition

* address PR comments
2022-07-28 23:08:15 +00:00
b2fc9f4285 fix return value when associating nsg subner (#2201) 2022-07-28 14:25:03 -07:00
36d36cdfaa saving secrets in keyvault (#2200) 2022-07-28 12:12:47 -07:00
25242f1ab9 Migrating notifications (#2188)
* Migrating notification

* add dotnet enpoint setting in the config

* format

* fix unit test

* format

* build fix

* fix notifictions function definition

* fix deserilization of requests
refactor secretdata
finish transfering Notifiction objects

* format
2022-07-28 09:17:14 -07:00
1098afd757 Fix TimerTasks bugs (#2196)
* Fix missing config

* add missing def

* Fix queue sas
2022-07-27 12:12:30 -07:00
bae35dec97 Implement Jobs function for C# (#2157)
#2156 - convert the `jobs` function from Python to C#
2022-07-25 03:17:46 +00:00
23a7dae606 fix log level (#2185) 2022-07-25 14:47:46 +12:00
8c636c37df Bump Azure.Storage.Blobs & Azure.Storage.Queues (#2181)
* Bump Azure.Storage.Queues in /src/ApiService/ApiService

Bumps [Azure.Storage.Queues](https://github.com/Azure/azure-sdk-for-net) from 12.9.0 to 12.11.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-net/compare/Azure.Storage.Queues_12.9.0...Azure.Storage.Queues_12.11.0)

---
updated-dependencies:
- dependency-name: Azure.Storage.Queues
  dependency-type: direct:production
...

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

* Bump Azure.Storage.Blobs in /src/ApiService/ApiService

Bumps [Azure.Storage.Blobs](https://github.com/Azure/azure-sdk-for-net) from 12.11.0 to 12.13.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-net/compare/Azure.Storage.Blobs_12.11.0...Azure.Storage.Blobs_12.13.0)

---
updated-dependencies:
- dependency-name: Azure.Storage.Blobs
  dependency-type: direct:production
...

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

* Update lockfiles

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George Pollard <gpollard@microsoft.com>
2022-07-22 00:31:29 +00:00
94db49995f Move functions into Functions namespace (#2176) 2022-07-21 20:46:31 +00:00
4fa6e74241 Enable .NET functions in check-pr for Agent-specific functions (#2119)
Enable the .NET functions for the agent by sending the agent the URI for the `-net` service.

Also fix some things causing failures when using the .NET functions (`CouldShrinkScaleset` was not implemented).

Improve error handling around table serialization/deserialization, fix an issue with int64/long mismatch between Python & C# code.

----

For `check-pr` testing:

1. There's a new parameter `enable_dotnet` which maps directly to the `--enable_dotnet` switch on `deploy.py`.
2. If you put `agent` there, all the `agent_*` functions will be enabled for .NET and disabled for Python.
3. If `agent_can_schedule` is disabled on the Python side, it will automatically tell the agent to use the .NET functions.

So to test the .NET agent functions, do a `check-pr` run with `enable_dotnet` set to `agent` and it should all work.
2022-07-20 20:40:30 +00:00
7f90c13724 Laying groundwork for TimerRepro implementation (#2168)
* Add some pre-reqs for TimerRepro

* Format and add some API to creds

* PR comment
2022-07-15 18:33:25 +00:00
ec515a57fd Implement the containers function for C# (#2078)
Fairly straightforward but required implementation of a few more functions on the `IContainers`/`Containers` class.
2022-07-12 22:00:22 +00:00
ff1d088fa1 include state filter when searching for expired jobs and tasks (#2138) 2022-07-07 14:53:51 -07:00
aa2e76e7e9 Fix execution of TimerProxy (#2133)
* Fix execution of timerProxy
- fixed behavior of Container.SaveBlob (file was not being overwritten)
- added support for default value in the entity converter
- fix scaleset size data type
- added initialization of Subnet
- renamed TestHook Info to _Info to prevent clashing of name function mame
- added target framework to ApiServiceProject to help local debugging

* fix unit tests

* fix unit tests

* remove unused property

* fix typo

* removing partial class TimerProxy
2022-07-07 09:25:51 -07:00