-
Notifications
You must be signed in to change notification settings - Fork 479
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
Version disconnects between deb and python packages #1501
Comments
The root cause here might be different from what I initially identified, the publish python distribution job in the failed action (linked above) seems to reference version 1.8.27 which is the prior version, perhaps that's the cause of the failure. Since this was the job building a 1.8.28 release, I suspect that's wrong.
|
Technically someone can get the correctly aligned PyPanda package from release too with the debian package Based on history it seems aligned with 1.8.31, I can try hashing both pypanda files to see if the versions are identical |
While it seems nothing is broken at the moment exception to that one version, I think what we could do, is update publish_docker.yaml as follows: 1- Change create_release to run setup.sh twice, and store the debian packages as an artifact (much like what we do with the wheel file now). The packages are about 40 MB each, so given we have 2 GB of space, we should be fine, but can set a low retention period to be safe. https://github.com/panda-re/panda/releases/tag/v1.8.34 2- In a separate job, download everything from create_release, then first thing first, attempt to publish to pip. If that succeeds, create the release and upload the debian and wheel file. This would enforce that is the pip fails, then no release is made. |
On each PR to main, we tag a new auto-version and push a .deb as a github release and a python package to pypi.
If the pypi package is identical to a prior release, pypi refuses to take the new release and we end up out of sync.
For example, after merging #1500 the release to pypi fails here: https://github.com/panda-re/panda/actions/runs/9357671824/job/25758919983.
Which means our latest version is now 1.8.28 for a .deb and 1.8.27 for the pypi release.
Consumers of our package can't use logic like this when these versions are out of sync:
I think it would be fine to have these versions completely disconnected or perfectly in sync. I don't think this current mostly-in-sync approach is good.
The text was updated successfully, but these errors were encountered: