Skip to content

chore: update charm definitions to support Juju 4.0#2231

Open
Ninfa-Jeon wants to merge 5 commits intocanonical:mainfrom
Ninfa-Jeon:update-charmdef-juju4
Open

chore: update charm definitions to support Juju 4.0#2231
Ninfa-Jeon wants to merge 5 commits intocanonical:mainfrom
Ninfa-Jeon:update-charmdef-juju4

Conversation

@Ninfa-Jeon
Copy link
Contributor

@Ninfa-Jeon Ninfa-Jeon commented Feb 19, 2026

Done

  • Updated dashboard charm definitions to support Juju 4.0
  • Added juju-wait-for action to use juju status polling instead of juju wait-for command as it has been deprecated in 4.0. Refer this for more info.

QA

  • Existing E2E workflows stay unaffected with changes to charm build step.
  • New workflows for 4.0 no longer fail with the following error:
ERROR cannot deploy "dashboard": not supported Charm cannot be deployed because:
charm requires Juju version < 4.0.0, model has version 4.0.1
  • New workflows only fail at the "Run tests" step

Details

https://warthogs.atlassian.net/browse/WD-33971

@Ninfa-Jeon Ninfa-Jeon self-assigned this Feb 19, 2026
@webteam-app
Copy link

@Ninfa-Jeon Ninfa-Jeon force-pushed the update-charmdef-juju4 branch 5 times, most recently from edaa9fe to 6cd149a Compare February 24, 2026 16:57
@github-actions
Copy link

github-actions bot commented Feb 24, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 97.45% (🎯 95%) 16920 / 17361
🔵 Statements 97.45% (🎯 95%) 16920 / 17361
🔵 Functions 98.28% (🎯 95%) 687 / 699
🔵 Branches 92.02% (🎯 90%) 3345 / 3635
File CoverageNo changed files found.
Generated in workflow #2603 for commit a793361 by the Vitest Coverage Report Action

@Ninfa-Jeon Ninfa-Jeon force-pushed the update-charmdef-juju4 branch from 6cd149a to 52cd528 Compare February 24, 2026 17:25
timeout_minutes: 1
max_attempts: 5 # Retry the wait-for with a short timeout in case it gets stuck and times out. If it fails after multiple tries it's probably a real error.
command: |
ARGS=(juju wait-for ${{ inputs.type }} ${{ inputs.name }} --timeout=${{ inputs.timeout_minutes }}m)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can simplify this action and drop the wait-for for Juju 3.6 and just poll the status for all Juju versions. This would also save having to pass the Juju version.

@Ninfa-Jeon Ninfa-Jeon force-pushed the update-charmdef-juju4 branch 2 times, most recently from 85181e8 to 6e0f862 Compare February 25, 2026 04:04
@Ninfa-Jeon Ninfa-Jeon force-pushed the update-charmdef-juju4 branch from 6e0f862 to 3e276ac Compare February 26, 2026 07:47
@Ninfa-Jeon Ninfa-Jeon force-pushed the update-charmdef-juju4 branch from ba9c17b to a793361 Compare February 26, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants