◐ Shell
clean mode source ↗

fix: Integration tests for async sdk method by breno-costa · Pull Request #4201 · feast-dev/feast

@breno-costa

What this PR does / why we need it:

Follow up on #4172 After checking integration tests, I understand this one is relevant to the async method. Let me know if you understand more integration tests are needed.

Which issue(s) this PR fixes:

Fixes

Signed-off-by: Breno Costa <brenocosta0901@gmail.com>

@breno-costa breno-costa changed the title fix: integration tests for async sdk method fix: Integration tests for async sdk method

May 14, 2024

@tokoko

I wonder it there's a way to do this without introducing another test. We could eventually use @pytest.mark.parametrize("use_async_client", [True, False], ids=lambda v: str(v)) on existing tests, but not sure how would we be able to right now limit async tests to only redis (without also limiting sync ones).

@breno-costa

I wonder it there's a way to do this without introducing another test. We could eventually use @pytest.mark.parametrize("use_async_client", [True, False], ids=lambda v: str(v)) on existing tests, but not sure how would we be able to right now limit async tests to only redis (without also limiting sync ones).

I'm not sure whether it's possible to configure tests in this way. I refactored a little bit to reuse same setup and assertions for both sync and async sdk methods. This may help. wdyt?

@tokoko

thanks, this looks a lot better.

Signed-off-by: Breno Costa <brenocosta0901@gmail.com>
Signed-off-by: Breno Costa <brenocosta0901@gmail.com>

tokoko

Choose a reason for hiding this comment

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

lgtm

@tokoko

@breno-costa Can you take a look here? you can ignore test_historical_features fails, but others seem legit.

Signed-off-by: Breno Costa <brenocosta0901@gmail.com>

@breno-costa

@breno-costa Can you take a look here? you can ignore test_historical_features fails, but others seem legit.

Fixed the issue.
Would it be possible to run integration tests locally?

@tokoko

@breno-costa thanks. There's a test-python-integration-local command in Makefile, It's used to run integration tests except for the ones that depend on AWS/GCP accounts.

franciscojavierarceo