You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Thanks for contributing to the Docker-Selenium project! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
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)
Why: This suggestion addresses a critical security concern by preventing command injection vulnerabilities, which is essential for maintaining the security and integrity of the system.
10
Best practice
✅ Ensure consistency in data types for configuration valuesSuggestion Impact:The commit changed the default value for SE_STRUCTURED_LOGS from a quoted string "false" to an unquoted boolean false, as suggested.
Ensure that the default value for SE_STRUCTURED_LOGS is consistent with the expected data type in the scripts. If the scripts expect a boolean, the default should be a boolean (true or false) without quotes.
Why: Ensuring consistency in data types between configuration files and scripts is crucial for preventing runtime errors and misconfigurations. This suggestion addresses a potential issue with data type mismatch.
9
Possible issue
Validate the value of SE_STRUCTURED_LOGS before use
Add a check to ensure that the value of SE_STRUCTURED_LOGS is either 'true' or 'false' before appending it to SE_OPTS, to prevent potential misconfigurations.
Why: Validating the value of SE_STRUCTURED_LOGS before use can prevent misconfigurations and potential errors, making the script more robust and reliable.
8
Maintainability
Clarify the expected data type in configuration comments
Add a comment to clarify the expected data type for structuredLogs to ensure it aligns with usage in shell scripts and other configurations.
-# Whether to enable structured logging+# Whether to enable structured logging (boolean)
structuredLogs: false
Apply this suggestion
Suggestion importance[1-10]: 7
Why: Adding comments to clarify expected data types improves code maintainability and helps future developers understand the configuration requirements, although it is a minor improvement.
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.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Configuration changes
Description
--structured-logs
option across multiple Selenium Grid components.SE_STRUCTURED_LOGS
to enable structured logging.structuredLogs
configuration.Changes walkthrough 📝
10 files
start-selenium-grid-distributor.sh
Add support for structured logs in Distributor script
Distributor/start-selenium-grid-distributor.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-eventbus.sh
Add support for structured logs in EventBus script
EventBus/start-selenium-grid-eventbus.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-hub.sh
Add support for structured logs in Hub script
Hub/start-selenium-grid-hub.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-node.sh
Add support for structured logs in NodeBase script
NodeBase/start-selenium-node.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-docker.sh
Add support for structured logs in NodeDocker script
NodeDocker/start-selenium-grid-docker.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-router.sh
Add support for structured logs in Router script
Router/start-selenium-grid-router.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-session-queue.sh
Add support for structured logs in SessionQueue script
SessionQueue/start-selenium-grid-session-queue.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-sessions.sh
Add support for structured logs in Sessions script
Sessions/start-selenium-grid-sessions.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-standalone.sh
Add support for structured logs in Standalone script
Standalone/start-selenium-standalone.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.start-selenium-grid-docker.sh
Add support for structured logs in StandaloneDocker script
StandaloneDocker/start-selenium-grid-docker.sh
--structured-logs
option.SE_STRUCTURED_LOGS
.2 files
logging-configmap.yaml
Add structured logs configuration to ConfigMap
charts/selenium-grid/templates/logging-configmap.yaml
SE_STRUCTURED_LOGS
configuration to ConfigMap.values.yaml
Add structured logs field to global values
charts/selenium-grid/values.yaml
structuredLogs
field to global values.