Skip to content

Fix failing tests and remove Claude workflows - #352

Merged
simonw merged 4 commits into
mainfrom
fix-ci-tests
Oct 1, 2026
Merged

simonw merged 4 commits into
mainfrom
fix-ci-tests

Conversation

@simonw

@simonw simonw commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Figure out why the CI often fails

Claude Opus 5.5

The Test workflow has been red on main since 2026-09-07, and Claude Code Review has failed on every PR since July. This gets Test green again (run #1898).

Video compressor embed snippet tests. test_filename_poster_and_embed_snippet (the <video> snippet) and test_webp_format_switches_settings (the <img> snippet, added in #351) assumed Playwright's Chromium can't read the H.264 test video's metadata. If it can't, the snippet has no width/height. CI installs the latest Playwright, whose Chromium can read it, so the snippets gained width="640" height="360" and the assertions failed. Both tests now expect the size whenever the page detected it (640×360 in #source-details). I checked both cases: without the size, using an older Chromium, and with it.

Sloccount GitHub test. test_github_repo_analysis called the real api.github.com without authentication. That fails intermittently once shared CI runners hit the 60 requests/hour limit. It now analyses a fake two-file repository served with page.route, and checks that the result is 2 files in 2 languages.

Claude workflows removed. claude-code-review.yml failed on every run since 2026-07-10 with OAuth access token has expired. claude.yml (@claude mentions) used the same CLAUDE_CODE_OAUTH_TOKEN secret and is removed too. Nothing else references that secret, so it can be deleted from the repo settings.

🤖 Generated with Claude Code

https://claude.ai/code/session_0139NfxSqowttMWdKwMQ7hYM

claude added 4 commits October 1, 2026 20:01
test_filename_poster_and_embed_snippet assumed Chromium can't read H.264
metadata, so the embed snippet would have no width/height. Newer
Playwright Chromium builds can, so the test failed on every CI run since
2026-09-07. It now expects the size whenever the page detected it.

test_github_repo_analysis called the live GitHub API unauthenticated,
which fails intermittently once shared CI runners hit the rate limit. It
now analyzes a mocked two-file repository.

The Claude Code Review workflow has failed on every PR since July because
its OAuth token expired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139NfxSqowttMWdKwMQ7hYM
test_webp_format_switches_settings, added in #351, has the same
assumption as the <video> snippet test: newer Playwright Chromium reads
the source size up front, so the <img> snippet carries width/height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139NfxSqowttMWdKwMQ7hYM
It used the same expired CLAUDE_CODE_OAUTH_TOKEN secret as the Claude
Code Review workflow, so @claude mentions would fail too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139NfxSqowttMWdKwMQ7hYM
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Deploying tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: f8ef97c
Status: ✅  Deploy successful!
Preview URL: https://00da793b.tools-b1q.pages.dev
Branch Preview URL: https://fix-ci-tests.tools-b1q.pages.dev

View logs

@simonw simonw changed the title Fix failing tests and remove Claude Code Review workflow Fix failing tests and remove Claude workflows Oct 1, 2026
@simonw
simonw merged commit d5cd039 into main Oct 1, 2026
3 checks passed
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.

2 participants