[Bug] Windows CI 上 TestCloseSavesEditsMadeDuringFinalDiskCheck 偶现超过期限未能投递文档状态

Abierto
#2,379 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
50/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
testing

Línea de trabajo

Start at desktop/internal/workbench/document_observation_test.go around line 394, where the final disk check is blocked and the text "latest" is inserted. Reproduce with ./scripts/desktop/desktop-go.sh test ./internal/workbench -run '^TestCloseSavesEditsMadeDuringFinalDiskCheck$' -count=1 on Windows, then follow the document watcher and awaitDocumentState path to see how the deadline is set. Done means the test passes deterministically on Windows CI without simply extending the timeout.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

review: high
Platform / 平台

Windows

Area / 模块

Editor / 编辑器

Lithe version / Lithe 版本

开发分支(913661835 基线,PR #2344 与正文无关改动)

Priority / 优先级

P2 / 后续考虑:目前不着急,可安排到后续版本

OS and architecture / 操作系统与架构

Windows Server 2022 (windows-2022), x86_64 (GitHub Actions runner)

Environment / 环境信息
  • Go:desktop/go.mod 固定版本;Viva:github.com/Lithe-IDEA/viva bb85256c8ffa
  • Core:PINNED_CORE_REVISION=076ce04e314ecdde790b36ee3f374becb11951a0
  • 复现环境:GitHub Actions Desktop CI / Vet and test on Windows(Run 45214592965 Attempt 1,Job 137832603047);同 Run --failed 重跑后通过
Steps to reproduce / 复现步骤
  1. 在 Windows CI 环境运行 ./scripts/desktop/check.sh 或 ./scripts/desktop/desktop-go.sh test ./internal/workbench -run '^TestCloseSavesEditsMadeDuringFinalDiskCheck$' -count=1。
  2. desktop/internal/workbench/document_observation_test.go:394 启动关闭文档前的最后一次磁盘校验阻塞,插入文本 "latest" 后释放读取器并等待 awaitDocumentState 完成关闭与磁盘保存。
Expected behavior / 预期行为

文档关闭前完成末次校验并确定性保存最新编辑到磁盘,测试在有界期限内稳定通过。

Actual behavior / 实际行为

在 Windows runner 高负载条件下偶发超时失败,报告 document watcher did not deliver the expected state before the deadline(8.04s),同一运行仅重跑失败 job 即恢复通过。

Logs or diagnostic output / 日志或诊断输出
# GitHub Actions Run 45214592965 (Attempt 1, Vet and test on Windows)
--- FAIL: TestCloseSavesEditsMadeDuringFinalDiskCheck (8.04s)
    document_observation_test.go:394: document watcher did not deliver the expected state before the deadline
FAIL
FAIL	github.com/1lck/Lithe-IDEA/desktop/internal/workbench	115.550s
Screenshots or recordings / 截图或录屏

不适用:纯测试稳定性与 Windows 文件监听时序问题,无桌面界面变化。

Checklist / 提交前检查
  • I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
  • I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
Lenguaje dominante
TypeScript
Estrellas
1.8k
Forks
151
Merge medio
4 h 4 min
PR fusionados (30 d)
558

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de 1lck/Lithe-IDEA

Todos los issues de 1lck/Lithe-IDEA

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.