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

Fix: Fix Pipeline.run() running components with only defaults in the wrong order #7426

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

silvanocerza
Copy link
Contributor

Related Issues

Proposed Changes:

Changes the behaviour of Pipeline.run() to treat Components that have only default inputs the same way we treat Component with Variadic that are marked as lazy. This is done only when trying to remove Components from the internal waiting_for_input queue.

How did you test it?

I added a new unit test and verified other weren't breaking.

Notes for the reviewer

N/A

Checklist

@silvanocerza silvanocerza self-assigned this Mar 26, 2024
@silvanocerza silvanocerza requested a review from a team as a code owner March 26, 2024 14:58
@silvanocerza silvanocerza requested review from julian-risch and removed request for a team March 26, 2024 14:58
@github-actions github-actions bot added topic:tests 2.x Related to Haystack v2.0 topic:core type:documentation Improvements on the docs labels Mar 26, 2024
@silvanocerza silvanocerza requested review from davidsbatista and removed request for julian-risch March 26, 2024 14:59
@silvanocerza silvanocerza requested a review from a team as a code owner March 26, 2024 15:04
@silvanocerza silvanocerza requested review from dfokina and removed request for a team March 26, 2024 15:04
Copy link
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

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

LGTM (also, we did this in a pair-programming fashion)

@coveralls
Copy link
Collaborator

coveralls commented Mar 26, 2024

Pull Request Test Coverage Report for Build 8438251670

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 89.445%

Files with Coverage Reduction New Missed Lines %
core/pipeline/pipeline.py 4 93.84%
Totals Coverage Status
Change from base Build 8435328396: 0.02%
Covered Lines: 5525
Relevant Lines: 6177

💛 - Coveralls

@silvanocerza silvanocerza added this to the 2.0.1 milestone Mar 26, 2024
@davidsbatista davidsbatista merged commit 58d91b6 into main Mar 26, 2024
24 checks passed
@davidsbatista davidsbatista deleted the fix-pipeline-run-disorder branch March 26, 2024 15:55
@anakin87
Copy link
Member

silvanocerza added a commit that referenced this pull request Apr 8, 2024
…wrong order (#7426)

* Fix Pipeline.run() running components with only defaults in the wrong order

* Add release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 topic:core topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.0.0b8] Generator is being called twice instead of once after loading the pipeline yaml file
4 participants