Skip to content

prefix mixin methods to avoid accidental overrides - #246

Merged
casparvl merged 4 commits into
EESSI:mainfrom
smoors:mixin-methods
Mar 5, 2025
Merged

casparvl merged 4 commits into
EESSI:mainfrom
smoors:mixin-methods

Conversation

@smoors

@smoors smoors commented Mar 1, 2025 •

Copy link
Copy Markdown
Collaborator

fixes #228

@casparvl casparvl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Haven't tested it yet, but looks sane to me. Just a question: in your issue, you proposed prefixing with EESSI_mixin, but you prefixed with only mixin in this PR. Since you're trying to make this more specific to avoid naming collisions: wouldn't it be better to use EESSI_mixin specifically?

I admit, the chances that we'll make another mixin class that would define these functions is small, but.. if we're making a change to make things more specific anyway, why not. Or: is your idea that we might actually want to override some of these in a different mixin class, and then it's weird if that mixin class has to define functions called EESSI_mixin...?

@smoors

smoors commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator Author

i didn't think of having other mixin classes tbh, and i don't see us implement a second one anytime soon, so i'm fine with using EESSI_mixin.

@smoors
smoors requested a review from casparvl March 4, 2025 22:57

@casparvl casparvl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Code changes look good to me. Now testing with

 reframe -t CI --run -t 1_8_node

If that all passes, this can go in :)

@casparvl
casparvl merged commit a9e00e4 into EESSI:main Mar 5, 2025
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.

rename EESSI mixin methods to avoid accidental overrides

2 participants