Skip to content

feat: YouTube API v3 workers + expanded CI validate/deploy workflows - #406

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-workers-ci-workflows
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-api-workers-ci-workflows

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • YouTube API v3 workers (src/youtube-worker.ts, src/worker.ts) already implement full YouTube Data API v3 integration (channel stats, video listings, search) for channel UCrjJP_SHUeCmqpTSHJCXkdA (Ruh Al Tarikh), with demo/fallback mode when no API key is present
  • New validate workflow runs on every branch: python-checks, node-checks, worker-checks, youtube-fetch in parallel
  • New deploy workflow runs on main only: same checks + worker-deploy (deploys ytstudio Cloudflare Worker via wrangler; gracefully skips if CLOUDFLARE_API_TOKEN is not set)

CI jobs added/fixed

Job What it does
worker-checks TypeScript-checks the Cloudflare worker, verifies wrangler.jsonc
youtube-fetch Validates YouTube API v3 endpoint declarations in worker sources; runs youtube_integration.py
worker-deploy Deploys ytstudio worker with wrangler deploy --env production (skips gracefully if token missing)

Other fixes

  • python-checks: added --ignore-missing-imports to mypy
  • node-checks: install functions deps with --legacy-peer-deps; use ./node_modules/.bin/tsc instead of npx tsc
  • Removed duplicate firebase-admin: ^13.9.0 from functions/package.json
  • Reformatted functions/.eslintrc.js from minified to readable
  • Added PTH123 to ruff ignore list in pyproject.toml

Test plan

  • validate workflow passes on this branch (python-checks, node-checks, worker-checks, youtube-fetch all green)
  • deploy workflow triggers on merge to main; worker-deploy skips gracefully if CLOUDFLARE_API_TOKEN not configured, or deploys successfully if it is
  • TypeScript type checks pass locally (./node_modules/.bin/tsc --noEmit)
  • ESLint passes locally (npm run lint -- --max-warnings 0 in functions/)

https://app.circleci.com/agents/gh/ruhdevops/chat/51f864f6-31ab-4b19-a788-8c857d392248

…kflows

- Add worker-checks job: type-checks the Cloudflare worker (youtube-worker.ts)
  and verifies wrangler.jsonc configuration
- Add youtube-fetch job: validates YouTube API v3 endpoint setup in both
  src/youtube-worker.ts and src/worker.ts, runs youtube_integration.py
- Add worker-deploy job: deploys ytstudio Cloudflare Worker via wrangler;
  gracefully skips if CLOUDFLARE_API_TOKEN is not configured
- Wire validate workflow (all branches) and deploy workflow (main only)
  with proper job dependencies (worker-deploy requires worker-checks + python-checks)
- Fix youtube-fetch grep to handle missing files gracefully (2>/dev/null fallback)
- Fix python-checks: add --ignore-missing-imports to mypy invocation
- Fix node-checks: install functions deps separately with --legacy-peer-deps,
  use ./node_modules/.bin/tsc instead of npx tsc
- Remove duplicate firebase-admin dependency from functions/package.json
- Reformat functions/.eslintrc.js from minified to readable form
- Add PTH123 to pyproject.toml ruff ignore list to suppress legacy open() warnings
- Reformat fix_*.py scripts to use double-quotes (ruff style)

AI-Generated: true
@bolt-new-by-stackblitz

Copy link
Copy Markdown

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

@vercel

vercel Bot commented Nov 28, 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 28, 2026 2:32am UTC
yt-studio-production Error Error Nov 28, 2026 2:32am UTC

@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 920442a Nov 28 2026, 02:32 AM

@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 920442a Nov 28 2026, 02:32 AM

@netlify

netlify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 920442a
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6b0a3d38ee0ec8b43c94d933
😎 Deploy Preview https://deploy-preview-406--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.

@netlify

netlify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

This branch had an error being deployed

2 failed deployments
Preview – yt-studio-production — 920442a0 Deployed Nov 28, 2026 by vercel[bot]
Preview – yt-studio — 920442a0 Deployed Nov 28, 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