canonical / canonical/charm-integration-testing
Known Limitation: COS is not available on machine models
- Dominant language
- Python
- Stars
- 6
- Forks
- 1
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 96
Description
It is possible for a machine charm (e.g. `opentelemetry-collector`) to block until it receives certain integrations, which at the moment are only provided by COS charms. COS charms are only available for K8s models, so runs which involve charms like `opentelemetry-collector` and which are scheduled for machine environments cannot succeed.
Example:
https://test-observer.canonical.com/#/charms/136868?testExecutionId=686919&testResultId=11906592
That said, in the example above, we have the option of cross-model relations, so it is worth adding constraint overrides to charms like `opentelemetry-collector`, which should allow them to succeed in cross-model scenarios between machine and Kubernetes environments, while failing fast in machine-only environments.
Contributor guide
Research direction
No file or test is named; start by locating the constraint-override handling and existing tests for machine and Kubernetes model scheduling. Use the opentelemetry-collector example as context. Done means cross-model machine/Kubernetes runs can succeed, while machine-only runs fail fast when COS integrations are unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, python
- Domain
- infrastructure, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100