fix: PC-14236 SHR thresholds validation for less than 1 #1257
Annotations
2 errors
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '10954215412',
status: 422,
response: {
url: 'https://api.github.com/repos/nobl9/nobl9-go/releases/174958082',
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: 'Fri, 20 Sep 2024 06:17:53 GMT',
'github-authentication-token-expiration': '2025-01-16 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': '8088:BD1C6:27F4FB9:4BE7199:66ED1391',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4960',
'x-ratelimit-reset': '1726814615',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '40',
'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/nobl9-go/releases/174958082',
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-13893 Deprecate usage of objective's value field for Composite SLOs (#529) @ditrytus\\n- feat: Add e2e tests for Reports, extend reports validation (#541) @natalialanga\\n- feat: PC-13758 Add limits for recurring events (#533) @kubaceg\\n- feat: PC-13724 Add custom thresholds for SHR (#530) @lukasz-dobek\\n- feat: Switch to govy for validation (#527) @nieomylnieja\\n\\n## 🧰 Maintenance\\n\\n<details>\\n<summary>10 changes</summary>\\n\\n- chore: Update module github.com/MicahParks/jwkset to v0.5.20 (#546) @renovate\\n- chore: Update dependency cspell to v8.14.4 (#545) @renovate\\n- chore: Update dependency cspell to v8.14.3 (#544) @renovate\\n- chore: Update minor and patch Golang dependencies (#542) @renovate\\n- chore: Add explicit generic arguments as workaround for GoLand IDE bug (#539) @ditrytus\\n- chore: export metric spec validation rules (#536) @kuklyy\\n- chore: Update module golang.org/x/tools/cmd/goimports to v0.25.0 (#540) @renovate\\n- chore: Update module golang.org/x/text to v0.18.0 (#535) @renovate\\n- chore: Update dependency yaml to v2.5.1 (#532) @renovate\\n- chore: Update minor and patch Golang dependencies (#491) @renovate\\n</details>\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v0.85.0","tag_name":"v0.85.0","target_commitish":"refs/pull/547/merge"}`,
request: {}
},
event: {
id: '10954215412',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'be63493b3cfcfd7d1d40457039449807c2913d52',
before: '7a75bf2bee6eb4df6180dd754dd71431a757f01b',
number: 547,
organization: {
avatar_url: 'https://avatars.gith
|
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: '10954215412',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'be63493b3cfcfd7d1d40457039449807c2913d52',
before: '7a75bf2bee6eb4df6180dd754dd71431a757f01b',
number: 547,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/58781264?v=4',
description: '',
events_url: 'https://api.github.com/orgs/nobl9/events',
hooks_url: 'https://api.github.com/orgs/nobl9/hooks',
id: 58781264,
issues_url: 'https://api.github.com/orgs/nobl9/issues',
login: 'nobl9',
members_url: 'https://api.github.com/orgs/nobl9/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjU4NzgxMjY0',
public_members_url: 'https://api.github.com/orgs/nobl9/public_members{/member}',
repos_url: 'https://api.github.com/orgs/nobl9/repos',
url: 'https://api.github.com/orgs/nobl9'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/547/comments'
},
commits: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/547/commits'
},
html: { href: 'https://github.com/nobl9/nobl9-go/pull/547' },
issue: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/547'
},
review_comment: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/547/comments'
},
self: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/547'
},
statuses: {
href: 'https://api.github.com/repos/nobl9/nobl9-go/statuses/be63493b3cfcfd7d1d40457039449807c2913d52'
}
},
active_lock_reason: null,
additions: 3,
assignee: null,
assignees: [],
author_association: 'CONTRIBUTOR',
auto_merge: {
commit_message: '## Motivation\r\n' +
'\r\n' +
'Flaky validation for System Health Review thresholds. They are not\r\n' +
'supposed to go up to 1.\r\n' +
'\r\n' +
'## Summary\r\n' +
'\r\n' +
'Changed validation from LTE to LT and adjusted tests.\r\n' +
'\r\n' +
'## Release Notes\r\n' +
'\r\n' +
'System Health Review spec now allows for green and red thresholds to be\r\n' +
'less than 1, not less than or equal to 1.',
commit_title: 'fix: PC-14236 SHR thresholds validation for less than 1 (#547)',
enabled_by: {
avatar_url: 'https://avatars.githubusercontent.com/u/32738712?v=4',
events_url: 'https://api.github.com/users/lukasz-dobek/events{/privacy}',
followers_url: 'https://api.github.com/users/lukasz-dobek/followers',
following_url: 'https://api.github.com/users/lukasz-dobek/following{/other_user}',
gists_url: 'https://api.github.com/users/lukasz-dobek/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/lukasz-dobek',
id: 32738712,
login: 'lukasz-dobek',
node_id: 'MDQ6VXNlcjMyNzM4NzEy',
organizations_url: 'https://api.github.com/users/lukasz-dobek/orgs',
received_events_url: 'https://api.github.com/users/lukasz-dobek/received_events',
repos_url: 'https://api.github.com/users/lukasz-dobek/repos',
site_admin: false,
|
This job succeeded
Loading