Skip to content

CI: install ocular via Composer (fixes Scrutinizer coverage upload)#16

Merged
mmucklo merged 1 commit into
masterfrom
fix-ocular-composer
Apr 13, 2026
Merged

CI: install ocular via Composer (fixes Scrutinizer coverage upload)#16
mmucklo merged 1 commit into
masterfrom
fix-ocular-composer

Conversation

@mmucklo

@mmucklo mmucklo commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Problem

`scrutinizer-ci.com/ocular.phar` now returns HTTP 403 (Cloudflare bot challenge). The CI step that did `wget -q https://scrutinizer-ci.com/ocular.phar\` was silently exiting with code 8.

Because the step was marked `continue-on-error: true`, GitHub Actions stayed green — but Scrutinizer never received coverage and every inspection sat pending until the 900s `external_code_coverage` timeout fired.

Fix

Install `scrutinizer/ocular` (1.9) from Packagist via `composer global require` instead of wget-ing the phar. Resolves the binary path via `composer global config bin-dir --absolute` so it survives any future Composer default-path changes.

`continue-on-error: true` is preserved on the upload step — Scrutinizer outages shouldn't fail CI.

Test plan

  • YAML validates.
  • Confirm on PR run: ocular installs, uploads coverage, Scrutinizer inspection completes.
  • Confirm master build turns green after merge (all four GH Actions legs + Codecov + Scrutinizer).

🤖 Generated with Claude Code

scrutinizer-ci.com/ocular.phar now returns HTTP 403 (Cloudflare bot
challenge), so the previous wget-based install silently failed with
exit code 8. Because the step was continue-on-error, CI stayed green
but Scrutinizer never received coverage and every inspection sat
pending until the 900s external_code_coverage timeout.

Use the scrutinizer/ocular package from Packagist instead, installed
via composer global require. Resolves the ocular binary path from
\`composer global config bin-dir --absolute\` so it survives any future
Composer default-path changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Apr 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.07%. Comparing base (47d169f) to head (5b176d5).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #16   +/-   ##
=========================================
  Coverage     98.07%   98.07%           
  Complexity       27       27           
=========================================
  Files             1        1           
  Lines            52       52           
=========================================
  Hits             51       51           
  Misses            1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mmucklo mmucklo merged commit 692aa5a into master Apr 13, 2026
6 of 7 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.

1 participant