Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: https://issues.apache.org/jira/browse/HBASE-29355.
What changes were proposed in this pull request?
hbase-serverartifact with thestatic-resourcesclassifier duringprocess-resources.generate-resources.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