Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
32f271f
Wait for the deploy label's workflow before a draft leaves draft, and…
Nov 15, 2026
037f38d
no-mistakes(review): Harden deploy-label gate reads, holds and put-back
Nov 15, 2026
cdd76d8
no-mistakes(review): Prefer real deploy runs; gate keeps person-remov…
Nov 15, 2026
b73271e
no-mistakes(review): Send failed deploy runs to the CI fix loop
Nov 15, 2026
ad96dd1
no-mistakes(review): Feed hidden deploy-run failures to the CI fix loop
Nov 15, 2026
9e4049b
no-mistakes(review): Give each CI failure log its own share of budget
Nov 15, 2026
f9f6731
no-mistakes(lint): Format deploy-label code and fix worker clippy errors
Nov 15, 2026
9a72dc0
A description gets a final review, follows the repository's template,…
nambok Nov 15, 2026
afab444
Keep every event path inside its team (#704)
nambok Nov 15, 2026
c744beb
Release: Atlassian as one connection, infrastructure findings that fo…
nambok Nov 15, 2026
ce6a09e
Pin the dashboard for the Atlassian, infrastructure findings and team…
nambok Nov 15, 2026
4d306e8
A description built by an earlier writer is rebuilt after an upgrade …
nambok Nov 15, 2026
9ec33b2
Pin the dashboard for the PR description catch-up release (#716)
nambok Nov 15, 2026
48c4f31
Release: plans survive a cut revision; old security pull request desc…
nambok Nov 16, 2026
020c12d
Pin the dashboard for the description review and team isolation relea…
nambok Nov 16, 2026
407dbc3
Updater retries by itself when AWS throttles an update before it chan…
nambok Nov 16, 2026
c7d7a2b
Pin the dashboard for the November 16 release (#723)
nambok Nov 16, 2026
0a1be7a
Own review findings answered with proof close; a check cut short by t…
nambok Nov 16, 2026
7ef0c52
Relay lists every install admin; unconfirmed sign-ups get set up; tru…
nambok Nov 16, 2026
4cbf6c8
Chat: delete several chats at once (#728)
nambok Nov 16, 2026
217713b
GitHub sign-in lands on the person's one record; copied invites get s…
nambok Nov 16, 2026
aaebb5d
CI: skip the Rust steps when a pull request changes nothing Rust read…
nambok Nov 16, 2026
fb09720
Pin the dashboard for the November 16 afternoon release (#731)
nambok Nov 16, 2026
aaa11ff
Chat answers "what needs me" from every source in one call (#729)
nambok Nov 16, 2026
7fbb8da
Coder bash: read-only curl/wget run as page fetches, chains and histo…
nambok Nov 16, 2026
770ac8e
One short status comment per pull request and ticket (#736)
nambok Nov 16, 2026
51b428d
CI: Rust tests can no longer hold the runner for an hour (#738)
nambok Nov 16, 2026
83d8f74
Pin the dashboard for the November 16 evening release (#740)
nambok Nov 16, 2026
e736d4e
Held drafts are decided again on the first sweep after a release (#733)
nambok Nov 17, 2026
62b7b55
End-to-end results are read, never handed to a person for a permissio…
nambok Nov 17, 2026
020cf62
Pin the dashboard for the November 16 night release (#745)
nambok Nov 17, 2026
a3c1aad
No CoderHelm limit hands a pull request to a person (#739)
nambok Nov 17, 2026
66b7665
Incident cases are found by the build, one page each: adding one edit…
nambok Nov 17, 2026
83c1212
Alerts: an honest card for alarms no rule names; WAF evidence for ale…
nambok Nov 17, 2026
93532ee
CoderHelm's earlier reviews get out of the way of its latest one (#746)
nambok Nov 17, 2026
f419d61
A person's lines on a branch stay theirs; scope churn never becomes c…
nambok Nov 17, 2026
d9f3462
Web changes are proven on their preview before they are called ready …
nambok Nov 17, 2026
b60be33
A merge is followed through its deploy, whoever merged it (#748)
nambok Nov 17, 2026
409ff74
Pin the dashboard for the November 16 late night release (#749)
nambok Nov 17, 2026
c137067
Descriptions are Problem, Changes, Risk, Verification; settled items …
nambok Nov 17, 2026
fdbe060
Answers on the ticket are decisions in every run; related tickets are…
nambok Nov 17, 2026
bc2ccf3
Pin the dashboard for the November 17 release (#750)
nambok Nov 17, 2026
f6e6c24
The coder plans and builds the smallest change the ticket asks for (#…
nambok Nov 17, 2026
06a154a
Pin the dashboard for the November 17 coder release (#751)
nambok Nov 17, 2026
ba26b38
Replies are one short line: no echo, no header, no self-link (#752)
nambok Nov 17, 2026
c7c37fd
Fix rounds agree, proof answers are judged, tests run for the change …
nambok Nov 17, 2026
b164c83
Pin the dashboard for the November 17 replies release (#756)
nambok Nov 17, 2026
dc4b058
End-to-end selectors come from a live probe; untaken test branches ar…
nambok Nov 17, 2026
8dc4949
WAF alarm runs read their evidence; a missing AWS read is one install…
nambok Nov 17, 2026
1cb5467
Pin the dashboard for the November 17 live-page release (#759)
nambok Nov 17, 2026
712beac
A red check is reproduced against the base branch before a revert or …
nambok Nov 17, 2026
c6d2a79
The reviewer reads the merge base, settles probes itself, reads red c…
nambok Nov 17, 2026
f80d148
Pin the dashboard for the November 17 reviewer release (#763)
nambok Nov 17, 2026
7bdf3ee
A CI fix is pushed only after its own checks pass, and red CI stops n…
nambok Nov 17, 2026
61499ef
Scope is decided once and held; the description describes the head (#…
nambok Nov 17, 2026
1853230
CoderHelm's reviews and threads stay tidy between reviews (#761)
nambok Nov 17, 2026
b46da1b
Pin the dashboard for the November 17 coder-gates release (#767)
nambok Nov 17, 2026
93c12b2
Each ticket criterion is proven end to end both ways; twin helpers in…
nambok Nov 17, 2026
107449c
One verdict per finding; every finding is raised in the first review;…
nambok Nov 17, 2026
5f82c50
A bug is reproduced on the base before it is planned; people's answer…
nambok Nov 17, 2026
89d6bd7
New AWS reads reach every team through the role stack's template (#764)
nambok Nov 17, 2026
e71a6da
Wait for the deploy label's workflow before a draft leaves draft, and…
Nov 17, 2026
eb540b5
Keep the published commits of this pull request reachable (tree uncha…
Nov 17, 2026
3dd3c54
Pin the dashboard for the November 17 proof release (#770)
nambok Nov 18, 2026
5c2a797
no-mistakes(review): Re-read failed deploy runs; name unstarted by job
Nov 18, 2026
a7047cf
The changed tests run both ways: CI's install, a budget of their own,…
nambok Nov 18, 2026
715d562
ci: bump the actions group across 1 directory with 8 updates (#313)
dependabot[bot] Nov 18, 2026
6e4010b
fix(gateway): release a merged plan task's own dependents via its tic…
thinkaxelthink Nov 18, 2026
44ed8c5
Pin the dashboard for the November 17 test-run release (#771)
nambok Nov 18, 2026
08820b4
Find each pull request's preview wherever it is published (#772)
nambok Nov 18, 2026
45377fd
Wait for the deploy label's workflow before a draft leaves draft, and…
Nov 18, 2026
82ae275
Keep the published commits of this pull request reachable (tree uncha…
Nov 18, 2026
d00a29e
Pin the dashboard for the November 18 previews release (#774)
nambok Nov 18, 2026
9fa7804
Catch vulnerabilities in the language runtimes a team runs (#775)
nambok Nov 18, 2026
84485cf
Read WAF data without Athena and wait for the AWS role's reads instea…
nambok Nov 18, 2026
6b4b84b
Pin the dashboard for the November 18 runtime and firewall release (#…
nambok Nov 18, 2026
d9d6b3a
Finished runs ship, one run per ticket, and criteria proven on the pr…
nambok Nov 18, 2026
c84580c
Pin the dashboard for the November 18 run-finishing release (#779)
nambok Nov 18, 2026
4c62e02
Never mark a draft ready for a check only a left-off label starts
Nov 18, 2026
7cbc380
Code map kept current, criteria traced to proof, non-functional check…
nambok Nov 18, 2026
ac98afa
A carried approval carries the review it rests on, and that review st…
nambok Nov 18, 2026
f0e03a6
Every team AWS read is made as the team's role (#782)
nambok Nov 18, 2026
028f24a
Pin the dashboard for the November 18 code map and trace release (#784)
nambok Nov 18, 2026
d44c7de
The merge gate brings the base in itself and names the approval it wa…
nambok Nov 19, 2026
04fc19b
Pin the dashboard for the November 18 merge gate release (#785)
nambok Nov 19, 2026
fed7312
Chat never says Jira isn't connected when it is; the Jira app's links…
nambok Nov 19, 2026
e3774b3
Wait for the deploy label's workflow before a draft leaves draft, and…
Nov 19, 2026
3a69a8c
Bound the backend-only wait, and never re-add a deploy label the prev…
Nov 19, 2026
cf98c77
Keep the published commits of this pull request reachable (tree uncha…
Nov 19, 2026
56890d0
no-mistakes(document): Document approval and waiting values in previe…
Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 40 additions & 11 deletions .github/scripts/forge_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,20 +168,37 @@ def diff(old, new):
return result


# Where a pending Forge update is accepted. Jira's own Manage apps page has no
# Update for it, so it is never named as the place.
ADMIN_PATH = (
"Atlassian Administration (admin.atlassian.com): Apps, Sites, choose the site, "
"Connected apps, Coderhelm, View app details, Update"
)


def admin_steps(install_url=""):
"""The admin's steps, with the installation link first when there is one."""
if install_url:
return (f"An Atlassian site admin opens the app's installation link ({install_url}), "
f"chooses the site and clicks Update, or uses {ADMIN_PATH}.")
return f"An Atlassian site admin accepts the update in {ADMIN_PATH}."


def summary_markdown(result):
"""The run summary text. Holds manifest facts only, never site names."""
lines = ["## Jira app permissions", ""]
if result["needs_admin"]:
lines += [
"**A site admin must accept this update in Jira.** The new version asks for:",
"**An Atlassian site admin must accept this update.** The new version asks for:",
"",
*[f"- {r}" for r in result["reasons"]],
"",
"Forge rolls out code-only changes by itself, but not new access. On each site,",
"an admin opens **Jira settings (gear) → Apps → Manage apps**, finds **Coderhelm**",
"and clicks **Update**. Until then the site keeps running the previous major version.",
admin_steps() + " Until then the site keeps running the previous major version.",
"The workflow also runs `forge install --upgrade` itself; that succeeds only on",
"sites where the Forge token's account is a site admin.",
"sites where the Forge token's account is a site admin. Its refusals elsewhere",
"(\"insufficient permissions\", or a suggestion to install for another product) are",
"about the token's account, not something the site is missing.",
]
else:
lines.append("No new access. Every site gets this version automatically; no one needs to do anything.")
Expand Down Expand Up @@ -242,13 +259,24 @@ def latest_version(versions):
return ".".join(map(str, max(found))) if found else None


def latest_pointer(versions, manifest, commit="", published_at=""):
"""The pointer CoderHelm reads; None when no version is known."""
INSTALL_LINK = re.compile(r"^https://developer\.atlassian\.com/console/install/[^\s]+$")


def latest_pointer(versions, manifest, commit="", published_at="", install_url=""):
"""The pointer CoderHelm reads; None when no version is known.

`install_url` is the app's installation link from the developer console
(Distribution); CoderHelm offers it to site admins as the one-click update.
Anything else is left out.
"""
version = latest_version(versions)
if not version:
return None
app_id = str(((manifest or {}).get("app") or {}).get("id") or "")
return {"version": version, "appId": app_id, "commit": commit, "publishedAt": published_at}
out = {"version": version, "appId": app_id, "commit": commit, "publishedAt": published_at}
if install_url and INSTALL_LINK.match(install_url.strip()):
out["installUrl"] = install_url.strip()
return out


def load_features(path):
Expand Down Expand Up @@ -282,8 +310,8 @@ def behind_report(lines, latest, features):
return "", ""
latest_text = f"latest {latest}" if latest else "latest unknown"
md = ["", "## Sites still behind", ""]
md.append("Each one runs an older Coderhelm app until its Jira admin accepts the update:")
md.append("Jira Settings, Apps, Manage apps, Coderhelm, Update. CoderHelm shows the same on the team's Integrations page.")
md.append("Each one runs an older Coderhelm app until a site admin accepts the update.")
md.append(admin_steps() + " CoderHelm shows the same on the team's Integrations page.")
md.append("")
lacking = []
for i, (major, product) in enumerate(rows, 1):
Expand All @@ -295,7 +323,7 @@ def behind_report(lines, latest, features):
what = f" They lack: {', '.join(lacking)}." if lacking else ""
warning = (
f"{len(rows)} installation(s) still run an older Coderhelm app ({latest_text}).{what}"
" A Jira admin on each site must accept the update: Jira Settings, Apps, Manage apps, Coderhelm, Update."
" " + admin_steps()
)
return "\n".join(md) + "\n", warning

Expand Down Expand Up @@ -327,6 +355,7 @@ def main(argv=None):
la.add_argument("--manifest", required=True)
la.add_argument("--commit", default="")
la.add_argument("--published-at", default="")
la.add_argument("--install-url", default="", help="the app's installation link (developer console, Distribution)")

be = sub.add_parser("behind", help="summary and warning for installations still behind")
be.add_argument("--failed", required=True, help='"major<TAB>product" lines')
Expand Down Expand Up @@ -357,7 +386,7 @@ def main(argv=None):
if args.cmd == "latest":
with open(args.versions, encoding="utf-8") as f:
versions = json.load(f)
pointer = latest_pointer(versions, load_manifest(args.manifest), args.commit, args.published_at)
pointer = latest_pointer(versions, load_manifest(args.manifest), args.commit, args.published_at, args.install_url)
if not pointer:
print("no production version found", file=sys.stderr)
return 1
Expand Down
45 changes: 45 additions & 0 deletions .github/scripts/incidents_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env python3
"""Prints the incident regression cases as one Markdown table.

Each case has its own page, docs/incidents/<case>.md, with a title
("# <letter>. `<case>`"), a **What happened:** paragraph and a
**The guarantee:** part. There is no committed table: two pull requests
that each add a case would collide on it. This builds it on demand.

Usage: python3 .github/scripts/incidents_table.py [DOCS_DIR]
"""

import os
import re
import sys


def one_line(text: str) -> str:
return " ".join(text.replace("|", "\\|").split())


def row(path: str) -> str:
text = open(path, encoding="utf-8").read()
title = text.splitlines()[0].lstrip("# ").strip() if text else os.path.basename(path)
what = re.search(r"\*\*What happened:\*\*(.*?)(?=\*\*The guarantee:\*\*|$)", text, re.S)
guarantee = re.search(r"\*\*The guarantee:\*\*(.*)$", text, re.S)
return "| {} | {} | {} |".format(
one_line(title),
one_line(what.group(1) if what else ""),
one_line(guarantee.group(1) if guarantee else ""),
)


def main() -> None:
docs = sys.argv[1] if len(sys.argv) > 1 else os.path.join(
os.path.dirname(__file__), "..", "..", "docs", "incidents"
)
pages = sorted(p for p in os.listdir(docs) if p.endswith(".md"))
print("| Case | What happened | The guarantee |")
print("|---|---|---|")
for p in pages:
print(row(os.path.join(docs, p)))


if __name__ == "__main__":
main()
90 changes: 90 additions & 0 deletions .github/scripts/rust_affected.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/usr/bin/env python3
"""Does this pull request change anything the Rust jobs build, lint or test?

CI's "Rust (clippy)" and "Rust (tests)" jobs run on every pull request (the
required "Rust (workspace)" check waits on both) but skip their steps when
the answer is no, so a pull request that only moves a pin
(selfhost/versions.json) finishes them in seconds instead of most of an hour.

The list is wider than the crates because the workspace reads more than its
own sources:
- include_str!/include_bytes! embed files from lambda/, infra/cfn/,
infra/lib/, installer/lib/ and docs/api/;
- worker/build.rs hashes services/worker/src and services/common/src;
- tests read or scan files across the repository: model_call_sites.rs walks
every .js/.mjs/.cjs/.ts/.tsx file, model_ids.rs and run_status.rs read
lambda/ and infra/lib/, and tests/no_hosted_urls.rs scans services, lambda,
infra/lib, infra/bin, installer/lib, installer/bin and selfhost.

Anything uncertain (no diff, an unexpected checkout) counts as a change, so
the jobs run in full rather than pass without running.

Usage: rust_affected.py [FILE ...] (no files: read names from stdin)
Prints "true" or "false".
"""

import sys

# Every file under these runs the Rust jobs.
DIRS = (
"services/",
"lambda/",
"docs/api/",
# The incident suite checks every case has its page.
"docs/incidents/",
"infra/cfn/",
"infra/lib/",
"infra/bin/",
"installer/lib/",
"installer/bin/",
)

# The files that decide how this workflow runs them.
FILES = (
".github/workflows/ci.yml",
".github/scripts/rust_affected.py",
)

# Cargo, toolchain and formatter settings, wherever they sit.
NAMES = (
"Cargo.toml",
"Cargo.lock",
"rustfmt.toml",
".rustfmt.toml",
"clippy.toml",
".clippy.toml",
)

# Rust sources anywhere, and the JS/TS model_call_sites.rs scans repo-wide.
EXTS = (".rs", ".js", ".mjs", ".cjs", ".ts", ".tsx")

# What tests/no_hosted_urls.rs scans under selfhost/ (versions.json is not).
SELFHOST_EXTS = (".rs", ".ts", ".mjs", ".js", ".py", ".sh", ".yaml", ".yml", ".html")


def affects_rust(path):
path = path.strip()
name = path.rsplit("/", 1)[-1]
return (
path.startswith(DIRS)
or path in FILES
or name in NAMES
or name.startswith("rust-toolchain")
or path.startswith(".cargo/")
or "/.cargo/" in path
or path.endswith(EXTS)
or (path.startswith("selfhost/") and path.endswith(SELFHOST_EXTS))
)


def main(argv):
paths = argv[1:] or sys.stdin.read().splitlines()
paths = [p for p in paths if p.strip()]
# No changed files means the diff did not work: run everything.
run = not paths or any(affects_rust(p) for p in paths)
print("true" if run else "false")
return 0


if __name__ == "__main__":
sys.exit(main(sys.argv))
23 changes: 18 additions & 5 deletions .github/scripts/test_forge_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def test_widened_scopes_need_admin(self):
self.assertTrue(r["needs_admin"])
self.assertEqual(r["scopes_added"], ["write:jira-work"])
md = fr.summary_markdown(r)
self.assertIn("A site admin must accept", md)
self.assertIn("Apps → Manage apps", md)
self.assertIn("An Atlassian site admin must accept", md)
self.assertIn("Atlassian Administration (admin.atlassian.com): Apps, Sites, choose the site, Connected apps, Coderhelm, View app details, Update", md)
self.assertNotIn("Manage apps", md)
self.assertIn("write:jira-work", md)

def test_removed_scope_still_needs_admin(self):
Expand Down Expand Up @@ -141,7 +142,9 @@ def test_diff_dry_run_writes_summary_and_json(self):
with open(out) as f:
self.assertEqual(json.load(f)["scopes_added"], ["read:me"])
with open(summary) as f:
self.assertIn("Manage apps", f.read())
text = f.read()
self.assertIn("Connected apps", text)
self.assertNotIn("Manage apps", text)

def test_summary_from_saved_result(self):
with tempfile.TemporaryDirectory() as d:
Expand All @@ -151,7 +154,7 @@ def test_summary_from_saved_result(self):
with open(out, "w") as f:
json.dump(r, f)
text = self.run_cli("summary", "--json", out)
self.assertIn("A site admin must accept", text)
self.assertIn("An Atlassian site admin must accept", text)
self.assertNotIn("no one needs to do anything", text)

def test_diff_missing_old_file(self):
Expand All @@ -170,6 +173,15 @@ def test_pending_lists_only_behind_production_installs(self):
self.assertEqual(self.run_cli("pending", "--installs", path), "a.example.net\tjira\t5\n")
self.assertEqual(self.run_cli("pending", "--installs", path, "--environment", "staging"), "c.example.net\tjira\t1\n")

def test_the_installation_link_rides_on_the_pointer_and_the_steps(self):
link = "https://developer.atlassian.com/console/install/00000000-0000-0000-0000-000000000002?signature=abc&product=jira"
p = fr.latest_pointer([{"version": "7.0.0"}], {"app": {"id": "ari:x"}}, install_url=link)
self.assertEqual(p["installUrl"], link)
self.assertNotIn("installUrl", fr.latest_pointer([{"version": "7.0.0"}], {}, install_url="https://example.com/x"))
self.assertIn(link, fr.admin_steps(link))
self.assertIn("Connected apps", fr.admin_steps(link))
self.assertNotIn("Manage apps", fr.admin_steps() + fr.admin_steps(link))

def test_latest_pointer_is_the_highest_production_version(self):
versions = [{"version": "5.20.0"}, {"version": "6.11.0"}, {"version": "6.9.0"}, {"version": "soon"}]
manifest = {"app": {"id": "ari:cloud:ecosystem::app/00000000-0000-0000-0000-000000000001"}}
Expand Down Expand Up @@ -197,7 +209,8 @@ def test_behind_lists_each_site_by_number_with_what_it_lacks(self):
self.assertIn("threaded replies", md)
self.assertNotIn("example", md)
self.assertTrue(warning.startswith("2 installation(s) still run an older Coderhelm app (latest 6.11.0). They lack: "))
self.assertIn("Jira Settings, Apps, Manage apps, Coderhelm, Update.", warning)
self.assertIn("Connected apps, Coderhelm, View app details, Update.", warning)
self.assertNotIn("Manage apps", warning + md)
self.assertEqual(fr.behind_report([], "6.11.0", features), ("", ""))
self.assertEqual(fr.parse_version("6.10"), (6, 10, 0))
self.assertIsNone(fr.parse_version("6.x"))
Expand Down
45 changes: 45 additions & 0 deletions .github/scripts/test_rust_affected.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import os
import sys
import unittest

sys.path.insert(0, os.path.dirname(__file__))

from rust_affected import affects_rust # noqa: E402


class AffectsRust(unittest.TestCase):
def test_pin_and_docs_only_skip(self):
for p in [
"selfhost/versions.json",
"README.md",
"docs/incidents.md",
"coderhelm-jira/manifest.yml",
".github/workflows/deploy.yml",
]:
self.assertFalse(affects_rust(p), p)

def test_rust_inputs_run(self):
for p in [
"services/worker/src/main.rs",
"services/common/contract/messages.json",
"services/Cargo.lock",
"services/rust-toolchain.toml",
"rustfmt.toml",
".cargo/config.toml",
"services/.cargo/config.toml",
".github/workflows/ci.yml",
".github/scripts/rust_affected.py",
"lambda/log-analyzer/model_prices.json",
"infra/cfn/coderhelm-log-reader.yaml",
"docs/api/openapi.json",
"docs/incidents/a_whole_branch.md",
"installer/lib/github-app.mjs",
"coderhelm-jira/src/index.js",
"selfhost/install.sh",
"selfhost/launch/check.mjs",
]:
self.assertTrue(affects_rust(p), p)


if __name__ == "__main__":
unittest.main()
Loading
Loading