Commit Graph
2800 Commits
Author SHA1 Message Date
Dominion ae634b2e7a Downgrade this message to a warning 2023-05-19 22:45:09 -04:00
Dominion 39692bec2c Actually enable node request logging in swarm mode 2023-05-17 23:10:38 -04:00
Dominion d86b4c8e33 Use the GitHubAccessToken when downloading the ServerUpdatePackage
Workaround for https://github.com/actions/runner-images/issues/7007
2023-05-17 20:10:29 -04:00
Dominion 4ee05fcd0c Dare to upgrade libgit2 and remove libssl dep 2023-05-14 19:46:42 -04:00
Dominion cc74e83939 Fix erroneous messages regarding unparsable release tags 2023-05-14 18:28:48 -04:00
Dominion 25a74c3234 Add missing events to DMAPI 2023-05-14 10:49:43 -04:00
Dominion 2424de4c99 Cleaned up READMEs somewhat 2023-04-30 18:57:05 -04:00
Dominion c1060816fe Move NativeMethods to System namespace 2023-04-30 18:44:00 -04:00
Dominion b35a161215 DO NOT USE LOCAL TIME!!! 2023-04-30 11:35:49 -04:00
Dominion 765d5f1832 Code cleanup in DatabaseConnectionFactory 2023-04-30 10:42:57 -04:00
Dominion 063a88cff4 Fix bad conditional 2023-04-30 09:44:50 -04:00
Dominion 2f4d24dda1 Do not recreate OperationCanceledException 2023-04-30 09:40:58 -04:00
Dominion 0726a4840e Move Message.cs to the correct folder 2023-04-30 09:40:09 -04:00
Dominion d91139caff Improvements to GitHubClientFactory
- Add caching, and logging (useful for rate limit prediction).
2023-04-30 09:32:27 -04:00
Dominion 066c38c87b Improved logging for ServerUpdater.BeginUpdate 2023-04-30 08:06:42 -04:00
Dominion 677e358100 Fix swarm node logging not working correctly 2023-04-29 22:59:10 -04:00
Dominion 96d3269836 Fix using without await 2023-04-29 16:18:41 -04:00
Dominion 4793012413 Test resistance to rate limit issues
- Unsealed ApiClient to allow tests to override with rate limit aware client that waits for rate limits to clear.
- Allowed injecting into ServerClientFactory's static ApiClientFactory.
- Use Octokit provided function for calculating retry delays.
- Fixed a rogue newline semicolon.
- Moved downgrade migrations test out of live tests.
- Admin tests now check for V5 releases.
- Fixed not disposing a StringContent in ApiClient.
- Bump client patch version.
- Added missing .ConfigureAwait(false) to async ApiClient call.
2023-04-29 15:14:22 -04:00
Dominion 0d009a8496 Log when a swarm server broadcast is skipped 2023-04-28 12:37:01 -04:00
Dominion 4883d880c0 Fix reversed log lines in WindowsProcessFeatures 2023-04-27 22:27:37 -04:00
Dominion bb6cec3456 Fix another bad API definition [APIDeploy] 2023-04-26 00:50:38 -04:00
Dominion 48214902fb Minor API version fix 2023-04-25 21:21:25 -04:00
Dominion 4b75a7ee11 Fix ByondManager.Dispose() not getting called
- Make Instance.Dispose() more async friendly
2023-04-24 22:49:17 -04:00
Dominion d593026625 Fix CA1810 2023-04-24 20:46:51 -04:00
Dominion c94379d700 Revert "Remove unneccessary warning suppression"
This reverts commit 8c11454239.
2023-04-24 20:44:40 -04:00
Dominion 11e191779d Fix another semicolon 2023-04-24 20:29:23 -04:00
Dominion cd1f458f5c Remove spammy log line 2023-04-24 20:23:07 -04:00
Dominion 843e2f932a Get rid of DeploymentProcess' weird stage handling 2023-04-24 20:20:53 -04:00
Dominion 99c4537aa9 Implement BYOND installation deletion
- Add ErrorCode for if a BYOND installation delete attempt is made for the active version.
- Added ByondVersionDeleteRequest new parent of ByondVersionRequest.
- Added ByondRights.DeleteInstall.
- Added BYOND install delete support to client
- Made ByondExecutableLock use the reference counting system.
- Moved TrustDmbPath to ByondManager internals. Removes ByondExecutableLock's dependency on IIOManager.
- Ensured ByondManager doesn't deal in Versions where .Build == 0.
- Fixed race condition where ByondController could attempt to install a version in the scope of a request.
- Fixed long running DMAPI test code specifying a minimum security level of Ultrasafe when it writes files.
- Added JobsRequiredTest.WaitForJobProgress.
- Added BYOND installation deletion integration tests.
- Fixed modifying the user BYOND configuration having a race condition across instances.
- Various code cleanups.
2023-04-24 20:15:10 -04:00
Dominion 6a4d2bc0d5 Use constant instead of magic string 2023-04-24 20:01:13 -04:00
Dominion 3e18e5880d Fix a VS message 2023-04-24 19:16:24 -04:00
Dominion 4724bf2896 Minor code cleanups in watchdogs 2023-04-24 18:48:13 -04:00
Dominion 6ef3d88db7 Fix logging placeholders in FileTransferService 2023-04-24 18:36:10 -04:00
Dominion 71577d1ea3 Setting the Stage of a JobProgressReporter now updates progress instantly 2023-04-24 18:35:51 -04:00
Dominion b2f571a92d Corrects a misplaced semicolon 2023-04-24 18:35:11 -04:00
Dominion a3b3f91808 Fix reference counts never decreasing 2023-04-24 18:34:35 -04:00
Dominion 188af390cc Better generic reference counting
- Fixes offline instance getting cancelled by request abortion.
2023-04-24 14:14:20 -04:00
Dominion 1d6cc3bc74 Add missing Delete<TBody, TResult> overload to IApiClient 2023-04-24 14:03:16 -04:00
Dominion 7bccd6efbe Make Components.InstanceContainer into generic Utils.ReferenceCountingContainer
- Make instance manager fields full types, not interfaces.
2023-04-24 09:39:35 -04:00
Dominion ca59f4dcf6 Fold SwarmIntegrityCheckFailed into unused ErrorCode 28 2023-04-23 14:14:09 -04:00
Dominion 8c11454239 Remove unneccessary warning suppression 2023-04-23 14:11:34 -04:00
Dominion 4ecdf8afe1 Move duplicate concrete IAbstractHttpClientFactorys to Common.HttpClientFactory 2023-04-23 13:57:57 -04:00
Dominion 43e1fec1b0 Move a bunch of non-core classes to new Utils namespace
- Clean up VS messages, primarily in SessionController.cs
2023-04-23 13:42:16 -04:00
Dominion 86f9d350f6 Clean up LogContext templating and properties
- Bring Serilog LogContext related items into new SerilogContextHelper class.
- ODR LogContext property names.
- InstanceController now inherits InstanceRequiredController and no longer holds an IInstanceManager reference.
- InstanceRequiredController.ValidateInstanceOnlineStatus() no longer static
- Subinterface IInstanceOperations created to reduce surface area InstanceController uses.
- Extracted much of InstanceRequiredController's functionality into new parent ComponentInterfacingController to not break swagger generation type checking (InstanceRequiredController adds the mandatory InstanceId header in the spec but InstanceController inherits ComponentInterfacingController without those checks).
- Added code paths to allow add swarm node identifer to LogContext. Use in Live tests.
- IInstanceManager retrieved via DI in Application for UseAsyncInitialization().
- Correct controller doc comments.
- Minor code cleanups.
2023-04-23 13:07:40 -04:00
Dominion a36c69c25c Logging placeholder cleanup 2023-04-23 10:31:03 -04:00
Dominion 708b5c21e4 Fix cancelled requests being logged as errors during startup
Also cleanup ApplicationBuilderExtensions.cs
2023-04-23 10:27:14 -04:00
Dominion 8756b09e41 Fix the web server not starting while InstanceManager was initializing 2023-04-23 10:25:46 -04:00
Dominion ac2a9f11d1 Fix CA1024 2023-04-23 03:35:30 -04:00
Dominion 06043de502 Fix a ton of Repository linter errors 2023-04-23 02:40:26 -04:00
Dominion d771da71b9 Add General:DeploymentDirectoryCopyTasksPerCore config option 2023-04-23 02:34:11 -04:00