Skip to content

new File --> file#354

Merged
apeltzer merged 3 commits intodevfrom
olgabot-patch-2
Jul 3, 2019
Merged

new File --> file#354
apeltzer merged 3 commits intodevfrom
olgabot-patch-2

Conversation

@olgabot
Copy link
Copy Markdown
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
Copy Markdown
Member

apeltzer commented Jul 3, 2019

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

olgabot commented Jul 3, 2019

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

*/

// Show help message
// Show help emssage
Copy link
Copy Markdown
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