Skip to content

Commit

Permalink
chore: Update packages and fix lint issues (#4790)
Browse files Browse the repository at this point in the history
* chore: Updated testcontainers to support MilvusContainer

Signed-off-by: Francisco Javier Arceo <[email protected]>

* downgraded

Signed-off-by: Francisco Javier Arceo <[email protected]>

* updating libraries to downgrade singlestore to 1.7.2

Signed-off-by: Francisco Javier Arceo <[email protected]>

* fixing lint issues post package upgrades

Signed-off-by: Francisco Javier Arceo <[email protected]>

* downgraded pyarrow

Signed-off-by: Francisco Javier Arceo <[email protected]>

---------

Signed-off-by: Francisco Javier Arceo <[email protected]>
  • Loading branch information
franciscojavierarceo authored Nov 26, 2024
1 parent ccc9aea commit d2ba4ef
Show file tree
Hide file tree
Showing 15 changed files with 276 additions and 251 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/driver_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import itertools
from datetime import timedelta, timezone
from enum import Enum
from zoneinfo import ZoneInfo

import numpy as np
import pandas as pd
from zoneinfo import ZoneInfo

from feast.infra.offline_stores.offline_utils import (
DEFAULT_ENTITY_DF_EVENT_TIMESTAMP_COL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class JWTAuthModel(FeastConfigBaseModel):


class CertificateAuthModel(FeastConfigBaseModel):
cert: FilePath = Field(default=None, alias="cert-file")
key: FilePath = Field(default=None, alias="key-file")
cert: Optional[FilePath] = Field(default=None, alias="cert-file")
key: Optional[FilePath] = Field(default=None, alias="key-file")


CLASSES_BY_AUTH_TYPE = {
Expand Down
7 changes: 4 additions & 3 deletions sdk/python/feast/registry_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,10 @@ def start_server(
reflection.enable_server_reflection(service_names_available_for_reflection, server)

if tls_cert_path and tls_key_path:
with open(tls_cert_path, "rb") as cert_file, open(
tls_key_path, "rb"
) as key_file:
with (
open(tls_cert_path, "rb") as cert_file,
open(tls_key_path, "rb") as key_file,
):
certificate_chain = cert_file.read()
private_key = key_file.read()
server_credentials = grpc.ssl_server_credentials(
Expand Down
Loading

0 comments on commit d2ba4ef

Please sign in to comment.