Commit Graph
1992 Commits
Author SHA1 Message Date
tgstation-server 72a66b3877 Merge branch 'master' into dev 2020-07-31 02:54:35 +00:00
Jordan Brown 8be291f918 Minor cleanups [DMDeploy][APIDeploy][TGSDeploy] 2020-07-30 22:53:47 -04:00
tgstation-server f82f496d22 Merge branch 'master' into dev 2020-07-30 17:41:31 +00:00
Jordan Brown 4b934384b7 Maybe fix other sleep_offline issues 2020-07-30 13:40:29 -04:00
Jordan BrownandGitHub 98788a23d8 Merge branch 'dev' into MrStonedOne-patch-1 2020-07-30 02:42:00 -04:00
Jordan Brown 3a1caa1518 Don't crash the test if the chat broadcast fails 2020-07-30 02:13:55 -04:00
Jordan Brown 6e7b0750a3 Fix Discord timeouts crashing bridge requests in DM 2020-07-29 15:57:40 -04:00
Jordan Brown 1aa8c3b157 Fix InvalidOperationExceptions in dump jobs 2020-07-29 15:19:31 -04:00
Jordan Brown d2b2abb53c Remove redundant log message 2020-07-29 13:27:33 -04:00
Jordan Brown 33ee270a9f Fix exit handler not having a proper PID 2020-07-29 12:16:11 -04:00
Kyle Spier-SwensonandGitHub 75f6433500 Update v4 api.dm 2020-07-28 21:25:15 -07:00
Kyle Spier-SwensonandGitHub 454a70472b Update api.dm 2020-07-28 21:22:37 -07:00
Jordan Brown 3b24af9b51 Fix tests 2020-07-28 17:30:31 -04:00
Jordan Brown 6f6a6035a8 Process stuff is pain 2020-07-28 14:21:41 -04:00
Jordan Brown f219028151 Fix log file downloading directory browsing 2020-07-28 14:17:38 -04:00
Jordan Brown a7bbd7fafc Minor log message fix 2020-07-28 14:00:40 -04:00
Jordan Brown e1634fadaf Finally fix the process termination issues maybe 2020-07-28 13:42:31 -04:00
Jordan Brown 722567ded8 Fix auto updates not clearing merged PRs 2020-07-27 22:23:58 -04:00
Jordan Brown 6399c4cbf1 Process output streaming fixes 2020-07-27 13:12:58 -04:00
Jordan Brown d460330cab Log message cleanup 2020-07-26 12:58:29 -04:00
Jordan Brown b158bfbd1e More CI cleanups 2020-07-25 12:59:47 -04:00
Jordan Brown abd5e016ec More test fixes 2020-07-21 19:35:18 -04:00
Jordan Brown 513177a4eb IRC Refactor 2020-07-19 21:26:32 -04:00
Jordan Brown 7c0030180c Chungus refactors
- Added a new ErrorCode for when chat bots fail to connect
- Made IProvider IAsyncDispsable
- Removed IDatabaseContextFactory dependency from watchdogs
- Jobs will no longer start until instance manager startup is complete
- Chat provider connection is now done as a job, there is no way to retrieve directly this job through the API currently
- Fixed disabled chat bots connecting when their instance onlined
- Fixed issue with chat provider reconnection channel remapping
- IJobManager can now accept a null user in most cases which it will substitute for the TGS user
- Fixed some watchdog issues relating to accessing disposed session controllers
2020-07-19 17:54:27 -04:00
Jordan Brown af9df2130e General package update 2020-07-19 17:17:29 -04:00
Jordan Brown e4255b0a7e Fix test suite 2020-07-18 10:29:36 -04:00
Jordan Brown 561f9216ba Add down migration tests 2020-07-14 13:29:04 -04:00
Jordan Brown 4f2b32b757 Fix IPV6 issue with BindTest 2020-07-14 11:43:38 -04:00
Jordan Brown 415c15dfd3 Make sure to test IPv6 2020-07-14 10:54:30 -04:00
Jordan Brown e01aedee03 Minor code improvement 2020-07-14 10:49:03 -04:00
Jordan Brown fece7567fb Disallow address reuse for port bind tests 2020-07-14 10:26:24 -04:00
Jordan Brown 46aee33261 Fix IInstanceReferences not being disposed
Also remove unused usings
2020-07-13 21:34:48 -04:00
Jordan Brown d961186d1b Discards aren't kept around for using statements
Workaround for https://github.com/dotnet/csharplang/issues/2235
2020-07-13 19:33:52 -04:00
Jordan Brown 80cf6c415b Fix new FxCop issues 2020-07-13 14:37:15 -04:00
Jordan Brown d47498370b Use the beta version of FxCop analyzers
Fix for https://github.com/dotnet/roslyn-analyzers/issues/3850
2020-07-13 14:23:36 -04:00
Jordan Brown 11c80d5a49 Nuget update 2020-07-13 14:21:47 -04:00
Jordan Brown 2938c128ea Fix false positive failure when creating TGS user 2020-07-13 13:27:04 -04:00
Jordan Brown 466df416de Even safe instance accessing
- Break up IInstance for better separation of church and state
- Jobs now provide the IInstanceCore to the operation callback
- Added instance references to prevent race conditions with controllers and onlining/offlining
2020-07-13 13:17:18 -04:00
Jordan Brown 0ea8a11320 DMAPI 5.2.3
- Fixed issue with API consumers being able to modify immutable lists
2020-07-13 13:05:39 -04:00
Jordan Brown f923d0c87d Component instance usage cleanup
- GetInstance now returns null instead of throwing when the instance is offline. To be honest, we should wrap this in a using.
- Add safe accessor class for controllers that also performs request validation.
- API bump to 7.1.0
- Added ErrorCode 90 for offline instances, replacing the 403 response
- Move jobs now move the directory and are more fail safe
- Creating instances no longer uppercases the path on disk on Windows
2020-07-12 13:53:28 -04:00
Jordan Brown 8ac6714155 Remove instance client caching
This was so broken, wtf
2020-07-12 13:37:13 -04:00
Jordan Brown 13441348b7 Fix a potential NullReferenceException in GetLaunchResult 2020-07-11 12:14:17 -04:00
Jordan Brown e473446315 Create a system user for jobs created by TGS
- API Version bump to 7.0.2
- Deprecate error code 46
- Instance user IDs can never be null
- Make a IUsersClient.GetId more covariant (Right word?)
2020-07-11 12:13:56 -04:00
Jordan Brown 6139b02361 Fix a hang in detaching 2020-07-11 11:03:39 -04:00
Jordan Brown 24f0034e3a Update a comment about what the database seeder is for 2020-07-11 10:58:10 -04:00
Jordan Brown 1455761724 Document all usages of default cancellation tokens 2020-07-11 10:57:41 -04:00
Jordan Brown ae252591ed An overly complicated change to make sure a task is awaited.
- IDisposable moved from IProcessBase to IProcess
- IInstanceManager, IInstance, IWatchdog, and ISessionController switched from IDisposable to IAsyncDisposable
- Process lifetime continuations in SessionController now handled correctly
2020-07-11 10:41:13 -04:00
Jordan Brown 308e71d8c9 Make the first log message the server version 2020-07-11 10:03:30 -04:00
Jordan Brown 12b90f82bc Try to ensure the Kestrel port will be available when hosting starts
- Fixes #1065
2020-07-11 09:53:04 -04:00
Jordan Brown d900eaf71a Only throw error code 78 on correct socket error 2020-07-11 09:48:03 -04:00