Skip to content

Integration test: 2026-10-19 - #213

Open
apiology wants to merge 1207 commits into
masterfrom
2026-10-19
Open

apiology wants to merge 1207 commits into
masterfrom
2026-10-19

Conversation

@apiology

@apiology apiology commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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

Problem:

Open PRs are tested only one at a time:

castwide/solargraph PRs, each tested only against its own base

A conflict between two of them would surface only after both merge.

Solution:

Merges every PR below into one branch so CI runs on the combination.

castwide/solargraph PRs included

  1. [regression fix] Make RuboCop block CI again, and auto-prune .rubocop_todo.yml castwide/solargraph#1260 — [regression fix] Make RuboCop block CI again, and auto-prune .rubocop_todo.yml
  2. [regression fix] Show undercover failures as a failed check without blocking merge castwide/solargraph#1047 — [regression fix] Show undercover failures as a failed check without blocking merge
  3. Spec performance fixes castwide/solargraph#1237 — Spec performance fixes
  4. [regression fix] Stop asserts crash on ivars in module_function methods castwide/solargraph#1429 — [regression fix] Stop asserts crash on ivars in module_function methods
  5. [regression fix] Resolve aliases of top-level methods castwide/solargraph#1430 — [regression fix] Resolve aliases of top-level methods
  6. [regression fix] Accept aliases of macro-defined methods with assertions on castwide/solargraph#1431 — [regression fix] Accept aliases of macro-defined methods with assertions on
  7. [regression fix] Stop closure asserts on methods in class << self and Struct.new blocks castwide/solargraph#1433 — [regression fix] Stop closure asserts on methods in class << self and Struct.new blocks
  8. [regression fix] Close @!attribute directive pins over their class, not the documented method castwide/solargraph#1432 — [regression fix] Close @!attribute directive pins over their class, not the documented method
  9. Fix a nil crash and missing nil checks across the parser, type checker and RBS handling castwide/solargraph#1245 — Fix a nil crash and missing nil checks across the parser, type checker and RBS handling
  10. [regression fix] Fix and re-enable strong-level typechecking in CI castwide/solargraph#1240 — [regression fix] Fix and re-enable strong-level typechecking in CI
  11. [regression fix] Stop rerunning a gem cache command that failed castwide/solargraph#1442 — [regression fix] Stop rerunning a gem cache command that failed
  12. [regression fix] Let conventions add source paths when mapping gems castwide/solargraph#1404 — [regression fix] Let conventions add source paths when mapping gems
  13. [regression fix] Create accessor pins for ActiveSupport macros in gem source castwide/solargraph#1446 — [regression fix] Create accessor pins for ActiveSupport macros in gem source
  14. Methods from Solargraph plugin gems don't reliably appear castwide/solargraph#1407 — [regression fix] Give gem caches the workspace's plugins
  15. [regression fix] Let solargraph-rails spec failures fail CI again castwide/solargraph#1321 — [regression fix] Let solargraph-rails spec failures fail CI again
  16. [regression fix] Let overcommit failures fail CI again castwide/solargraph#1448 — [regression fix] Let overcommit failures fail CI again
  17. Read AST children with typesafe pattern-matching castwide/solargraph#1418 — Read AST children with typesafe pattern-matching
  18. Fix raise/fail nil guards, root-scoped is_a?, case/when, ||=, and namespace-scope narrowing in flow-sensitive typing castwide/solargraph#1259 — Fix raise/fail nil guards, root-scoped is_a?, case/when, ||=, and namespace-scope narrowing in flow-sensitive typing
  19. Replace .first/.last with fetch on never-empty arrays castwide/solargraph#1392 — Replace .first/.last with fetch on never-empty arrays
  20. [regression fix] Fix typecheck crash on ivars assigned in a superclass file castwide/solargraph#1450 — [regression fix] Fix typecheck crash on ivars assigned in a superclass file (carries in castwide/master 48909fb: Don't diagnose nil when another tick drains the queue castwide/solargraph#1426, Accept anonymous argument forwarding in strong typecheck castwide/solargraph#1400, Resolve instance variable type when assigned only in an ancestor class's method castwide/solargraph#1345, Apply @!override to constants instead of crashing the typechecker castwide/solargraph#1305, Resolve generic type variables against union @param types castwide/solargraph#1299, ensure clause breaks return type inference castwide/solargraph#1285, Improved RBS type alias support castwide/solargraph#1281, Bind reopened generic parameters by position castwide/solargraph#1411, Resolve class methods added by self.included hooks castwide/solargraph#1405, Define Boolean so its operators resolve castwide/solargraph#1351, Stop reporting a duck type's own method as unresolved castwide/solargraph#1280)
  21. [regression fix] Resolve requires from git- and path-sourced gems castwide/solargraph#1402 — [regression fix] Resolve requires from git- and path-sourced gems
  22. Type pattern-match captures and narrow case/in subjects castwide/solargraph#1416 — Type pattern-match captures and narrow case/in subjects
  23. Fix unresolved method-level generic block parameters castwide/solargraph#1326 — Fix unresolved method-level generic block parameters
  24. Add Range.from_node! for nodes that always have a location castwide/solargraph#1394 — Add Range.from_node! for nodes that always have a location
  25. Use location! where a pin's location is always set castwide/solargraph#1399 — Use location! where a pin's location is always set
  26. Narrow other via self.class == other.class in flow-sensitive typing castwide/solargraph#1367 — Narrow other via self.class == other.class in flow-sensitive typing
  27. Treat zero-start Range slices of Array and String as non-nil castwide/solargraph#1395 — Treat zero-start Range slices of Array and String as non-nil
  28. Use Hash#fetch for keys RuboCop JSON and LSP always send castwide/solargraph#1398 — Use Hash#fetch for keys RuboCop JSON and LSP always send
  29. Keep the generic return type when a method takes a block castwide/solargraph#1274 — Keep the generic return type when a method takes a block
  30. Report a bad config value instead of ignoring it castwide/solargraph#1366 — Report a bad config value instead of ignoring it
  31. Remove every unioned type flow-sensitive-typing rules out castwide/solargraph#1277 — Remove every unioned type flow-sensitive-typing rules out
  32. Inline is_ast_node? guards so flow-sensitive typing can narrow the node castwide/solargraph#1396 — Inline is_ast_node? guards so flow-sensitive typing can narrow the node
  33. Use closure! where a pin's closure is always set castwide/solargraph#1393 — Use closure! where a pin's closure is always set
  34. Resolve inline RBS type names in the enclosing namespace castwide/solargraph#1447 — Resolve inline RBS type names in the enclosing namespace
  35. Narrow select results to the class their block checks castwide/solargraph#1438 — Narrow select results to the class their block checks
  36. Conform to modules included by an unqualified name castwide/solargraph#1437 — Conform to modules included by an unqualified name
  37. Recover the typecheck memory lost to Ruby 3.2 object shapes castwide/solargraph#1401 — Recover the typecheck memory lost to Ruby 3.2 object shapes
  38. Type attribute and index assignments as their RHS castwide/solargraph#1425 — Type attribute and index assignments as their RHS
  39. Typecheck calls made with safe navigation castwide/solargraph#1443 — Typecheck calls made with safe navigation
  40. Fix a nil crash and missing nil checks across the parser, type checker and RBS handling castwide/solargraph#1245 — Fix a nil crash and missing nil checks across the parser, type checker and RBS handling
  41. Read AST children with typesafe pattern-matching castwide/solargraph#1418 — Read AST children with typesafe pattern-matching
  42. Restore declared literal types without inferring them from code castwide/solargraph#1451 — Restore declared literal types without inferring them from code
  43. Type method parameters from inline RBS signatures castwide/solargraph#1441 — Type method parameters from inline RBS signatures (carries in castwide/master c323ef1: [regression fix] Stop rerunning a gem cache command that failed castwide/solargraph#1442, Keep the generic return type when a method takes a block castwide/solargraph#1274, Remove Dispatch#update's hidden assumption that self is a Host castwide/solargraph#1440, Read anonymous <A>, (A) and {A=>B} types as Array, Array and Hash castwide/solargraph#1454, New Plugin architecture with ActiveSupport implementation castwide/solargraph#1435, Keep the adapter spec from hanging in Backport.run castwide/solargraph#1449, Stop mapping a gem's non-sig RBS as its API castwide/solargraph#1453, Type variables from rbs-inline #: assertions on assignments castwide/solargraph#1444, Resolve inline RBS type names in the enclosing namespace castwide/solargraph#1447, Enable pending clip spec castwide/solargraph#1462)
  44. Declare ApiMap::Index's default-proc hashes non-nil castwide/solargraph#1422 — Declare ApiMap::Index's default-proc hashes non-nil
  45. Fix super inferring the union of every ancestor's return type castwide/solargraph#1364 — Fix super inferring the union of every ancestor's return type
  46. Accept an explicit @return [undefined] as declared castwide/solargraph#1420 — Accept an explicit @return [undefined] as declared
  47. Infer block parameter types on safe-navigated calls castwide/solargraph#1421 — Infer block parameter types on safe-navigated calls
  48. [regression fix] Structurally verify RBS interface-typed expectations castwide/solargraph#1266 — Structurally verify RBS interface-typed expectations
  49. [regression fix] Cache gems that have a leftover YARD lock castwide/solargraph#1465 — [regression fix] Cache gems that have a leftover YARD lock
  50. Resolve every generic parameter, not only the first castwide/solargraph#1415 — Resolve every generic parameter, not only the first
  51. [regression fix] Keep declared global types when gems reassign them castwide/solargraph#1439 — [regression fix] Keep declared global types when gems reassign them
  52. Type destructured declared tuples by position castwide/solargraph#1461 — Type destructured declared tuples by position
  53. Type declared tuple elements by position castwide/solargraph#1463 — Type declared tuple elements by position
  54. Resolve class variables read in a namespace body castwide/solargraph#1466 — Resolve class variables read in a namespace body
  55. Infer precise Hash{K => V} types from hash literals castwide/solargraph#1352 — Infer precise Hash{K => V} types from hash literals
  56. Make strong typecheck report the same problems on macOS and Linux castwide/solargraph#1472 — Make strong typecheck report the same problems on macOS and Linux
  57. Block parameters don't shadow outer parameters of the same name castwide/solargraph#1424 — Block parameters don't shadow outer parameters of the same name
  58. Resolve explicit super inside define_method blocks castwide/solargraph#1423 — Resolve explicit super inside define_method blocks
  59. Infer Integer arithmetic correctly when bigdecimal RBS is loaded castwide/solargraph#1467 — Infer Integer arithmetic correctly when bigdecimal RBS is loaded
  60. Narrow Hash#[] to non-nil after key? and ||= castwide/solargraph#1417 — Narrow Hash#[] to non-nil after key? and ||=
  61. Narrow types inside an until loop body castwide/solargraph#1322 — Narrow types inside an until loop body
  62. Degrade an unparseable Struct attribute tag instead of raising castwide/solargraph#1323 — Degrade an unparseable Struct attribute tag instead of raising
  63. Stop a log message from giving a pin the wrong path castwide/solargraph#1349 — Stop a log message from giving a pin the wrong path
  64. Remove dead TypeMethods#qualify castwide/solargraph#1337 — Remove dead TypeMethods#qualify
  65. Skip the embedded undercover check in Plugin jobs castwide/solargraph#1347 — Skip the embedded undercover check in Plugin jobs
  66. Fix TypeChecker::Rules#level always returning nil castwide/solargraph#1333 — Fix TypeChecker::Rules#level always returning nil
  67. Narrow is_a? checks against a variable holding a class castwide/solargraph#1419 — Narrow is_a? checks against a variable holding a class
  68. Check the types of parsed lockfile, bundle, pin cache and template data castwide/solargraph#1479 — Check the types of parsed lockfile, bundle, pin cache and template data

