Plugin conformance tests are flaky when CloudWatch logs are not yet visible

Aperta
#708 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
aws, python

Direzione di ricerca

Inizia da .github/workflows/conformance-tests.yml e dal passaggio “Run conformance suite”, quindi esegui ripetutamente la plugin suite sullo stesso commit. Analizza la propagazione di CloudWatch o i tempi di ricerca del log stream e raccogli i diagnostici suggeriti relativi a log-group, execution-filter, event-count e retrieved-record; il lavoro è concluso quando i conformance tests trovano in modo affidabile i record attesi.

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

Descrizione

bug pkg:testing

Summary

The conformance (plugin) job can fail because expected plugin log records are not returned by CloudWatch, even though the durable execution and history validation complete successfully.

Evidence

  • Previous successful run: 33907972521 at commit 4ce54bcf.
  • Failed run: 33922277509 at commit 676c75a.
  • Attempt 1, job 101185043031: test 10-11 (plugin_nested_parent_linkage) failed because both expected operation-end records matched 0 logs: the inner step record and the child-context record.
  • Retry attempt 2, job 101188790974: test 10-11 passed, but unrelated test 10-7 (plugin_terminal_failure) failed because its invocation-start and invocation-end records matched 0 logs.

The failure moving between tests on the same commit strongly suggests CloudWatch ingestion/filter timing or log-stream lookup flakiness rather than a deterministic SDK regression. The diff from the previous successful commit only changes OTel release metadata and does not affect the regular core plugin suite.

Suggested investigation

  • Increase or make configurable the CloudWatch log propagation/polling window in the conformance runner.
  • Log the resolved log group, execution ARN filter, event count, and final retrieved records when ExpectedLogs fails.
  • Pin the conformance runner to a known commit in CI instead of installing @main.
  • Re-run the plugin suite repeatedly against the same commit to confirm the failure rate.

Relevant workflow: .github/workflows/conformance-tests.yml, step Run conformance suite.

Lingua principale
Python
Stelle
58
Fork
32
Merge medio
1g 6h
PR unite (30g)
80

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 aws/aws-durable-execution-sdk-python

Tutte le issue di aws/aws-durable-execution-sdk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.