Skip to content

Conversation

@eputnam
Copy link
Contributor

@eputnam eputnam commented Dec 15, 2024

I don't completely understand what's going on, but somewhere in our 3-deep powershell script execution, the exit code of the CD4PE job is getting swallowed and turned into 0 every time. This results in a lot of false positives for users running jobs on windows agents. By adding this exit statement, pdk test unit, for example, will exit 1 when tests fail now. Rejoice.

I don't completely understand what's going on, but somewhere in our 3-deep  powershell script execution, the exit code of the CD4PE job is getting swallowed and turned into 0 every time. This results in a lot of false positives for users running jobs on windows agents. By adding this exit statement, pdk test unit, for example, will exit 1 when tests fail now. Rejoice.
@eputnam eputnam requested a review from a team as a code owner December 15, 2024 22:39
@eputnam eputnam force-pushed the CDPE-7090/powershell-exit branch 5 times, most recently from 9d18637 to cb2b271 Compare December 16, 2024 04:01
The 'patron' gem requires us to install libcurl4 and
libcurl4-openssl-dev to build its native extensions. 'patron' is a
dependency of the module meta-gem.
@eputnam eputnam force-pushed the CDPE-7090/powershell-exit branch from cb2b271 to f624ce4 Compare December 16, 2024 04:04
Copy link
Contributor

@abottchen abottchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird. Feels like this is what the script should be exiting with by default.

@eputnam
Copy link
Contributor Author

eputnam commented Dec 16, 2024

tests did not catch this because we run an invalid powershell script to test failure, not a valid script that fails.

@eputnam eputnam force-pushed the CDPE-7090/powershell-exit branch 2 times, most recently from 956430d to c08dcc3 Compare December 16, 2024 19:31
@eputnam eputnam merged commit 64b093a into master Dec 16, 2024
9 checks passed
@eputnam eputnam deleted the CDPE-7090/powershell-exit branch December 16, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants