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

Commit

Permalink
project cleanup
Browse files Browse the repository at this point in the history
These changes improve the slurmdbd charm in a number of ways.

1) remove slurm-ops-manager
2) remove unused code
3) emit relation data to the charm via events
4) remove dependency on slurmctld
5) general code cleanup
6) consolidate yaml files into charmcraft.yaml
7) add type tests
8) rename interface slurmdbd -> slurmctld
  • Loading branch information
jamesbeedy committed Jun 9, 2024
1 parent 43c4eac commit 1e863d8
Show file tree
Hide file tree
Showing 23 changed files with 5,040 additions and 2,825 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ jobs:
- name: Run tests
run: tox -e unit

type-check:
name: Mypy tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Run tests
run: tox -e type

integration-test:
strategy:
fail-fast: true
Expand All @@ -62,6 +73,7 @@ jobs:
needs:
- inclusive-naming-check
- lint
- type-check
- unit-test
steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ __pycache__/
.idea
.vscode/
version
.ruff_cache/
.mypy_cache/
56 changes: 35 additions & 21 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
# Copyright 2020 Omnivector Solutions, LLC.
# Copyright 2024 Omnivector, LLC.
# See LICENSE file for licensing details.

name: slurmdbd
type: charm

assumes:
- juju

summary: |
Slurm DBD accounting daemon.
description: |
This charm provides slurmdbd, munged, and the bindings to other utilities
that make lifecycle operations a breeze.
slurmdbd provides a secure enterprise-wide interface to a database for
SLURM. This is particularly useful for archiving accounting records.
links:
contact: https://matrix.to/#/#hpc:ubuntu.com

source:
- https://github.com/omnivector-solutions/slurmdbd-operator

issues:
- https://github.com/omnivector-solutions/slurmdbd-operator/issues

requires:
database:
interface: mysql_client
fluentbit:
interface: fluentbit

provides:
slurmctld:
interface: slurmdbd

bases:
- build-on:
- name: ubuntu
Expand All @@ -10,22 +43,3 @@ bases:
- name: ubuntu
channel: "22.04"
architectures: [amd64]

parts:
charm:
build-packages: [git]
charm-python-packages: [setuptools]

# Create a version file and pack it into the charm. This is dynamically generated
# as part of the build process for a charm to ensure that the git revision of the
# charm is always recorded in this version file.
version-file:
plugin: nil
build-packages:
- git
override-build: |
VERSION=$(git -C $CRAFT_PART_SRC/../../charm/src describe --dirty --always)
echo "Setting version to $VERSION"
echo $VERSION > $CRAFT_PART_INSTALL/version
stage:
- version
23 changes: 0 additions & 23 deletions config.yaml

This file was deleted.

Loading

0 comments on commit 1e863d8

Please sign in to comment.