Skip to content

feat: YouTube API v3 worker deploy job + fix CI workflow failures - #328

Open
circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-ci-fix-2
Open

circleci-app[bot] wants to merge 1 commit into
mainfrom
chunk/youtube-worker-deploy-ci-fix-2

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • New deploy-worker CircleCI job: Type-checks and deploys src/youtube-worker.ts (YouTube API v3 Cloudflare Worker) to Cloudflare via wrangler. Deployment is gated on CLOUDFLARE_API_TOKEN being set as a project env var; without it the job validates TypeScript and exits cleanly.
  • Fixed node-checks job: Added npm install step for functions/ before ESLint and tsc. Previously the job failed because pnpm install --frozen-lockfile only populates the root workspace, leaving functions/node_modules empty.
  • Fixed functions/package.json: Removed duplicate firebase-admin key (JSON parsers resolve to the last value ^10.3.0, which is incompatible with firebase-functions@7; kept ^13.9.0). Fixed typescript devDep from non-existent ^6.0.0 to ^5.6.0.
  • Fixed Python ruff PTH123 violations: fix_app.py and fix_index.py used bare open() instead of Path.open(). PTH123 is not auto-fixable by ruff check --fix, so these caused python-checks to exit non-zero.

Test plan

  • python-checks job: ruff check . --fix exits 0 after auto-fixing Q000 in fix_deps.py; PTH123 already resolved manually
  • node-checks job: npm install in functions/ succeeds with compatible deps; ESLint and tsc --noEmit pass
  • deploy-worker job (on main): TypeScript type-check passes; deployment skips gracefully if CLOUDFLARE_API_TOKEN is not configured

https://app.circleci.com/agents/gh/ruhdevops/chat/e24009b6-2627-4c91-8740-5ca6aea74ee3

1. Add deploy-worker CircleCI job that type-checks and deploys the
   YouTube API v3 Cloudflare Worker (src/youtube-worker.ts) to
   Cloudflare via wrangler. Deployment is conditional on
   CLOUDFLARE_API_TOKEN being set; otherwise the job validates
   the TypeScript source and exits cleanly.

2. Fix node-checks job: add `npm install` step for functions/ before
   running ESLint and tsc — the job was failing because functions/
   node_modules was never populated (pnpm install only covers the root
   workspace).

3. Fix functions/package.json:
   - Remove duplicate firebase-admin key; JSON parsers take the last
     value (^10.3.0), which is incompatible with firebase-functions@7
     (requires ^11-^14). Keep ^13.9.0.
   - Fix TypeScript devDependency from non-existent ^6.0.0 to ^5.6.0.

4. Fix Python ruff violations (PTH123 - not auto-fixable):
   - fix_app.py: replace open() with Path.open(), remove unused sys
   - fix_index.py: replace open() with Path.open()
   These prevented ruff check --fix from exiting 0 in python-checks.

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 5, 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 5, 2026 1:28am UTC
yt-studio-production Error Error Nov 5, 2026 1:28am UTC

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 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 01174cd Nov 05 2026, 01:29 AM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 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 01174cd Nov 05 2026, 01:29 AM

@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 01174cd
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6aebdbb47066a7290ab101f6
😎 Deploy Preview https://deploy-preview-328--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 — 01174cdd Deployed Nov 5, 2026 by vercel[bot]
Preview – yt-studio-production — 01174cdd Deployed Nov 5, 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