Skip to content

feat: Support for budget drop alerting condition #473

feat: Support for budget drop alerting condition

feat: Support for budget drop alerting condition #473

Triggered via pull request June 25, 2024 10:37
Status Success
Total duration 14s
Artifacts

release-drafter.yml

on: pull_request
update_release_draft
5s
update_release_draft
Fit to window
Zoom out
Zoom in

Annotations

2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"} { name: 'HttpError', id: '9660921426', status: 422, response: { url: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/releases/157892197', status: 422, headers: { 'access-control-allow-origin': '*', 'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset', connection: 'close', 'content-length': '210', 'content-security-policy': "default-src 'none'", 'content-type': 'application/json; charset=utf-8', date: 'Tue, 25 Jun 2024 10:37:13 GMT', 'github-authentication-token-expiration': '2025-02-13 00:00:00 +0100', 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', server: 'GitHub.com', 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', vary: 'Accept-Encoding, Accept, X-Requested-With', 'x-accepted-github-permissions': 'contents=write', 'x-content-type-options': 'nosniff', 'x-frame-options': 'deny', 'x-github-api-version-selected': '2022-11-28', 'x-github-media-type': 'github.v3; format=json', 'x-github-request-id': '3478:73A6C:2FC69B:5BFD86:667A9DD9', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4972', 'x-ratelimit-reset': '1719314215', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '28', 'x-xss-protection': '0' }, data: { message: 'Validation Failed', errors: [ { resource: 'Release', code: 'invalid', field: 'target_commitish' } ], documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release', status: '422' } }, request: { method: 'PATCH', url: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/releases/157892197', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.13.1 (linux; x64)', authorization: 'token [REDACTED]', 'content-type': 'application/json; charset=utf-8' }, body: `{"body":"# What's Changed\\n\\n## 🚀 Features\\n\\n- feat: PC-12978 Add composite examples (#241) @BSski\\n\\n## 🧰 Maintenance\\n\\n<details>\\n<summary>15 changes</summary>\\n\\n- chore: Update dependency cspell to v8.9.1 (#257) @renovate\\n- chore: Update dependency cspell to v8.9.0 (#256) @renovate\\n- chore: Update actions/checkout action to v4.1.7 (#255) @renovate\\n- chore: Correct default project for acceptance tests dispatch workflow (#254) @nieomylnieja\\n- chore: Update acc-tests-dispatch.yml (#253) @nieomylnieja\\n- chore: Update dependency golangci/golangci-lint to v1.59.1 (#252) @renovate\\n- chore: Update dependency yaml to v2.4.5 (#251) @renovate\\n- chore: Update dependency yaml to v2.4.4 (#250) @renovate\\n- chore: Update module golang.org/x/vuln/cmd/govulncheck to v1.1.2 (#249) @renovate\\n- chore: Update module golang.org/x/tools/cmd/goimports to v0.22.0 (#247) @renovate\\n- chore: Update dependency cspell to v8.8.4 (#244) @renovate\\n- chore: Update dependency yaml to v2.4.3 (#243) @renovate\\n- chore: Update module github.com/nobl9/nobl9-go to v0.82.0 (#242) @renovate\\n- chore: Update module github.com/nobl9/nobl9-go to v0.82.0-rc7 (#240) @renovate\\n- chore: Update module github.com/hashicorp/terraform-plugin-docs to v0.19.3 (#239) @renovate\\n</details>\\n\\n## 🤖 Dependency Updates\\n\\n<details>\\n<summary>13 changes</summary>\\n\\n- chore: Update dependency cspell to v8.9.1 (#257) @renovate\\n- chore: Update dependency cspell to v8.9.0 (#256) @renovate\\n- chore: Update actions/checkout action to v4.1.7 (#255) @renovate\\n- chore: Update dependency golangci/golangci-lint to v1.59.1 (#252) @renovate\\n- chore: Update
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"} at /home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:8462:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:30793:18) { name: 'AggregateError', event: { id: '9660921426', name: 'pull_request', payload: { action: 'edited', changes: { body: { from: '## Motivation\r\n' + '\r\n' + 'Add support for new alerting condition based on budget drop.\r\n' + '\r\n' + '## Summary\r\n' + '\r\n' + 'Add examples and tests for `budgetDrop` measurement.\r\n' + '\r\n' + '## Related Changes\r\n' + '\r\n' + '- https://github.com/nobl9/nobl9-go/releases/tag/v0.83.0-rc1\r\n' + '\r\n' + '## Testing\r\n' + '\r\n' + '- Added unit tests.\r\n' + '- Manually tested with `main.tf`:\r\n' + '```tf\r\n' + 'terraform {\r\n' + ' required_providers {\r\n' + ' nobl9 = {\r\n' + ' source = "nobl9.com/nobl9/nobl9"\r\n' + ' version = "0.27.0"\r\n' + ' }\r\n' + ' }\r\n' + '}\r\n' + '\r\n' + 'provider "nobl9" {\r\n' + ' client_id = ""\r\n' + ' client_secret = ""\r\n' + ' okta_org_url = ""\r\n' + ' okta_auth_server = ""\r\n' + '}\r\n' + '\r\n' + 'resource "nobl9_project" "this" {\r\n' + ' display_name = "Test N9 Terraform"\r\n' + ' name = "test-n9-terraform"\r\n' + '}\r\n' + '\r\n' + 'resource "nobl9_service" "this" {\r\n' + ' name = "my-front-page"\r\n' + ' project = nobl9_project.this.name\r\n' + '}\r\n' + '\r\n' + '# Fast budget drop\r\n' + 'resource "nobl9_alert_policy" "fast_budget_drop" {\r\n' + ' name = "fast-budget-drop"\r\n' + ' project = nobl9_project.this.name\r\n' + ' display_name = "${nobl9_project.this.display_name} Fast budget drop (10% over 15min)"\r\n' + ' severity = "High"\r\n' + ' description = "Budget dropped by 10% over 15 minutes"\r\n' + ' cooldown = "5m"\r\n' + '\r\n' + ' condition {\r\n' + ' measurement = "budgetDrop"\r\n' + ' value = 0.1\r\n' + ' alerting_window = "15m"\r\n' + ' }\r\n' + '}\r\n' + '\r\n' + '# Slow budget drop\r\n' + 'resource "nobl9_alert_policy" "slow_budget_drop" {\r\n' + ' name = "slow-budget-drop"\r\n' + ' project = nobl9_project.this.name\r\n' + ' display_name = "${nobl9_project.this.display_name} Slow budget drop (5% over 1h)"\r\n' + ' severity = "High"\r\n' + ' description = "Budget dropped by 5% over 1 hour"\r\n' + ' cooldown = "5m"\r\n' + '\r\n' + ' condition {\r\n' + ' measurement = "budgetDrop"\r\n' + ' value = 0.05\r\n' + ' alerting_window = "1h"\r\n' + ' }\r\n' + '}\r\n' + '```\r\n' + '\r\n' + '## Release Notes\r\n' + '\r\n' + 'Add support for new alerting condition based on budget drop with new measurement `budgetDrop`.\r\n' + '\r\n' + 'Example:\r\n' + '```tf\r\n' + '# Fast budget drop\r\n' + 'resource "nobl9_alert_policy" "fast_budget_drop" {\r\n' +