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
11 changes: 0 additions & 11 deletions src/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#
import datetime
import doctest
import logging
import os
Expand Down Expand Up @@ -101,16 +100,6 @@ def pytest_collection_modifyitems(config, items):
This function is used to skip some doctests on certain conditions.
For example, some functions in PrPr might not be available on Azure and GCP.
"""
Comment thread
sfc-gh-bkogan marked this conversation as resolved.
Resolved
# Mark flaky tests as xfail for a time
if datetime.date.today() <= datetime.date(2026, 6, 4):
xfail_ai = pytest.mark.xfail(
reason="dataframe_ai_functions doctests flaky due to infrastructure issues",
strict=False,
)
for item in items:
if isinstance(item, DoctestItem) and "dataframe_ai" in item.name:
item.add_marker(xfail_ai)

host = (
conn_params.get("host") or conn_params.get("HOST") or conn_params.get("account")
)
Expand Down
14 changes: 8 additions & 6 deletions tests/integ/test_dataframe_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Copyright (c) 2012-2025 Snowflake Computing Inc. All rights reserved.
#

import datetime
import json
import pytest
from snowflake.snowpark.functions import ai_complete, ai_extract, col, lit, to_file
Expand All @@ -14,14 +13,17 @@
"config.getoption('local_testing_mode', default=False)",
reason="AI functions are not yet supported in local testing mode.",
),
pytest.mark.xfail(
datetime.date.today() <= datetime.date(2026, 6, 4),
reason="AI tests flaky due to infrastructure issues",
strict=False,
),
]


@pytest.mark.xfail(
reason=(
"AI_COMPLETE returns NULL for this named-placeholder prompt in daily CI "
"(26/26 jobs on 2026-08-17). Client SQL generation is correct; sibling "
"llama3.1-8b complete tests pass. Keep this test running so XPASS is visible."
),
strict=False,
Comment thread
sfc-gh-bkogan marked this conversation as resolved.
Resolved
)
def test_dataframe_ai_complete_with_named_placeholders(session):
"""Test DataFrame.ai.complete with named placeholders."""
# Create a DataFrame with review data
Expand Down
Loading