Skip to content

fix: resolve CI workflow failures and add YouTube API v3 worker build - #309

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

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

Conversation

@circleci-app

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

Copy link
Copy Markdown
Contributor

Summary

  • Fix python-checks CI job: fix_app.py and fix_index.py had 4 non-auto-fixable PTH123 ruff violations (open() instead of Path.open()). The CI runs ruff check . --fix which exits 1 if any unfixable errors remain — these were it. Both files now use pathlib.Path.open(). All remaining ruff errors in fix_deps.py are Q000 (single-quote style) which are auto-fixable, so ruff check . --fix will exit 0.

  • Fix node-checks CI job: The job ran cd functions && npm run lint -- --max-warnings 0 without ever installing functions/ node_modules. Since functions/ is not a pnpm workspace member, pnpm install --frozen-lockfile at the root never populated functions/node_modules. ESLint was therefore not found. A new "Install functions dependencies" step (npm install --legacy-peer-deps) is added before linting.

  • Add worker-build job: Validates and optionally deploys the YouTube API v3 Cloudflare Worker (src/youtube-worker.ts). The worker fetches channel stats and video listings from YouTube Data API v3 for channel UCrjJP_SHUeCmqpTSHJCXkdA. When CLOUDFLARE_API_TOKEN is set, it runs pnpm run deploy:worker (wrangler deploy); otherwise it logs a skip message.

Known remaining issues (require elevated permissions to fix)

  • functions/package.json has a duplicate firebase-admin key (^13.9.0 and ^10.3.0); only the second survives JSON parsing. This directory was write-protected in this run. Fix: remove the ^10.3.0 duplicate, keep ^13.9.0, and update node engine from "24" to "20" to match CI.
  • package.json has a duplicate circletui key in dependencies. Fix: remove the trailing duplicate entry.

https://app.circleci.com/agents/gh/ruhdevops/chat/21325cde-f1ce-4567-9704-9a90c13dbfe4

- Fix PTH123 ruff errors in fix_app.py and fix_index.py by using Path.open()
  instead of built-in open() — these were the only non-auto-fixable ruff
  errors blocking the python-checks CI job
- Add "Install functions dependencies" step (npm install --legacy-peer-deps)
  to node-checks job so eslint is available before npm run lint runs in
  functions/ — previously functions/node_modules was never populated
- Add worker-build job to validate workflow: type-checks src/youtube-worker.ts
  (YouTube API v3 Cloudflare Worker) and conditionally deploys when
  CLOUDFLARE_API_TOKEN is available
- Add worker-build to validate workflow job list

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 31, 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 31, 2026 2:25am UTC
yt-studio-production Error Error Oct 31, 2026 2: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 5361c6f Oct 31 2026, 02: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 5361c6f Oct 31 2026, 02:25 AM

@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for ytr-studio failed.

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

@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for elegant-seahorse-d9d460 ready!

Name Link
🔨 Latest commit 5361c6f
🔍 Latest deploy log https://app.netlify.com/projects/elegant-seahorse-d9d460/deploys/6ae5519bcc0825de9cbc59db
😎 Deploy Preview https://deploy-preview-309--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 — 5361c6f7 Deployed Oct 31, 2026 by vercel[bot]
Preview – yt-studio — 5361c6f7 Deployed Oct 31, 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