Commit Graph

1420 Commits

Author SHA1 Message Date
Jordan Dominion 4bcb3c49e7 Suppress DMAPI tests warning 2023-07-08 13:34:55 -04:00
Jordan Dominion 744e1835f8 Fix test instance backwards naming 2023-07-08 13:34:55 -04:00
Jordan Dominion 05a4f89a26 Fix possible race condition in DummyChatProvider 2023-07-08 13:34:54 -04:00
Jordan Dominion 6e1b6a6f67 Fix usage of TopicClient in live tests 2023-07-08 13:34:53 -04:00
Jordan Dominion 7e0af87ee2 Fix issues with the GetCommandLine test helper 2023-07-08 09:29:17 -04:00
Jordan Dominion f31be02f1b Merge branch 'dev' into 1458-AddMapThreadsParam 2023-07-07 16:45:53 -04:00
Jordan Dominion c1f439321a Test oldest compatible BYOND version in Live test 2023-07-07 16:45:51 -04:00
Jordan Dominion a705339fdd Do not perform initial node health check immediately after registering 2023-07-07 12:05:34 -04:00
Jordan Dominion 89b32099c2 Fix issues with CachingFileDownloader in actions 2023-07-05 18:27:56 -04:00
Jordan Dominion d47f671bbf Merge branch 'dev' into '1458-AddMapThreadsParam' 2023-07-04 20:27:39 -04:00
Jordan Dominion f2d70f7aa2 Remove unnecessary SessionConfiguration from WindowByondInstaller` 2023-07-04 18:01:41 -04:00
Jordan Dominion 4eb19e7263 Change Processes to use .WaitForExitAsync()
- Remove custom exit handler.
- Move exit handling into `Tgstation.Server.Host.System.Process`.
- Adjust `IProcessExecutor.LaunchNew` signature.
- `IProcessBase.Lifetime` result now nullable to represent a detach.
- Await `Lifetime` in dispose.
2023-07-04 18:01:41 -04:00
Jordan Dominion 72afd1f4de Merge branch 'dev' into 1458-AddMapThreadsParam 2023-07-04 18:01:35 -04:00
Jordan Dominion c7ae56733b Add PublicAddress to swarm configuration and API
- `ConfigVersion` to 4.7.0.
- Add setup wizard prompt.
- `README.md` update.
- Update live tests.
2023-07-04 01:00:17 -04:00
Jordan Dominion cfdbbcfbe7 Fix .Signals .csproj's PackageReferences 2023-07-03 23:16:53 -04:00
Jordan Dominion bf5224bf49 Remove unused using 2023-07-03 23:14:33 -04:00
Jordan Dominion 77cdc19877 Add TestCommon.props for test projects 2023-07-03 22:43:48 -04:00
Jordan Dominion 2e6e2841e5 Add support for changing console title
- Move `VersionExtensions` to `Tgstation.Server.Common`.
- Fix Host watchdog API version specifying `Revision`.
2023-07-02 09:13:27 -04:00
Jordan Dominion 58cf3d7739 Fix failing test 2023-07-02 04:15:40 -04:00
Jordan Dominion d0d9e7b2ba Switch from .vdproj to .wixprojs
Wix is just better, it drives the fucking Visual Studio installer for gods' sakes. Thankfully, v4 is a whole lot better than v3 in that it's native dotnet tooling.

- Added ability to set base path for loading configuration files.
- Added Service command descriptions for help text.
- New `.exe` installer also installs dotnet dependencies.
- New `.msi` properly invokes configure, sets up and controls service, sends detach stop signal on upgrades, and uses ProgramData for configs with appropriate permissions.
- Remove .deb symlinks in favor of explicitly setting config directory.
- Adjust CI pipeline with new installer changes.
- Appropriately bump TGS migrator version.
2023-07-02 04:08:14 -04:00
Jordan Dominion 61644065c0 Remove net472 Dependency
- Replace service message boxes with P/Invoke.
- Replace service installer with `sc.exe` invocations.
- Add automatic UAC elevation to service.
- Remove unneeded GlobalSuppressions.cs.
- Upgrade Host.Watchdog/Host.Service/Host.Common/Host.Service.Tests to net6.0(-windows).
- Update docs.
2023-06-28 19:15:39 -04:00
Jordan Dominion 34e8f1328b Merge branch 'dev' into ValueTasks 2023-06-28 08:16:36 -04:00
Jordan Dominion 6695cbd168 Fix failing tests 2023-06-27 23:43:01 -04:00
Jordan Dominion fdec2b3d17 Hopefully fix swarm test spurious errors
Also add more logging
2023-06-26 10:22:38 -04:00
Jordan Dominion 8a4328bb4e Switch from .WithToken to .WaitAsync 2023-06-26 00:05:19 -04:00
Jordan Dominion 2a3a72a1e7 Convert to BackgroundService where applicable
Also fix case of localhost SqlServer in SetupWizard
2023-06-26 00:04:55 -04:00
Jordan Dominion 52fdaf3955 Add sane defaults to SetupWizard yes/no prompts 2023-06-25 21:32:10 -04:00
Jordan Dominion a6c85366ae Add Windows service commands 128, 129, and 130
- 128 triggers a server shutdown.
- 129 and 130 are identical to SIGUSR1 and SIGUSR2 respectively, triggering a graceful shutdown and detaching shutdown respectively.
- These are implemented via pipes and are preferred to using the update path going forward. Should eventually replace the param entirely at the next possibility.
- New service params to detach and restart any running server as opposed to stopping entirely.
- Defer all service control to Service executable from Configure app.
- Console runner returns non-zero on error.
- Fix setting ACL of appsettings.Production.yml.
2023-06-25 21:00:26 -04:00
Jordan Dominion 259eb8b2b3 Fix Live tests having no file logs 2023-06-23 23:11:15 -04:00
Jordan Dominion 13d5bde935 Merge branch 'dev' into 1458-AddMapThreadsParam 2023-06-21 22:39:53 -04:00
Jordan Dominion bedbb5ab8b SIGUSR2 does not let DreamDaemon gracefully shutdown 2023-06-21 02:39:10 -04:00
Jordan Dominion 6f598f38f1 Merge branch 'dev' into 1458-AddMapThreadsParam 2023-06-20 19:37:25 -04:00
Jordan Dominion 195c37479e Revert "Use ThreadPool.WaitForSingleObject for SIGUSR1"
This reverts commit 41a805648f.
2023-06-20 08:16:38 -04:00
Jordan Dominion 7e539c71aa Merge branch 'dev' into DebFuckery 2023-06-19 23:18:36 -04:00
tgstation-server 246f77bfa0 Merge branch 'master' into dev 2023-06-20 02:39:48 +00:00
Jordan Dominion a5970e9ab2 Test for an edge case I already handled
See `ranInitialDmbCheck` in WatchdogBase.MonitorLifetimes()
2023-06-19 19:41:25 -04:00
Jordan Dominion a6a01aa155 ValueTask chat Providers 2023-06-19 15:41:22 -04:00
Jordan Dominion 0a68c3adeb Merge branch 'dev' into ValueTasks 2023-06-19 15:08:23 -04:00
Jordan a95cba1225 Fix TaskExtensions.WithToken 2023-06-19 11:23:54 -04:00
Jordan 0dca581ef2 Pass in CancellationToken to (Try)SetCanceled 2023-06-19 05:16:44 -04:00
Jordan 41a805648f Use ThreadPool.WaitForSingleObject for SIGUSR1 2023-06-19 05:16:40 -04:00
tgstation-server 12319f5471 Merge branch 'master' into dev 2023-06-19 03:56:54 +00:00
Jordan d169f4b653 Another BetterWin32Errors possibility 2023-06-18 22:44:56 -04:00
Jordan 7218702bd9 Fix issues with renaming instances and setting auto-update intervals 2023-06-18 19:39:07 -04:00
Jordan 5956a71150 Merge branch 'master' into dev 2023-06-18 11:06:47 -04:00
Jordan 2e93a3f98f Fix WindowsWatchdog swapping race condition 2023-06-17 14:11:29 -04:00
Jordan aedd35fce6 Inconclusive rather than success in POSIX test 2023-06-17 12:34:54 -04:00
Jordan f1f0a350d6 PosixWatchdog doesn't need hard links
- Added ISymlinkFactory.SymlinkedDirectoriesAreFiles because they are files on Linux.
- Removed crazy-ass hard link junk from PosixWatchdog.
- Added symlink unit tests.
2023-06-16 18:23:29 -04:00
Jordan 3fa6adc37f Regression test for #1550 2023-06-16 12:21:55 -04:00
Jordan ffd2786fc9 Only test topic limits + 1 in tests
Fixes #1540
2023-06-16 04:36:52 -04:00