CI fails on Netlify preview deploy: NETLIFY_AUTH_TOKEN / NETLIFY_SITE_ID not set
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Inizia dalle righe 79-85 di .github/workflows/ci.yml e dall’esecuzione non riuscita collegata nell’issue. Conferma come il passaggio Preview Deploy to Netlify riceve i suoi secrets e come i passaggi di build precedenti segnalano il successo. Il lavoro è completato quando il comportamento previsto del workflow per l’anteprima o per i secrets mancanti è esplicito, mentre la build di Jupyter Book rimane il risultato CI significativo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The Build Project [using jupyter-book] workflow (ci.yml) fails on every PR — but not because of the build. The jupyter-book build succeeds; the job dies on its final step, Preview Deploy to Netlify, because the required secrets are not configured in this repo.
Evidence
From the failed run on PR #1 (run 26938631605), step conclusions:
success Build Download Notebooks (sphinx-tojupyter)
success Build HTML
success Install Node.js
failure Preview Deploy to Netlify <-- only failure
Error message:
Error: Authentication required. NETLIFY_AUTH_TOKEN is not set and
`netlify login --request <message>` can be used to authenticate.
##[error]Process completed with exit code 1.
gh secret list for the repo returns nothing — no Actions secrets are configured. The step at .github/workflows/ci.yml (Preview Deploy to Netlify) passes secrets.NETLIFY_AUTH_TOKEN and secrets.NETLIFY_SITE_ID, which are empty, so the Netlify CLI exits 1 and the whole job goes red.
Impact
- Pre-existing and repo-wide — affects every PR (e.g. #1 and #3), unrelated to the content of any individual PR. The lectures themselves build cleanly.
- Because the job goes red, the build result is masked by an infrastructure step, which makes it hard to tell at a glance whether a real build break has occurred.
(There is also a separate older failure on main in the Build & Publish to GH Pages workflow — likely the same class of missing-config/secret issue — worth a look while we're here, but tracked separately if needed.)
Options to resolve
- Add the secrets (enables PR previews) — a repo/org admin sets
NETLIFY_AUTH_TOKENandNETLIFY_SITE_IDunder Settings → Secrets and variables → Actions. The QuantEcon org already uses Netlify previews on the other lecture repos, so a token should exist. - Guard the step so CI is green when the token is absent (e.g. forks / before secrets land):
(Secrets can't be referenced directly in- name: Preview Deploy to Netlify if: ${{ env.NETLIFY_AUTH_TOKEN != '' }} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} # ...if:, so map toenvfirst, then testenv.) - Remove the Netlify preview step if previews aren't wanted for this repo.
Recommended: option 1 if we want previews here, with option 2 as a resilience improvement regardless so the build remains the real pass/fail signal.
- Lingua principale
- Jupyter Notebook
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 QuantEcon/scipy_tutorial_2026
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
QuantEcon/scipy_tutorial_2026#6 · 1 commento ·
-
Should the HTML build run on a GPU runner (RunsOn) for accurate horse-race timings?Forse di nuovo libera @Smit-create l’ha presa 160 giorni fa e non c’è nessuna pull request aperta. Aperta
QuantEcon/scipy_tutorial_2026#5 · 2 commenti · 1 assegnatario ·
Tutte le issue di QuantEcon/scipy_tutorial_2026
Issue simili
-
Provider CLI canary failsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
nightly-labs/openbot#7435 ·
I maintainer di solito rispondono entro 1 giorno
-
GitHub webhook is not subscribed to release events, so `event: release` never triggersForse già presa @qsun l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
woodpecker-ci/woodpecker#7542 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
swiftlang/github-workflows#352 ·
I maintainer di solito rispondono entro 1 giorno
-
bug ready-for-triage ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RedHatInsights/insights-ingress-go#914 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
ci enhancement need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno