PR previews: the Colab job's Netlify deploy replaces the site build's preview link
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start with .github/workflows/ci.yml and .github/workflows/collab.yml, comparing their "Preview Deploy to Netlify" steps that use nwtgck/[email protected]. The fix is either to remove the deploy from collab.yml while keeping its execution report upload, or to separate the two deploys with the action's alias, enable-pull-request-comment and enable-commit-status inputs. Done means a pull request shows one preview link that points at the site build, which you can check on a test pull request. Maintainers may move these workflows to QuantEcon/actions, so confirm the plan with them first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Two workflows deploy each pull request to the same Netlify site, and whichever finishes last decides where the pull request's preview link points. On recent pull requests that is often the Google Colab execution test, not the site build.
What happens
ci.yml builds the site in the conda environment from environment.yml. collab.yml runs the lectures in the Google Colab runtime image (us-docker.pkg.dev/colab-images/public/runtime:latest), where Python lives under /usr/local. Both end with a "Preview Deploy to Netlify" step using nwtgck/[email protected], with the same site, token and deploy message. The action edits a single bot comment on the pull request ("Deployed on …") and sets the "Netlify" commit status, so the job that deploys second overwrites the first one's link.
Example: #876 at 6280118
| Workflow | Run | Finished | Deploy | Environment |
|---|---|---|---|---|
| ci.yml (site build) | 45076122134 | 22:16:19Z | https://6b0369a8910b5ccf5ef38079--taupe-gaufre-c4e660.netlify.app | conda env, pandas 3.0.3 |
| collab.yml (Colab test) | 45076122190 | 22:17:00Z | https://6b0369d04c86ffa2183b9eda--taupe-gaufre-c4e660.netlify.app | Colab image, pandas 2.2.3, yfinance 0.2.66 |
The bot comment was updated to the Colab deploy at 22:16:54Z on 2026-11-22, and the "Netlify" status points there too.
What a reviewer then sees on fitting_distributions is the Colab build:
- a yfinance
FutureWarningthat the live site doesn't have; - pandas 2 display formatting;
- last-digit float differences.
None of these comes from the pull request. Against the site build's preview, the live site's fitting_distributions and inflation_history differ only by the pull request's own changes, and all 26 figures on those pages are byte-identical.
Possible changes
- Deploy only from
ci.yml, and havecollab.ymlkeep uploading its execution reports without deploying. - Or keep the Colab deploy but separate it. actions-netlify v4.0 has inputs for this:
alias,enable-pull-request-comment,enable-commit-commentandenable-commit-status.
Status
This may not be fixed here, because the plan is likely to move the lecture repositories' workflows to QuantEcon/actions (mmcky, 2026-11-23). It is recorded so the move keeps one preview link per pull request, and so reviewers know the current link can show the Colab build.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 71
- Fork
- 37
- Merge trung bình
- 13 giờ 9 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của QuantEcon/lecture-python-intro
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
QuantEcon/lecture-python-intro#884 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
QuantEcon/lecture-python-intro#871 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
QuantEcon/lecture-python-intro#864 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lake_model_intro, time_series_with_matrices, long_run_growth: four small fixesCó thể đã có người làm @nishantmishraa đã nhận 29 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantEcon/lecture-python-intro#862 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantEcon/lecture-python-intro#851 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của QuantEcon/lecture-python-intro
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ardia-browser/ardia#6798 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[P1] K8s 清单中网关与迁移任务的镜像版本不一致Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Lincoln-cn/JAiRouter#1465 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Klyroo/klyroo-dashboard#12 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onCó thể đã có người làm @yadavraj2001 đã nhận hôm nay. Đang mởdocumentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
juandresrodca/AdminForge#73 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
future-agi/future-agi#6337 ·
Maintainer thường phản hồi trong vòng 1 ngày