Skip to content

Commit c310f0f

Browse files
authored
Merge pull request #37044 from apache/users/damccorm/dep-cp2
Cherry-pick (#37043): Install redis dependencies for enrichment tests
2 parents f160628 + e89667c commit c310f0f

File tree

3 files changed

+22
-3
lines changed

3 files changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
redis>=5.0.0,<6

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ task tftTests {
575575
task mockAPITests {
576576
dependsOn 'initializeForDataflowJob'
577577
dependsOn ':sdks:python:sdist'
578-
578+
def requirementsFile = "${rootDir}/sdks/python/apache_beam/transforms/enrichment_tests_requirements.txt"
579579
doLast {
580580
def testOpts = basicTestOpts
581581
def argMap = [
@@ -584,11 +584,12 @@ task mockAPITests {
584584
"runner": "TestDataflowRunner",
585585
"project": "apache-beam-testing",
586586
"region": "us-west1",
587+
"requirements_file": "$requirementsFile"
587588
]
588589
def cmdArgs = mapToArgString(argMap)
589590
exec {
590591
executable 'sh'
591-
args '-c', ". ${envdir}/bin/activate && ${runScriptsDir}/run_integration_test.sh $cmdArgs"
592+
args '-c', ". ${envdir}/bin/activate && pip install -r $requirementsFile && ${runScriptsDir}/run_integration_test.sh $cmdArgs"
592593
}
593594
}
594595
}

0 commit comments

Comments
 (0)