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 integration test that is unstable due to incorrect materialization boundaries #2095

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

pyalex
Copy link
Collaborator

@pyalex pyalex commented Nov 30, 2021

Signed-off-by: pyalex moskalenko.alexey@gmail.com

What this PR does / why we need it:

test_universal_e2e::test_e2e_consistency is flaky since test records' timestamps and materialization boundaries (start and end times) are generated independently. So materialization is inconsistent, most of the time it writes 3 rows, but in some moments it could materialize the whole test dataframe (5 rows) in one go, which is not expected behavior.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2021

Codecov Report

Merging #2095 (2eb66ce) into master (fc9b767) will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2095      +/-   ##
==========================================
+ Coverage   83.53%   83.71%   +0.17%     
==========================================
  Files         100      100              
  Lines        8079     8263     +184     
==========================================
+ Hits         6749     6917     +168     
- Misses       1330     1346      +16     
Flag Coverage Δ
integrationtests 74.35% <100.00%> (+0.38%) ⬆️
unittests 58.03% <14.28%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdk/python/feast/infra/offline_stores/redshift.py 85.97% <100.00%> (-1.02%) ⬇️
...python/tests/integration/e2e/test_universal_e2e.py 88.00% <100.00%> (ø)
sdk/python/feast/infra/offline_stores/file.py 98.00% <0.00%> (+1.20%) ⬆️
sdk/python/feast/infra/offline_stores/bigquery.py 82.84% <0.00%> (+1.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc9b767...2eb66ce. Read the comment docs.

@pyalex pyalex changed the title [WIP] Better isolation in integration tests [WIP] Don't modify shared environment context in ITs Dec 1, 2021
@pyalex pyalex changed the title [WIP] Don't modify shared environment context in ITs [WIP] Don't modify shared environment in ITs Dec 1, 2021
@pyalex pyalex changed the title [WIP] Don't modify shared environment in ITs Don't modify shared environment in ITs Dec 1, 2021
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
@pyalex pyalex changed the title Don't modify shared environment in ITs Fix integration test that is unstable due to incorrect materialization boundaries Dec 2, 2021
Signed-off-by: pyalex <moskalenko.alexey@gmail.com>
Copy link
Member

@achals achals left a comment

Choose a reason for hiding this comment

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

/lgtm

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: achals, pyalex

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 73ec64d into feast-dev:master Dec 2, 2021
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.

5 participants