Skip to content

also ignore errors raised during test step when --ignore-test-failure is used#4881

Merged
lexming merged 3 commits intoeasybuilders:developfrom
boegel:fix_ignore_test_fail
May 16, 2025
Merged

also ignore errors raised during test step when --ignore-test-failure is used#4881
lexming merged 3 commits intoeasybuilders:developfrom
boegel:fix_ignore_test_fail

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 16, 2025

This fixes a regression in EasyBuild v5.0.0, see the changes that were made in EasyBlock._test_step in:

While --ignore-test-failure worked with EasyBuild 4.x to let an installation of PyTorch complete even when too many failing tests were found, it doesn't work anymore with EasyBuild v5.0.0 because the custom easyblock for PyTorch raises an EasyBuildError (since it goes way beyond just a running a shell command in the test step).

test_toy_failing_test_step was enhanced to verify the fix

Copy link
Copy Markdown
Contributor

@lexming lexming left a comment

Choose a reason for hiding this comment

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

LGTM

@lexming lexming enabled auto-merge May 16, 2025 10:09
@lexming lexming merged commit 6e212be into easybuilders:develop May 16, 2025
46 of 47 checks passed
@boegel boegel deleted the fix_ignore_test_fail branch May 16, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants