cloudflare / cloudflare/developer-platform
CloudFlare Workers seems to only see Build Variables & Secrets on main branch on some projects
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc so sánh các thiết lập Cloudflare Workers và lịch sử triển khai được liên kết trong báo cáo cho greg-l-turnquist và pro-coder-io. Tái hiện các build trên các branch main và không phải main, đồng thời kiểm tra xem NPM_TOKEN đã cấu hình có khả dụng trong mỗi build hay không. Được xem là hoàn tất khi hành vi phụ thuộc vào branch đã được tái hiện và nguyên nhân của nó được xác định hoặc được ghi lại kèm bằng chứng build hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- cloud, devops
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100