-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[JENKINS-60410] Add stack trace suppression into core as a standard behavior. #4389
Merged
Merged
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
5f8f935
Add stack trace suppression into core as a standard.
jeffret-b ab78008
Clean up suppression filter.
jeffret-b cece2b4
Minor review comments.
jeffret-b b720e27
Handle two review comments.
jeffret-b 64dc4de
Better handle AccessDeniedException.
jeffret-b 4a01311
First pass at adding tests.
jeffret-b cf29446
Convert to not show the trace to admins.
jeffret-b 0e3be66
Remove some unrelated tests.
jeffret-b 4a7684e
Add test for basic exception.
jeffret-b 8f3e14a
Shift to using HttpResponse.SHOW_STACK_TRACE.
jeffret-b fa27840
Adjust comment.
jeffret-b cfe722b
Rename class for better clarity.
jeffret-b 2b6aed9
Need a new Stapler release or incremental for these tests.
jeffret-b 8efba8a
Finish cleanup of Stapler separation.
jeffret-b 70503e2
Add a couple more tests and some comments about the error source.
jeffret-b a441cbb
Add logging ID to uncaught exception handler.
jeffret-b e9d80f0
Revert inadvertent changes to SimpleJobTest.
jeffret-b e00d41c
Stop adding filter for now.
jeffret-b 3e9444a
Small adjustments to oops.jelly.
jeffret-b 4f22304
Fix tests.
jeffret-b 6a14185
Catch embedded security exceptions.
jeffret-b 86bad5a
Remove messages that aren't used after all.
jeffret-b 20e3c78
Remove the unused messages.
jeffret-b 232edf5
Use the stapler incremental now that's republished.
jeffret-b 354ee66
Don't use public static boolean property.
jeffret-b e0c528c
Adjust tests.
jeffret-b 3301898
Don't handle embedded security exceptions.
jeffret-b eef3a30
Remove now unused method.
jeffret-b c8f8b11
Adopt Daniel's suggestion for tying Stapler change to Jenkins.
jeffret-b 92c24c6
Adjust naming.
jeffret-b dfee356
Use released Stapler.
jeffret-b 8b50892
Add stack trace suppression into core as a standard.
jeffret-b a4f0f8f
Clean up suppression filter.
jeffret-b 9472660
Minor review comments.
jeffret-b c3e39ef
Handle two review comments.
jeffret-b 3cf878f
Better handle AccessDeniedException.
jeffret-b fff47bb
First pass at adding tests.
jeffret-b d41b0cb
Convert to not show the trace to admins.
jeffret-b 1eb11af
Remove some unrelated tests.
jeffret-b b380e62
Add test for basic exception.
jeffret-b 9b6aeba
Shift to using HttpResponse.SHOW_STACK_TRACE.
jeffret-b e6e261f
Adjust comment.
jeffret-b 452128c
Rename class for better clarity.
jeffret-b c18b81b
Need a new Stapler release or incremental for these tests.
jeffret-b aad2b10
Finish cleanup of Stapler separation.
jeffret-b eead355
Add a couple more tests and some comments about the error source.
jeffret-b bcf587b
Add logging ID to uncaught exception handler.
jeffret-b 45e2f5c
Revert inadvertent changes to SimpleJobTest.
jeffret-b e00a860
Stop adding filter for now.
jeffret-b c936bd1
Small adjustments to oops.jelly.
jeffret-b 8638289
Fix tests.
jeffret-b b56a380
Catch embedded security exceptions.
jeffret-b ed53793
Remove messages that aren't used after all.
jeffret-b acebd93
Remove the unused messages.
jeffret-b b848f85
Use the stapler incremental now that's republished.
jeffret-b 354a054
Don't use public static boolean property.
jeffret-b 83148e0
Adjust tests.
jeffret-b 8baddd2
Don't handle embedded security exceptions.
jeffret-b 13d4a37
Remove now unused method.
jeffret-b 4a01463
Adopt Daniel's suggestion for tying Stapler change to Jenkins.
jeffret-b cfc5e52
Adjust naming.
jeffret-b 76e64fc
Use released Stapler.
jeffret-b 39fc974
Pass the HTTP status code on to the oops page.
jeffret-b 19b25ed
Merge branch 'suppressStack' of github.com:jeffret-b/jenkins into sup…
jeffret-b 313d198
Update to use newer jenkins-test-harness.
jeffret-b d4b5d3f
Show stack trace for jetty:run.
jeffret-b df385a8
Adjust jelly for popup.
jeffret-b ec707b3
Change popup dialog size.
jeffret-b a9c3910
Adjust math operations for clarity.
jeffret-b 7cc0628
Merge branch 'master' into suppressStack
daniel-beck 4786a1c
Merge branch 'master' into suppressStack
jeffret-b 984601d
Merge branch 'suppressStack' of github.com:jeffret-b/jenkins into sup…
jeffret-b 6b68c9e
Merge branch 'master' into suppressStack
jeffret-b 4510307
Adjust test for new permission changes.
jeffret-b feb6aa5
Merge branch 'suppressStack' of github.com:jeffret-b/jenkins into sup…
jeffret-b 215319d
Update test/pom.xml
timja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given https://github.com/jenkinsci/jenkins-test-harness/pull/201/files#diff-1d6816bd6f9430280c5d8b7853286b1dR2688, I wonder whether a more classic approach (non-final field that is initialized from the system property) isn't a better approach to this.
Jenkins.SHOW_ERROR_STACK_TRACES = true;
would be nicer over there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also #4389 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this comment: #4389 (comment) . One approach would be to make it private, but that makes testing more difficult. On a different discussion Stephen Connolly presented an elaborate way to deal with that problem.
It's going to be difficult to have jenkins-test-harness do
Jenkins.SHOW_ERROR_STACK_TRACES = true;
because then JTH will depend upon a new Jenkins version and the new Jenkins needs the new JTH released for the tests to pass.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking existence of the field in JTH using reflection will cover both the previous Jenkins version without that field and the new one with it, being private.
(IIUC Java 11 supports this as long as it's not a final keyword removal )
Could you provide a link or at least a summary?