Repository navigation
Conversation
external_spec, library_spec and yardoc_spec uncache backport from the shared cache directory. Another rspec process using the same cache (same branch, so same SOLARGRAPH_FORCE_VERSION work dir) then finds backport uncached and fails external_spec:42, :49, :61, :85 and :93. Run those examples against a temporary copy of the cache instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LTpguHxFEQL9KJ7MGedKby
apiology
added a commit
that referenced
this pull request
Nov 11, 2026
external_spec and library_spec uncache backport from the shared cache directory, so another rspec process using the same cache finds it uncached and fails. Run those examples against a temporary copy of the cache instead, as #491 does on master. yardoc_spec needs no such hook here: it already stubs yard_dir to a temporary directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LTpguHxFEQL9KJ7MGedKby
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: This PR was written by Claude Code on behalf of @apiology.
Problem
Two rspec processes sharing a cache fail
external_spec:A full run fails while the same file run alone passes, so it looks like a flaky or order-dependent spec.
Solution
Run the examples that uncache
backport(inexternal_spec,library_specandyardoc_spec) against a temporary copy of the cache, so they no longer delete entries another process is reading.Test plan
rspec spec/external_spec.rbon oneSOLARGRAPH_CACHEfailed in 2 of 3 rounds; deleting the backport/nokogiri/reverse_markdown.serfiles during a run reproduces :42, :49, :61, :85 and :93.external_specconcurrent withexternal_spec+library_spec+yardoc_spec, all passing.