Skip to content
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

Allow Artifacts in argument dictionaries #1322

Merged
merged 5 commits into from
Mar 3, 2025
Merged

Allow Artifacts in argument dictionaries #1322

merged 5 commits into from
Mar 3, 2025

Conversation

elliotgunton
Copy link
Collaborator

@elliotgunton elliotgunton commented Feb 28, 2025

Pull Request Checklist

Description of PR
Currently, only Parameters can be passed in dictionaries of arguments. This PR allows Artifacts to be passed in dictionaries, taking the key value as the new name of the Artifact (ignoring any with_name or original name values).

Also refactored _build_arguments, as promised 😎

@elliotgunton elliotgunton added semver:patch A change requiring a patch version bump type:enhancement A general enhancement labels Feb 28, 2025
@elliotgunton elliotgunton force-pushed the arguments-fix branch 2 times, most recently from c43ca54 to 3705be3 Compare February 28, 2025 23:00
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.4%. Comparing base (3498628) to head (fd761a9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1322     +/-   ##
=======================================
+ Coverage   86.3%   86.4%   +0.1%     
=======================================
  Files         60      60             
  Lines       4095    4099      +4     
  Branches     653     651      -2     
=======================================
+ Hits        3534    3543      +9     
+ Misses       391     388      -3     
+ Partials     170     168      -2     

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

@elliotgunton elliotgunton marked this pull request as ready for review February 28, 2025 23:08
@elliotgunton elliotgunton force-pushed the arguments-fix branch 2 times, most recently from 1f89535 to 93d03e8 Compare February 28, 2025 23:49
@elliotgunton elliotgunton added semver:minor A change requiring a minor version bump and removed semver:patch A change requiring a patch version bump labels Mar 1, 2025
Copy link
Collaborator

@alicederyn alicederyn left a comment

Choose a reason for hiding this comment

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

No blockers

Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
* Simplify list/creation appending
* Move special Artifact test into its own test

Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
@elliotgunton elliotgunton enabled auto-merge (squash) March 3, 2025 11:41
@elliotgunton elliotgunton merged commit c9a9a09 into main Mar 3, 2025
25 checks passed
@elliotgunton elliotgunton deleted the arguments-fix branch March 3, 2025 11:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot combine Artifacts and Parameters in a single dictionary of Step/Task arguments
2 participants