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

new File --> file #354

Merged
merged 3 commits into from
Jul 3, 2019
Merged

new File --> file #354

merged 3 commits into from
Jul 3, 2019

Conversation

olgabot
Copy link
Contributor

@olgabot olgabot commented Jul 3, 2019

As mentioned in nf-core/rnaseq#245, the pipeline_report.{html,txt} files get written with new File instead of file which leads to weird behavior and creating an s3:/ folder locally if the output folder is on AWS S3:

 Thu 27 Jun - 09:03  ~/code/nf-core/rnaseq   origin ☊ olgabot/salmon-gencode ✔ 28☀ 
  ll --tree s3:
Permissions Size User    Date Modified Git Name
drwxr-xr-x     - olgabot 11 Jun 10:26   -- s3:
drwxr-xr-x     - olgabot 11 Jun 10:26   -- └── olgabot-maca
drwxr-xr-x     - olgabot 11 Jun 10:26   --    └── mini-maca
drwxr-xr-x     - olgabot 11 Jun 10:26   --       └── results
drwxr-xr-x     - olgabot 11 Jun 10:26   --          └── pipeline_info
.rw-r--r--   12k olgabot 11 Jun 16:40   --             ├── pipeline_report.html
.rw-r--r--  2.7k olgabot 11 Jun 16:40   --             └── pipeline_report.txt

This is especially problematic as after the first time the pipeline is run, then the s3:/ folder is created and any input files get tested against that "folder" and suddenly they "don't exist" because they look like they're on the local filesystem as locally, s3:// --> s3:/, and then pipelines break 😢

Many thanks to contributing to nf-core/tools!

Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).

PR checklist

  • This comment contains a description of changes (with reason)
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated
  • CHANGELOG.md is updated
  • README.md is updated

Learn more about contributing: https://github.com/nf-core/tools/tree/master/.github/CONTRIBUTING.md

As mentioned in nf-core/rnaseq#245, the `pipeline_report.{html,txt}` files get written with `new File` instead of `file` which leads to weird behavior and creating an `s3:/` folder locally if the output folder is on AWS S3:

```
 Thu 27 Jun - 09:03  ~/code/nf-core/rnaseq   origin ☊ olgabot/salmon-gencode ✔ 28☀ 
  ll --tree s3:
Permissions Size User    Date Modified Git Name
drwxr-xr-x     - olgabot 11 Jun 10:26   -- s3:
drwxr-xr-x     - olgabot 11 Jun 10:26   -- └── olgabot-maca
drwxr-xr-x     - olgabot 11 Jun 10:26   --    └── mini-maca
drwxr-xr-x     - olgabot 11 Jun 10:26   --       └── results
drwxr-xr-x     - olgabot 11 Jun 10:26   --          └── pipeline_info
.rw-r--r--   12k olgabot 11 Jun 16:40   --             ├── pipeline_report.html
.rw-r--r--  2.7k olgabot 11 Jun 16:40   --             └── pipeline_report.txt
```

This is especially problematic as after the first time the pipeline is run, then the `s3:/` folder is created and any input files get tested against that "folder" and suddenly they "don't exist" because they look like they're on the local filesystem as locally, `s3://` --> `s3:/`, and then pipelines break 😢
@apeltzer
Copy link
Member

apeltzer commented Jul 3, 2019

Requires a comment in the CHANGELOG to build successfully - can you add that too?

Copy link
Member

@apeltzer apeltzer left a comment

Choose a reason for hiding this comment

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

Requires a CHANGELOG update, other than that looking good 👍

@olgabot olgabot changed the base branch from master to dev July 3, 2019 17:41
@olgabot
Copy link
Contributor Author

olgabot commented Jul 3, 2019

Yay I changed the base to dev, merged from dev, and added a CHANGELOG comment!

@@ -49,7 +49,7 @@ def helpMessage() {
* SET UP CONFIGURATION VARIABLES
*/

// Show help message
// Show help emssage
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Show help emssage
// Show help message

@apeltzer apeltzer merged commit a07763d into dev Jul 3, 2019
@apeltzer apeltzer deleted the olgabot-patch-2 branch September 20, 2019 12:15
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