Skip to content

Skip the js-client assertion in AdminConsoleUrlsTest when -PdisableJsClient=true - #5400

Open
dsmiley wants to merge 3 commits into
apache:mainfrom
dsmiley:catsAdminConsoleSkipNoJsClient
Open

dsmiley wants to merge 3 commits into
apache:mainfrom
dsmiley:catsAdminConsoleSkipNoJsClient

Conversation

@dsmiley

@dsmiley dsmiley commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

🤖 AdminConsoleUrlsTest.assertAdminConsoleStaticAssetsAreRevalidatedAndVersioned requests /solr/libs/solr/index.js, which is built by the js-client. With -PdisableJsClient=true it is absent and the test fails with a 404.

The CATS task now passes tests.jsclient.disabled, and the test omits only that assertion in that case. The rest of the test still runs.

Verified with -PdisableJsClient=true :solr:packaging:catsTests --tests "*AdminConsoleUrlsTest". Not a user-facing change, so no JIRA or changelog entry.

🤖 Generated with Claude Code

…Client=true

The bundle served at /solr/libs/solr/index.js is not built when the js-client is disabled, so the Cache-Control check failed with a 404. The CATS task now passes tests.jsclient.disabled and the test omits that one assertion.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Automated PR readiness judgements (LLM-generated; may be wrong; not updated on later pushes).

dsmiley and others added 2 commits November 27, 2026 14:18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
public void assertAdminConsoleStaticAssetsAreRevalidatedAndVersioned() {
assumeFalse(
"js-client bundle is absent with -PdisableJsClient=true",
Boolean.getBoolean("tests.jsclient.disabled"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort of funny the param is disableJsClient but the value looked up is tests.jsclient.disabled....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe out of scope or too intrusive for the value to rename disableJsClient?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants