Skip to content

CI: Check assertion output more rigorously, and add LFortran:latest #70

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

Merged
merged 2 commits into from
Aug 7, 2025

Conversation

bonachea
Copy link
Member

@bonachea bonachea commented Aug 3, 2025

Extend steps that run assertion failures to check not only the expected exit code, but also that the output appears to include a legible assertion message. This is intended to catch cases where the ERROR STOP character output is garbled, a defect we've now separately seen from two compilers.

New CHECK_ASSERT variable factors this logic and applies it where appropriate.

Also add testing of LFortran:latest using the container built from lfortran:main

Force bash as the default shell, because otherwise containers default to /bin/sh

Extend steps that run assertion failures to check not only the expected
exit code, but also that the output appears to include a legible assertion
message. This is intended to catch cases where the ERROR STOP character
output is garbled, a defect we've now separately seen from two compilers.

New CHECK_ASSERT variable factors this logic and applies it where appropriate.

Force bash as the default shell, because otherwise containers default
to /bin/sh
@bonachea bonachea requested a review from rouson August 3, 2025 02:52
@bonachea bonachea changed the title CI: Check assertion output more rigorously CI: Check assertion output more rigorously, and add LFortran:latest Aug 4, 2025
Copy link
Contributor

@rouson rouson left a comment

Choose a reason for hiding this comment

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

LGTM

@rouson rouson merged commit 7d3939b into BerkeleyLab:main Aug 7, 2025
24 checks passed
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.

2 participants