Repository navigation
feat: YouTube API v3 worker CI pipeline + fix workflow failures - #250
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- Add build-worker job: validates src/youtube-worker.ts (Cloudflare Worker serving /api/channel, /api/videos, /api/search via YouTube Data API v3) - Add deploy-worker job: fetches live YouTube API v3 channel data smoke test and deploys ytstudio worker to Cloudflare (skips gracefully when CLOUDFLARE_API_TOKEN / YOUTUBE_API_KEY env vars are absent) - Add worker-pipeline workflow gating deploy-worker behind build-worker, restricted to main branch - Fix node-checks: add "Install Firebase Functions dependencies" step so functions/node_modules exists before eslint/tsc run - Fix functions/package.json: remove duplicate firebase-admin key (^10.3.0 was overriding ^13.9.0, breaking firebase-functions@^7 peer dep) and correct typescript devDep from non-existent ^6.0.0 to ^5.8.3 - Fix functions/.eslintrc.js: reformat minified one-liner to proper JS so eslint no longer reports 40 comma-spacing / key-spacing violations on the config file itself - Fix fix_app.py, fix_index.py: replace open() with Path.open() to resolve PTH123 ruff errors that blocked ruff check --fix from exiting cleanly AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 782c6d0 | Oct 17 2026, 02:27 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 782c6d0 | Oct 17 2026, 02:27 AM |
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
build-workeranddeploy-workerCI jobs for theytstudioCloudflare Worker (src/youtube-worker.ts). The worker exposes/api/channel,/api/videos, and/api/searchendpoints backed by YouTube Data API v3 (with demo fallback when no API key is present). The deploy step runs a live channel-data smoke test and deploys viawrangler— both steps skip gracefully ifYOUTUBE_API_KEY/CLOUDFLARE_API_TOKENare not set.validateworkflow — node-checks: Added a dedicated "Install Firebase Functions dependencies" step sofunctions/node_modulesexists before ESLint andtscrun in that directory.functions/package.json: Removed the duplicatefirebase-adminkey (^10.3.0was silently overriding^13.9.0, causingfirebase-functions@^7peer-dep failure at install time). Also correctedtypescriptdevDep from non-existent^6.0.0→^5.8.3.functions/.eslintrc.js: Reformatted the minified one-liner into readable JS — ESLint was linting its own config file and failing with 40 comma-spacing / key-spacing errors.fix_app.pyandfix_index.pyto usePath.open()instead ofopen(), resolving the 4 non-auto-fixablePTH123errors that causedruff check --fixto exit non-zero.Test plan
validateworkflow:python-checksandnode-checksboth pass (ruff, mypy, pytest, eslint, tsc)worker-pipelineworkflow:build-workerverifies worker source and wrangler config;deploy-workerruns onmainonly and deploys whenCLOUDFLARE_API_TOKENis availableYOUTUBE_API_KEYandCLOUDFLARE_API_TOKENin CircleCI project env vars to enable live API fetch and Cloudflare deploymenthttps://app.circleci.com/agents/gh/ruhdevops/chat/ed6587dc-6e15-4adc-b956-174cdb3cd6c3