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

[DPE-5588] Check against invalid arch #539

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sinclert-canonical
Copy link

@sinclert-canonical sinclert-canonical commented Dec 10, 2024

This PR introduces the usage of the newly created architecture lib (see #560) into the charm itself.

The shape of the integration tests, as well as the helper used to get the built charm in the architecture that mismatches the one of the host itself, have been adapted from the one Lucas created for PostgreSQL-k8s (see code).

@sinclert-canonical sinclert-canonical force-pushed the sinclert/5588/arch-check branch 3 times, most recently from 125f6ab to e3cab7b Compare December 10, 2024 17:13
@sinclert-canonical sinclert-canonical marked this pull request as ready for review December 10, 2024 17:19
src/charm.py Outdated Show resolved Hide resolved
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

we may want to reconsider our approach here for in-place upgrades/rollbacks

(i.e. if someone refreshes from correct arch to incorrect arch)

at least with refresh v3, this change may prevent rollbacks that we could potentially recover from on the wrong arch, but ensuring rollback safety might be a bit complicated

src/charm.py Outdated Show resolved Hide resolved
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

still have concerns about rollbacks & how this could makes things worse than if we continue to raise uncaught exception (#539 (review))

everything else looks good!

@sinclert-canonical
Copy link
Author

still have concerns about rollbacks & how this could makes things worse than if we continue to raise uncaught exception (#539 (review))

Not sure what you mean by that. Mind bringing this up during today's Technical Sync?

@sinclert-canonical sinclert-canonical marked this pull request as draft December 12, 2024 08:31
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