PR previews show main's cached pages instead of the pull request's changes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 53/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github, github-actions, yaml
- 領域
- ci-cd
調査の方向性
Read ci.yml and compare its “Clear stale Sphinx environment” step with the corresponding step in publish.yml; the issue identifies the missing _build/html cleanup and gives the intended command. Check how the preview links are configured in Netlify and the CI workflow, then validate on a PR that edits an existing lecture: its preview should show the change and each PR should have one working preview link.
索引モデルが issue の本文から書いたものです。
説明
What happens
A pull request's Netlify preview does not show the pull request's changes to an existing lecture. The Build HTML step in ci.yml writes a page only when that lecture has no page in the downloaded build cache, so every other page in the preview is the cached copy built from main.
Evidence from #304, which changed var_dmd.md and measurement_models.md:
- Its CI run (Actions run 39720429073) wrote six pages:
gallant_tauchen,intro,lq_mean_field_games,lucas_prescott_investment,optimal_growth_uncertaintyandsocial_security_depletion. Neither changed lecture was among them. - On the preview it deployed,
var_dmd.htmlcontains 113 of the 114 phrases the PR removed and 6 of the 154 it added. The page shows the old translation.
#305's preview of sir_model looked right only by coincidence. Its run did not rewrite that page either, but the cache predated #302, so it already held the wording #305 restored.
Cause
The Clear stale Sphinx environment step removes _build/.doctrees but leaves the cached _build/html. The notebook build then reads every source and saves the shared Sphinx environment, so the HTML build reads nothing (updating environment: 0 added, 0 changed, 0 removed) and writes a page only if its source file is newer than the cached HTML file. The cache is unpacked after checkout, so the cached HTML always looks newer.
publish.yml does not have this problem. Its clear step removes both directories, and the publish-2026oct22 run wrote all 150 pages.
What to change
- In
ci.yml, make the clear step remove_build/htmlas well, matchingpublish.yml:
- name: Clear stale Sphinx environment
shell: bash -l {0}
run: rm -rf _build/.doctrees _build/html
The execution cache (_build/.jupyter_cache) is kept, so no notebook re-executes. The HTML step then writes all 150 pages.
-
Remove the second, broken preview link. Netlify's own app also comments on each PR ("Deploy Preview for astonishing-narwhal-a8fc64 ready!"), and its
deploy-preview-Nlink returns 404 (checked 2026-10-23 on #304 and #305). The working preview is the latergithub-actionscomment ("🚀 Deployed on …"). Turn off deploy previews for this site in Netlify's settings, so the CI deploy is the only one. -
Optional: replace
nwtgck/actions-netlifywithquantecon/actions/[email protected], as QuantEcon/lecture-python-programming.fr does. It posts a stablepr-NURL and a link to each lecture the PR changes, which is the page a reviewer opens. It needspull-requests: writeon the job and a Node setup step, as in the frci.yml. On QuantEcon/lecture-python-programming.fr#94 its preview shows the PR's text.
Done when
- A PR that edits an existing lecture shows the edited text in its preview, checked on one PR.
- Each PR carries one preview link, and it works.
- 主要言語
- TeX
- スター
- 5
- フォーク
- 4
- 平均マージ
- 6日 22時間
- マージ済み PR(30日)
- 20
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantEcon/lecture-python.zh-cn のほかの issue
-
Phase 2 tidy-up: revert intersphinx-qualified references once their target lectures are translatedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantEcon/lecture-python.zh-cn#173 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
QuantEcon/lecture-python.zh-cn#306 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
The -W gate is blind in ci.yml, and a warning-only cache failure discards a completed executionオープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
QuantEcon/lecture-python.zh-cn#271 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
QuantEcon/lecture-python.zh-cn#268 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
QuantEcon/lecture-python.zh-cn#267 ·
メンテナーはふだん 1 日以内に返信
QuantEcon/lecture-python.zh-cn の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
diegosouzapw/OmniRoute#18387 ·
-
Enhancement: Test warm/fast reboot on supported Nexthop platforms対応中かも @domingo-nexthop が 119 日前に担当しました。 オープンEnhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
sonic-net/sonic-mgmt#28842 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
[BUG] Published Docker images lack the redis extra: HEADROOM_COMPRESS_SESSION_STORE stops startup対応中かも @AlessandroSpallina が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
headroomlabs-ai/headroom#4513 ·
メンテナーはふだん 1 日以内に返信
-
bug priority-medium to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信