Skip to content

Commit 389781d

Browse files
committed
Run postcommits.
1 parent 82583a0 commit 389781d

File tree

6 files changed

+17
-44
lines changed

6 files changed

+17
-44
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Modify this file in a trivial way to cause this test suite to run",
3-
"modification": 3
3+
"modification": 4
44
}

build.gradle.kts

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -502,40 +502,26 @@ tasks.register("pythonFormatterPreCommit") {
502502
}
503503

504504
tasks.register("python39PostCommit") {
505-
dependsOn(":sdks:python:test-suites:dataflow:py39:postCommitIT")
505+
// dependsOn(":sdks:python:test-suites:dataflow:py39:postCommitIT")
506506
dependsOn(":sdks:python:test-suites:direct:py39:postCommitIT")
507-
dependsOn(":sdks:python:test-suites:direct:py39:hdfsIntegrationTest")
508-
dependsOn(":sdks:python:test-suites:direct:py39:azureIntegrationTest")
509-
dependsOn(":sdks:python:test-suites:portable:py39:postCommitPy39")
507+
// dependsOn(":sdks:python:test-suites:direct:py39:hdfsIntegrationTest")
508+
// dependsOn(":sdks:python:test-suites:direct:py39:azureIntegrationTest")
509+
// dependsOn(":sdks:python:test-suites:portable:py39:postCommitPy39")
510510
// TODO (https://github.com/apache/beam/issues/23966)
511511
// Move this to Python 3.10 test suite once tfx-bsl has python 3.10 wheel.
512-
dependsOn(":sdks:python:test-suites:direct:py39:inferencePostCommitIT")
512+
// dependsOn(":sdks:python:test-suites:direct:py39:inferencePostCommitIT")
513513
}
514514

515515
tasks.register("python310PostCommit") {
516-
dependsOn(":sdks:python:test-suites:dataflow:py310:postCommitIT")
517516
dependsOn(":sdks:python:test-suites:direct:py310:postCommitIT")
518-
dependsOn(":sdks:python:test-suites:portable:py310:postCommitPy310")
519-
// TODO: https://github.com/apache/beam/issues/22651
520-
// The default container uses Python 3.10. The goal here is to
521-
// duild Docker images for TensorRT tests during run time for python versions
522-
// other than 3.10 and add these tests in other python postcommit suites.
523-
dependsOn(":sdks:python:test-suites:dataflow:py310:inferencePostCommitIT")
524517
}
525518

526519
tasks.register("python311PostCommit") {
527-
dependsOn(":sdks:python:test-suites:dataflow:py311:postCommitIT")
528520
dependsOn(":sdks:python:test-suites:direct:py311:postCommitIT")
529-
dependsOn(":sdks:python:test-suites:direct:py311:hdfsIntegrationTest")
530-
dependsOn(":sdks:python:test-suites:portable:py311:postCommitPy311")
531521
}
532522

533523
tasks.register("python312PostCommit") {
534-
dependsOn(":sdks:python:test-suites:dataflow:py312:postCommitIT")
535524
dependsOn(":sdks:python:test-suites:direct:py312:postCommitIT")
536-
dependsOn(":sdks:python:test-suites:direct:py312:hdfsIntegrationTest")
537-
dependsOn(":sdks:python:test-suites:portable:py312:postCommitPy312")
538-
dependsOn(":sdks:python:test-suites:dataflow:py312:inferencePostCommitITPy312")
539525
}
540526

