Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

test: fix unit tests & pull CI changes #40

Merged

Conversation

jedel1043
Copy link
Contributor

@jedel1043 jedel1043 commented Jul 18, 2024

Description

Fixes the unit tests that were failing thanks to #35.
Updates slurm_ops to the latest version.
Merges from the main branch to use the new CI.

How was the code tested?

Locally on my Ubuntu Jammy development environment

Checklist

  • I am the author of these changes, or I have the rights to submit them.
  • I have added the relevant changes to the README and/or documentation.
  • I have self reviewed my own code.
  • All requested changes and/or review comments have been resolved.

NucciTheBoss and others added 7 commits July 15, 2024 16:50
Needed to add the part `charm: {}` to make the charm pack correctly.
jedel1043 and I found that this part declaration must be included in
`charmcraft.yaml`, or it will fail to pack the charm correctly.
nhc will be there, but the charm won't :'(

Signed-off-by: Jason C. Nucciarone <[email protected]>
Previously, if tar failed to extract the contents of the nhc
tarball to `/tmp/nhc`, _install_nhc_from_tarball would throw
an unhandled excepting that would cause the charm to bork.

Now we catch if tar fails to extract the contents of the tarball,
log the error output for the asministrator to read, and return False
so that the slurmd operator can properly handle and install failure.

Signed-off-by: Jason C. Nucciarone <[email protected]>
This will always pull from `main` when testing against `slurmctld-operator`, which is arguably better when trying to do breaking changes in integrations between the charms.
This fixes the CI release job, because 2.5.0 added support for the unified charmcraft.yaml file.
…ll-ci-fixes

Pulls the latest CI changes to be able to correctly test our patches.
@jedel1043 jedel1043 force-pushed the fix-unit-tests-experimental branch from f9531b4 to fb1222c Compare July 18, 2024 23:38
@jedel1043 jedel1043 changed the title test: fix unit tests test: fix unit tests & pull CI changes Jul 18, 2024
Copy link
Member

@NucciTheBoss NucciTheBoss left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for fixing the unit tests 🧪

@NucciTheBoss
Copy link
Member

Integration tests will fail because the Slurm version in main is incompatible with the Slurm version in experimental.

@NucciTheBoss NucciTheBoss merged commit 26496da into charmed-hpc:experimental Jul 19, 2024
4 of 6 checks passed
@jedel1043 jedel1043 deleted the fix-unit-tests-experimental branch July 19, 2024 18:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants