Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 180 additions & 0 deletions docs/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3982,6 +3982,17 @@
"null"
]
},
"preview": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/RunPreview",
"description": "Where the preview of the pull request's head stands: its checks,\naddress and captured pages. Null when nothing was recorded."
}
]
},
"progress_notes": {
"description": "Notes it wrote while working, in order.",
"examples": [
Expand Down Expand Up @@ -4165,6 +4176,16 @@
"null"
]
},
"waiting_line": {
"description": "What the run's pull request waits on, in one plain line, and\nwhether it is ready for review: \"Waiting on: an approving review from\na person on #12 (this repo requires one before CoderHelm merges).\nReady for review: checks passed, preview checked.\" Built from\n`merge_standing`, `draft_hold` and `preview`. Null before the run\nhas a pull request.",
"examples": [
null
],
"type": [
"string",
"null"
]
},
"waiting_on": {
"oneOf": [
{
Expand Down Expand Up @@ -4804,6 +4825,165 @@
],
"type": "object"
},
"RunPreview": {
"description": "Where the preview of the run's pull request head stands\n(`common::preview`).",
"properties": {
"checks": {
"description": "The preview and end-to-end checks that cover the change, on the head.",
"examples": [
[
{
"name": "E2E on preview",
"outcome": "passed",
"url": "https://github.com/acme/web/actions/runs/1/job/2"
}
]
],
"items": {
"$ref": "#/components/schemas/RunPreviewCheck"
},
"type": "array"
},
"e2e_covered": {
"description": "The change adds or updates an end-to-end spec.",
"examples": [
true
],
"type": "boolean"
},
"e2e_required": {
"description": "The change alters what a person sees in a repository with an\nend-to-end suite, so it needs an end-to-end spec.",
"examples": [
true
],
"type": "boolean"
},
"labels_added": {
"description": "Labels CoderHelm added to start the preview and its end-to-end checks.",
"examples": [
[
"E2E:signup"
]
],
"items": {
"type": "string"
},
"type": "array"
},
"shots": {
"description": "The changed pages captured on the preview, at desktop and phone width.",
"examples": [
[
{
"page": "/signup",
"src": "https://github.com/acme/web/blob/abc/pr-1/abc/signup-desktop.png?raw=true",
"width": "desktop"
}
]
],
"items": {
"$ref": "#/components/schemas/RunPreviewShot"
},
"type": "array"
},
"stage": {
"description": "`not_needed`, `triggered`, `deploying`, `ready`, `checked`,\n`failed` or `blocked`.",
"examples": [
"checked"
],
"type": "string"
},
"url": {
"description": "The preview's address; empty when it isn't known.",
"examples": [
"https://pr-1.preview-web.example.com"
],
"type": "string"
},
"why": {
"description": "Why there is no preview or no capture, one line; empty otherwise.",
"examples": [
""
],
"type": "string"
}
},
"required": [
"stage",
"url",
"labels_added",
"checks",
"shots",
"why",
"e2e_required",
"e2e_covered"
],
"type": "object"
},
"RunPreviewCheck": {
"description": "One preview or end-to-end check on the head of the run's pull request.",
"properties": {
"name": {
"description": "The check's name, as GitHub shows it.",
"examples": [
"E2E on preview"
],
"type": "string"
},
"outcome": {
"description": "`passed`, `failed`, `running` or `skipped`.",
"examples": [
"passed"
],
"type": "string"
},
"url": {
"description": "The check's page on GitHub; empty when it has none.",
"examples": [
"https://github.com/acme/web/actions/runs/1/job/2"
],
"type": "string"
}
},
"required": [
"name",
"outcome",
"url"
],
"type": "object"
},
"RunPreviewShot": {
"description": "One page captured on the preview.",
"properties": {
"page": {
"description": "The page's path on the preview.",
"examples": [
"/signup"
],
"type": "string"
},
"src": {
"description": "The image's address.",
"examples": [
"https://github.com/acme/web/blob/abc/pr-1/abc/signup-desktop.png?raw=true"
],
"type": "string"
},
"width": {
"description": "`desktop` or `phone`.",
"examples": [
"desktop"
],
"type": "string"
}
},
"required": [
"page",
"width",
"src"
],
"type": "object"
},
"RunQuestion": {
"description": "A question a run asked a person.",
"properties": {
Expand Down
5 changes: 5 additions & 0 deletions docs/incidents/bu_web_change_unchecked.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# bu. `bu_web_change_unchecked`

**What happened:** A run opened a pull request on a web app and called it ready with nothing looked at in a browser. The preview deploy and its end-to-end checks skip drafts and run on a label; the description was written while the pull request was a draft, so every deploy and end-to-end check read "skipped (its conditions left this PR out)" next to passing unit tests. It said "No screenshot: CoderHelm had no runnable preview", gave `npm test` as the way to check it, and the tests check passed on 0 of 6 changed test files failing without the change. A second pull request listed `npm test` in an unrelated folder under Open items and said the end-to-end log couldn't be read while the e2e workflow's comment named the failing test.

**The guarantee:** The preview and end-to-end jobs that cover the change, and the labels that start them, come from the workflow files; a draft is marked ready for checks that skip drafts and is ready only once they pass. A skipped check that covers the change is a gap CoderHelm closes, never evidence. The changed pages are captured at desktop and phone width once the preview is up. "How to check" and Open items name the CI job that covers the changed paths, or say none does. A failed end-to-end check is said from its own report, with whether the change caused it. Zero tests failing without the change is never a pass. The run page and the description say in one line what the pull request waits on.
Loading
Loading