Skip to content

detect use of deprecated behavior in test runs#21885

Merged
branfosj merged 1 commit intoeasybuilders:5.0.xfrom
Flamefire:detect-deprecated-on-ci
Nov 23, 2024
Merged

detect use of deprecated behavior in test runs#21885
branfosj merged 1 commit intoeasybuilders:5.0.xfrom
Flamefire:detect-deprecated-on-ci

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

Re-enable the option to error on any deprecated behavior.

This is more general than the test case added in 93ed7fe checking (only) for use of deprecated EC parameters.

I'm not fully sure which one we want:

  1. test_pr_deprecated_ec_params catches only deprecated EC params in changed easyconfigs
  2. $EASYBUILD_DEPRECATED catches any use of deprecated behavior

The advantage of the test method is that it reports failures for all (changed) ECs in a single error while $EASYBUILD_DEPRECATED would error and stop on the first failure. We can also be more specific in what kind of deprecated behavior we want to check for if we don't use the variable, e.g. just the EC params in changed ECs, not also in dependencies. But then I don't see how we could easily detect e.g. usage of functions deprecated in the framework.

In any case, we should either merge this PR or remove the commented line.

Re-enable the option to error on any deprecated behavior.
@Flamefire Flamefire changed the title detect use of deprecated behavior in CI runs detect use of deprecated behavior in test runs Nov 19, 2024
@branfosj branfosj added the EasyBuild-5.0 EasyBuild 5.0 label Nov 23, 2024
@branfosj branfosj added this to the 5.0 milestone Nov 23, 2024
Copy link
Copy Markdown
Member

@branfosj branfosj left a comment

Choose a reason for hiding this comment

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

I'm happy to turn this on for EB5. We can always revisit if we have problems with it and turn it back off again (as we did in #13257).

@branfosj branfosj merged commit 84450fd into easybuilders:5.0.x Nov 23, 2024
@Flamefire Flamefire deleted the detect-deprecated-on-ci branch November 24, 2024 15:04
@boegel boegel added the tests label Dec 4, 2024
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.

3 participants