Skip to content

Commit f045893

Browse files
cfsmp3claude
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 before tests - Update SP logging for Windows to show expected commit SHA This ensures the binary version (including Git commit SHA) appears in the test logs, allowing manual verification if needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent abd29cf commit f045893

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
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%"

mod_ci/controllers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,9 @@ def start_test(compute, app, db, repository: Repository.Repository, test, bot_to
539539
else:
540540
# Windows binaries can't be verified on Linux server
541541
# The binary name is ccextractorwinfull.exe
542-
# TODO: Add verification in Windows VM startup script
543-
log.info(f"Skipping binary verification for Windows (cannot run .exe on Linux)")
542+
# Log expected commit for manual verification from VM logs
543+
log.info(f"Windows test {test.id}: expected binary commit is {test.commit}")
544+
log.info(f"Binary version will be logged by runCI.bat on the Windows VM")
544545

545546
artifact_saved = True
546547
break

0 commit comments

Comments
 (0)