apiology/solargraph PRs included

  1. Cut CI duration from 20 minutes to 6 #44 — Cut CI duration from 20 minutes to 6
  2. Accept classes for RBS singleton(X) parameters #364 — Accept classes for RBS singleton(X) parameters
  3. Infer factory return types for string arguments #366 — Infer factory return types for string arguments
  4. [regression fix] Add ActiveSupport::Concern class methods for classes defined in gems castwide/solargraph#1476 (was Add concern class methods for classes defined in gems #448) — Add concern class methods for classes defined in gems (brings castwide master 3c8d348: Move Class, Struct, and Data definition processors to NodeProcessors castwide/solargraph#1468, Remove Convention::ActiveSupportConcern castwide/solargraph#1469, Preserve immutable completion item properties during resolve castwide/solargraph#1471)
  5. Infer symbol blocks calling methods with no declared return type #406 — Infer symbol blocks calling methods with no declared return type
  6. Stop rendering a tuple of unknowns as a bare Array #134 — Stop rendering a tuple of unknowns as a bare Array
  7. Infer a forwarded block's return type from @yieldreturn #112 — Infer a forwarded block's return type from @yieldreturn

Notes

#225 and #229 are closed and reopened upstream.
Merging castwide#1451 makes all 26 #225 markers unneeded,
and castwide#1439 all 6 #229 markers, with no new problems,
so they now cite those PRs.

The logging.rb @@logger marker hides "Unresolved call to @@logger":
Chain::ClassVariable looks up context instead of full_context in a
module body. #201 fixes that lookup, so the marker
cites it by mechanism; 201 only conflicts with this branch on the
marker line itself.
A label never cites an apiology PR: a marker whose PR is closed or
apiology-only cites the open castwide PR that fixes the line, else the
typecheck error verbatim. #108, #114 and #201 have
no castwide PR, so these 11 markers now carry the error each hides,
taken from sg-marker-error.sh, and lose their continuation lines.
rules.rb counts the new labels.
The castwide/master merge adds a line to RbsTranslator, putting it at
141 lines against this branch's 140 limit. Master's limit is 195, so
raise ours only to fit.
Cover the block parameters and result of map.with_index, the pair
yielded by each_with_index.map, and a tuple receiver of a
single-generic class, which positional binding must leave as a union.
Carried over from #354, which this PR supersedes.
Inside module Pin, a bare Symbol in a YARD tag resolves to
Pin::Symbol, so the value param's [String, Symbol] made #value infer
Pin::Symbol and needed a marker. Root the Symbol tags in this file;
the marker is no longer needed.
9bc117e labelled castwide#1223's leftovers with each
site's verbatim error. Vince approved three mechanism labels for
them: yielded tuples not destructured into block params (14), literal
tuple index returning every element type plus nil (9), and array
literals inferring bare Array (5). Relabel those 28 markers, drop
their extra error lines, and count the labels in rules.rb.

The two type_checker.rb add_to_param_details markers keep their text:
their first error is Hash#[] nil after ||= (castwide#1417),
not a tuple.
The @sg-ignore URL already names the PR that removes the need for the
marker; the two narrative lines under it in the Gemfile, Gemspec and
Rakefile conventions repeated what that PR says.
Initialize#support_workspace_folders? and #dynamic_registration_for?
carried a placeholder label, and ToMethod.arg_name cited the closed
castwide#1231. No open castwide PR fixes them, so each now
carries its verbatim typecheck error.
apiology and others added 30 commits November 17, 2026 16:33
…ead of raising

Regenerate .rubocop_todo.yml.
Resolve pin/method.rb and chain/call.rb by intent. In library.rb keep
castwide#1475's rescue/ensure in cache_next_gemspec, take
next_map as castwide#1245 has it (early return, mutex
around the map), keep one Array<Source, SourceMap> type tag, and
restore the castwide#1258 sg-ignore on read. Remove the Unneeded sg-ignores.
Keep one copy of the castwide#1465 locked-yardoc context in
spec/library_spec.rb, which reached this branch before castwide/master
at a different spot.

Regenerate .rubocop_todo.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTpguFV8m5C72EvjeEFx96
sg-ignores cite the open castwide PR that fixes their line, else the
verbatim typecheck error, never an apiology PR.

- definition.rb code_location: castwide#1478 rewrites it.
- conversions.rb rebound_alias?: castwide#1491 removes it.
- to_method.rb arg_name a[0] calls: castwide#1474 picks the
  Integer Array#[] overload, which clears all five.
- namespace_node.rb parameters_from_inline_rbs: castwide#1344
  replaces the MatchData code with trailing_rbs_type_args.
- conversions.rb convert_decl_to_pin call: no castwide PR carries
  #427, so it takes the verbatim error.
- rbs_collection.rb best_key: its label did not match its error, and
  castwide#1474 does not clear it, so it takes the verbatim
  error.

Update the label counts in rules.rb.
…ailed check without blocking merge

Regenerate .rubocop_todo.yml.
…path-sourced gems

Regenerate .rubocop_todo.yml.
…module_function methods

Regenerate .rubocop_todo.yml.
#193 will not go upstream, and no open castwide PR
touches these two lines, so each sg-ignore carries its verbatim
typecheck error. Count both labels in rules.rb.
…typechecking in CI

Regenerate .rubocop_todo.yml.
BaseVariable kept a protected intersection_return_type getter and setter
and an initialize keyword beside intersection_return_types. Callers now
pass and read the list directly, so the list is the only way to set or
read the intersection constraints.
Labels cite the open castwide PR that clears the line, else the
verbatim typecheck error. Of the 24 sg-ignores citing apiology PRs:

- store.rb:35 cites castwide#1474; its overload loop
  change clears the error in a local run.
- external.rb x2 cite castwide#1477, which deletes both.
- delegated_method.rb:78 cites castwide#1338, which drops
  the same resolve_method sg-ignore on master.
- active_support.rb classmethod_pins x2 cite
  castwide#1476, which rewrites the method.
- The other 18 take their verbatim errors; no open castwide PR
  changes those lines or carries the apiology change.

The keyword.rb and symbol.rb continuation lines pointed at an
apiology branch and go with the old label. Update rules.rb counts.
Each label now cites the open castwide PR that clears its line, else
its verbatim typecheck error. Sites where the checker is right and the
code needs a fix cite castwide#1494, which takes such fixes:
rbs_map/conversions.rb, host/dispatch.rb, comment_ripper.rb,
node_chainer.rb, pin/method.rb, pin/namespace.rb,
chain/parameter.rb and type_checker/problem.rb.

pin/parameter.rb cites castwide#1258, whose head clears it.
Prose labels and PR citations whose PR does not clear the line take
the verbatim error.

Update the label counts in rules.rb.
17b8ed7 pointed sg-ignores at PRs by mechanism without checking that
the PR clears the line. Re-checked each surviving label: the PR must
change the line, or clear the error when its change is applied.

- LSP best_location sites: castwide#1478 rewrites them;
  castwide#1399 does not touch these files.
- NodeProcessor::Base closure lookups: castwide#1399 changes
  them to location!.
- Pin::Block receiver_pin: castwide#1393 passes closure!.
- castwide#1394 sites in location.rb, class_methods.rb,
  source.rb and change.rb: with its from_node! change applied, the
  errors remain, so they take the verbatim error.
  castwide#1452 guards range in inner_folding_ranges, but
  result.last.start still fails.
- Remaining castwide#1392, castwide#1393 and castwide#1395 sites: no open PR
  changes the line, and castwide#1395 covers only zero-start slices.

Count the new labels in rules.rb.
A rescued exception is typed <class> & _Raised once intersection types
land, which makes its backtrace non-nil, so the six e.backtrace.join
sg-ignores take the intersection label instead of the verbatim error.
Move their count in rules.rb.
Regenerate .rubocop_todo.yml.

Remove the sg-ignores citing castwide#1399:
  lib/solargraph/pin/base_variable.rb:372 # @sg-ignore castwide#1399
…cache and template data

Regenerate .rubocop_todo.yml.
…a location

Regenerate .rubocop_todo.yml.

Remove the sg-ignores citing castwide#1394:
  lib/solargraph/location.rb:69 # @sg-ignore castwide#1394
  lib/solargraph/source.rb:155 # @sg-ignore castwide#1394
  lib/solargraph/source.rb:157 # @sg-ignore castwide#1394
  lib/solargraph/source.rb:307 # @sg-ignore castwide#1394
  lib/solargraph/source.rb:407 # @sg-ignore castwide#1394
…typechecking in CI

Regenerate .rubocop_todo.yml.
Port the tip's pattern-match narrowing (capture intersections kept by
BaseVariable#downcast, intersect-then-exclude in adjust_type, value
constant patterns) onto 445's intersection_return_types list; no
singular intersection_return_type keyword remains, including in
CaseMatchNode#add_capture.

Remove four sg-ignores in yard_map/mapper.rb that nested is_a?
narrowing makes unneeded.
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