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

test: enhance e2e tests to also draw and serialize/deserialize the test pipelines #5910

Merged
merged 8 commits into from
Oct 9, 2023

Conversation

ZanSara
Copy link
Contributor

@ZanSara ZanSara commented Sep 28, 2023

Related Issues

Proposed Changes:

  • Enhance e2e tests to also draw and serialize/deserialize all the test pipelines under e2e/preview/pipelines.

How did you test it?

  • CI

Notes for the reviewer

Bugs that are discovered should be fixed in parallel PRs before merging this one

Checklist

@ZanSara ZanSara requested a review from a team as a code owner September 28, 2023 11:48
@ZanSara ZanSara requested review from julian-risch and removed request for a team September 28, 2023 11:48
@ZanSara ZanSara added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Sep 28, 2023
@coveralls
Copy link
Collaborator

coveralls commented Sep 28, 2023

Pull Request Test Coverage Report for Build 6407362412

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 50.187%

Totals Coverage Status
Change from base Build 6404466181: 0.0%
Covered Lines: 12512
Relevant Lines: 24931

💛 - Coveralls

@@ -121,7 +121,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "GPTGenerator":
"""
init_params = data.get("init_parameters", {})
streaming_callback = None
if "streaming_callback" in init_params:
if "streaming_callback" in init_params and init_params["streaming_callback"]:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This bug was found when I introduced serialization for the RAG pipelines. Maybe worth adding a unit test too?

Copy link
Member

Choose a reason for hiding this comment

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

Yes please, in a separate PR.

@ZanSara ZanSara added the 2.x Related to Haystack v2.0 label Sep 28, 2023
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 I mentioned an alternative, smaller language model in a comment. If you want, you could try it out. Keeping it as is is fine. 🙂

@@ -121,7 +121,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "GPTGenerator":
"""
init_params = data.get("init_parameters", {})
streaming_callback = None
if "streaming_callback" in init_params:
if "streaming_callback" in init_params and init_params["streaming_callback"]:
Copy link
Member

Choose a reason for hiding this comment

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

Yes please, in a separate PR.

e2e/preview/pipelines/test_rag_pipelines.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added the type:documentation Improvements on the docs label Oct 4, 2023
@ZanSara ZanSara merged commit 71f2430 into main Oct 9, 2023
74 checks passed
@ZanSara ZanSara deleted the e2e-for-draw-and-serialization branch October 9, 2023 11:54
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 ignore-for-release-notes PRs with this flag won't be included in the release notes. type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants