-
Notifications
You must be signed in to change notification settings - Fork 998
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: Bumping fastapi + starlette #3938
chore: Bumping fastapi + starlette #3938
Conversation
Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.99.1 to 0.109.1. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.99.1...0.109.1) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
012dbd2
to
bcebc63
Compare
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
bcebc63
to
b9b8b26
Compare
Linting failed, could you check @bushwhackr ? |
Considering upgrading mypy too? 👀 |
I'm looking to pin the mypy version to 1.4.1 but like the #3942 there are quite a number of linting failures. Let me see if I can do one with minimum changes. |
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
…tedError Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
0ef5334
to
d9ddf13
Compare
I'm of the opinion to skip tests mypy type errors till a later PR. Seems like alot of classes in sdk/python/tests/integration/feature_repos/universal/**/* have classes that do not confirm to the BaseClass abstract method definition. For example: feast/sdk/python/tests/integration/feature_repos/universal/data_source_creator.py Lines 16 to 25 in 49d2988
subclass: feast/sdk/python/tests/integration/feature_repos/universal/data_sources/bigquery.py Lines 63 to 71 in 49d2988
|
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
@sudohainguyen could you rerun the tests. Linting should pass now
|
great! re-running |
oh no 😢 @bushwhackr fail again |
e1ac385
to
94ced34
Compare
Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
great, now unit tests 😓 |
…concrete Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
@sudohainguyen my bad, please try again. Hopefully I can get this in before lunar new year |
Perfect! All checks passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work! all problem solved
lgtm
is there any issue in terms of performance we should know? @bushwhackr
None at all, all changes are to fix linting issues. |
cd ${ROOT_DIR}/sdk/python; python -m mypy | ||
cd ${ROOT_DIR}/sdk/python; python -m mypy --exclude=/tests/ --follow-imports=skip feast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would feel this is the biggest change, is that I only limit the linting checks to sdk/python/feast directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we still check tests? a lot of changes needed right?
to revert to the old mypy settings:
|
alright, let's get rid of it in another PR |
@@ -418,7 +418,7 @@ def _delete_object( | |||
""" | |||
cursor = execute_snowflake_statement(conn, query) | |||
|
|||
if cursor.rowcount < 1 and not_found_exception: | |||
if cursor.rowcount < 1 and not_found_exception: # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this and can pass the mypy check:
if cursor.rowcount and (cursor.rowcount < 1) and not_found_exception:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, this is due to another change I did to the mypy config: --follow-imports=skip
.
run the below command to see the error:
python -m mypy --exclude=/tests/ sdk/python/feast/infra/registry/snowflake.py you will see an error.
`sdk/python/feast/infra/registry/snowflake.py:421: error: Unsupported operand types for > ("int" and "None") [operator]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
essentially cursor.rowcount could return none from snowflake's signature
@property
def rowcount(self) -> int | None:
return self._total_rowcount if self._total_rowcount >= 0 else None
any blockers? |
Need your merge actions here 🙏 @franciscojavierarceo |
I will fix (have fixed) this in my PR. #3942 |
What this PR does / why we need it:
Bumping vuln fastapi version. https://nvd.nist.gov/vuln/detail/CVE-2024-24762
Changes
sdk/python/feast
directoryWhich issue(s) this PR fixes:
Fixes #3931 #3930