Skip to content

Conversation

@ltalirz
Copy link
Member

@ltalirz ltalirz commented Sep 16, 2019

  • Used AEP template from AEP 0
  • Status is submitted
  • Added type & status labels to PR
  • Added AEP to README.md
  • Provided github handles for authors

instead of copying plugin folder to the docker container, mount it.
@ltalirz ltalirz force-pushed the plugin_testing_toolchain branch from 8840c0f to d14eb5c Compare September 16, 2019 09:58
Copy link

@yakutovicha yakutovicha left a comment

Choose a reason for hiding this comment

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

Please see my suggestions below.

```
docker run -v .:/home/aiida/plugin aiida-cp2k-docker-stack -t test-container
docker exec --user aiida test-container pip install --user -e .[pre-commit,testing]
docker exec --user aiida test-container reentry scan
Copy link

@yakutovicha yakutovicha Sep 16, 2019

Choose a reason for hiding this comment

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

Suggestions:

  1. Put the whole content of .travis.yml here.
  2. Put the code above into before_install section of the .travis.yml file
  3. Add an aiida version checker

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea. Let's do this one you have a working setup with aiida-cp2k

Choose a reason for hiding this comment

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

docker run -v .:/home/aiida/plugin aiida-cp2k-docker-stack -t test-container
docker exec --user aiida test-container pip install --user -e .[pre-commit,testing]
docker exec --user aiida test-container reentry scan
docker exec --user aiida test-container py.test --cov aiida_cp2k --cov-append .
Copy link

@yakutovicha yakutovicha Sep 16, 2019

Choose a reason for hiding this comment

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

Don't forget that before running pytest one should wait a little bit before the container starts.

Copy link
Member Author

@ltalirz ltalirz Sep 16, 2019

Choose a reason for hiding this comment

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

I guess most of the time here is spent in creating the AiiDA profile, right?
When running tests via pytest, this is actually not needed.
Perhaps it would be a good idea to use an image for the tests that does not enforce the creation of a new profile?

Copy link

@yakutovicha yakutovicha Sep 16, 2019

Choose a reason for hiding this comment

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

In the current setup, I don't think it is really possible. But I agree that we should modify the base docker image to allow this. Maybe by providing some variable CREATE_PROFILE_AT_STARTUP

ltalirz and others added 3 commits September 16, 2019 13:28
@sphuber sphuber added the type/standard Standard Track AEP label Dec 16, 2021
@sphuber sphuber changed the title Plugin testing toolchain AEP: Testing toolchain for plugin packages Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants