This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
@@ -0,0 +1,35 @@
@ECHO OFF
IF %1.==. GOTO ParametersMissing
IF %2.==. GOTO ParametersMissing
IF %3.==. GOTO ParametersMissing
IF %4.==. GOTO ParametersMissing
DEL %2
SettingsReader.exe extract -S%1 -FUnified -IApiClient -O%2 --no-timer
GOTO End
:ParametersMissing
ECHO Error! Either the server name or the output file name is not defined!
ECHO Usage: %0 [server name] [settings dump file name] [old settings dump file name] [diff file name]
exit 2
:End
IF NOT EXIST %2 (
ECHO Settings extraction failed for %1
ECHO Settings extraction failed for %1 > %4
ECHO Copying settings from previous build to %2 >> %4
COPY NUL %2
IF EXIST %3 XCOPY /Y %3 %2
)
IF EXIST %3 (
ECHO ^< Current settings ^(%2^) > %4
ECHO --- >> %4
ECHO ^> Previous settings ^(%3^) >> %4
ECHO Difference: >> %4
diff.exe %2 %3 >> %4
)
IF EXIST %4 TYPE %4
Binary file not shown.
Binary file not shown.
+17
View File
@@ -0,0 +1,17 @@
==================================================================================
== Instruments for gathering and comparing the settings on a tested environment ==
==================================================================================
I. Binaries used.
1. SettingsReader.Web.exe : a Roblox in-house tool written by Yuri Belotserkovsky that gets the settings values from the database on the given instance (sitetest1/2/3 in case of web settings, gametest* in case of client FastFlags)
* CommandLine.dll is a dependency for the tool, it also uses Newtonsoft.Json.dll that is copied from Automation\External\DLLs
2. diff.exe : a GNU open-source diff tool implementation for Windows, provides a well-formatted and very readable output of the difference between 2 files.
* Source: http://www.gnu.org/software/diffutils/
* libiconv2.dll, libintl3.dll are dependencies for diff.exe, source is the same: http://www.gnu.org/software/diffutils/
II. Syntax (as used in TeamCity)
> GetSettings.bat <SERVER> <SETTINGS FILE> <PREVIOUS SETTINGS> <DIFF FILE>
* <SERVER> : the name of the instance the tests are run on, specified in build parameters on TC
* <SETTINGS FILE> : the file where the settings are stored; is compared to previous settings file and then exported to build artifacts
* <PREVIOUS SETTINGS> : the settings from previous build, fetched from previous build's artifacts; compared with current settings dump
* <DIFF FILE> : the file where the diff output is stored; exported to artifacts