Skip to content

Step name callback #2109

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 11 commits into from
May 19, 2025
Merged

Step name callback #2109

merged 11 commits into from
May 19, 2025

Conversation

tetron
Copy link
Member

@tetron tetron commented Mar 24, 2025

This adds a callback hook to runtime context to provide custom logic for naming individual instances of steps (especially including scatter steps). This does not include a cwltool extension, as such a pull request (#1477) was made in 2021 and rejected, so it only adds the hook so that others can provide the desired functionality.

@tetron tetron mentioned this pull request Mar 24, 2025
@tetron tetron requested a review from mr-c March 24, 2025 17:32
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.78%. Comparing base (f94719e) to head (c556ac1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2109      +/-   ##
==========================================
+ Coverage   84.69%   84.78%   +0.09%     
==========================================
  Files          46       46              
  Lines        8364     8368       +4     
  Branches     1961     1962       +1     
==========================================
+ Hits         7084     7095      +11     
+ Misses        809      805       -4     
+ Partials      471      468       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tetron
Copy link
Member Author

tetron commented Apr 23, 2025

@mr-c did you see this?

Comment on lines +65 to +66
vfinputs = {shortname(k): v for k, v in joborder.items()}
runtimeContext.name = runtimeContext.workflow_job_step_name_callback(self, vfinputs)
Copy link
Member

Choose a reason for hiding this comment

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

No test coverage?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand. There is a test test_workflow_job_step_name_callback and codecov says "All modified and coverable lines are covered by tests"

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

codecov was out of date, I hit "refresh" and now it says 100% coverage?

Copy link
Member

Choose a reason for hiding this comment

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

Can you squash or otherwise force-push this branch?

@mr-c mr-c merged commit 346f421 into main May 19, 2025
45 checks passed
@mr-c mr-c deleted the step-name-callback branch May 19, 2025 18:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants