Skip to content

Fix reporting of method name in EasyBlock.run_step#4920

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix-step-name-reporting
Jun 18, 2025
Merged

Fix reporting of method name in EasyBlock.run_step#4920
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:fix-step-name-reporting

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

The step method is a method returning the actual method. The Bundle easyblock uses a getattr call there instead of the method name.

As the reflection looks at local name(s) it will find the getattr instead of the actual method.

Access the __name__ property of the returned function instead so we will always get the right name no matter how the lambda/method is defined.

The step method is a method returning the actual method.
The `Bundle` easyblock uses a `getattr` call there instead of the method name.

As the reflection looks at local name(s) it will find the `getattr`
instead of the actual method.

Access the `__name__` property of the returned function instead so we
will always get the right name no matter how the lambda/method is defined.
@Flamefire Flamefire force-pushed the fix-step-name-reporting branch from d3dadd4 to f979cad Compare June 13, 2025 08:31
@boegel boegel changed the title Fix reporting of step name Fix reporting of method name in EasyBlock.run_step Jun 18, 2025
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel added the bug fix label Jun 18, 2025
@boegel boegel added this to the next release (5.1.1?) milestone Jun 18, 2025
@boegel boegel merged commit 9e32aa5 into easybuilders:develop Jun 18, 2025
37 checks passed
@Flamefire Flamefire deleted the fix-step-name-reporting branch June 18, 2025 07:15
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