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

retrieve only needed "doGetting" build fields #74

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

llecaroz
Copy link

As the author of this PR #55 doesn't answer to the proposed fix in his fork, here is the appropriate change fixing the infinite loop due to the "building" status which was not retrieved in the original PR.

Retrieving only requested fields meaning result & building which are used later in the code will greatly improve performances specially in large builds archiving lot of files or others contents in the returned build api/json payload as all these others informations are not needed & will increase the json marshaling & transfer time sometimes to some MB & lot of minutes.

As side effect, without that optimization if the get call spends more than the timeout duration due to the size of data , it will ends with some failed retries & a final failure status while everything was smooth/ok on the jenkins server side.

As the author of this PR jenkinsci#55 doesn't answer to the proposed fix in his fork, here is the appropriate change fixing the infinite loop due to the "building" status which was not retrieved in the original PR.

Retrieving only requested fields meaning result & building which are used later in the code will greatly improve performances specially in large builds archiving lot of files or others contents in the returned build api/json payload  as all these others informations are not needed & will increase the json marshaling & transfer time sometimes to some MB & lot of minutes.  

As side effect, without that optimization if the get call spends more than the timeout duration due to the size of data , it will ends with some failed retries & a final failure status while everything was smooth/ok on the jenkins server side.
@cashlalala
Copy link

LGTM, thanks for the contribution.

@cashlalala cashlalala merged commit 01bf857 into jenkinsci:master Aug 11, 2020
@llecaroz
Copy link
Author

llecaroz commented Sep 1, 2020

LGTM, thanks for the contribution.

@cashlalala , I saw that you prepared a new version of the plugin. Any idea on when you will release its binaries ?
I would like to avoid forking & providing my own version to my users & having them as most as possible using an official release which are very great ;)

Feel free to contact me if you need help & to see if I could help you & how in the case you need more validation
Thx in advance for your coming answer,
Best regards
Louis

@cashlalala
Copy link

Do you mean this https://updates.jenkins.io/download/plugins/Parameterized-Remote-Trigger ?
This PR was merged and released as both binary & source by the jenkins pluign release tool.

@llecaroz
Copy link
Author

llecaroz commented Sep 1, 2020

Do you mean this https://updates.jenkins.io/download/plugins/Parameterized-Remote-Trigger ?
This PR was merged and released as both binary & source by the jenkins pluign release tool.

Thank you so much for your update @cashlalala , you answered well to my question ;)
I was looking here https://github.com/jenkinsci/parameterized-remote-trigger-plugin/releases :(

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants