← Back to issue list

Mark optional endpoints as optional in extensions

View original Github issue

Metadata

Project
charmcraft
Number
#2868
Type
issue
State
open
Author
wctaylor
Labels
Created
Updated
Closed

Current evaluation

Feature request to mark observability endpoints (logging, metrics-endpoint, grafana-dashboard) as optional in charmcraft extension metadata templates. Actively discussed with maintainer buy-in.

Suggested action: keep open

Reason: The issue has active maintainer engagement (8 comments in 3 days) and explicit buy-in: tonyandrewmeyer stated 'I'm very +1 on the profiles, including the 12-factor ones, having it explicit.' The fix is straightforward—adding `optional: true` to endpoint definitions in charmcraft/extensions/app.py lines 335-338 and updating corresponding tests.

Impact: 55 Quick Win: 46.75 Staleness: 5 Complexity: 15 Confidence: 85 Support Request: 10

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request The @canonical/solutions-qa team relies heavily on charm metadata in our automated charm testing pipelines in order to determine how to build a proper test bundle. Critically, we assume all endpoints that don't explicitly have `optional: true` are required, and this often results in extra charms pulled into tests that don't need to be there, which further increases the surface area for failures and often results in tests failing for reasons unrelated to the actual charm being tested. Observability endpoints are prime examples. They are almost never required for a charm to actually function. Marking endpoints like `logging`, `grafana-dashboard`, and `metrics-endpoint` as optional would significantly improve the accuracy and effectiveness of the charm integration testing initiative. The extensions generate metadata that don't mark these as optional, so we are requesting that the extensions get updated to add `optional: true` to the relevant endpoints. ### The problem it solves This solves the problem of larger-than-necessary charm bundles being deployed in the charm testing initiative, which increases the risk of irrelevant test failures, which in turn waste compute time.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 46.75
Staleness: 5
Complexity: 15
Confidence: 85
Support Request: 10
keep open Feature request to mark observability endpoints (logging, metrics-endpoint, grafana-dashboard) as optional in charmcraft extension metadata templates. Actively discussed with maintainer buy-in.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 40.0
Staleness: 0
Complexity: 20
Confidence: 90
Support Request: 0
keep open Feature request to mark observability endpoints as optional in charmcraft extensions; maintainers have engaged and agreed to the proposed template updates.
qwen3.6-35b-a3b-mtp-q6
Impact: 40
Quick Win: 34.0
Staleness: 5
Complexity: 15
Confidence: 75
Support Request: 25
needs triage Feature request to mark grafana-dashboard, metrics-endpoint, and logging endpoints as optional in extension-generated metadata.

Update history

Date Change
updated
updated
updated
updated
updated
updated
created

Related issues

No related issues found above the similarity threshold.