-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation to include/exlude jobs regular expressions #450
Draft
nikita-tkachenko-datadog
wants to merge
2
commits into
master
Choose a base branch
from
nikita-tkachenko/validate-include-exlude-regex
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add validation to include/exlude jobs regular expressions #450
nikita-tkachenko-datadog
wants to merge
2
commits into
master
from
nikita-tkachenko/validate-include-exlude-regex
Conversation
This file contains 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
nikita-tkachenko-datadog
added
the
changelog/Fixed
Fixed features results into a bug fix version bump
label
Sep 17, 2024
@@ -323,6 +333,28 @@ | |||
return FormValidation.ok(); | |||
} | |||
|
|||
@RequirePOST | |||
public FormValidation doCheckIncluded(@QueryParameter("included") final String included) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
Potential missing permission check in DatadogGlobalConfiguration#doCheckIncluded
} | ||
|
||
@RequirePOST | ||
public FormValidation doCheckExcluded(@QueryParameter("excluded") final String excluded) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
Potential missing permission check in DatadogGlobalConfiguration#doCheckExcluded
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/configuration-refactoring-updated
branch
from
September 18, 2024 15:20
9efa308
to
94211bd
Compare
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/validate-include-exlude-regex
branch
4 times, most recently
from
September 19, 2024 15:23
3db94aa
to
98e20c1
Compare
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/configuration-refactoring-updated
branch
from
October 11, 2024 11:01
5f3a210
to
d20b98e
Compare
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/configuration-refactoring-updated
branch
from
November 20, 2024 10:03
d20b98e
to
b8e26e6
Compare
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/configuration-refactoring-updated
branch
2 times, most recently
from
December 5, 2024 15:55
0404aa5
to
0260867
Compare
Base automatically changed from
nikita-tkachenko/configuration-refactoring-updated
to
master
December 11, 2024 09:53
nikita-tkachenko-datadog
force-pushed
the
nikita-tkachenko/validate-include-exlude-regex
branch
from
December 18, 2024 16:24
f362037
to
f5fcdc1
Compare
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.
Requirements for Contributing to this repository
What does this PR do?
Adds validation to regular expressions for including/excluding jobs from tracing: regexes that cannot be compiled will not be saved.
Also updates the configuration to store compiled regexes, rather than strings (otherwise splitting the string and compiling the expressions is done on every job listener invocation, which is computationally expensive).
Description of the Change
Alternate Designs
Possible Drawbacks
Verification Process
Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.