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

Update Spack CI #117

Merged
merged 4 commits into from
Aug 12, 2021
Merged

Update Spack CI #117

merged 4 commits into from
Aug 12, 2021

Conversation

ajaust
Copy link
Collaborator

@ajaust ajaust commented Aug 11, 2021

This PR updates the Spack based CI included in the repository:

  • I have renamed the namespace of the self-defined Spack repository in spack/repo/ to pyprecice.test such that it is easier to distinguish from the Spack commands.
  • I updated the Dockerfile to add our own repository before py-pyprecice is added to the environment.
  • I updated the Dockerfile and the CI configuration to explicitly use pyprecice.text.py-pyrecice@develop.
    • Here I would need feedback if that makes sense for the Build Spack workflow or if we should still base it on the "normal" py-pyprecice included in Spack.

Replaces #115

- renaming Spack repo used for testing to have a more obvious name
- update package to version currently bundled with spack
- change spack build to use our spack file explicitly
- copy all necessary files in the workflow recursively
Copy link
Member

@BenjaminRodenberg BenjaminRodenberg left a comment

Choose a reason for hiding this comment

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

Looks good 👍
Just a minor addition: Added a changelog entry.

@ajaust
Copy link
Collaborator Author

ajaust commented Aug 11, 2021

Is it possible to run the action here to see that it did not break?

@BenjaminRodenberg
Copy link
Member

Currently the action does not work for two reasons:

1. Action not triggered

Action is not triggered by PR (fixed by 9cfdb5e). We should add this change directly on develop.

2. Forks/Branches not properly supported

precice/ci-spack-pyprecice-deps-1804 is still the "old" container based on the dockerfile from develop. But we need the dockerfile from this PR. Currently it's not easily possible to work with branches/forks here, because the tag of the dockerfile is hardcoded:

container: precice/ci-spack-pyprecice-deps-1804

tags: precice/ci-spack-pyprecice-deps-1804

We should actually push to forks-docker-id/ci-spack-pyprecice-deps-1804 and use this image, instead.

@BenjaminRodenberg
Copy link
Member

@ajaust how do you think should we proceed with the failing test for building spack? As explained in #117 this is a bigger issue. I would be fine with just merging and hoping that it works (otherwise we have to fix it). But we can also keep this PR open and wait until the issue is resolved.

@ajaust
Copy link
Collaborator Author

ajaust commented Aug 12, 2021

If you are fine with that, we can merge and keep this PR in mind so we know where the problem should be.

@BenjaminRodenberg BenjaminRodenberg merged commit 36e4782 into precice:develop Aug 12, 2021
@BenjaminRodenberg
Copy link
Member

Currently build spack is failing (as expected). See https://github.com/precice/python-bindings/runs/3308743649?check_suite_focus=true.

I just triggered building the environment manually via the workflow_dispatch. The job will take some time (https://github.com/precice/python-bindings/actions/runs/1122874035). As soon as the job has run through, the container should be updated and we can use it in the test. If we rerun the test, it should succeed.

@ajaust
Copy link
Collaborator Author

ajaust commented Aug 12, 2021

I am curious to see how that will work out. :)

@BenjaminRodenberg
Copy link
Member

I've rebuilt the environment and the test fails now: https://github.com/precice/python-bindings/runs/3320630602?check_suite_focus=true. So there is a bug we have to fix.

This was referenced Aug 13, 2021
@BenjaminRodenberg
Copy link
Member

This PR seems to be fine, but #116 is problematic. See #121.

BenjaminRodenberg added a commit that referenced this pull request Oct 7, 2021
@IshaanDesai IshaanDesai mentioned this pull request Oct 17, 2021
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