-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e106f04
commit 0c69112
Showing
5 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Bug report | ||
about: File a bug report | ||
labels: bug | ||
|
||
--- | ||
|
||
<!-- Thank you for submitting a bug report! All fields are required unless marked optional. --> | ||
|
||
## Steps to reproduce | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
1. | ||
|
||
## Expected behavior | ||
|
||
|
||
## Actual behavior | ||
<!-- If applicable, add screenshots --> | ||
|
||
|
||
## Versions | ||
|
||
<!-- Run `lsb_release -sd` --> | ||
Operating system: | ||
|
||
<!-- Run `juju version` --> | ||
Juju CLI: | ||
|
||
<!-- Model version from `juju status` --> | ||
Juju agent: | ||
|
||
<!-- App revision from `juju status` or (advanced) commit hash --> | ||
Charm revision: | ||
|
||
<!-- Run `lxd version` --> | ||
LXD: | ||
|
||
## Log output | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
<!-- Then, run `juju debug-log --replay > log.txt` and upload "log.txt" file here --> | ||
Juju debug log: | ||
|
||
<!-- (Optional) Copy the logs that are relevant to the bug & paste inside triple backticks below --> | ||
|
||
|
||
## Additional context | ||
<!-- (Optional) Add any additional information here --> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Issue | ||
|
||
|
||
## Solution |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Tests | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "53 0 * * *" # Daily at 00:53 UTC | ||
# Triggered on push to branch "main" by .github/workflows/release.yaml | ||
workflow_call: | ||
secrets: | ||
CHARMHUB_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tox | ||
# TODO: Consider replacing with custom image on self-hosted runner OR pinning version | ||
run: python3 -m pip install tox | ||
- name: Run linters | ||
run: tox run -e lint | ||
|
||
lib-check: | ||
name: Check libraries | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04 | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
build: | ||
name: Build charms | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release to 6/edge | ||
|
||
on: | ||
push: | ||
branches: | ||
- 6/edge | ||
|
||
jobs: | ||
ci-tests: | ||
uses: ./.github/workflows/ci.yaml | ||
secrets: | ||
CHARMHUB_TOKEN: "${{ secrets.CHARMHUB_TOKEN }}" | ||
|
||
build: | ||
name: Build charm | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
charmcraft-snap-channel: "latest/stable" | ||
|
||
release-charm: | ||
name: Release charm | ||
needs: | ||
- ci-tests | ||
- build | ||
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v5 | ||
with: | ||
channel: 6/edge | ||
artifact-name: ${{ needs.build.outputs.artifact-name }} | ||
secrets: | ||
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | ||
permissions: | ||
contents: write # Needed to create GitHub release | ||
|
||
release-libraries: | ||
name: Release libraries | ||
runs-on: ubuntu-latest | ||
needs: | ||
- ci-tests | ||
- release-charm | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Release any bumped charm libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2023 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Sync issue to Jira | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, closed] | ||
|
||
jobs: | ||
sync: | ||
name: Sync GitHub issue to Jira | ||
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v2 | ||
with: | ||
jira-base-url: https://warthogs.atlassian.net | ||
jira-project-key: DPE | ||
jira-component-names: mongodb-vm | ||
secrets: | ||
jira-api-token: ${{ secrets.JIRA_API_TOKEN }} | ||
jira-user-email: ${{ secrets.JIRA_USER_EMAIL }} | ||
permissions: | ||
issues: write # Needed to create GitHub issue comment |