Skip to content

Keep the UI5 cache test green beside a samples-controls checkout - #56

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303
Oct 11, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

One test from #55 is not hermetic. the UI5 route answers a second call from the cache resolves the corpus from the environment, and the route handler serves the corpus' local @openui5 packages before it consults the cache. With a samples-controls checkout (with npm ci done) beside mcp-server, which is the setup the README documents, sap-ui-core.js comes from disk. No upstream fetch is counted, and npm test fails locally with 0 !== 1 at test/runtime.test.mjs:704. CI has no sibling checkout, so CI stays green.

For the length of the test, SAMPLES_CONTROLS_HOME now points at a fixture corpus with no npm install, and the variable is restored afterwards. The libRoots test next to it already works this way. Only the test changes. Nothing ships differently, so there is no changelog line and Unreleased stays empty for the 1.0.0 tag.

Release readiness for 1.0.0, checked locally on main (edc42df):

This PR does not block the tag. It can be merged before or after it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt


Generated by Claude Code

The route handler serves the corpus' local @openui5 packages before the
cache, and the test resolved the corpus from the environment: with a
samples-controls checkout (npm ci done) beside mcp-server - the setup
the README documents - sap-ui-core.js came from disk, no upstream fetch
was counted and `npm test` failed on a developer machine while CI, which
has no sibling, stayed green. The test now points SAMPLES_CONTROLS_HOME
at a fixture corpus without an npm install and restores it afterwards,
as the libRoots test beside it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt
@oblomov-dev
oblomov-dev merged commit 8b82733 into main Oct 11, 2026
3 checks passed
@oblomov-dev
oblomov-dev deleted the claude/beautiful-turing-wxr303 branch October 11, 2026 16:38
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.

2 participants