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

Add tests for resume scenario suggestion to parallel runner #4417

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

merelcht
Copy link
Member

@merelcht merelcht commented Jan 14, 2025

Description

#1830

Development notes

The refactoring in #4353 already added the resume suggestion to ParallelRunner. This PR adds tests to check the suggestions work as expected.

Developer Certificate of Origin

We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a Signed-off-by line in the commit message. See our wiki for guidance.

If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.

Checklist

  • Read the contributing guidelines
  • Signed off each commit with a Developer Certificate of Origin (DCO)
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes
  • Checked if this change will affect Kedro-Viz, and if so, communicated that with the Viz team

merelcht and others added 3 commits January 14, 2025 14:32
* Try fix flaky thread runner test

Signed-off-by: Merel Theisen <[email protected]>

* Fix dict into list for iteration

Signed-off-by: Merel Theisen <[email protected]>

---------

Signed-off-by: Merel Theisen <[email protected]>
@merelcht merelcht marked this pull request as ready for review January 14, 2025 15:22
@merelcht merelcht self-assigned this Jan 14, 2025
@merelcht merelcht linked an issue Jan 14, 2025 that may be closed by this pull request
@@ -311,7 +311,7 @@ def test_stricter_suggest_resume_scenario(
"""
test_pipeline = two_branches_crossed_pipeline_variable_inputs

nodes = {n.name: n for n in test_pipeline.nodes}
nodes = {n.name: n for n in list(test_pipeline.nodes)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't test_pipeline.nodes already return a list?

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 was trying to fix the issue that this test is flaky because of an iterable changing size. test_pipeline is changed below so I thought this might solve it. But I'll move this to my other PR for fixing the tests.

Copy link
Contributor

@ElenaKhaustova ElenaKhaustova left a comment

Choose a reason for hiding this comment

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

Thank you, @merelcht!

Implementation looks good to me, left one minor question.

@merelcht merelcht enabled auto-merge (squash) January 15, 2025 14:10
@merelcht merelcht merged commit a565d66 into main Jan 15, 2025
35 checks passed
@merelcht merelcht deleted the resume-suggestion-parallel-runner branch January 15, 2025 14:15
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.

Add resume suggestion to parallel runner
3 participants