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

Fixes for deb build and CI #18

Merged
merged 7 commits into from
Feb 9, 2024
Merged

Fixes for deb build and CI #18

merged 7 commits into from
Feb 9, 2024

Conversation

GhostofGoes
Copy link
Collaborator

@GhostofGoes GhostofGoes commented Feb 7, 2024

Changes

  • Fix package versioning issues
  • Cleanup some of the package metadata and fix a few minor issues
  • Improvements to GitHub CI
    • Check the .deb files are built, installable and have valid metadata
    • Break up the steps a bit so it's easier to track where something fails
    • Lots of cleanup

Package version issue

I discovered this while attempting to install a bennu .deb file. It failed with a invalid version error.

CMake requires semantic versioning, e.g. MAJOR.MINOR.REVISION. Python setuptools also requires this. Debian archives are less restrictive, but require the release version start with an integer. This means the git commit short sha can't be used as a version, at least not directly. The workaround for this is to prepend a made-up version, I've used 6.0.0, which is two versions ahead of 4.0.0 (the last version of SCEPTRE before we ditched versioning). So, you'll get a version like 6.0.0.f7055755, where f7055755 is the short sha sum of the latest commit in HEAD.

Versions are defined in:

  • sceptre-bennu/CMakeLists.txt
  • sceptre-bennu/cmake/CpackConfig.cmake (this gets it's version from sceptre-bennu/CMakeLists.txt)
  • sceptre-bennu/src/pybennu/setup.py
  • sceptre-bennu/src/pybennu/Makefile

Versions affect:

  • pybennu deb package
  • bennu deb package
  • pybennu python package

- Ensure .deb has a properly formatted version
- Set version for everything in cmake to 6.0.0 (not intended to change, just a placeholder)
- Add GitHub URL to package metadata
- Fix architecture variable
- Fix warning with old tags command
@GhostofGoes GhostofGoes marked this pull request as ready for review February 8, 2024 21:20
@GhostofGoes GhostofGoes self-assigned this Feb 8, 2024
@mgaliar mgaliar merged commit 4bd939d into sandialabs:main Feb 9, 2024
1 check passed
@GhostofGoes GhostofGoes deleted the fix-deb branch February 9, 2024 17:40
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