Two mobile markdown pipeline tests fail on release/v0.122.5 and CI does not run them
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
Direzione di ricerca
Leggi web/mobile/tests/unit/assistantMarkdownPipeline.test.tsx insieme a web/mobile/src/features/chat/AssistantMarkdown.tsx per confermare quale resolver i test devono simulare. Aggiorna il mock affinché i due test dei collegamenti ai file verifichino il resolver usato dal componente. Poi esegui il comando Vitest fornito e controlla che tutti e sette i test passino. L’integrazione con CI è tracciata separatamente in #7326.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🤖 The AI agent says:
What happens
Two tests in web/mobile/tests/unit/assistantMarkdownPipeline.test.tsx fail on release/v0.122.5 (7ddc8e8ba1). The same two fail on every run, with any Node, timezone and locale. The CI workflow "17 - check mobile" is green because it never runs them.
Repro
git checkout --detach origin/release/v0.122.5
cd web && pnpm install --frozen-lockfile
cd mobile && pnpm exec vitest run tests/unit/assistantMarkdownPipeline.test.tsx
Result: 2 failed, 5 passed. The full mobile suite: 2 failed, 421 passed (68 files).
FAIL ... > still sends the file link the platform prompt prescribes to the drive resolver
AssertionError: expected [] to include '/agent-files/report.md' (line 94)
FAIL ... > decodes a percent-encoded file name on the way to the resolver
AssertionError: expected [] to include '/agent-files/my report.md' (line 100)
Cause
Commit 439f265abc ("preview images the agent names under the paragraph", 2026-10-08) changed web/mobile/src/features/chat/AssistantMarkdown.tsx to resolve links with chatReplyFileResolver. The test still mocks only chatFileResolver from @agenta/entity-ui/drive, so its renderCode spy never runs and resolved stays empty. The test is stale. The product code is not shown to be wrong.
Why CI did not catch it
17-check-mobile.yml runs only types:check and a Docker build with a smoke test. 12-check-unit-tests.yml runs run-tests.ts --layer unit, which calls pnpm -r --if-present test:unit. @agenta/mobile defines test, not test:unit, so it is skipped. This is the gap already tracked in #7326.
Fix direction
Update the mock to cover chatReplyFileResolver (or both), and wire the mobile suite into CI per #7326.
- Lingua principale
- TypeScript
- Stelle
- 4.8k
- Fork
- 690
- Merge medio
- 23h 29m
- PR unite (30g)
- 540
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Agenta-AI/agenta
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Agenta-AI/agenta#8022 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Agenta-AI/agenta#7654 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) The Stop button disappears for a moment before an approval card showsForse di nuovo libera @rishu685 l’ha presa 27 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Agenta-AI/agenta#7446 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Agenta-AI/agenta#7441 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) A failed trace summary request leaves a run duration blank until the page is reloadedForse di nuovo libera @HenryPazS l’ha presa 20 giorni fa e non c’è nessuna pull request aperta. Apertabug report frontend observability
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Agenta-AI/agenta#7039 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Agenta-AI/agenta
Issue simili
-
[Text] Add Reading Time & Word Count Estimator for Reflection Notes in src/lib/text/reading-time.tsApertaarea:core beginner-friendly community contributions-welcome difficulty:easy enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingApertae2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
devswha/herdr-web-ui#2884 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/argent#1771 ·
I maintainer di solito rispondono entro 1 giorno