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

Strict interfaces test #748

Merged
merged 11 commits into from
Oct 22, 2024
Merged

Conversation

louiseschmidtgen
Copy link
Contributor

Strict interfaces test

This test verifies that the snap store has auto-connected all necessary interfaces for our strict snap in a nightly test on our strict/edge snaps.

@louiseschmidtgen louiseschmidtgen requested a review from a team as a code owner October 18, 2024 16:25
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

Generally great work but a comment on maintainability.
We cannot hardcode the channels.

os: ["ubuntu:20.04"]
arch: ["amd64", "arm64"]
release: ["1.31/edge", "1.30/edge"]
fail-fast: false # TODO: remove once arm64 works
Copy link
Contributor

Choose a reason for hiding this comment

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

this should work now, right @addyess ?

matrix:
os: ["ubuntu:20.04"]
arch: ["amd64", "arm64"]
release: ["1.31/edge", "1.30/edge"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not be maintainable.
Please do something like this:
https://github.com/canonical/k8s-snap/blob/main/.github/workflows/nightly-test.yaml#L47

so that the channels are dynamically obtained:
https://github.com/canonical/k8s-snap/blob/main/tests/integration/tests/test_version_upgrades.py#L23

Bonus points if you refactor this logic into a reusable function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Baking this into Python, then we can integrate this nicely in the integration test like your version upgrades.

Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM, minor nit

tests/integration/tests/test_strict_interfaces.py Outdated Show resolved Hide resolved
@louiseschmidtgen louiseschmidtgen merged commit e30d4ad into main Oct 22, 2024
20 checks passed
@louiseschmidtgen louiseschmidtgen deleted the KU-1813/strict-interfaces-test branch October 22, 2024 14:02
evilnick pushed a commit to evilnick/k8s-snap that referenced this pull request Nov 14, 2024
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