Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

test(flows): v2 分支 harness 裸检 41/43——s33 宿主断言与 s43 沙箱节点注册依赖运行环境

Aperta
#149 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Start with .dev/flows/test/flow_v2_paths.py, specifically the s33 kill-stale assertion (which checks for a flow_worker host string) and the s43 test that fails on the unregistered sandbox_agent node. Read plaita/server/flow_worker.py to see where the node is registered, and decide whether the harness should import that registration or the assertion should check semantics instead. Done means the harness passes on a bare host, or it declares its worker requirement and skips cleanly instead of erroring.

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

Descrizione

优先级 P2 · 依赖:无

基线 HEAD = 6787cfcc

Summary

值守独立验收 #148 时,在裸检(非 flow_worker 子树)实跑 .dev/flows/test/flow_v2_paths.py 得 41/43,journal(6787cfcc)记的自托管环境为 43/43。两项差异全部由运行环境决定:

  1. s33(s33_kill_stale_只杀本仓旧run孤儿_不碰自身与兄弟run)FAIL:断言要求 kill-stale 日志的宿主形态是 flow_worker,裸检下 host= 记到的是 Python 解释器路径(…/MacOS/Python)。判据行为本身正确——同次运行日志为 spared pid=91312 run=pipeline-88-live host=… + killed … run=pipeline-77-old(活兄弟放过、真孤儿照杀)。
  2. s43(s43_kill_stale判据_v2与sbx变体同源_产物不落后)ERROR:未注册的自定义节点 SANDBOX_AGENT(...):node_type 'sandbox_agent' 不在 registry 中。该节点由 plaita/server/flow_worker.py 运行时注册(全仓 grep 该字符串仅出现在 worker 与 .flowcast/runs/* 副本),harness 未导入该注册路径。

影响

harness 的结论依赖运行环境:CI/裸检/其他宿主上复跑会得到与自托管环境不同的结果,验收者无法区分「产品回归」与「环境差异」(本次即需人工逐条判读日志才能确认 #148 行为正确)。

建议

  1. s43:harness 显式注册沙箱节点(导入 plaita/server/flow_worker 的注册路径,或把该注册抽成可复用函数由 harness 调用);
  2. s33:断言改为语义判据(宿主命中祖先链且兄弟 pid 在 spared 集合),不断言宿主字符串形态;
  3. 在 harness docstring 里写明所需环境(若确需 worker 注册),或提供 --require-worker-env 显式开关。

验收:裸检 python3 test/flow_v2_paths.py 全绿(或显式声明环境要求并在不满足时 SKIP 而非 ERROR)。

Lingua principale
Rust
Stelle
4
Fork
0
Merge medio
5h 32m
PR unite (30g)
7

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 jeffkit/recursive

Tutte le issue di jeffkit/recursive

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.