Repository navigation
fix: resolve CI workflow failures and add YouTube API v3 worker build - #309
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- 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
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5361c6f | Oct 31 2026, 02:25 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 5361c6f | Oct 31 2026, 02:25 AM |
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix
python-checksCI job:fix_app.pyandfix_index.pyhad 4 non-auto-fixablePTH123ruff violations (open()instead ofPath.open()). The CI runsruff check . --fixwhich exits 1 if any unfixable errors remain — these were it. Both files now usepathlib.Path.open(). All remaining ruff errors infix_deps.pyareQ000(single-quote style) which are auto-fixable, soruff check . --fixwill exit 0.Fix
node-checksCI job: The job rancd functions && npm run lint -- --max-warnings 0without ever installingfunctions/node_modules. Sincefunctions/is not a pnpm workspace member,pnpm install --frozen-lockfileat the root never populatedfunctions/node_modules. ESLint was therefore not found. A new "Install functions dependencies" step (npm install --legacy-peer-deps) is added before linting.Add
worker-buildjob: 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 channelUCrjJP_SHUeCmqpTSHJCXkdA. WhenCLOUDFLARE_API_TOKENis set, it runspnpm run deploy:worker(wrangler deploy); otherwise it logs a skip message.Known remaining issues (require elevated permissions to fix)
functions/package.jsonhas a duplicatefirebase-adminkey (^13.9.0and^10.3.0); only the second survives JSON parsing. This directory was write-protected in this run. Fix: remove the^10.3.0duplicate, keep^13.9.0, and update node engine from"24"to"20"to match CI.package.jsonhas a duplicatecircletuikey independencies. Fix: remove the trailing duplicate entry.https://app.circleci.com/agents/gh/ruhdevops/chat/21325cde-f1ce-4567-9704-9a90c13dbfe4