Skip to content

Commit a90ade0

Browse files
cfsmp3claude
authored andcommitted
feat: Add version logging to VM scripts for audit trail
- Update Linux runCI to log ccextractor --version before tests - Update Windows runCI.bat to log ccextractorwinfull.exe --version This ensures the binary version (including Git commit SHA) appears in the test logs, allowing verification that the correct binary is being tested. This runs safely in the isolated GCP VMs, not on the platform server. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 1afd6c1 commit a90ade0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/ci-vm/ci-linux/ci/runCI

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ if [ -e "${dstDir}/ccextractor" ]; then
6161
cp $dstDir/* ./
6262
chmod 700 ccextractor
6363
chmod +x ${tester}
64+
# Log binary version for verification (commit SHA will be visible in output)
65+
echo "=== CCExtractor Binary Version ===" >> "${logFile}"
66+
./ccextractor --version >> "${logFile}" 2>&1
67+
echo "=== End Version Info ===" >> "${logFile}"
6468
postStatus "testing" "Running tests"
6569
executeCommand cd ${suiteDstDir}
6670
executeCommand ${tester} --debug --entries "${testFile}" --executable "ccextractor" --tempfolder "${tempFolder}" --timeout 600 --reportfolder "${reportFolder}" --resultfolder "${resultFolder}" --samplefolder "${sampleFolder}" --method Server --url "${reportURL}"

install/ci-vm/ci-windows/ci/runCI.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ echo Checking for CCExtractor build artifact
2121
if EXIST "%dstDir%\ccextractorwinfull.exe" (
2222
echo Run tests
2323
copy "%dstDir%\*" .
24+
rem Log binary version for verification (commit SHA will be visible in output)
25+
echo === CCExtractor Binary Version === >> "%logFile%"
26+
ccextractorwinfull.exe --version >> "%logFile%" 2>&1
27+
echo === End Version Info === >> "%logFile%"
2428
call :postStatus "testing" "Running tests"
2529
call :executeCommand cd %suiteDstDir%
2630
call :executeCommand "%tester%" --debug True --entries "%testFile%" --executable "ccextractorwinfull.exe" --tempfolder "%tempFolder%" --timeout 600 --reportfolder "%reportFolder%" --resultfolder "%resultFolder%" --samplefolder "%sampleFolder%" --method Server --url "%reportURL%"

0 commit comments

Comments
 (0)