eemario commented on code in PR #1489:
URL: https://github.com/apache/flink-agents/pull/1489#discussion_r4749947438
##########
python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/python_agent_with_java_action_test.py:
##########
@@ -37,12 +37,21 @@
current_dir = Path(__file__).parent
_REPO_ROOT = current_dir.parent.parent.parent.parent
-_TEST_JAR = (
+_TEST_JAR_DIR = (
_REPO_ROOT
/ "e2e-test"
/ "flink-agents-end-to-end-tests-resource-cross-language"
/ "target"
- /
"flink-agents-end-to-end-tests-resource-cross-language-0.4-SNAPSHOT-tests.jar"
+)
+_TEST_JAR = next(
+ iter(
+ sorted(
Review Comment:
One small edge case: when I put both the `0.4-SNAPSHOT` and `1.0-SNAPSHOT`
test JARs in `target/`, this lookup picked `0.4` because it sorts first. That
can happen after switching branches without a clean build, so the test may load
Java classes from the previous build. Would it make sense to report an
ambiguous match and suggest a clean build when more than one JAR is present?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]