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

Fix z3 install and CN tests for Dockerfiles #712

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

podhrmic
Copy link
Contributor

@podhrmic podhrmic commented Nov 11, 2024

The nighly docker build hid an error in docker invocation. I fixed the invocation of run-cn.sh and properly installed z3 via opam in both docker images.

@podhrmic podhrmic changed the title Add GPG key import to the Redhat build to avoid package signature errors Fix z3 install and CN tests for Dockerfiles Nov 11, 2024
@podhrmic
Copy link
Contributor Author

@dc-mak
Copy link
Contributor

dc-mak commented Nov 12, 2024

Hmm, to minimise this in the future, can you please also adjust the docker.yml to run on any PR that edits the docker.yml or any Dockerfiles? https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request

@podhrmic
Copy link
Contributor Author

@dc-mak I tried - but as you can see, the on-change triggers do not seem to work very well (or at all). This matches my previous experience, so if you have an idea how to fix this go ahead, otherwise I would just merge as is, as moving forward we shouldn't need to change the Dockerfiles much

@dc-mak
Copy link
Contributor

dc-mak commented Nov 12, 2024

It seems to have triggered the workflow but I did it when the actual scheduled job is also running, so it is waiting behind that to finish... https://github.com/rems-project/cerberus/actions/runs/11803628827

It's not allowed anyway (as desired) but it fails the CI spuriously.
@podhrmic
Copy link
Contributor Author

@dc-mak I would also recommend that the test-docker-images job depends on the build job, such that you test the newly built images.

Adding:

needs:
  needs: [docker-release-redhat, docker-release-ubuntu]

Indeed, this will only work on master branch, as you are limiting which branch can push the new images, but probably good enough for now

@dc-mak
Copy link
Contributor

dc-mak commented Nov 13, 2024

@dc-mak I would also recommend that the test-docker-images job depends on the build job, such that you test the newly built images.

Adding:

needs:
  needs: [docker-release-redhat, docker-release-ubuntu]

Indeed, this will only work on master branch, as you are limiting which branch can push the new images, but probably good enough for now

Fair point, feel free to add and push

@dc-mak
Copy link
Contributor

dc-mak commented Nov 13, 2024

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