Skip to content

[grid] Accommodate ability to specify sub-paths#11271

Merged
diemol merged 5 commits intoSeleniumHQ:trunkfrom
krmahadevan:add_support_sub_path
Dec 15, 2022
Merged

[grid] Accommodate ability to specify sub-paths#11271
diemol merged 5 commits intoSeleniumHQ:trunkfrom
krmahadevan:add_support_sub_path

Conversation

@krmahadevan
Copy link
Copy Markdown
Contributor

@krmahadevan krmahadevan commented Nov 16, 2022

Fixes: #10847

Sub-paths can now be specified for the below
Components:

  1. Hub
  2. Standalone
  3. Router

It can be specified via --sub-path <actualPathGoesHere>

Or via the Toml configuration file by specifying

[reverse_proxy]
sub-path = “<actualPathGoesHere>”

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Sub-paths can now be specified for the below
Components:

  1. Hub
  2. Standalone
  3. Router

It can be specified via “--sub-path ”

Or via the Toml configuration file by specifying

[reverse_proxy]
sub-path = “”

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@krmahadevan
Copy link
Copy Markdown
Contributor Author

@diemol - I have only run bazel test --cache_test_results=no java/test/org/openqa/selenium/grid/router:medium-tests

@krmahadevan krmahadevan force-pushed the add_support_sub_path branch 2 times, most recently from 64ce334 to 6d385d4 Compare November 17, 2022 10:30
@krmahadevan krmahadevan changed the title Accommodate ability to specify sub-paths [grid] Accommodate ability to specify sub-paths Nov 17, 2022
Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @krmahadevan!

Left some comments so we can iterate.

Comment thread java/src/org/openqa/selenium/grid/server/ReverseProxyFlags.java Outdated
Comment thread java/src/org/openqa/selenium/grid/server/ReverseProxyOptions.java Outdated
Comment thread java/src/org/openqa/selenium/grid/web/GridUiRoute.java Outdated
@krmahadevan krmahadevan force-pushed the add_support_sub_path branch 2 times, most recently from 510b5c2 to 42e709e Compare November 17, 2022 17:32
@krmahadevan krmahadevan requested a review from diemol November 17, 2022 17:39
@yashcho
Copy link
Copy Markdown

yashcho commented Nov 24, 2022

Any update @diemol ?

@titusfortner titusfortner added the B-grid Everything grid and server related label Nov 28, 2022
@krmahadevan krmahadevan force-pushed the add_support_sub_path branch 2 times, most recently from 137b684 to 3be9e09 Compare December 8, 2022 03:13
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 8, 2022

Codecov Report

Base: 54.54% // Head: 54.54% // No change to project coverage 👍

Coverage data is based on head (e2ed7a3) compared to base (4f218e0).
Patch has no changes to coverable lines.

❗ Current head e2ed7a3 differs from pull request most recent head e6063eb. Consider uploading reports for the commit e6063eb to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #11271   +/-   ##
=======================================
  Coverage   54.54%   54.54%           
=======================================
  Files          85       85           
  Lines        5627     5627           
  Branches      243      243           
=======================================
  Hits         3069     3069           
  Misses       2315     2315           
  Partials      243      243           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@diemol diemol force-pushed the add_support_sub_path branch from 3be9e09 to 78ff30a Compare December 12, 2022 13:10
Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @krmahadevan! Just a minor change requested from my side.

Comment thread java/src/org/openqa/selenium/grid/router/httpd/RouterOptions.java Outdated
@krmahadevan
Copy link
Copy Markdown
Contributor Author

@diemol - I have addressed the last review comment, rebased off of trunk and force pushed this branch. Please take a look. I will send a separate PR for this for addressing the documentation needs.

Copy link
Copy Markdown
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you, @krmahadevan!

@diemol diemol force-pushed the add_support_sub_path branch from e6063eb to 04192a4 Compare December 14, 2022 22:47
Fixes: SeleniumHQ#10847

Sub-paths can now be specified for the below 
Components:
1. Hub
2. Standalone
3. Router

It can be specified via “--sub-path <actualPathGoesHere>”

Or via the Toml configuration file by specifying

[reverse_proxy]
sub-path = “<actualPathGoesHere>”
@diemol diemol force-pushed the add_support_sub_path branch from 04192a4 to e4af3c7 Compare December 15, 2022 06:38
@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@diemol diemol merged commit 2917a66 into SeleniumHQ:trunk Dec 15, 2022
@krmahadevan krmahadevan deleted the add_support_sub_path branch December 15, 2022 10:20
@yashcho
Copy link
Copy Markdown

yashcho commented Jan 27, 2023

@diemol / @krmahadevan any idea in which release is it planned to rollout?

@titusfortner
Copy link
Copy Markdown
Member

Should be available in 4.8 (the latest release)

@yashcho
Copy link
Copy Markdown

yashcho commented Jan 30, 2023

Thank you @titusfortner for information but I don't see it in release notes, even any idea on how it will work for docker-selenium?

@diemol
Copy link
Copy Markdown
Member

diemol commented Jan 30, 2023

I will publish the release blog post today. What is missing is the documentation for this feature in the docs.

@yashcho
Copy link
Copy Markdown

yashcho commented Jan 30, 2023

Thank you @diemol as I didn't work completely on creating this feature it would be difficult for me to write docs.

@diemol
Copy link
Copy Markdown
Member

diemol commented Jan 30, 2023

Apologies if my comment was ambiguous, @yashcho. I meant, we at Selenium need to document the feature.

@yashcho
Copy link
Copy Markdown

yashcho commented Jan 30, 2023

Understood, I would wait for the release note and feature doc.. :-)

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

Labels

B-grid Everything grid and server related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🚀 Feature]: Subpath parameter for subpath ingress configurations

5 participants