Skip to content

Conversation

@F-WRunTime
Copy link
Member

@F-WRunTime F-WRunTime commented Mar 28, 2025

… bugs and challenge to fully isolate built dependencies into the src contained for packaging and installation deployiment.

Current problem:

  • Post installation of whl .cache/kdist- file is not available and hardcoded to look in ~/.cache/kdist-
  • This needs a generalized location or be installed to site-package swith the rest of the library files for python packaging to work as intended.
  • Unresolved understanding of where stable-mir-json artifacts need to be stored / referenced for kmir prove
  • Published a single docker image from manual built image to produce an alias poetry-kmir usable image within CI, but is not ideal for scripting / simple usage and inspection by developer.

Objectives:

- [ ] Create a simple to use whl installation for developers / consumers of kmir
- [ ] Slim the docker image as an easy CI callable for kmir in CI

  • Deploy Docker image
  • Simple WF script demonstrate testing execution using kmir posted docker image

MVP

CI Run executing single test using published docker image to dockerhub

jberthold and others added 24 commits March 12, 2025 15:45
The previous code was creating a new proof object from the spec file (first claim).
Instead, the proof needs to be loaded from a file in the proof directory.

Note that `APRProver.read_proof` and `APRProver/read_proof_data` have different expectations to how the proof is stored. The latter method has to be used.
Creating README.
Adding section for unsafe arithmetics
Jost corrected an error with `isize` and `usize`. And I changed some of
the copy in the README. Also updates the branch to current master

---------

Co-authored-by: Jost Berthold <jost.berthold@gmail.com>
Co-authored-by: devops <devops@runtimeverification.com>
Co-authored-by: rv-jenkins <admin@runtimeverification.com>
Co-authored-by: Daniel Cumming <124537596+dkcumming@users.noreply.github.com>
Co-authored-by: devops <devops@runtimeverification.com>
Co-authored-by: Jost Berthold <jost.berthold@gmail.com>
Reverts #512

---------

Co-authored-by: devops <devops@runtimeverification.com>
Co-authored-by: Daniel Cumming <124537596+dkcumming@users.noreply.github.com>
Co-authored-by: devops <devops@runtimeverification.com>
Co-authored-by: Jost Berthold <jost.berthold@gmail.com>
… bugs and challenge to fully isolate built dependencies into the src contained for packaging and installation deployiment.

Current problem:
- Post installation of whl .cache/kdist-<hash> file is not available and hardcoded to look in ~/.cache/kdist-<hash>
- This needs a generalized location or be installed to site-package swith the rest of the library files for python packaging to work as intended.
- Unresolved understanding of where stable-mir-json artifacts need to be stored / referenced for kmir prove
- Published a single docker image from manual built image to produce an alias poetry-kmir usable image within CI, but is not ideal for scripting / simple usage and inspection by  developer.
@F-WRunTime F-WRunTime changed the title Adding First round of attempt to package kmir to python whl + Docker image Adding First round of attempt to package kmir to python whl + Publish Docker image Mar 29, 2025
@F-WRunTime F-WRunTime requested review from dkcumming and removed request for ACassimiro April 2, 2025 21:46
F-WRunTime and others added 19 commits April 2, 2025 16:22
- Updating image tag to drop k_release from tag
modified:   .github/workflows/test.yml
- Droping k_release from tag.
- Modify the WF to drop mdofying internal container user, rely on
  internal user and user id set by container manager.
- docker cp copies file to the container with the internal user target
  uid to match internal container env, don't overwork this.
- Maintain exec commands to use -l to consume internal user env
modified:   Dockerfile.kmir
…s move it up incase anyone using our contaienr is the first user on their own system
…uid to define our container ids try not loading bash profile
@F-WRunTime F-WRunTime requested a review from jberthold April 8, 2025 05:57
@F-WRunTime
Copy link
Member Author

@jberthold Sorry for delay, I needed to step away this was stumping me.
I've got something working and it works both locally and in CI.
Local execution is a bit easier as the file directories are created by pyk as expected in the shared volume but GH runners it was not as simple, and a bit of a challenge.

@jberthold
Copy link
Member

@jberthold Sorry for delay, I needed to step away this was stumping me. I've got something working and it works both locally and in CI. Local execution is a bit easier as the file directories are created by pyk as expected in the shared volume but GH runners it was not as simple, and a bit of a challenge.

No problem at all. I was just going to try this one thing on a whim... but you got it building green already! 🎉
Another thing I did today was to run fixuid without -q, and found there are a lot of small files that take time to chown on startup, which we can just delete. Just testing it once more, then I can add that to the dockerfile.

@jberthold
Copy link
Member

@jberthold Sorry for delay, I needed to step away this was stumping me. I've got something working and it works both locally and in CI. Local execution is a bit easier as the file directories are created by pyk as expected in the shared volume but GH runners it was not as simple, and a bit of a challenge.

No problem at all. I was just going to try this one thing on a whim... but you got it building green already! 🎉 Another thing I did today was to run fixuid without -q, and found there are a lot of small files that take time to chown on startup, which we can just delete. Just testing it once more, then I can add that to the dockerfile.

I think maybe we merge this PR and I make another one with my changes to the Dockerfile, so we get this to master sooner.

Copy link
Member

@jberthold jberthold left a comment

Choose a reason for hiding this comment

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

Let's merge this PR and iterate.
I would still like to modify the test so it will use fixuid but anyway there are more changes to the Dockerfile waiting, I'll do it on the next PR

@F-WRunTime F-WRunTime merged commit f2c9a09 into master Apr 8, 2025
6 checks passed
@F-WRunTime F-WRunTime deleted the challenge-11-ci branch April 8, 2025 06:43
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.

6 participants