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

feat(all)!: upgrade Slurm charms to Noble #51

Merged

Conversation

NucciTheBoss
Copy link
Member

This PR upgrades the Slurm charms to Noble from Jammy. We get several benefits from this such as access to a newer base and package versions + more recent hardware support.

BREAKING CHANGES:

  1. The Slurm charms no longer use the PPA ppa:ubuntu-hpc/slurm-wlm-23.02 to install Slurm. Instead Slurm is pulled directly from the Ubuntu Archive. This enables us to use Slurm 23.11. Newer versions of Slurm should be published to the experimental PPA ppa:ubuntu-hpc/experimental rather than create a separate PPA for the Slurm packages.
  2. Speeds up charm builds by using the charm-binary-python-paclages directive in charmcraft.yaml. This pulls in pre-built versions of Rust-based packages such as cryptography and pydantic rather than compile them from source with rustc. This should drastically reduce the amount of time it takes to run integration tests.
  3. Deactivates mysql-router in the integration test suite. The mysql-router subordinate charm does not yet support Noble, so instead we integrate directly with the mysql charm in the integration tests. mysql-router supporting Noble will likely not come until after the 25.04 cycle.
  4. charmcraft.yaml now uses the new base, platforms syntax that was introduced with charmcraft v3 for charms that support [email protected] and greater.

Changes:

* `SackdManager` now comes with `slurm_ops`
* The apt charm library now supports adding third-party repositories on noble.

Signed-off-by: Jason C. Nucciarone <[email protected]>
Upgrade charms from Jammy to Noble. Key changes are that the charms
now use the `base` & `platform` syntax, and the charms now
use the `charm-binary-python-packages` to install rust-based
packages. This helps shorten the build times from ~10 minutes
to roughly ~2 minutes.

Signed-off-by: Jason C. Nucciarone <[email protected]>
`mysql-router` does not yet support noble as a base so disable it
in the integration tests and directly relate to the `mysql` operator.
Created a generic TODO comment so it can be found in TODO tools
such as PyCharm's editor.

Signed-off-by: Jason C. Nucciarone <[email protected]>
@NucciTheBoss NucciTheBoss added the enhancement New feature or request label Dec 8, 2024
Copy link
Contributor

@dsloanm dsloanm 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 - no problems deploying and running a test job.

I assume that stuck [email protected] CI check was fixed by 7516ce3 and can be ignored.

@NucciTheBoss
Copy link
Member Author

Hmm... re-running doesn't seem to refresh the state, so I might need to manipulate the branch protection rules for a hot second.

@jamesbeedy
Copy link
Contributor

+1 Nice!!!!

@NucciTheBoss NucciTheBoss merged commit cdbf1a8 into charmed-hpc:main Dec 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants