Commit 125646e4

125646e40527Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 10 files · ~3 modified · -7 deleted

Description

Revert PR #747 (Spinelfile / spinel-gem POC)

This reverts merge commit dc55928 (the neidiom/master branch). Reverting the entire PR including:

  • Spinelfile DSL (spinel_gem.rb) and spinel-gem CLI wrapper
  • Spinelfile.loadpaths sidecar mechanism
  • spinel_parse.c --loadpaths argument plumbing
  • test_gem/ unit + E2E tests
  • Makefile test-gems target

Rationale: gem-discovery / loadpath strategy is still under discussion in #925. Phase 0 POC was merged prematurely, exposing a new file format (Spinelfile, Spinelfile.loadpaths) and new CLI (spinel-gem) before the design conversation concluded. Stdlib shadowing precedence and the lockfile-vs-generator question for Spinelfile.loadpaths also need to be settled first.

The bundled require-bug fix and test/require_top_of_file.rb regression test are also reverted; if still needed they can be re-landed as a standalone patch independent of the gem machinery.

Co-Authored-By: Claude Opus 4.7 [email protected]

Details

Commit
125646e40527
Parent
e4d2ffaa5870

MakefilemodifiedView file

@@ -136,7 +136,7 @@
136136 COMPILER_HELPERS_STAMP := build/stamps/compiler_helpers.rb.stamp
137137 PARSE_STAMP := build/stamps/spinel_parse.c.stamp
138138
139-.PHONY: all parse bootstrap codegen rbs_extract test retest test-gems clean-test-results regen-expected bench optcarrot clean install uninstall deps
139+.PHONY: all parse bootstrap codegen rbs_extract test retest clean-test-results regen-expected bench optcarrot clean install uninstall deps
140140
141141 # `make all` includes spinel_rbs_extract when vendor/rbs has been
142142 # fetched (via `make deps`). Without vendor/rbs the extractor is
@@ -414,13 +414,6 @@
414414
415415 retest: clean-test-results
416416 @$(MAKE) --no-print-directory test
417-
418-# spinel-gem POC tests: unit tests for the Spinelfile DSL + shell-driven
419-# end-to-end scenarios (basic resolution, walk-up discovery, negative,
420-# dedup, invalid config). Depends on the parser binary being current so
421-# the E2E flow exercises the loadpath sidecar plumbing for real.
422-test-gems: spinel_parse$(EXE)
423- @sh test_gem/run_all.sh
424417
425418 # The .ok target is the test's stamp; mtime tracking gives per-test
426419 # caching for free. Order-only spinel_parse$(EXE) / spinel_analyze$(EXE)