Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test wrongly successful build steps in CI #105

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

abelbraaksma
Copy link
Member

@abelbraaksma abelbraaksma commented Nov 24, 2022

It turned out that the CI steps incorrectly returns success. Running build.cmd in a default CI Github workflow leads to the %ERRORLEVEL% being swallowed, which is a result of the default shell on Windows being PowerShell Core. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell for more info.

Solution: use shell: cmd in the steps that require proper handling of Windows command scripts.

Also, see this SO question.

Before rewriting the history in this PR, there were numerous attempts at fixing this, using a deliberately failing (compile error) build, which kept showing up as green (success). Squashed all those bits for readability.

@abelbraaksma abelbraaksma force-pushed the test-wrongly-successful-workflow branch from 2a02922 to e50455f Compare November 24, 2022 23:02
@abelbraaksma abelbraaksma force-pushed the test-wrongly-successful-workflow branch from e50455f to 1b6dc76 Compare November 24, 2022 23:12
@abelbraaksma abelbraaksma merged commit 5020538 into main Nov 24, 2022
@abelbraaksma abelbraaksma deleted the test-wrongly-successful-workflow branch November 24, 2022 23:24
@abelbraaksma abelbraaksma added github_actions Pull requests that update GitHub Actions code investigation Requires further or deeper investigation build and infra Related to building or infrastructure labels Nov 25, 2022
@abelbraaksma abelbraaksma added this to the v0.3.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build and infra Related to building or infrastructure github_actions Pull requests that update GitHub Actions code investigation Requires further or deeper investigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant