Skip to content

HBASE-28832 Fixed TestInfoServersACL test - #6571

Merged
NihalJain merged 1 commit into
apache:masterfrom
PDavid:HBASE-28832-bootstrap-upgrade-5-addendum
Jan 6, 2025
Merged

HBASE-28832 Fixed TestInfoServersACL test#6571
NihalJain merged 1 commit into
apache:masterfrom
PDavid:HBASE-28832-bootstrap-upgrade-5-addendum

Conversation

@PDavid

Copy link
Copy Markdown
Contributor

There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.

There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
@PDavid

Copy link
Copy Markdown
ContributorAuthor

This is an addendum for #6490.


@Test
public void testTableActionsAvailableForAdmins() throws Exception {
final String expectedAuthorizedContent = "Actions:";

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

The UI page does not have the colon anymore because I converted it to a HTML heading (<h2>Actions<h2>).
Alternatively we could expect here the HTML tags as well (<h2>Actions<h2>) but this way we are not depending on the actual HTML tag - if they change in the future the test will still be green.

What do you think?

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.

Sounds good!

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+0 🆗codespell0m 0scodespell was not available.
+0 🆗detsecrets0m 0sdetect-secrets was not available.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
_ master Compile Tests _
+1 💚mvninstall3m 26smaster passed
+1 💚compile3m 19smaster passed
+1 💚checkstyle0m 39smaster passed
+1 💚spotbugs1m 41smaster passed
+1 💚spotless0m 47sbranch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚mvninstall3m 22sthe patch passed
+1 💚compile3m 13sthe patch passed
+1 💚javac3m 13sthe patch passed
+1 💚blanks0m 0sThe patch has no blanks issues.
+1 💚checkstyle0m 37sthe patch passed
+1 💚spotbugs1m 42sthe patch passed
+1 💚hadoopcheck11m 59sPatch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚spotless0m 53spatch has no errors when running spotless:check.
_ Other Tests _
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
39m 46s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6571/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#6571
Optional Testsdupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
unameLinux 5e6dcd475816 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / eba6a85
Default JavaEclipse Adoptium-17.0.11+9
Max. process+thread count84 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6571/1/console
versionsgit=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@NihalJain

Copy link
Copy Markdown
Contributor

Will wait for test results before merging.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeLogfileComment
+0 🆗reexec0m 26sDocker mode activated.
-0 ⚠️yetus0m 3sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
+1 💚mvninstall3m 13smaster passed
+1 💚compile0m 55smaster passed
+1 💚javadoc0m 27smaster passed
+1 💚shadedjars5m 53sbranch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚mvninstall3m 3sthe patch passed
+1 💚compile0m 56sthe patch passed
+1 💚javac0m 56sthe patch passed
+1 💚javadoc0m 26sthe patch passed
+1 💚shadedjars5m 50spatch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚unit180m 5shbase-server in the patch passed.
205m 46s
SubsystemReport/Notes
DockerClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6571/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR#6571
Optional Testsjavac javadoc unit compile shadedjars
unameLinux 46b27f506bff 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionmaster / eba6a85
Default JavaEclipse Adoptium-17.0.11+9
Test Resultshttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6571/1/testReport/
Max. process+thread count5227 (vs. ulimit of 30000)
modulesC: hbase-server U: hbase-server
Console outputhttps://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6571/1/console
versionsgit=2.34.1 maven=3.9.8
Powered byApache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@PDavid
PDavid marked this pull request as ready for review January 6, 2025 11:03
@NihalJain
NihalJain merged commit 43f728c into apache:masterJan 6, 2025
@PDavid
PDavid deleted the HBASE-28832-bootstrap-upgrade-5-addendum branch January 8, 2025 13:55
PDavid added a commit to PDavid/hbase that referenced this pull request Jan 8, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
PDavid added a commit to PDavid/hbase that referenced this pull request Jan 9, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
PDavid added a commit to PDavid/hbase that referenced this pull request Jan 10, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
ragarkar pushed a commit to ragarkar/hbase that referenced this pull request Jan 13, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
PDavid added a commit to PDavid/hbase that referenced this pull request Feb 28, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
PDavid added a commit to PDavid/hbase that referenced this pull request Mar 1, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
PDavid added a commit to PDavid/hbase that referenced this pull request Mar 18, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
PDavid added a commit to PDavid/hbase that referenced this pull request Mar 19, 2025
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
petersomogyi pushed a commit that referenced this pull request Mar 24, 2025
…3.3 (#6526)
* HBASE-28832 Upgrade from bootstrap 3.4.1 to non vulnerable version 5.3.3 (#6490)
First we upgraded to Bootstrap v4 - this was the majority of the changes - and then I upgraded to Bootstrap 5.3.3 - which is the latest non-vulnerable version according to https://security.snyk.io/package/npm/bootstrap/3.4.1
Changes were based on the migration documentation:
- https://getbootstrap.com/docs/4.6/migration/
- https://getbootstrap.com/docs/5.3/migration/
Most of the changes are related to navbar-s, tabs and forms.
The new Bootstrap look has a bit bigger font sizes but it is still OK in my opinion.
Bootstrap v5 is not requiring JQuery anymore but we have some JQuery plugins (jquery.tablesorter.min.js, tab.js) which still need it so I left JQuery in.
- Removed bootstrap-theme.min.css and Glyphicons icon font because these are not present anymore in newer Bootstrap versions.
- Upgraded checked in Bootstrap CSS and JS files to v4.
- Moved some inline CSS styles to hbase.css file (DRY).
- The page-header class was dropped in Bootstrap v4 so added page-header small grey color to hbase.css.
- Removed some unused imports in JSP files.
- Improved the styling of the Log Level form
- Replaced hbase_logo_small.png under thrift module with the hbase-server one. Reason: to make sure that they are the same size (this under thrift was smaller).
- Upgraded checked in Bootstrap CSS and JS files to v5.
- Migrated navbars for v5:
- Navbars now require a container within (to drastically simplify spacing requirements and CSS required).
- The .active class can no longer be applied to .nav-items, it must be applied directly on .nav-links.
- Migrated data attributes. Data attributes for all Bootstrap JavaScript plugins are now namespaced to help distinguish Bootstrap functionality from third parties and your own code. For example, we use data-bs-toggle instead of data-toggle.
- form-inline was dropped in v5, so inline forms had to be styled with grid and utilities instead.
- Added the favicon of the HBase website to the web UI pages.
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain.cs@gmail.com>
(cherry picked from commit 744ce13)
* [ADDENDUM] HBASE-28832 Fixed TestInfoServersACL test (#6571)
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
petersomogyi pushed a commit that referenced this pull request Mar 24, 2025
…3.3 (#6525)
* HBASE-28832 Upgrade from bootstrap 3.4.1 to non vulnerable version 5.3.3 (#6490)
First we upgraded to Bootstrap v4 - this was the majority of the changes - and then I upgraded to Bootstrap 5.3.3 - which is the latest non-vulnerable version according to https://security.snyk.io/package/npm/bootstrap/3.4.1
Changes were based on the migration documentation:
- https://getbootstrap.com/docs/4.6/migration/
- https://getbootstrap.com/docs/5.3/migration/
Most of the changes are related to navbar-s, tabs and forms.
The new Bootstrap look has a bit bigger font sizes but it is still OK in my opinion.
Bootstrap v5 is not requiring JQuery anymore but we have some JQuery plugins (jquery.tablesorter.min.js, tab.js) which still need it so I left JQuery in.
- Removed bootstrap-theme.min.css and Glyphicons icon font because these are not present anymore in newer Bootstrap versions.
- Upgraded checked in Bootstrap CSS and JS files to v4.
- Moved some inline CSS styles to hbase.css file (DRY).
- The page-header class was dropped in Bootstrap v4 so added page-header small grey color to hbase.css.
- Removed some unused imports in JSP files.
- Improved the styling of the Log Level form
- Replaced hbase_logo_small.png under thrift module with the hbase-server one. Reason: to make sure that they are the same size (this under thrift was smaller).
- Upgraded checked in Bootstrap CSS and JS files to v5.
- Migrated navbars for v5:
- Navbars now require a container within (to drastically simplify spacing requirements and CSS required).
- The .active class can no longer be applied to .nav-items, it must be applied directly on .nav-links.
- Migrated data attributes. Data attributes for all Bootstrap JavaScript plugins are now namespaced to help distinguish Bootstrap functionality from third parties and your own code. For example, we use data-bs-toggle instead of data-toggle.
- form-inline was dropped in v5, so inline forms had to be styled with grid and utilities instead.
- Added the favicon of the HBase website to the web UI pages.
Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain.cs@gmail.com>
(cherry picked from commit 744ce13)
* [ADDENDUM] HBASE-28832 Fixed TestInfoServersACL test (#6571)
* There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.
(cherry picked from commit 43f728c)
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Sign up for freeto 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.

3 participants

@PDavid@Apache-HBase@NihalJain