Skip to content
Open
2 changes: 1 addition & 1 deletion .copilot-collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

copilot:
# The version of the toolkit to use (matches a Release Tag in this repo)
version: "v0.5.0"
version: "v0.13.0"
# The collections you want to install
collections:
- charm-python
Expand Down
4 changes: 2 additions & 2 deletions .github/instructions/documentation.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The top-level `docs` directory should contain an overview or home page called `i

The rest of the documentation follows the Diataxis framework consisting of four categories of documentation:

1. **Tutorials**: A practice lesson that walks a user through a learning experience. Tutorials should be placed in the `docs/tutorial` directory, but sometimes they're placed in the top-level `docs` direcotry.
1. **Tutorials**: A practice lesson that walks a user through a learning experience. Tutorials should be placed in the `docs/tutorial` directory, but sometimes they're placed in the top-level `docs` directory.
2. **How-to guides**: Addresses real-world goals or problems by providing practical directions. How-to guides should be placed in the `docs/how-to` directory.
3. **Reference**: Contains technical descriptions of theoretical knowledge. Reference documents should be placed in the `docs/reference` directory.
4. **Explanation**: Provides context and background on topics for the user to understand the bigger picture. Explanation documents should be placed in the `docs/explanation` directory.
Expand Down Expand Up @@ -58,7 +58,7 @@ The tutorial should contain the following pieces:
provide information on the supported architecture(s) like AMD64 or ARM64.
Also include additional information if the
tutorial will require significant resources (CPU, RAM, or disk space). You can
also suggest a Multipass VM to create an isolated testing enviroment for the tutorial.
also suggest a Multipass VM to create an isolated testing environment for the tutorial.
- **Set up tutorial model**. The tutorial should begin at this point. Have
the user create Juju model with a predetermined name so that you can reference
the model name throughout the tutorial.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bot_pr_approval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Provide approval for bot PRs
on:
pull_request:

permissions:
pull-requests: write

jobs:
bot_pr_approval:
if: github.event.pull_request.user.login != 'github-actions[bot]'
uses: canonical/operator-workflows/.github/workflows/bot_pr_approval.yaml@main
permissions:
pull-requests: write
secrets: inherit
2 changes: 2 additions & 0 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
uses: canonical/operator-workflows/.github/workflows/integration_test.yaml@main
secrets: inherit
with:
charmcraft-channel: latest/stable
juju-channel: 3.6/stable
pre-build-script: tests/integration/cleanup-charmcraft-lxd-cache.sh
provider: lxd
test-tox-env: integration
modules: '["test_multi_unit_same_machine", "test_charm_no_runner", "test_charm_upgrade"]'
Expand Down
2 changes: 1 addition & 1 deletion base_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PyGithub==2.8.1
jinja2==3.1.6
fabric==3.2.2
ops==3.5.2
pylxd @ git+https://github.com/canonical/pylxd
pylxd==2.4.1
requests==2.33.0
typing-extensions==4.15.0
cryptography==49.0.0
Expand Down
24 changes: 24 additions & 0 deletions tests/integration/cleanup-charmcraft-lxd-cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Copyright 2026 Canonical Ltd.
# See LICENSE file for licensing details.

# Pre-build script for integration test operator-workflows action.
# https://github.com/canonical/operator-workflows/blob/main/.github/workflows/integration_test.yaml

# Removes stale charmcraft LXD base instances so charmcraft recreates them with
# fresh apt package lists. This avoids build failures when Ubuntu mirrors remove
# old package versions that are still referenced in cached Packages index files.

if lxc project list 2>/dev/null | grep -q "^| charmcraft"; then
echo "Removing stale charmcraft LXD base instances..."
lxc --project charmcraft list --format csv -c n 2>/dev/null \
| grep "^base-instance" \
| while IFS= read -r instance; do
echo "Deleting $instance"
lxc --project charmcraft delete --force "$instance" || true
done
echo "Cleanup complete."
else
echo "No charmcraft LXD project found, skipping cleanup."
fi
Loading