chore: bump versions of things to support testing of this charm again - #16
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions workflow for tests by bumping action versions to their latest releases and modernizing the Python and Kubernetes versions used in the test suite.
Key Changes:
- Updated GitHub Actions to newer versions (checkout v3→v4, setup-python v4→v6, upload-artifact v2→v4)
- Modified Python testing versions from 3.8/3.9/3.10 to 3.10/3.12
- Upgraded MicroK8s channel from 1.26/stable to 1.34/stable
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
addyess
force-pushed
the
chore/bump-test-actions
branch
from
December 18, 2025 17:39
1c3a3ea to
ba296e5
Compare
addyess
force-pushed
the
chore/bump-test-actions
branch
from
December 18, 2025 19:58
fbd0b7d to
d2ab10a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates both the
opa-audit-operatorandopa-manager-operatorprojects to modernize dependencies, streamline testing workflows, and update documentation and code to use newer Juju commands. The changes improve compatibility with newer Ubuntu and Python versions, simplify integration tests, and ensure consistency in developer and user instructions.CI/CD and Dependency Updates:
3.10,3.12), latest Ubuntu runners, and upgraded action versions for better performance and compatibility. Also, the inclusive naming check now uses the canonical repository. (.github/workflows/tests.yaml) [1] [2] [3]requirements.txtin both operators to specify compatible version ranges forops,lightkube, and replaced a Git dependency with a PyPI package forops.manifest. (opa-audit-operator/requirements.txt,opa-manager-operator/requirements.txt)charmcraft.yamlin both operators to use Ubuntu 22.04 as the build and run base, dropping explicit support for Ubuntu 20.04 and some architectures. (opa-audit-operator/charmcraft.yaml,opa-manager-operator/charmcraft.yaml).charmcraft-channelfile to specify the charmcraft channel for builds. (.charmcraft-channel)Juju Command and Documentation Updates:
juju runinstead of the deprecatedjuju run-actionfor executing actions, ensuring consistency with current Juju best practices. (opa-audit-operator/README.md,opa-audit-operator/src/charm.py,opa-manager-operator/README.md,opa-manager-operator/src/charm.py) [1] [2] [3] [4]Integration Test Improvements:
unit.run_action(...).wait()API instead of invoking Juju CLI commands directly, simplifying test logic and improving reliability. (opa-audit-operator/tests/integration/test_charm.py,opa-manager-operator/tests/integration/test_charm.py) [1] [2] [3] [4] [5] [6]This pull request updates both the CI workflow and the operator dependencies to use newer versions and more consistent configurations. The main changes include upgrading Python and Ubuntu versions in CI, updating dependency version constraints, and aligning build environments for both operators.CI/CD workflow updates:
ubuntu-latestfor integration tests instead ofubuntu-22.04. Also upgraded several GitHub Actions to their latest major versions and improved how thecharmcraftchannel is set. [1] [2].charmcraft-channelfile to specify the charmcraft channel used in CI.Dependency and build environment updates:
requirements.txtfor bothopa-audit-operatorandopa-manager-operatorto specify version ranges forops,lightkube, andops.manifest, replacing the previous unconstrained or git-based dependencies.charmcraft.yamlfor both operators to use Ubuntu 22.04 as the build and run base, removing Ubuntu 20.04 and some architecture variants for consistency and modernization.This pull request updates the CI workflow and environment to use newer versions of dependencies and tools, improves compatibility with current Python and Kubernetes versions, and ensures that the proper charmcraft channel is used in integration tests.CI workflow and dependency updates:
canonical/inclusive-naminginstead ofcanonical-web-and-design/Inclusive-naming).actions/checkout@v4,actions/setup-python@v6, andactions/upload-artifact@v4). [1] [2]Integration test environment improvements:
1.26/stableto1.34-strict/stableand made the charmcraft channel configurable by reading from the new.charmcraft-channelfile. [1] [2].charmcraft-channelfile with2.x/stableto specify the charmcraft channel used during integration tests.