Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vary committed Dec 6, 2023
1 parent 6bd6942 commit efab249
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ flink-python/dev/.stage.txt
flink-python/dev/install_command.sh
flink-python/dev/lint-python.sh
flink-python/dev/build-wheels.sh
flink-python/dev/glibc_version_fix.h
flink-python/dev/dev-requirements.txt
2 changes: 1 addition & 1 deletion flink-python/dev/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ FLINK_PYTHON_DIR=$(dirname "$CURRENT_DIR")
FLINK_SOURCE_DIR=$(dirname "$FLINK_PYTHON_DIR")

# set the FLINK_TEST_LIB_DIR to "flink-connector-kafka"
export FLINK_TEST_LIB_DIR="$FLINK_SOURCE_DIR"
export FLINK_TEST_LIBS="$FLINK_SOURCE_DIR/flink-python/target/test-dependencies/*"

# Temporarily update the installed 'pyflink_gateway_server.py' files with the new one
# Needed only until Flink 1.19 release
Expand Down
19 changes: 16 additions & 3 deletions flink-python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ under the License.
<delete file="${project.basedir}/dev/install_command.sh"/>
<delete file="${project.basedir}/dev/lint-python.sh"/>
<delete file="${project.basedir}/dev/build-wheels.sh"/>
<delete file="${project.basedir}/dev/glibc_version_fix.h"/>
<delete file="${project.basedir}/dev/dev-requirements.txt"/>
<delete file="${project.basedir}/pyflink/datastream/connectors/kafka_connector_version.py"/>
</target>
Expand Down Expand Up @@ -173,7 +174,7 @@ under the License.
<goal>download-single</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/apache/flink/release-${flink.version}/flink-python/dev/install_command.sh</url>
<url>https://raw.githubusercontent.com/pvary/flink-connector-shared-utils/ci_utils/python/install_command.sh</url>
<toDir>${project.basedir}/dev</toDir>
<skip>${python.infra.download.skip}</skip>
</configuration>
Expand All @@ -185,7 +186,7 @@ under the License.
<goal>download-single</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/apache/flink/release-${flink.version}/flink-python/dev/lint-python.sh</url>
<url>https://raw.githubusercontent.com/pvary/flink-connector-shared-utils/ci_utils/python/lint-python.sh</url>
<toDir>${project.basedir}/dev</toDir>
<skip>${python.infra.download.skip}</skip>
</configuration>
Expand All @@ -197,7 +198,19 @@ under the License.
<goal>download-single</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/apache/flink/release-${flink.version}/flink-python/dev/build-wheels.sh</url>
<url>https://raw.githubusercontent.com/pvary/flink-connector-shared-utils/ci_utils/python/build-wheels.sh</url>
<toDir>${project.basedir}/dev</toDir>
<skip>${python.infra.download.skip}</skip>
</configuration>
</execution>
<execution>
<id>download-build-version-header</id>
<phase>validate</phase>
<goals>
<goal>download-single</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/pvary/flink-connector-shared-utils/ci_utils/python/glibc_version_fix.h</url>
<toDir>${project.basedir}/dev</toDir>
<skip>${python.infra.download.skip}</skip>
</configuration>
Expand Down
13 changes: 5 additions & 8 deletions flink-python/pyflink/pyflink_gateway_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,13 @@ def construct_test_classpath(env):
test_jars = []

# Connector tests need to add specific jars to the gateway classpath
# flink_source_root = env['FLINK_TEST_LIB_DIR']
if 'FLINK_TEST_LIB_DIR' in env:
flink_source_root = env['FLINK_TEST_LIB_DIR']
if 'FLINK_TEST_LIBS' in env:
test_jars += glob.glob(env['FLINK_TEST_LIBS'])
else:
flink_source_root = _find_flink_source_root()

print("ROOOOT: " + flink_source_root)
for pattern in test_jar_patterns:
pattern = pattern.replace("/", os.path.sep)
test_jars += glob.glob(os.path.join(flink_source_root, pattern))
for pattern in test_jar_patterns:
pattern = pattern.replace("/", os.path.sep)
test_jars += glob.glob(os.path.join(flink_source_root, pattern))
return os.path.pathsep.join(test_jars)


Expand Down

0 comments on commit efab249

Please sign in to comment.