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

Always define an explicit workspace volume, it defaults to an empty dir #622

Merged
merged 7 commits into from
Oct 17, 2019

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Oct 17, 2019

Should fix #600 (comment)

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Not clear if you reproduced the bug in a test here—there are a couple of test patches but they just look like accommodating the change.

Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
@Vlatombe
Copy link
Member Author

@jglick Ideally it would need a html unit (since this is driven by the form UI) adding a pod template, saving then check that the resulting pod template has an empty dir volume. But I have no clue how to write it

@jglick
Copy link
Member

jglick commented Oct 17, 2019

adding a pod template, saving then check that the resulting pod template has an empty dir volume

So the opening of the relevant form and saving it are both routine things to do with a WebClient, and of course checking the state afterwards is easy. Clicking the button to add a new template and finding various text fields to fill in would be trickier, more low-level HtmlUnit stuff.

@Vlatombe
Copy link
Member Author

Yes I agree about form handling, difficulty mostly lies in dealing with the weird add button

Add a HtmlUnit test for default workspace volume
@Vlatombe
Copy link
Member Author

@jglick I think I have a working test, and I converted the repeatableHeteroProperty to repeatableProperty since PodTemplate is not designed to be extended anyway

@Vlatombe Vlatombe added the bug Bug Fixes label Oct 17, 2019
@Vlatombe Vlatombe merged commit d59ecc4 into jenkinsci:master Oct 17, 2019
@Vlatombe Vlatombe deleted the workspace-volume branch October 17, 2019 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants