You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check in the analyze_sp fixtures so the suite is self-contained
analyzespTest read its four stored procedures from the parser library's SQL
corpus over a relative path, which only resolved when gsp_java happened to be
checked out beside this repository. 3384202 corrected that path, which fixed
it locally and left the tests skipping on CI, since the corpus lives under a
directory named private and is not published.
The four scripts are now in src/test/resources/sqlscripts/analyze_sp/, copied
byte for byte (cmp-verified against the corpus). That removes the sibling
requirement rather than working around it: a fresh clone with no neighbour now
runs 144 tests, 0 failures, 0 skipped. Verified by copying the tracked tree
somewhere with no gsp_java sibling and running the full suite there.
The test resolves them off the classpath rather than by relative path, so it
no longer depends on the working directory either, and fails loudly with a
named message if the resource is ever missing from the build.
src/test/resources/sqlscripts/analyze_sp/readme.md records where they came
from, what each one exercises, and that renaming anything inside them changes
the relation strings the test compares against. sample7.sql producing no
output is the assertion, not an oversight.
check-test-results.sh keeps reporting skips and still fails when everything
skipped, but nothing skips today; that guard is now for whatever gets added
next. build.yml's comment no longer describes a skip that cannot happen.
gspCommon keeps the corrected BASE_SQL_DIR for the commonTest/sqlenvTest
classes that name it. None of those run: they are lowercase testXxx.java,
which Surefire's default includes never match. Its javadoc now says to prefer
a checked-in fixture, since a checked-in fixture cannot silently resolve to
nothing, which is the failure this whole thread started from.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qPRpoD8exYRrUmbfXXWXj
0 commit comments