Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Update skip reason
Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
  • Loading branch information
sudohainguyen committed Mar 2, 2024
commit f291b9047c4a5e2c6039113e723f8b54a4c24c11
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@pytest.mark.parametrize("pass_as_path", [True, False], ids=lambda v: str(v))
@pytest.mark.skipif(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does 2.0.3 also contain this bug? If so, even after snowflake is released, 3.8 tests will still fail once we remove skipifs as the latest pandas release in 3.8 is 2.0.3. Will we need to pin pandas version below 2.0.0 only for python 3.8 using environment markers?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

well actually the bug appears running pandas testing only,
it does not affect to features though

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

still, wdyt about adding something like this in our ci extras: pandas < 2.0.0 : python_version == '3.8'. Would be better than skipping the tests entirely.

pd.__version__ < "2.2.0" and pd.__version__ >= "2.0.0",
reason="Requires pandas version 2.2.0 or higher",
reason="Skip test due to pandas issue 55730 for pandas version 2.0.0 - 2.1.0",
# https://github.com/pandas-dev/pandas/issues/55730
)
def test_feature_service_logging(environment, universal_data_sources, pass_as_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ def test_historical_features_with_entities_from_query(

table_from_sql_entities = job_from_sql.to_arrow().to_pandas()
for col in table_from_sql_entities.columns:
# check if col dtype is timezone naive
if pd.api.types.is_datetime64_dtype(table_from_sql_entities[col]):
table_from_sql_entities[col] = table_from_sql_entities[col].dt.tz_localize(
"UTC"
)
expected_df_query[col] = expected_df_query[col].astype(
table_from_sql_entities[col].dtype
)
Expand Down Expand Up @@ -515,7 +520,7 @@ def test_historical_features_with_no_ttl(
@pytest.mark.universal_offline_stores
@pytest.mark.skipif(
pd.__version__ < "2.2.0" and pd.__version__ >= "2.0.0",
reason="Requires pandas version 2.2.0 or higher",
reason="Skip test due to pandas issue 55730 for pandas version 2.0.0 - 2.1.0",
# https://github.com/pandas-dev/pandas/issues/55730
)
def test_historical_features_from_bigquery_sources_containing_backfills(environment):
Expand Down