Skip to content

Commit 13f91f7

Browse files
committed
Merged PR 763373: Make codex analysis run again by tracking user build in RunCheckinTest
Make codex analysis run again by tracking user build in RunCheckinTest Related work items: #2142877
1 parent 7f632b7 commit 13f91f7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎Public/Src/FrontEnd/Sdk/SimpleFrontEndEngineAbstraction.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public override void RecordFrontEndFile(AbsolutePath path, string frontEnd)
142142
/// <inheritdoc />
143143
public override bool TryGetBuildParameter(string name, string frontEnd, out string value, LocationData? locationData = null)
144144
{
145-
if (frontEnd == "DScript")
145+
if (frontEnd == "DScript" || frontEnd == "NugetFrontEnd")
146146
{
147147
value = Environment.GetEnvironmentVariable(name);
148148
return true;

‎RunCheckInTests.cmd‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ endlocal && exit /b 0
140140
set start=!time!
141141
set stepName=Building using BuildXL
142142
call :StatusMessage !stepName!
143-
call :RunBxl -Use RunCheckinTests %BUILDXL_ARGS% /q:Debug /q:DebugNet472 /f:tag='compile' /TraceInfo:RunCheckinTests=RunCodex /incrementalScheduling- /enableLazyOutputs- -SharedCacheMode disable
143+
REM Need to use /trackBuildsInUserFolder+ so that the build invocation is written to the .tsv file in User Settings folder.
144+
REM The subsequent bxlAnalyzer.exe invocation will read this .tsv file to get information about this build for Codex analysis.
145+
call :RunBxl -Use RunCheckinTests %BUILDXL_ARGS% /q:Debug /q:DebugNet472 /f:tag='compile' /TraceInfo:RunCheckinTests=RunCodex /trackBuildsInUserFolder+ /incrementalScheduling- /enableLazyOutputs- -SharedCacheMode disable
144146
if !ERRORLEVEL! NEQ 0 (exit /b 1)
145147
call :RecordStep "!stepName!" !start!
146148

0 commit comments

Comments
 (0)