Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make Override a first-class citizen, not just a dict #103

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

akx
Copy link
Member

@akx akx commented Aug 3, 2023

Extracted from #97.

@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2023

Codecov Report

Merging #103 (0a11fa5) into master (bb90a8a) will increase coverage by 0.17%.
The diff coverage is 100.00%.

❗ Current head 0a11fa5 differs from pull request most recent head 391dcd8. Consider uploading reports for the commit 391dcd8 to get more accurate results

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   92.15%   92.32%   +0.17%     
==========================================
  Files          60       61       +1     
  Lines        1771     1798      +27     
  Branches      298      299       +1     
==========================================
+ Hits         1632     1660      +28     
  Misses         72       72              
+ Partials       67       66       -1     
Files Changed Coverage Δ
valohai_yaml/objs/pipelines/execution_node.py 92.00% <100.00%> (+0.69%) ⬆️
valohai_yaml/objs/pipelines/override.py 100.00% <100.00%> (ø)
valohai_yaml/objs/step.py 100.00% <100.00%> (ø)
valohai_yaml/pipelines/conversion.py 94.59% <100.00%> (-0.41%) ⬇️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@akx akx marked this pull request as ready for review August 3, 2023 06:15
@akx akx requested review from ruksi and tokkoro August 3, 2023 06:15
@akx akx force-pushed the first-class-override branch 2 times, most recently from 0a11fa5 to 53d31f0 Compare August 3, 2023 07:13
Copy link
Member

@ruksi ruksi left a comment

Choose a reason for hiding this comment

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

give pipeline node step overrides proper types in JSON Schema and Python

lgtm 💯


@classmethod
def parse(cls, data: SerializedDict) -> Override:
kwargs = parse_common_step_properties(data)
Copy link
Member

Choose a reason for hiding this comment

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

reuse from the step.parse, good good yes yes

Co-authored-by: Aarni Koskela <akx@iki.fi>
@akx akx enabled auto-merge (rebase) August 3, 2023 09:19
@akx akx merged commit c9b608e into master Aug 3, 2023
7 checks passed
@akx akx deleted the first-class-override branch August 3, 2023 09:20
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.

3 participants