Skip to content

Conversation

@vsoch
Copy link
Member

@vsoch vsoch commented Jun 7, 2019

The testing requirements were not fully represented in the setup.py. I'm worried now that there are too many additional dependencies to run basic testing, and perhaps this will come back to bite me. For the meantime the damage is already done, and I'll need to update conda deps too. Right now as is, a user only thinks that pytest is required and won't understand why many of the tests fail. This will also add a test for the entrypoint+cmd conversion in a Dockerfile to Singularity recipe.

I will need to update conda too.

Signed-off-by: Vanessa Sochat vsochat@stanford.edu

… (will need to be in conda too)

Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
@vsoch vsoch merged commit f5ec730 into master Jun 7, 2019
@vsoch vsoch deleted the add/entrypoint-cmd-test branch June 7, 2019 12:54

TESTS_REQUIRES = (
('pytest', {'min_version': '4.6.2'}),
('pytest-cov', {'min_version': '2.5.1'}),
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be required
But will be needed on CI if coverage is added

Copy link
Member Author

Choose a reason for hiding this comment

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

So thinking ahead! Without realizing it :)

TESTS_REQUIRES = (
('pytest', {'min_version': '4.6.2'}),
('pytest-cov', {'min_version': '2.5.1'}),
('pytest-fixtures', {'min_version': '0.1.0'}),
Copy link
Contributor

Choose a reason for hiding this comment

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

Not required

)

TESTS_REQUIRES = (
('pytest', {'min_version': '4.6.2'}),
Copy link
Contributor

Choose a reason for hiding this comment

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

Something like 4.0.0 should already be enough

Bootstrap: docker
From: busybox:latest
%runscript
exec python /code/script.py "$@"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an inexact translation of the Dockerfile. See #111 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes but this is what works and is expected for Singularity. You don't see users writing /bin/bash -c "..." as this is handled internally in Singularity.

Copy link
Contributor

Choose a reason for hiding this comment

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

Completely missing the point. docker run entrypoint-cmd --foo does a python --foo not a python /code/script.py --foo

Copy link
Member Author

Choose a reason for hiding this comment

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

It will need to be fixed then.

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.

3 participants