Skip to content

Skip the embedded undercover check in Plugin jobs - #92

Closed
apiology wants to merge 3 commits into
masterfrom
worktree-fix-plugins-undercover-fetch-depth
Closed

Skip the embedded undercover check in Plugin jobs#92
apiology wants to merge 3 commits into
masterfrom
worktree-fix-plugins-undercover-fetch-depth

Conversation

@apiology

@apiology apiology commented Sep 7, 2026

Copy link
Copy Markdown
Owner

This PR was written by Claude Code on behalf of @apiology.

Problem: The undercover coverage check crashes on every run of the regression, rails, and rspec jobs in plugins.yml, and nothing surfaces the failure.

$ bundle exec rake spec
...
bundler: failed to load command: undercover (...)
.../undercover/changeset.rb:68:in 'Rugged::Repository#merge_base':
  revspec 'origin/master' not found (Rugged::ReferenceError)

rake spec's embedded undercover call never checks the subprocess's exit status, so these three jobs report green while silently never running a coverage check at all.

Solution: Run rake full_spec instead of rake spec in these three jobs, which runs the same rspec suite without the origin/master comparison undercover needs and these plugin-compatibility jobs do not use.

apiology and others added 3 commits September 6, 2026 21:17
The regression, rails, and rspec jobs in plugins.yml run
bundle exec rake spec, whose spec task unconditionally shells
out to undercover, comparing against origin/master. Their
actions/checkout@v3 step used the default shallow, single-ref
fetch, so origin/master never existed locally and the
undercover subprocess crashed with a Rugged::ReferenceError on
every run of these jobs.

rspec.yml already fetch-depth: 0 for its own dedicated
undercover job, with a comment explaining why. Apply the same
setting to the three plugins.yml jobs that hit the same
comparison.
rake spec's embedded undercover call compares against
origin/master, which does not apply to the regression, rails,
and rspec jobs in plugins.yml -- they test solargraph against
a plugin combination, not a diff against master. Run
rake full_spec instead, which runs the same rspec suite without
that comparison.

This drops the fetch-depth: 0 checkout change from the previous
commit on this branch, which is no longer needed once undercover
is not invoked here at all.
The comment on each of the three "Ensure specs still run" steps named
what the line used to be rather than what it now does, which reads as a
changelog entry. The rake task name already states which suite runs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QRZY46qnEA7iZ9WZJiFae4
@apiology
apiology marked this pull request as ready for review September 9, 2026 16:14
@apiology

apiology commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

Claude: Moved upstream to castwide#1347. Closing here.

@apiology apiology closed this Sep 9, 2026
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