Skip to content

feat: YouTube API v3 worker + CI pipeline fixes - #322

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/yt-api-worker-deploy-1793679596589
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/yt-api-worker-deploy-1793679596589

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 Worker (src/youtube-worker.ts): Cloudflare Worker fetches live channel data, video listings, and search results from YouTube API v3 for channel UCrjJP_SHUeCmqpTSHJCXkdA (Ruh Al Tarikh). Falls back to demo videos when YOUTUBE_API_KEY is not configured.
  • Fix app/wrangler.jsonc: Replaced <WORKER_NAME> and <COMPATIBILITY_DATE> placeholders with real values (ytstudio-app / 2025-01-01).
  • CI pipeline (.circleci/config.yml): Added two new jobs to the validate workflow:
    • worker-checks: TypeScript type check + Wrangler dry-run build validation
    • worker-deploy: Deploys worker to Cloudflare on main branch (skips gracefully when CLOUDFLARE_API_TOKEN is not set)
  • Fix node-checks CI job: Added missing npm install step for functions/ before lint/tsc; switched from npx tsc to local binary; removed broken quality-gc step.
  • Fix functions/package.json: Node engine 24→20, removed duplicate firebase-admin entry and invalid lint dep, fixed TypeScript ^6→^5.8.3.
  • Fix functions/.eslintrc.js: Expanded from minified one-liner to readable format.
  • Fix package.json: Removed stale circletui dependency.
  • Reformat fix_app.py via ruff to keep Python linter clean.

Test plan

  • pnpm exec tsc --noEmit --project tsconfig.json — passes (root worker)
  • functions/./node_modules/.bin/tsc --noEmit — passes
  • npm run lint -- --max-warnings 0 in functions/ — passes (0 errors, 0 warnings)
  • pnpm exec wrangler deploy --env="" --dry-run — builds successfully, outputs youtube-worker.js
  • pnpm install --frozen-lockfile — lockfile is up to date

https://app.circleci.com/agents/gh/ruhdevops/chat/47876e8a-6376-469d-9f1f-66892582f97a

- Validate and clean up YouTube API v3 Cloudflare Worker (src/youtube-worker.ts)
  already implements /api/channel, /api/videos, and /api/search endpoints with
  demo fallback when YOUTUBE_API_KEY is not configured
- Fix app/wrangler.jsonc: replace placeholder WORKER_NAME/COMPATIBILITY_DATE
  with real values (ytstudio-app / 2025-01-01)
- Add worker-checks and worker-deploy jobs to .circleci/config.yml:
  - worker-checks: TypeScript type check + wrangler dry-run build
  - worker-deploy: deploys to Cloudflare on main branch when CLOUDFLARE_API_TOKEN is set
- Fix node-checks CI job: add functions npm install step before lint/tsc,
  use local tsc binary instead of npx, remove broken quality-gc step
- Fix functions/package.json: node 24→20, remove duplicate firebase-admin
  and invalid lint dep, fix typescript ^6→^5.8.3
- Expand functions/.eslintrc.js from minified to readable format
- Remove stale circletui dep from root package.json
- Reformat fix_app.py via ruff

AI-Generated: true
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
yt-studio Error Error Nov 3, 2026 4:30am UTC
yt-studio-production Error Error Nov 3, 2026 4:30am UTC

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio d462427 Nov 03 2026, 04:29 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ytstudio d462427 Nov 03 2026, 04:30 AM

@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

Name Link
🔨 Latest commit d462427
🔍 Latest deploy log https://app.netlify.com/projects/ytr-studio/deploys/6ae9633dc1c5d44799307ec2

@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit d462427
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ae9633dcc2cab712966af78
😎 Deploy Preview https://deploy-preview-322--elegant-seahorse-d9d460.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch had an error being deployed

2 failed deployments
Preview – yt-studio — d4624279 Deployed Nov 3, 2026 by vercel[bot]
Preview – yt-studio-production — d4624279 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants