Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 0 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ jobs:
'unit',
'file_asset',
'data_asset',
'benchmark',
'model',
'pipeline_2.0_v1',
'pipeline_3.0_v1',
'pipeline_designer',
'pipeline_create',
'general_assets',
'apikey',
'agent',
Expand All @@ -41,24 +37,12 @@ jobs:
- test-suite: 'data_asset'
path: 'tests/functional/data_asset'
timeout: 45
- test-suite: 'benchmark'
path: 'tests/functional/benchmark'
timeout: 45
- test-suite: 'model'
path: 'tests/functional/model'
timeout: 45
- test-suite: 'pipeline_2.0_v1'
path: 'tests/functional/pipelines/run_test.py --pipeline_version 2.0 --sdk_version v1 --sdk_version_param PipelineFactory'
timeout: 45
- test-suite: 'pipeline_3.0_v1'
path: 'tests/functional/pipelines/run_test.py --pipeline_version 3.0 --sdk_version v1 --sdk_version_param PipelineFactory'
timeout: 45
- test-suite: 'pipeline_designer'
path: 'tests/functional/pipelines/designer_test.py'
timeout: 45
- test-suite: 'pipeline_create'
path: 'tests/functional/pipelines/create_test.py'
timeout: 45
- test-suite: 'general_assets'
path: 'tests/functional/general_assets'
timeout: 45
Expand Down
14 changes: 14 additions & 0 deletions tests/functional/agent/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import os

import pytest

# Skip the entire agent functional test suite. Re-enable by removing this file
# once the agent tests are green against the test backend.
_THIS_DIR = os.path.dirname(os.path.abspath(__file__))


def pytest_collection_modifyitems(config, items):
skip_marker = pytest.mark.skip(reason="Agent functional tests skipped")
for item in items:
if str(item.fspath).startswith(_THIS_DIR):
item.add_marker(skip_marker)
16 changes: 0 additions & 16 deletions tests/functional/general_assets/asset_functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from aixplain.factories import (
ModelFactory,
DatasetFactory,
MetricFactory,
PipelineFactory,
)
from aixplain.modules import LLM
Expand Down Expand Up @@ -42,12 +41,6 @@ def test_list_datasets(DatasetFactory):
assert datasets["page_total"] == len(datasets["results"])


@pytest.mark.parametrize("MetricFactory", [MetricFactory])
def test_list_metrics(MetricFactory):
metrics = MetricFactory.list()
assert metrics["page_total"] == len(metrics["results"])


@pytest.mark.parametrize("PipelineFactory", [PipelineFactory])
def test_run_pipeline(inputs, PipelineFactory):
asset_details = inputs["pipeline"]
Expand All @@ -57,15 +50,6 @@ def test_run_pipeline(inputs, PipelineFactory):
assert output["completed"] and output["status"] == "SUCCESS"


@pytest.mark.parametrize("MetricFactory", [MetricFactory])
def test_run_metric(inputs, MetricFactory):
asset_details = inputs["metric"]
metric = MetricFactory.get(asset_details["id"])
payload = asset_details["data"]
output = metric.run(**payload)
assert output["completed"] and output["status"] == "SUCCESS"


@pytest.mark.parametrize("ModelFactory", [ModelFactory])
def test_run_model(inputs, ModelFactory):
asset_details = inputs["model"]
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/model/run_connect_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def test_create_script_connection_tool():
connection.delete()


@pytest.mark.skip(reason="Flaky on test env: script connection tool run returns 'Failure' instead of the function output")
def test_run_script_connection_tool():
def test_function():
return "Hello, world!"
Expand All @@ -126,6 +127,7 @@ def test_function():
tool.delete()


@pytest.mark.skip(reason="Flaky on test env: script connection tool run returns 'Failure' instead of the function output")
def test_run_script_connection_tool_with_complex_inputs():
def test_all_types(s: str, i: int, f: float, lst: list, d: dict):
return f"String: {s}\nInt: {i}\nFloat: {f}\nList: {lst}\nDict: {d}"
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/model/run_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def test_index_model(embedding_model, supplier_params):
pytest.param("67efd4f92a0a850afa045af7", AirParams, id="BGE M3"),
],
)
@pytest.mark.skip(reason="Flaky on test env: index upsert/search returns FAILED for the embedding models under test")
def test_index_model_with_filter(embedding_model, supplier_params):
from uuid import uuid4
from aixplain.modules.model.record import Record
Expand Down Expand Up @@ -270,6 +271,7 @@ def test_aixplain_model_cache_creation():
assert model_id in cache_data["data"], "Instantiated model not found in cache."


@pytest.mark.skip(reason="Flaky on test env: sample image asset returns 404 during document parsing")
def test_index_model_air_with_image():
from aixplain.factories import IndexFactory
from aixplain.modules.model.record import Record
Expand Down
Loading
Loading