[Tech Debt] Python cross-language e2e tests hardcode 0.4-SNAPSHOT tests jar and silently skip

Aperta Adatta ai principianti
#1,476 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java, python
Ambito
testing

Direzione di ricerca

Leggi i quattro test elencati in python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/ e confronta il modo in cui cercano il jar con yaml_java_mcp_cross_language_test.py di #1475. Sostituisci la ricerca della versione codificata direttamente con una corrispondenza indipendente dalla versione e valuta di segnalare chiaramente quando non viene trovato alcun jar. Esegui i quattro test e2e cross-language e conferma che vengono eseguiti usando il tests jar compilato, invece di essere ignorati silenziosamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Search before asking
  • I searched in the issues and found nothing similar.
Description

Four Python cross-language e2e tests hardcode the tests jar version as 0.4-SNAPSHOT, but the project version is now 1.0-SNAPSHOT. The jar lookup misses and the tests silently skip, so these cross-language paths are no longer covered in CI:

  • python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/python_agent_with_java_action_test.py:45
  • python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/yaml_cross_language_test.py:70
  • python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/yaml_java_action_cross_language_test.py:51
  • python/flink_agents/e2e_tests/e2e_tests_resource_cross_language/yaml_actions_in_java_cross_language_test.py:60

All four build the jar path like:

Path(...) / "flink-agents-end-to-end-tests-resource-cross-language-0.4-SNAPSHOT-tests.jar"

while the maven build produces flink-agents-end-to-end-tests-resource-cross-language-1.0-SNAPSHOT-tests.jar.

Fix: replace the hardcoded version with a version-agnostic glob (e.g. glob("flink-agents-end-to-end-tests-resource-cross-language-*-tests.jar") and take the first match), as already done in the newer yaml_java_mcp_cross_language_test.py introduced by #1475. Optionally, log a clear error when no tests jar is found instead of silently skipping.

Are you willing to submit a PR?
  • I'm willing to submit a PR!
Lingua principale
Java
Stelle
497
Fork
193
Merge medio
2g 21h
PR unite (30g)
68

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/flink-agents

Tutte le issue di apache/flink-agents

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.