541527
tasks.register("portablePythonPreCommit") {

sdks/python/apache_beam/ml/rag/ingestion/alloydb_it_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from typing import NamedTuple
2727

2828
import psycopg2
29+
import pytest
2930

3031
import apache_beam as beam
3132
from apache_beam.coders import registry
@@ -142,6 +143,11 @@ def key_on_id(chunk):
142143
return (int(chunk.id.split('_')[1]), chunk)
143144

144145

146+
@pytest.mark.uses_gcp_java_expansion_service
147+
@unittest.skipUnless(
148+
os.environ.get('EXPANSION_JARS'),
149+
"EXPANSION_JARS environment var is not provided, "
150+
"indicating that jars have not been built")
145151
class AlloyDBVectorWriterConfigTest(unittest.TestCase):
146152
ALLOYDB_TABLE_PREFIX = 'python_rag_alloydb_'
147153

sdks/python/test-suites/dataflow/common.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ task postCommitIT {
128128
dependsOn 'initializeForDataflowJob'
129129

130130
doLast {
131-
def testOpts = basicPytestOpts + ["--numprocesses=8", "--dist=loadfile"]
131+
def testOpts = basicPytestOpts + ["--numprocesses=8", "--dist=loadfile", "apache_beam/ml/rag/"]
132132
def argMap = [
133133
"test_opts": testOpts,
134134
"sdk_location": project.ext.sdkLocation,

sdks/python/test-suites/direct/common.gradle

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@ tasks.register("postCommitIT") {
3535
// Run IT tests with TestDirectRunner in batch in Python 3.
3636
doLast {
3737
def batchTests = [
38-
"apache_beam/examples/wordcount_it_test.py::WordCountIT::test_wordcount_it",
39-
"apache_beam/io/gcp/pubsub_integration_test.py::PubSubIntegrationTest",
40-
"apache_beam/io/gcp/big_query_query_to_table_it_test.py::BigQueryQueryToTableIT",
41-
"apache_beam/io/gcp/bigquery_io_read_it_test.py",
42-
"apache_beam/io/gcp/bigquery_read_it_test.py",
43-
"apache_beam/io/gcp/bigquery_write_it_test.py",
44-
"apache_beam/io/gcp/datastore/v1new/datastore_write_it_test.py",
38+
"apache_beam/ml/rag/",
4539
]
4640
def testOpts = basicTestOpts + ["${batchTests.join(' ')}"]
4741
def argMap = ["runner": "TestDirectRunner",
@@ -136,13 +130,7 @@ tasks.register("directRunnerIT") {
136130
// Run IT tests with TestDirectRunner in batch.
137131
doLast {
138132
def tests = [
139-
"apache_beam/examples/wordcount_it_test.py::WordCountIT::test_wordcount_it",
140-
"apache_beam/io/gcp/pubsub_integration_test.py::PubSubIntegrationTest",
141-
"apache_beam/io/gcp/big_query_query_to_table_it_test.py::BigQueryQueryToTableIT",
142-
"apache_beam/io/gcp/bigquery_io_read_it_test.py",
143-
"apache_beam/io/gcp/bigquery_read_it_test.py",
144-
"apache_beam/io/gcp/bigquery_write_it_test.py",
145-
"apache_beam/io/gcp/datastore/v1new/datastore_write_it_test.py",
133+
"apache_beam/ml/rag/",
146134
]
147135
def batchTestOpts = basicTestOpts + ["${tests.join(' ')}"]
148136
def argMap = ["runner": "TestDirectRunner",
@@ -159,13 +147,7 @@ tasks.register("directRunnerIT") {
159147
// Run IT tests with TestDirectRunner in streaming.
160148
doLast {
161149
def tests = [
162-
"apache_beam/examples/wordcount_it_test.py::WordCountIT::test_wordcount_it",
163-
"apache_beam/io/gcp/pubsub_integration_test.py::PubSubIntegrationTest",
164-
"apache_beam/io/gcp/bigquery_test.py::BigQueryStreamingInsertTransformIntegrationTests::test_multiple_destinations_transform",
165-
"apache_beam/io/gcp/bigquery_test.py::PubSubBigQueryIT",
166-
"apache_beam/io/gcp/bigquery_file_loads_test.py::BigQueryFileLoadsIT::test_bqfl_streaming",
167-
"apache_beam/io/gcp/bigquery_file_loads_test.py::BigQueryFileLoadsIT::test_bqfl_streaming_with_dynamic_destinations",
168-
"apache_beam/io/gcp/bigquery_file_loads_test.py::BigQueryFileLoadsIT::test_bqfl_streaming_with_copy_jobs",
150+
"apache_beam/ml/rag/",
169151
]
170152
def streamingTestOpts = basicTestOpts + ["${tests.join(' ')}"]
171153
def argMap = ["runner": "TestDirectRunner",
@@ -454,6 +436,7 @@ project(":sdks:python:test-suites:xlang").ext.xlangTasks.each { taskMetadata ->
454436
"--timeout=4500", // timeout of whole command execution
455437
"--color=yes", // console color
456438
"--log-cli-level=INFO" //log level info
439+
"apache_beam/ml/rag/ingestion/alloydb_it_test.py"
457440
],
458441
additionalDeps: taskMetadata.additionalDeps,
459442
additionalEnvs: taskMetadata.additionalEnvs

sdks/python/tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ commands =
106106
[testenv:py{39,310,311}-ml]
107107
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in certain tests.
108108
setenv =
109-
passenv = ALLOYDB_PASSWORD
110109
extras = test,gcp,dataframe,ml_test
111110
commands =
112111
# Log tensorflow version for debugging
@@ -117,7 +116,6 @@ commands =
117116
# many packages do not support py3.12
118117
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in certain tests.
119118
setenv =
120-
passenv = ALLOYDB_PASSWORD
121119
extras = test,gcp,dataframe,p312_ml_test
122120
commands =
123121
# Log tensorflow version for debugging

0 commit comments

Comments
 (0)