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

Feature/env naming #874

Merged
merged 18 commits into from
Jun 24, 2019
Merged

Feature/env naming #874

merged 18 commits into from
Jun 24, 2019

Conversation

jemten
Copy link
Collaborator

@jemten jemten commented Jun 19, 2019

This PR fixes:

  • Standard environment names. Adds date by default as well as the possibility to add a prefix and suffix to the environment names.

  • Also some fixes around checking pip packages

How to test:

  • Automatic and continuous test pass

Expected outcome:

  • Installation, unit and integration tests pass

Review:

  • Code review
  • New code is executed and covered by tests
  • Tests pass

Copy link
Collaborator

@henrikstranneheim henrikstranneheim left a comment

Choose a reason for hiding this comment

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

Fantastic. More standardised and yet more flexible. Great work!

$log->warn(
q{No environment name has been specified for MIP's main environment.});
$log->warn(q{MIP will be installed in conda's base environment.});
q{No environment name has been specified for MIP's main environment. Using default}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add the MIP's main environment to the log: qq{Using default $parameter_href->{environment_name}{emip}}

lib/MIP/Set/Parameter.pm Outdated Show resolved Hide resolved
lib/MIP/Set/Parameter.pm Outdated Show resolved Hide resolved
my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) = localtime time;
my $date = sprintf '%02d%02d%02d', $year % $ONE_HUNDRED, $mon + 1, $mday;

## Set up conda environment names and prefix paths for environmnents
foreach my $environment (@environments) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to separate this foreach loop into a new sub which you can test the different scenarios in. It will make it easier to understand the logic and also to test it and then you do not have to test it in the calling sub

t/check_pip_package.t Outdated Show resolved Hide resolved
jemten and others added 8 commits June 20, 2019 10:37
Typo

Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
typo

Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
more typos

Co-Authored-By: Henrik Stranneheim <henrik.stranneheim@scilifelab.se>
@jemten jemten merged commit 5548494 into develop Jun 24, 2019
@jemten jemten deleted the feature/env_naming branch June 24, 2019 15:28
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