Skip to content
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-64816] prepare for support of node monitors by JCasC #8629

Merged
merged 5 commits into from
Nov 18, 2023

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Oct 21, 2023

In order that configuration as code plugin can properly support node monitors we need to add databound constructors.

See JENKINS-64816.

Testing done

No functional changes, verified in the context of jenkinsci/configuration-as-code-plugin#2392 that with this change the node monitors can then be configured via CasC

Proposed changelog entries

  • Prepare node monitors to work with configuration as code.

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

N/A

Before the changes are marked as ready-for-merge:

Maintainer checklist

Preview Give feedback

In order that configuration as code plugin can properly support node
monitors we need to add databound constructors.
mawinter69 added a commit to mawinter69/configuration-as-code-plugin that referenced this pull request Oct 21, 2023
Copy link
Member

@daniel-beck daniel-beck left a comment

Choose a reason for hiding this comment

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

Looks like we might be able to get rid of a few #newInstance as well, but reasonable to consider that out of scope.

public static /*almost final*/ DiskSpaceMonitorDescriptor DESCRIPTOR;

@Extension @Symbol("diskSpace")
public static class DescriptorImpl extends DiskSpaceMonitorDescriptor {
Copy link
Member

Choose a reason for hiding this comment

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

Unsure whether we want @since for this. Technically, yes?

Copy link
Contributor Author

@mawinter69 mawinter69 Nov 13, 2023

Choose a reason for hiding this comment

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

I don't really see the need for this here.

@Extension
public static final AbstractNodeMonitorDescriptor<Data> DESCRIPTOR = new AbstractAsyncNodeMonitorDescriptor<>() {
@Symbol("responseTime")
public static class DescriptorImpl extends AbstractAsyncNodeMonitorDescriptor<Data> {
Copy link
Member

Choose a reason for hiding this comment

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

Unsure whether we want @since for this. Technically, yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dito

@NotMyFault NotMyFault added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label Oct 29, 2023
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

nice

@NotMyFault
Copy link
Member

Hey @mawinter69,

would you mind addressing or commenting on the outstanding concerns, please?

@daniel-beck
Copy link
Member

Noting that comments have been addressed by declining.

@NotMyFault
Copy link
Member

/label ready-for-merge


This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback.
Please see the merge process documentation for more information about the merge process.
Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Nov 16, 2023
@MarkEWaite MarkEWaite merged commit 442a42f into jenkinsci:master Nov 18, 2023
@mawinter69 mawinter69 deleted the JENKINS-64816 branch January 31, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants