Skip to content

HBASE-29355 Make REST and Thrift static resource dependencies explicit - #8891

Open
Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-29355-explicit-static-resource-dependencies
Open

Sigma-Ma wants to merge 1 commit into
apache:masterfrom
Sigma-Ma:HBASE-29355-explicit-static-resource-dependencies

Conversation

@Sigma-Ma

Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/HBASE-29355.

What changes were proposed in this pull request?

  • Attach the shared static UI resources and LICENSE/NOTICE files as an hbase-server artifact with the static-resources classifier during process-resources.
  • Declare provided dependencies in REST and Thrift and unpack the classified artifact during generate-resources.
  • Preserve the external webapps layout and the existing main-JAR exclusions.
  • Correct bundled library versions and copyright declarations, add the Tablesorter attribution, and include Vega-family licenses in the binary distribution.
  • Add classifier and InfoServer regression tests, plus a standard-library-only Python checker for the final artifacts.

Why are the changes needed?

REST and Thrift currently copy shared resources from the build directory of hbase-server. Installing the server artifact does not recreate that directory, so a clean module-only build can succeed without the required UI resources.

It can also consume stale files from a neighboring build. Missing resources can prevent InfoServer from starting.

The classified artifact makes the resource input available through Maven and removes the dependency on the neighboring build directory.

How was this patch tested?

mvn -B -ntp -o -T2 -pl hbase-rest,hbase-thrift -am -DskipTests clean compile

mvn -B -ntp -o -pl hbase-server,hbase-rest,hbase-thrift -Dtest=TestStaticResources,TestRESTStaticResources,TestThriftStaticResources -Dsurefire.failIfNoSpecifiedTests=true -Dsurefire.rerunFailingTestsCount=0 test

mvn -B -ntp -o -pl hbase-assembly -am -DskipTests package assembly:single

python3 dev-support/check-static-resources.py

mvn -B -ntp -o -pl .,hbase-resource-bundle,hbase-server,hbase-rest,hbase-thrift,hbase-assembly spotless:check

Attach shared UI resources as an hbase-server static-resources classifier
during process-resources. Have REST and Thrift resolve and unpack it through
provided dependencies instead of copying a neighboring target directory.

Preserve the external webapps layout and correct bundled-resource
LICENSE/NOTICE generation, including Tablesorter and Vega-family declarations.

Add classifier and InfoServer regression tests and a final-artifact checker.
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.

1 participant