Skip to content

Crystal: enroll in named class extraction (Part of #9200) - #9323

Closed
squid-protocol wants to merge 2 commits into
mainfrom
churn/9200-20261125T2024Z
Closed

squid-protocol wants to merge 2 commits into
mainfrom
churn/9200-20261125T2024Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #9200 (item 4, slice 1: Crystal).

What

Enrolls crystal in _CLASS_START_NAMED_EXTRACTION_LANGS (#1264). Crystal used the generic fallback regex, so class HTTP::Client was named HTTP and module / enum were missed. Its own class_start already captures the full namespaced path.
Tree-sitter audit (crystal): found_classes 23 -> 54 of 54, extra_classes 10 -> 3. Baseline regenerated.

Why the goldens moved

Only crystal class rows and the digests that roll them up (verified: drift lists crystal files plus network/digest sections). Blessed via golden-lock.sh on both legs.

Tests

test_named_classes_keep_the_namespaced_path_and_every_declaration_kind_9200 (namespaced, generic, abstract, private enum, module, comment/string decoys).

Facts checked

Items 1-3 of #9200 are already on main (#9212, #9243, #9254, #9284, #9289); only item 4 remained.

Remaining slices

Class enrollment for erlang, nim, julia, r, fsharp (each needs its own class_start hardening + audit node map).

Sibling gaps

Same mechanism in erlang/nim/julia/r/fsharp; no burned-estate program needs them.

Lessons for agents

None new.

🤖 Generated with Claude Code

…s path (Part of #9200)

Crystal fell back to the generic class regex: `class HTTP::Client` was read as `HTTP`
and `module` / `enum` declarations were missed (found 23 of 54 classes vs tree-sitter).
Its own class_start captures the whole namespaced name; enrolling it in the #1264
allowlist gives 54 of 54 found, extra_classes 10 -> 3.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 25, 2026 20:32
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9323 @ 9fce96d: 1 failed check(s)

== shard 4 (1674245 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45695951264/job/139493394365
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doo-cr]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doo-cr] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
file src/doo-cr/v_main.cr: classes 0 -> 1
file src/doo-cr/w_main.cr: classes 0 -> 1
file src/doo-cr/wi_main.cr: classes 0 -> 1
file src/doo-cr/z_main.cr: classes 0 -> 1
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not 'doo-cr: 39 difference(s) from the golden\n summary.classes: 149 -> 190\n file src/adlmidi.cr: classes 0 -> 1\n fil...r/w_main.cr: classes 0 -> 1\n file src/doo-cr/wi_main.cr: classes 0 -> 1\n file src/doo-cr/z_main.cr: clas
1 failed, 11 passed, 28 deselected in 156.81s (0:02:36)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 4 (1674245 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: crispy-doom,doo-cr,doom-fx,doom-wasm,doomf77,fps-cob,helion,inter-doom,managed-doom,sqldoom,srb2,woof
T0: 1795638791
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/93055335-419f-4231-9fd0-f622a34e6e9d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 25, 2026
…n (Crystal module/class names) (Part of #9200)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (d80ea3c) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 25, 2026 21:00
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 25, 2026
squid-shepherd Bot pushed a commit that referenced this pull request Nov 25, 2026
…ersedes #9313 #9318 #9323) (#9325)

* fold #9313, #9318, #9323: hand-written changes (Go, TypeScript, Crystal); goldens follow in the bless commit

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* rebless: one bless for the folded Go, TypeScript and Crystal changes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Closing as superseded: its change is already on main. Commit b66d14f ("Rebless once for 3 stacked engine fixes: Go, TypeScript, Crystal (supersedes #9313 #9318 #9323)", #9325) folded it in, and _CLASS_START_NAMED_EXTRACTION_LANGS on main already names Crystal. After merging main into this branch the tree is identical to main (empty diff), so there is nothing left to land.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant