Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vertex AI postcommit suite to run the tests only once. #28571

Merged
merged 1 commit into from
Sep 26, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@


class VertexAIInference(unittest.TestCase):
@pytest.mark.uses_vertex_ai
@pytest.mark.it_postcommit
@pytest.mark.vertex_ai_postcommit
def test_vertex_ai_run_flower_image_classification(self):
output_file = '/'.join([_OUTPUT_DIR, str(uuid.uuid4()), 'output.txt'])

Expand Down
2 changes: 1 addition & 1 deletion sdks/python/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ markers =
uses_onnx: tests that utilizes onnx in some way.
uses_tf: tests that utilize tensorflow.
uses_transformers: tests that utilize transformers in some way.
uses_vertex_ai: tests that utilize vertex ai in some way.
vertex_ai_postcommit: vertex ai postcommits that need additional deps.

# Default timeout intended for unit tests.
# If certain tests need a different value, please see the docs on how to
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/test-suites/dataflow/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ task vertexAIInferenceTest {
def argMap = [
"test_opts": testOpts,
"suite": "VertexAITests-df-py${pythonVersionSuffix}",
"collect": "uses_vertex_ai and it_postcommit" ,
"collect": "vertex_ai_postcommit" ,
"runner": "TestDataflowRunner",
"requirements_file": "$requirementsFile"
]
Expand Down
Loading