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

Snap ratings #12

Merged
merged 15 commits into from
Oct 12, 2023
Merged

Snap ratings #12

merged 15 commits into from
Oct 12, 2023

Conversation

matthew-hagemann
Copy link
Collaborator

@matthew-hagemann matthew-hagemann commented Oct 10, 2023

  • Snap packaging for Ratings service
  • Updated charm to make use of the snap instead of a raw install + systemd
  • Added integration + functional tests
  • Updated CI pipelines

@matthew-hagemann matthew-hagemann force-pushed the snap-ratings branch 2 times, most recently from 96b1741 to 6b022cf Compare October 11, 2023 11:41
@matthew-hagemann
Copy link
Collaborator Author

@jnsgruk I have made the changes you recommenced. If you are able, I'd really appreciate a review of the changes regarding the snap and using it in the charm 🙂

Copy link
Contributor

@jnsgruk jnsgruk left a comment

Choose a reason for hiding this comment

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

First pass, happy to do another, but looking much cleaner! Nice work!

snap/README.md Outdated Show resolved Hide resolved
snap/hooks/configure Outdated Show resolved Hide resolved
snap/README.md Outdated Show resolved Hide resolved
snap/README.md Outdated Show resolved Hide resolved
snap/hooks/configure Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
vm_operator/config.yaml Show resolved Hide resolved
vm_operator/config.yaml Outdated Show resolved Hide resolved
vm_operator/src/ratings.py Outdated Show resolved Hide resolved
vm_operator/src/ratings.py Outdated Show resolved Hide resolved
fix(snap): remove placeholder connection uri's

fix(snap): randomized default jwt

fix(snap): use install over cp + chmod

fix(app): remove debug logs

fix(snap): prevent snap from starting on install

docs(charm): update config to match README.md

fix(charm): remove option restart on config change
@matthew-hagemann
Copy link
Collaborator Author

matthew-hagemann commented Oct 12, 2023

Thank you @jnsgruk! I have made those changes 🙂

WRT not starting the snap on install/until the configuration values have been set, would we want to also update the start hook in the charm to not invoke start on the snap, but maybe just update the unit message to "waiting on database relation"? Then only actually invoke start when the relation is created?

Copy link
Contributor

@jnsgruk jnsgruk left a comment

Choose a reason for hiding this comment

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

Looking much better!

@matthew-hagemann matthew-hagemann merged commit 042290c into ubuntu:dev Oct 12, 2023
7 checks passed
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