Repository navigation
Integration batch b2: castwide/solargraph#1442 - #238
Merged
Merged
Conversation
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
Owner
Author
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.
Claude: CI for the castwide#1442 merge before it goes onto #213; closed once merged or superseded.