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 unit test in Redis to return values with no max age set #329

Merged
merged 2 commits into from
Nov 27, 2019

Conversation

smadarasmi
Copy link
Contributor

Two things:

  1. Fixed the path in serving config to point to redis store config
  2. There was a bug in RedisServingService when checking for equality to default Duration. I was adding the bug fix to my Cassandra serving branch but now I saw that it has already been fixed. However, the unit test was not catching that bug, so I thought we should still have this unit test. Unit test did not catch the bug because it EntityRow and FeatureRow time specified was the same in the test so those features are never stale.

@feast-ci-bot
Copy link
Collaborator

Hi @smadarasmi. Thanks for your PR.

I'm waiting for a gojek member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@woop
Copy link
Member

woop commented Nov 27, 2019

Thanks @smadarasmi !

for (1), just to be sure: Does this not depend on your working directory when executing serving? I havent run into this problem before while using that configuration file.

for (2), this is great, thanks!

@smadarasmi
Copy link
Contributor Author

@woop for (1), I was thinking about that too. This issue happens to me always when I run mvn --pl serving spring-boot:run from the FEAST_HOME directory.

Do you perhaps not get the error because you have set this env variable: FEAST_STORE_CONFIG_PATH?
config-path: ${FEAST_STORE_CONFIG_PATH:serving/sample_redis_config.yml}

@smadarasmi
Copy link
Contributor Author

Just for my information, how do you usually run it? I get issue from both running mvn --pl serving spring-boot:run and when running ServingApplication from Intellij.

@woop
Copy link
Member

woop commented Nov 27, 2019

/ok-to-test

@woop
Copy link
Member

woop commented Nov 27, 2019

Just for my information, how do you usually run it? I get issue from both running mvn --pl serving spring-boot:run and when running ServingApplication from Intellij.

It's not infront of me, but I believe I am running it with serving/ as the working directory. I guess that is why it passes.

@davidheryanto can you have a look here?

@smadarasmi
Copy link
Contributor Author

/retest

@smadarasmi smadarasmi changed the title Fix serving bugs Add unit test in Redis to return values with no max age set Nov 27, 2019
@woop
Copy link
Member

woop commented Nov 27, 2019

/lgtm

@woop
Copy link
Member

woop commented Nov 27, 2019

/approve

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smadarasmi, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feast-ci-bot feast-ci-bot merged commit 81fb1ba into feast-dev:master Nov 27, 2019
zhilingc pushed a commit to zhilingc/feast that referenced this pull request Nov 28, 2019
…v#329)

* fix path in serving application.yml for redis serving config

* add test to RedisServingService for checking values are returned when max age is default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants