Skip to content

gh-148644: propagate PGO job exit code in PCbuild/build.bat#148645

Open
rdesgroppes wants to merge 1 commit intopython:mainfrom
rdesgroppes:propagate-pgo-test-exit-code
Open

gh-148644: propagate PGO job exit code in PCbuild/build.bat#148645
rdesgroppes wants to merge 1 commit intopython:mainfrom
rdesgroppes:propagate-pgo-test-exit-code

Conversation

@rdesgroppes
Copy link
Copy Markdown

@rdesgroppes rdesgroppes commented Apr 16, 2026

Replace the if "%clean%"=="false" (...) block with a goto :RunPgoJob so the job runs outside any parenthesized block, where %ERRORLEVEL% is not subject to eager evaluation.

Save the exit code before call :Kill resets it, then propagate it if non-zero.

Replace the `if "%clean%"=="false" (...)` block with a `goto :RunPgoJob`
so the job runs outside any parenthesized block, where `%ERRORLEVEL%` is
not subject to eager evaluation.

Save the exit code before `call :Kill` resets it, then propagate it if
non-zero.
@rdesgroppes rdesgroppes requested a review from a team as a code owner April 16, 2026 12:30
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Apr 16, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 16, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@rdesgroppes
Copy link
Copy Markdown
Author

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

I guess so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant