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

Devops: fix the nightly build #784

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Devops: fix the nightly build #784

merged 1 commit into from
Apr 29, 2022

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Feb 1, 2022

The nightly build against the develop branch of aiida-core was
failing at the installation of the Python dependencies when running
against Python 3.7. The reason is that the current develop branch has
dropped support for Python 3.7 and the pip is then failing to install
a version of pymatgen that matches the dependency requirements. The
solution is simply to not run against Python 3.7 anymore.

In addition, as of aiida-core==2.0 the develop branch has been
renamed to main so the workflow is updated to install that branch. As
a result, the workflow file is also renamed from develop to nightly
as the term develop is no longer really applicable.

Furthermore, the workflow is updated to match the exact same setup
procedure as the ci.yml workflow which has also recently been updated.

@sphuber sphuber requested a review from mbercx February 1, 2022 09:46
Copy link
Member

@mbercx mbercx left a comment

Choose a reason for hiding this comment

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

Thanks @sphuber! Just have some small questions.

.github/workflows/develop.yml Show resolved Hide resolved
id: tests
run:
pytest -sv tests

- name: Slack notification
Copy link
Member

Choose a reason for hiding this comment

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

Seems the workflow had been failing for a while now, but I didn't see any notifications in the Slack channel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, not sure why because it used to work at some point, but looking at the syntax, it seems to rely on the steps.install and steps.tests identifiers. I had accidentally removed them so it would have failed, but they used to be there, so not sure why it wasn't working.

id: install
run: |
pip install --upgrade setuptools
pip install --upgrade pip setuptools wheel
pip install git+https://github.com/aiidateam/aiida-core@develop#egg=aiida-core[atomic_tools]
pip install -e .[tests]
reentry scan
Copy link
Member

Choose a reason for hiding this comment

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

Do we still have to run reentry scan for the develop branch of aiida-core?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely, removed it. This reminds me though that merging this now might not be a good idea, as it won't work as anticipated. The install from source of aiida-core will work but pip install -e .[tests] will then install with requirements of our own develop branch and that still specified something like aiida-core~=1.6 and so it will uninstall the develop branch of aiida-core. So we need a v2.0 release of aiida-core and then up our own requirements.

Copy link
Member

Choose a reason for hiding this comment

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

Right, of course. So we'll put this PR as "blocked" for now? I'll start working on a branch to support aiida-core==2.0.

@sphuber sphuber force-pushed the fix/nightly-build branch 3 times, most recently from e8b0006 to 506f308 Compare February 1, 2022 10:23
@sphuber sphuber requested a review from mbercx February 1, 2022 10:24
@sphuber sphuber added the pr/blocked PR is blocked by another PR that should be merged first label Feb 1, 2022
The nightly build against the `develop` branch of `aiida-core` was
failing at the installation of the Python dependencies when running
against Python 3.7. The reason is that the current `develop` branch has
dropped support for Python 3.7 and the `pip` is then failing to install
a version of `pymatgen` that matches the dependency requirements. The
solution is simply to not run against Python 3.7 anymore.

In addition, as of `aiida-core==2.0` the `develop` branch has been
renamed to `main` so the workflow is updated to install that branch. As
a result, the workflow file is also renamed from `develop` to `nightly`
as the term `develop` is no longer really applicable.

Furthermore, the workflow is updated to match the exact same setup
procedure as the `ci.yml` workflow which has also recently been updated.
@sphuber sphuber removed the pr/blocked PR is blocked by another PR that should be merged first label Apr 29, 2022
@sphuber sphuber merged commit b2b2612 into develop Apr 29, 2022
@sphuber sphuber deleted the fix/nightly-build branch April 29, 2022 07:24
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