cloudflare / cloudflare/developer-platform

CloudFlare Workers seems to only see Build Variables & Secrets on main branch on some projects

Aperta
#72 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Describe the Bug

CloudFlare Workers - Build Variables & Secrets don't appear consistently in build jobs.

### Expected Behavior

I have an NPM_TOKEN registered in multiple workers so that during the build phase, a private NPM module can be installed. This works in some workers but not others.

### Steps to Reproduce

1. If you visit https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/greg-l-turnquist/production/settings, you can see clearly that NPM_TOKEN is set. And if you dig in, this value has been set for some time.
2. In the Deployments version history, this works just fine WHEN you build on main branch. However, any builds NOT on main branch fail due to NPM_TOKEN not being visible.
3. This implies that setting NPM_TOKEN doesn't end up being universal.

Contrast this with another CloudFlare Worker, that seems to build just fine.

1. If you check out https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/pro-coder-io/production/settings, it also has NPM_TOKEN configured. And it builds fine on main branch.
2. But it ALSO builds fine on branch builds as recently as 15 days ago => https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/pro-coder-io/production/builds/8e058b56-e576-4f3c-9452-46f545c12acf

This is wholly inconsistent behavior, implying something under the hood has changed.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by comparing the Cloudflare Workers settings and deployment histories linked in the report for greg-l-turnquist and pro-coder-io. Reproduce builds on main and non-main branches, checking whether the configured NPM_TOKEN is available during each build. Done means the branch-dependent behavior is reproduced and its cause is identified or documented with supporting build evidence.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
cloud, devops
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.