The -W gate is blind in ci.yml, and a warning-only cache failure discards a completed execution
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, jupyter, python
- Área
- build-system, ci-cd
Línea de trabajo
Empieza leyendo cache.yml y publish.yml, centrándote en los dos build steps, el manejo de doctree y el paso Upload "_build" folder (cache). Ejecuta o inspecciona el cache workflow para confirmar que el -W build vuelve a leer las fuentes y que el build artifact se carga cuando la ejecución termina con warnings; la ejecución debe seguir informando de un failure cuando corresponda.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Two independent weaknesses in cache.yml turned a one-line content defect into four days without a usable execution cache, and hid it from the check that should have caught it first.
What happened
Four cache.yml runs failed or were cancelled between 2026-08-20 and 2026-08-24, while the last success was 2026-08-17. The publish build for publish-2026aug24 consequently fell back on the eight-day-old artifact, which shipped a site with inconsistent chapter numbering (filed separately).
The causes were not a single recurring one:
| Run | Date | Cause |
|---|---|---|
| 32331172292 | 2026-08-20T04:14Z | FileNotFoundError: '_fonts/SourceHanSerifSC-SemiBold.otf' in learning_approximation.md, plus the hoist_failure warning below — fixed by #262 |
| — | 2026-08-20T22:56Z | hoist_failure warning alone |
| 32433407779 | 2026-08-21T00:38Z | cancelled by hand two minutes in, not a failure |
| 32686259809 | 2026-08-24T03:23Z | hoist_failure warning alone — fixed by #265 |
The hoist_failure cause was one Sphinx warning promoted to an error by -W: lectures/hoist_failure.md:34: WARNING: Document headings start at H2, not H1 [myst.header]. The stale duplicated frontmatter block left in the body by the #260 resync parsed as body text, and its trailing --- turned the block into a setext H2 ahead of the real # 故障树不确定性.
Both underlying defects were lecture-content defects introduced by translate seed/forward operations, and both are now fixed. What follows is why they cost four days.
Defect 1 — the -W gate never re-reads, so it fires late and in the wrong workflow
cache.yml runs the sphinx-tojupyter build and then the HTML build with -W. Because the doctrees survive between them, the -W step re-reads nothing, so the warning surfaces only on a cold run. The same shape exists in publish.yml, where the rm -r _build/.doctrees line is commented out.
The consequence is that a content defect that should fail a PR's CI instead fails the weekly cold cache build, days later and far from the change that caused it.
Suggested fix: clear _build/.doctrees between the two builds so the -W step re-reads every source. Smallest change with the strongest guarantee. Alternatively drop -W from the tojupyter step and rely on a re-reading HTML step.
Defect 2 — a warning-only failure discards 106 minutes of successful execution
On the 2026-08-24 run, all 142 notebooks executed successfully (142 Executed notebook in lines, zero CellExecutionError) over 1h46m, and the artifact was then thrown away because the upload step does not run on failure.
Suggested fix: add if: success() || failure() to the Upload "_build" folder (cache) step. jupyter-cache does not store failed executions, so the artifact stays correct even when a lecture genuinely errors, and the run's red status remains the signal. This change alone would have made the 2026-08-24 publish a cache hit despite the hoist_failure defect.
Also noted
cache.yml still carries bare apt-get install steps with no timeout-minutes and no retry — the weakness PR #263 would have hardened before it was closed. Not implicated in any of these four failures (apt was green throughout: graphviz 31s, texlive 3m28s), but it remains the open item behind the documented hang class.
Refs: QuantEcon/project-translation#48 (delivery integrity); #262, #265 (the two content fixes); #263 (closed apt hardening).
- Lenguaje dominante
- TeX
- Estrellas
- 5
- Forks
- 4
- Merge medio
- 18 h 24 min
- PR fusionados (30 d)
- 2
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de QuantEcon/lecture-python.zh-cn
-
Phase 2 tidy-up: revert intersphinx-qualified references once their target lectures are translatedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
QuantEcon/lecture-python.zh-cn#173 · 2 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
QuantEcon/lecture-python.zh-cn#266 · 4 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
QuantEcon/lecture-python.zh-cn#205 · 1 comentario ·
Todos los issues de QuantEcon/lecture-python.zh-cn
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Install fails with pnpm: ERR_PNPM_IGNORED_BUILDS from auto-installed peer-dependency build scriptsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
mitsuhiko/agent-stuff#64 · 1 comentario ·
-
chore(26.10): update golangAbiertoPriority
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
canonical/chisel-releases#1328 ·
Los mantenedores suelen responder en 1 día
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
openclaw/openclaw#159861 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día