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

First go at a PR template for tools-iuc #1991

Merged
merged 7 commits into from
Jul 25, 2018

Conversation

Slugger70
Copy link
Contributor

From the Tools IUC meeting at GCC this year, I was tasked with working on a review checklist. I thought that having a PR checklist template similar to the bioconda-recipes repo would be useful here as well. This is a WIP and please comment!

@shiltemann
Copy link
Member

shiltemann commented Jul 17, 2018

@Slugger70 cool :)
@yhoogstrate once made a PR template for our own galaxy tool repo that may give some more ideas? https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/blob/master/.github/PULL_REQUEST_TEMPLATE.md

@Slugger70
Copy link
Contributor Author

Cool! Thanks @shiltemann. I'm also writing a comprehensive review checklist/guide for reviewers. But I reckon we should include something like @yhoogstrate's one here as well for reviewers too!

Copy link
Contributor

@mblue9 mblue9 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for working on this @Slugger70 !

* [ ] .shed.yml file ok
* [ ] Indentation is correct
* [ ] Tool version/build ok
* [ ] `<command/>`: file names are escaped
Copy link
Contributor

Choose a reason for hiding this comment

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

<command/>: file names are escaped

does this mean the element_identifier? e.g as in #1589 $element_identifier if used is escaped (see b47bba4)"

what about also something for single quotes like "Data and text params are single-quoted"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. It makes more sense and that's what I put in the long form doc.

* [ ] `<command/>`: file names are escaped
* [ ] Tests
- [ ] Parameters are reasonably covered
- [ ] Test files are appropriate
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any rule (of thumb) for what are appropriate test files? Does the total need to be < few MB?

- [ ] Parameters are reasonably covered
- [ ] Test files are appropriate
* [ ] Toolshed user `tools-iuc` has access to associated toolshed repo(s)
* [ ] Complies with other best practice
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good thinking


FOR REVIEWER:
* [ ] .shed.yml file ok
* [ ] Indentation is correct
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the indentation always be 4 spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

@yhoogstrate
Copy link
Member

I am not sure if it is worthwile adding it to the list, but maybe it's worth considering:

  • It is legally allowed to use the tool without restrictions (unless mentioned in the PR)

@Slugger70
Copy link
Contributor Author

@yhoogstrate I think so.. Not sure about how to word it. @erasche what do you think?

@hexylena
Copy link
Member

hexylena commented Jul 18, 2018

@Slugger70 yeah that's a good idea. We ask that in the cargo-port repo, really great contributors actually link the license as s requested, but most don't which annoys me. Maybe something like:

  • License permits unrestricted use (educational + commercial)

Edit: Otherwise this looks great! It's a lot of checkboxes and I expect many times contributors won't fill them all out, but it's a really nice reminder to have.

* [ ] Tests
- [ ] Parameters are reasonably covered
- [ ] Test files are appropriate
* [ ] Toolshed user `tools-iuc` has access to associated toolshed repo(s)
Copy link
Member

Choose a reason for hiding this comment

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

the toolshed user is just iuc

@@ -0,0 +1,20 @@
FOR CONTRIBUTOR:
* [ ] - I have read the [CONTRIBUTING.md](https://github.com/galaxyproject/tools-iuc/blob/master/CONTRIBUTING.md) document
* [ ] - This tool is appropriate for the tools-iuc repo (see [CONTRIBUTING.md](https://github.com/galaxyproject/tools-iuc/blob/master/CONTRIBUTING.md))
Copy link
Member

Choose a reason for hiding this comment

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

Maybe merge this 2 in:

I have read the [CONTRIBUTING.md](https://github.com/galaxyproject/tools-iuc/blob/master/CONTRIBUTING.md) document and this tool is appropriate for the tools-iuc repo

* [ ] Tool version/build ok
* [ ] `<command/>`
- [ ] Text parameters, input and output files `'single quoted'`
- [ ] Use of `<![CDATA[ ... ]]>` tags
Copy link
Member

Choose a reason for hiding this comment

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

<![CDATA[ ... ]]> is recommended also for the <help/> section.

Copy link
Member

Choose a reason for hiding this comment

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

maybe just add a checklist item that the help text is valid restructured text? (and uses CDATA tags)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I'm also (in parallel) writing a comprehensive guide for reviewers. Should this just be a short summary of that or be a stand alone thing?

Copy link
Member

Choose a reason for hiding this comment

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

@Slugger70 I was wondering if we should merge this list in the one you are adding in #2000 , and replace it here with a link to the guide for reviewers?

* [ ] Tests
- [ ] Parameters are reasonably covered
- [ ] Test files are appropriate
* [ ] Toolshed user `iuc` has access to associated toolshed repo(s)
Copy link
Member

Choose a reason for hiding this comment

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

This can go as sub-point of .shed.yml file ok.

@Slugger70 Slugger70 removed the wip label Jul 20, 2018
@bgruening
Copy link
Member

👍

@Slugger70 Slugger70 merged commit ebbb2b1 into galaxyproject:master Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants