Skip to content

Integration batch b2: castwide/solargraph#1442 - #238

Merged
apiology merged 5 commits into
2026-10-19from
2026-10-19-batch-b2
Oct 21, 2026
Merged

apiology merged 5 commits into
2026-10-19from
2026-10-19-batch-b2

Conversation

@apiology

Copy link
Copy Markdown
Owner

Claude: CI for the castwide#1442 merge before it goes onto #213; closed once merged or superseded.

apiology and others added 5 commits October 20, 2026 13:28
When `solargraph cache <gem>` exited non-zero, cache_next_gemspec
picked the same gem again from unloaded_gems, spawning the command in
a hot loop (about 200 times a second) without ever caching it. When
the command could not start at all, Errno::ENOENT escaped the cache
thread and left @cache_progress set, so no gem was cached again.

Either way spec/library_spec.rb:38 waited for its full 60 second
Timeout and failed with only Timeout::Error, since spec logging goes
to File::NULL.

Skip gems already in cache_errors, record a command that fails to
start as a cache error, and have the spec fail as soon as a cache
error is recorded.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SEntZKsZwQHhzqcwG7MTqn
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SEntZKsZwQHhzqcwG7MTqn
The strict-level spec for undefined calls from external sources built
its ApiMap with ApiMap.load, which leaves uncached gems in
unloaded_gems without loading their pins. Kramdown::Parser::GFM was
only resolvable when an earlier spec (e.g. api_map_method_spec via
load_with_cache) had already cached the gem, so the example failed
when run alone or with a fresh SOLARGRAPH_CACHE.

Cache the gem in a before hook, matching library_spec and
external_spec.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SEntZKsZwQHhzqcwG7MTqn
(cherry picked from commit 1b02dda)
Regenerate .rubocop_todo.yml.
…and that failed

Stub unloaded_gems as a Set in the sync_catalog deadlock spec, as
External#unloaded_gems returns; the merged unloaded_gems - cache_errors
raises TypeError on the Array stub.

Remove the @sg-ignore on the cache status check, which typecheck
reports as unneeded now that it reads s&.success?.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SEntZKsZwQHhzqcwG7MTqn
@apiology
apiology merged commit 0615c7b into 2026-10-19 Oct 21, 2026
16 checks passed
@apiology

Copy link
Copy Markdown
Owner Author

Claude: Merged into #213 as 0615c7b.

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