Skip to content

Fix broken CI for package only PRs, make dateutil not strictly required#24484

Merged
sethrj merged 4 commits intospack:developfrom
alalazo:hotfix/ci_and_dateutil
Jun 23, 2021
Merged

Fix broken CI for package only PRs, make dateutil not strictly required#24484
sethrj merged 4 commits intospack:developfrom
alalazo:hotfix/ci_and_dateutil

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Jun 23, 2021

Modifications:

  • Enforce the Python interpreter being used by setting SPACK_PYTHON
  • Revert modification on python-dateutil not being present in Python 2.7
  • Make python-dateutil not a hard requirement for unit tests

alalazo added 3 commits June 23, 2021 09:49
This commit forces the Python interpreter with an
environment variable, to ensure that the Python set
by the "setup-python" action is the one being used.

Due to the policy adopted by Spack to prefer python3
over python we may end up picking a Python 3.X
interpreter where Python 2.7 was meant to be used.
Before spack#23212 people could clone spack and run
```
spack unit-tests
```
while now this is not possible, since python-dateutil is
a required but not vendored dependency. This change makes
it not a hard requirement, i.e. it will be used if found
in the current interpreter.
@alalazo alalazo force-pushed the hotfix/ci_and_dateutil branch from 746d6a0 to dc90336 Compare June 23, 2021 07:59
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Jun 23, 2021

Well, failure in CI it's an unfixed bug in mypy: python/mypy#649 (comment) ?

@alalazo alalazo marked this pull request as ready for review June 23, 2021 09:25
@alalazo alalazo added ci Issues related to Continuous Integration hotfix labels Jun 23, 2021
@sethrj sethrj merged commit 1bccd86 into spack:develop Jun 23, 2021
This was referenced Jun 23, 2021
@alalazo alalazo deleted the hotfix/ci_and_dateutil branch June 23, 2021 12:15
@alalazo alalazo mentioned this pull request Jun 23, 2021
bollig pushed a commit to bollig/spack that referenced this pull request Jun 29, 2021
…ed (spack#24484)

* Force the Python interpreter with an env variable

This commit forces the Python interpreter with an
environment variable, to ensure that the Python set
by the "setup-python" action is the one being used.

Due to the policy adopted by Spack to prefer python3
over python we may end up picking a Python 3.X
interpreter where Python 2.7 was meant to be used.

* Revert "Update conftest.py (spack#24473)"

This reverts commit 477c8ce.

* Make python-dateutil a soft dependency for unit tests

Before spack#23212 people could clone spack and run
```
spack unit-tests
```
while now this is not possible, since python-dateutil is
a required but not vendored dependency. This change makes
it not a hard requirement, i.e. it will be used if found
in the current interpreter.

* Workaround mypy complaint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Issues related to Continuous Integration hotfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants