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.
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 spotVM and maxRunDuration feature to VM provisioning #492
base: develop
Are you sure you want to change the base?
Add spotVM and maxRunDuration feature to VM provisioning #492
Changes from 18 commits
742724e
0f38202
d8e0bca
615e605
d57ea0c
579410e
17a0113
411e510
3ddd4d3
363925a
f4c7154
74fe8c3
cfae906
937abdf
8fa2222
1708135
e806d25
50a74b8
3e7e787
244da59
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 140 in src/main/java/com/google/jenkins/plugins/computeengine/InstanceConfiguration.java
ci.jenkins.io / Code Coverage
Not covered line
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.
Check warning on line 997 in src/main/java/com/google/jenkins/plugins/computeengine/InstanceConfiguration.java
ci.jenkins.io / Code Coverage
Not covered line
Check warning on line 82 in src/main/java/com/google/jenkins/plugins/computeengine/client/ClientUtil.java
ci.jenkins.io / Code Coverage
Partially covered line
Check warning on line 85 in src/main/java/com/google/jenkins/plugins/computeengine/client/ClientUtil.java
ci.jenkins.io / Code Coverage
Partially covered line
Check warning on line 88 in src/main/java/com/google/jenkins/plugins/computeengine/client/ClientUtil.java
ci.jenkins.io / Code Coverage
Not covered line
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.
The test credentials are created using this constructor, where it is passing an empty
id
.https://github.com/jenkinsci/google-oauth-plugin/blob/5367a8a1b9c97e14a5188150f897fa91da1d9777/src/main/java/com/google/jenkins/plugins/credentials/oauth/GoogleRobotPrivateKeyCredentials.java#L65-L70
which ends up at https://github.com/jenkinsci/credentials-plugin/blob/1e306e8f6c54f8eeef973b3387b8c223bd60ae1c/src/main/java/com/cloudbees/plugins/credentials/common/IdCredentials.java#L87-L96
thus having a random uuid.
seems like at somepoint the google-credential-plugin might have got this behavior (or sending blank id, instead of projectid).
As the integration tests in this repository are not run often, this never got brought up..
Check warning on line 42 in src/main/java/com/google/jenkins/plugins/computeengine/ui/helpers/ProvisioningType.java
ci.jenkins.io / Code Coverage
Not covered lines
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.
Using an enum here kind of defeats the purpose of having extensibility. I think it is not needed anyway as it is only used for casc compatibility which is not usually kept as per Bobby. But just in case you face this use case in the future, I would recommend either adding a specific check method returning boolean on the base implementation, or a marker interface that PreemptibleVm could implement