generated from canonical/is-charms-template-repo
-
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.
feat: Provide an action to redeliver failed webhook deliveries (#40)
* WIP checkin public interface * change public interface to use an action * simplify public interface * move logic to the workload * fix charmcraft.yaml * use paas-charm * fix wrong script name * lint * revert tox.ini changes * change since argument to take seconds * revert interface to redeliver * WIP checkin * checkin high-level impl * use private function to abstract github api interaction away * impl private function to redeliver * update perms * add support for org webhooks * add exception handling * add arg parsing * add script to coverage check * add first version of charm action * only forward webhooks with action type queued * only redeliver webhooks with workflow_job event * use constants from outer module * checkin auth details parsing * add -id suffix to secret parms * support str|int for app-id * refactor a bit * fix wrong webhook_origin for repo * WIP checkin integration tests * WIP checkin integration tests * more integration tests * fix workflow file and cancel jobs * add non-secrets args to extra-arguments * lint * lint * split modules in integration test * use pytest_asyncio fixture * rename unit test file * bump juju version * use client id * restructure script * use env vars for secrets in integration test * lint * lint * ignore cve * fix test_app * pass over auth via env * fix/add integration tests * remove sys exit from private fcts * lint and refactor integration tests * ignore bandit warnings * recover coverage and fix none_fields check * provide better action failed message on argument parsing error * refmt * use operator-workflows from main * move arg validation to workload * remove action from required non-null fields * add information for integration test arguments. * pass pydantic validation error msg to github app auth details * add note about juju 3.3 * add tox file for charm code * re-enable self-hosted runners * only set env vars if present * _WebhookDeliveryAttempt -> _WebhookDeliveryAttempts * lint * inline function * use edge runners * use edge runners in integration tests * move inline comment * remove nesting * lint * ignore cve * try rockcraft with latest/stable * Revert "try rockcraft with latest/stable" This reverts commit 5b139d2. * pin paas-charm 1.1.0 * update docs * fix lint
- Loading branch information
Showing
23 changed files
with
1,474 additions
and
35 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
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
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,15 @@ | ||
name: Webhook Redelivery Test | ||
# This workflow will be triggered by the integration test used to test webhook redelivery. | ||
# It is not necessary to be picked up by a runner, we only need to ensure a webhook is triggered. | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
dispatch-job: | ||
runs-on: ["self-hosted", "invalid-flavor"] # The job is not supposed to take a runner, therefore we use an invalid-flavor | ||
steps: | ||
- name: Hello world | ||
run: | | ||
echo "Hello, world" |
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
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
paas-app-charmer~=1.4.0 | ||
paas-charm~=1.1.0 |
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
Oops, something went wrong.