[bug] CI: real OpenCode integration test can block the Python suite

Aperta
#162 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
github-actions, python
Ambito
ci-cd, testing

Direzione di ricerca

Start with tests/test_native_runtime.py::test_real_opencode_native_skill_and_gateway_write and the CI run linked in the issue; inspect PR #158's investigation for the suspected hang. Run the test with OPENDIRECTOR_REAL_CLI=1 under a bounded timeout, then trace and instrument the blocking stage and subprocess cleanup. Done when fresh and resumed cases finish or fail with useful diagnostics, timeout cleanup is verified, and reliable automated coverage is restored or its limitations are documented.

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

Descrizione

help wanted

Problem and impact

The real OpenCode integration path is currently excluded from PR #152's default Python suite because a previous release-check run stalled. This leaves the native Skill and gateway write path without that default integration coverage.

Evidence and reproduction

In run 42211182835, Python tests were cancelled after roughly 28.7 minutes and runner cleanup terminated an opencode.exe process. PR #158's investigation associated the hang with tests/test_native_runtime.py::test_real_opencode_native_skill_and_gateway_write after dependency installation made the bundled CLI available. This association is plausible but the exact blocking point has not been isolated, and the cancelled run alone does not prove which call hung.

On PR #152, the test can be selected with OPENDIRECTOR_REAL_CLI=1 python -m pytest tests/test_native_runtime.py::test_real_opencode_native_skill_and_gateway_write -q -ra. It uses the real bundled CLI and a mocked model transport; this is not a paid model call. A controlled reproduction of the hang has not yet been performed.

Expected and actual

  • Expected: both fresh and resumed integration cases finish or fail within a bounded time with enough diagnostics to identify the stuck stage.
  • Actual: the original CI job exhausted its 30-minute budget, preventing subsequent checks; the precise cause is unknown.

Acceptance criteria

  • Reproduce or isolate the blocking stage with bounded execution and useful diagnostics.
  • Verify fresh and resumed cases, including subprocess cleanup on timeout.
  • Restore appropriate automated coverage once the path is reliable; document any remaining limitations.
Lingua principale
TypeScript
Stelle
119
Fork
16
Merge medio
16h 13m
PR unite (30g)
195

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 ThinkFlowLab/OpenDirector

Tutte le issue di ThinkFlowLab/OpenDirector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.