Skip to content

Commit

Permalink
Fix Vertex AI postcommit suite to run the tests only once. (#28571)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvalentyn authored Sep 26, 2023
1 parent 49ad65c commit 27f589e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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

0 comments on commit 27f589e

Please sign in to comment.