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
fix: Mark test skip with conditions
Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
  • Loading branch information
sudohainguyen committed Mar 2, 2024
commit ba7d048c0d076ffb18788c90c699335d018fcd96
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
@pytest.mark.integration
@pytest.mark.universal_offline_stores
@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",
# https://github.com/pandas-dev/pandas/issues/55730
)
def test_feature_service_logging(environment, universal_data_sources, pass_as_path):
store = environment.feature_store

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ def test_historical_features_with_no_ttl(

@pytest.mark.integration
@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",
# https://github.com/pandas-dev/pandas/issues/55730
)
def test_historical_features_from_bigquery_sources_containing_backfills(environment):
store = environment.feature_store

Expand Down