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

chore: Widen dependencies #2928

Merged
merged 11 commits into from
Jul 19, 2022

Conversation

chhabrakadabra
Copy link
Collaborator

@chhabrakadabra chhabrakadabra commented Jul 10, 2022

What this PR does / why we need it:

Widening the dependency ranges will allow Feast to be easily installable alongside other packages. Incidentally, the dependencies are widened upwards (the upper-bound on the ranges is increased), which will lead to lots of library upgrades. I might split this into multiple PRs if the upgrades cause too much chaos in CI.

Which issue(s) this PR fixes:

Fixes #2906

Additional notes

  • Most of the files changed here are related to black formatting. That's because unfortunately, I had to upgrade black because the older version of black interacted poorly with the latest version of click (see this for more details).
  • The sdk/python/feast/embedded_go/lib directory has been excluded from black. The same thing had already been done for isort, flake8 and mypy, but not for black. It makes sense to exclude autogenerated code from linting and the newest version of black was trying to reformat autogenerated/non-committed code and failing.

@chhabrakadabra chhabrakadabra changed the title Widen dependencies. chore: Widen dependencies Jul 10, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2022

Codecov Report

Merging #2928 (f23a1fe) into master (d3868c5) will decrease coverage by 1.01%.
The diff coverage is 72.09%.

@@            Coverage Diff             @@
##           master    #2928      +/-   ##
==========================================
- Coverage   78.66%   77.64%   -1.02%     
==========================================
  Files         184      184              
  Lines       16313    16313              
==========================================
- Hits        12833    12667     -166     
- Misses       3480     3646     +166     
Flag Coverage Δ
integrationtests 68.67% <68.42%> (-0.14%) ⬇️
unittests 58.45% <34.88%> (-0.98%) ⬇️

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

Impacted Files Coverage Δ
sdk/python/feast/cli.py 39.65% <ø> (ø)
sdk/python/feast/data_source.py 83.81% <ø> (ø)
sdk/python/feast/diff/infra_diff.py 75.30% <ø> (ø)
sdk/python/feast/diff/registry_diff.py 69.28% <ø> (ø)
sdk/python/feast/driver_test_data.py 100.00% <ø> (ø)
...ython/feast/embedded_go/online_features_service.py 27.81% <ø> (ø)
sdk/python/feast/feature.py 68.29% <ø> (ø)
sdk/python/feast/feature_logging.py 89.13% <ø> (ø)
sdk/python/feast/field.py 92.30% <ø> (ø)
sdk/python/feast/inference.py 88.37% <ø> (ø)
... and 80 more

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 d3868c5...f23a1fe. Read the comment docs.

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.

Generally looks good just glossed over the formatting changes

"flake8",
"black==19.10b0",
"black>=22.6.0,<23",
Copy link
Member

Choose a reason for hiding this comment

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

Is this what caused all the formatting changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah. I added this in the "Additional notes" section in the PR description. Essentially, the older version of black is not compatible with the newer version of click.

chhabrakadabra and others added 7 commits July 18, 2022 19:52
This should make it easier to install Feast alongside other Python
packages.

Signed-off-by: Abhin Chhabra <chhabra.abhin@gmail.com>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Abhin Chhabra <chhabra.abhin@gmail.com>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Abhin Chhabra <chhabra.abhin@gmail.com>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
This was covered in feast-dev#2537. I've
only generated lockfiles for Python 3.8 to test this in CI. I'll do the
same for the rest of the Python versions later.

Signed-off-by: Abhin Chhabra <abhin.chhabra@shopify.com>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
@kevjumba kevjumba marked this pull request as ready for review July 19, 2022 06:30
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, chhabrakadabra

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 92785b8 into feast-dev:master Jul 19, 2022
@chhabrakadabra chhabrakadabra deleted the widen-dependencies branch July 20, 2022 12:59
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.

Widen dependencies
5 participants