Skip to content

feat: YouTube API v3 worker deploy + fix all CI workflow failures - #259

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-workflow-fixes
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-workflow-fixes

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • YouTube worker deploy pipeline: Added youtube-worker-validate and youtube-worker-deploy jobs to .circleci/config.yml. The validate job type-checks src/youtube-worker.ts and runs the YouTube integration script; the deploy job calls wrangler deploy on main (skips gracefully if CLOUDFLARE_API_TOKEN is unset).
  • Fixed functions ESLint failure: .eslintrc.js was minified into a single line — ESLint was linting its own config file and failing with 40 spacing errors. Reformatted to proper multi-line style.
  • Fixed functions/package.json: Removed duplicate firebase-admin entry (JSON only keeps the last value), dropped non-existent lint package, fixed typescript "^6.0.0" (doesn't exist) → "^5.6.0", corrected firebase-functions version, set engines.node to 20 (24 is not yet stable).
  • Fixed Python linting (27 ruff errors): Auto-fixed 22 issues (quote style, unused imports), manually fixed 4 PTH123 errors in fix_app.py and fix_index.py by replacing bare open() calls with Path.open().
  • Fixed app/wrangler.jsonc: Replaced <WORKER_NAME> and <COMPATIBILITY_DATE> placeholders with real values.
  • Tightened CircleCI node-checks: Use npm run lint/build --prefix functions and ./node_modules/.bin/tsc --noEmit instead of cd+npx (avoids npx restriction and directory-change fragility).

Test plan

  • ruff check . — 0 errors
  • ./node_modules/.bin/tsc --noEmit — 0 errors
  • npm run lint --prefix functions — 0 errors
  • npm run build --prefix functions — builds successfully
  • pnpm install --frozen-lockfile — installs cleanly
  • CircleCI validate workflow should pass all 4 jobs after merge

https://app.circleci.com/agents/gh/ruhdevops/chat/8d7ffd05-de99-40bc-9134-35777bd3f631

- Add youtube-worker-validate and youtube-worker-deploy jobs to CircleCI
  config, wiring src/youtube-worker.ts (channel UCrjJP_SHUeCmqpTSHJCXkdA)
  into the validate→deploy pipeline on main branch
- Fix functions/.eslintrc.js: reformatted from minified one-liner to proper
  multi-line style — ESLint was linting its own config file and failing on
  40 spacing/formatting errors
- Fix functions/package.json: remove duplicate firebase-admin entry, drop
  non-existent lint package, fix typescript "^6.0.0"→"^5.6.0", fix
  firebase-functions version, set node engine to 20 (24 was unstable)
- Fix Python files (fix_app.py, fix_index.py): replace bare open() calls
  with Path.open() to resolve ruff PTH123 errors; auto-fix remaining 22
  ruff issues (Q000 quote style, F401 unused import, UP015 mode arg)
- Fix app/wrangler.jsonc: replace placeholder WORKER_NAME and
  COMPATIBILITY_DATE with real values
- Update CircleCI node-checks job to use npm run lint/build --prefix
  instead of cd, and use tsc directly instead of npx

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 Oct 19, 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 Oct 19, 2026 1:25am UTC
yt-studio-production Error Error Oct 19, 2026 1:25am 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 0a052a0 Oct 19 2026, 01:25 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 0a052a0 Oct 19 2026, 01:25 AM

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 0a052a0
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ad57199d29247fc06ea19d5
😎 Deploy Preview https://deploy-preview-259--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-production — 0a052a0f Deployed Oct 19, 2026 by vercel[bot]
Preview – yt-studio — 0a052a0f Deployed Oct 19, 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