-
-
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
Initialize default view earlier in the init process. #8413
Conversation
Perform the default view initialization next to loading the configuration from disk. This is more consistent as the primary view and views are cleared just before loading from disk, which leads to a temporary inconsistent state while Jenkins initializes.
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.
Seems like a more logical spot to do this.
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
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.
/label ready-for-merge
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.
Thanks!
assertTrue(CheckInitialViewExtension.hasPrimaryView); | ||
} | ||
|
||
@TestExtension(value = "checkInitialView") |
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.
By the way I think this has no actual effect—this @Initializer
will be run regardless of which test is running (all of jenkins-test
).
Perform the default view initialization next to loading the configuration from disk.
This is more consistent as the primary view and views are cleared just before loading from disk, which leads to a temporary inconsistent state while Jenkins initializes.
See JENKINS-XXXXX.
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist