Skip to content

fix(ci): the rollback rehearsal confirms a deactivation on any release's form - #1400

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/rehearsal-confirm-form
Nov 11, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/rehearsal-confirm-form

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

The rollback-rehearsal check failed at step 3 on every PR that changes a migration. In that step, the rehearsal confirms a deactivation on the live release by pressing form.confirmation-form, a class the UI overhaul removed (#1354). Production moved onto the overhauled release today, so the live page no longer has that form class. The rehearsal now presses the one form that posts to the action's own address. That form exists on releases from before and after the overhaul.

Look at

scripts/rollback-rehearsal.ts, one selector:

-      await press(page, 'form.confirmation-form button[type="submit"]', `Confirming ${act}`);
+      await press(page, `form[method="post"][action$="/${act}"] button[type="submit"]`, `Confirming ${act}`);

The failure it fixes, on #1217 against live 7f93b91:

Step 3 of 4, the live commit (7f93b91) comes back, failed while ending credentials on the live release.
  Confirming deactivate: /settings/people/users/usr_env_brightline_jordan/deactivate has no single form.confirmation-form button[type="submit"].

How it was verified

The rehearsal ran locally on this branch under Node 24.20, as CI runs it:

Rehearsing 7f93b91 → 37309f5 → 7f93b91 → 37309f5 on one set of data.
▶ Step 1: the live commit (7f93b91) seeds the data   passed in 53s
▶ Step 2: HEAD (37309f5) upgrades it                 passed in 30s
▶ Step 3: the live commit (7f93b91) comes back       passed in 16s
▶ Step 4: HEAD (37309f5) comes back                  passed in 11s

A release from before the overhaul drew <form class="confirmation-form" method="post" action="/company/users/<id>/<act>">. The overhauled release draws <form method="post" action="/settings/people/users/<id>/<act>"> through flowPage. The new selector matches either one, and still matches exactly one form on the page.

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

CI only: a test script changes, and nothing ships.

  • What does a revert leave behind? Nothing.
  • Does the release before it still work with that? Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code.

…e's form

The rehearsal pressed form.confirmation-form, a class the UI overhaul
removed. Production moved onto the overhauled release, so every PR that
changes a migration now failed step 3. Both releases' confirmations are
the one form posting to the act's own address, so it presses that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Nov 11, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS

Checked 37309f599282ea68b8ff584161f0657fac1fab94 (base 7f93b91d4eb07f5dd8ff28b0f0764e0b46700087) on fresh team instances, by GPT-6.1 Sol (xhigh) in Codex through T3 Code. The CI rehearsal uses brightline.

Done means

  • Selector uniqueness: passed. Exercised both confirmations in Chromium under Node 24.20 on pre-overhaul 5bbf22a, pinned main 7f93b91, and the PR head. On every page, exactly one form has either lifecycle action suffix, and the new selector matches exactly one form and one submit button. The old form posts to /company/users/<member>/<act>; main and head post to /settings/people/users/<member>/<act>. The only other forms are search (/ before the overhaul, /patches afterwards) and sign-out (/logout), including the sidebar/account menu.
  • CI rehearsal: passed, actually exercised. Read the complete successful job log. It runs under Node 24.20 and triggers on this script change. CI checked merge commit be96012; its Git tree is identical to the checked PR head.
  • Remaining selectors: passed. Audited every selector in the rehearsal. No CSS-class selector remains. Terms acceptance uses its form id/action, device approval uses button name/value, Disconnect everything uses the old/new form actions, and patch readiness uses stream data attributes and iframe/role locators.

Local assertion output, condensed (form count / submit-button count):

5bbf22a  deactivate 1/1, reactivate 1/1; both POST 303, inverse action present
7f93b91  deactivate 1/1, reactivate 1/1; both POST 303, inverse action present
37309f59 deactivate 1/1, reactivate 1/1; both POST 303, inverse action present

The removed form.confirmation-form selector matches once on each old confirmation and zero times on each main/head confirmation, reproducing the compatibility gap.

CI log:

Rehearsing 7f93b91 → be96012 → 7f93b91 → be96012 on one set of data.
Step 1: the live commit seeds the data — passed in 65s
Step 2: HEAD upgrades it — passed in 20s
Step 3: the live commit comes back — passed in 14s
Step 4: HEAD comes back — passed in 13s
Exercised rollback paths passed, in 113s.

Golden journeys

  • Membership's reverse states: passed. Ada deactivated Ben, then reactivated him, on all three fresh instances. Each confirmation submitted successfully and the resulting People/Company page offered the inverse action for the same member.
  • Rehearsal journeys: passed. The four-step CI run exercised portal and patch pages, live queries, device approval, Disconnect everything, membership changes, and the subsequent checks that ended credentials stay ended.

Rollback answers: Match the diff. This changes only a CI script; reverting leaves no deployed schema, data, or contract changes. No one-way label is needed.

Not run: No requested acceptance check was omitted.

@allisonmahmood
allisonmahmood merged commit 44acb65 into main Nov 11, 2026
26 checks passed
@allisonmahmood
allisonmahmood deleted the fix/rehearsal-confirm-form branch November 11, 2026 12:29
allisonmahmood added a commit that referenced this pull request Nov 12, 2026
…ey shortcuts (#1421)

## What changed

This adds release 42's What's new entry, written from `1cd6d12`. It
covers everything merged since release 41's `through` (`a25a9c5`), and
sets the `patchy` release to `0.42.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

| Change | PRs |
| --- | --- |
| New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228
|
| New: Turn off single-key shortcuts | #1276, #1279, #1301 |
| Fixed: Typing reaches the patch again | #1407, #1412 |
| Fixed: Dialogs in patches keep your place | #1420, #1255 |
| Behind the scenes: plainer facts for agents building patches | #1249,
#1256, #1297, #1418 |
| Behind the scenes: Patchy stores teams and audiences ahead of teams |
#1416 |
| Patch changes: Mod+/ and `client.close()` in patchy/hotkeys;
single-key shortcuts can be off; Tab wraps in plain modal dialogs |
#1279, #1301, #1420 |

#1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302,
#1413 and #1419 are test, CI and dev tooling and need no line.

The teams bridge (#1416) ships alone in this release so teams (#1417)
can follow in the next one with a release to roll back to that reads its
data closed.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- **Rollback safety, from the live commit `7f93b91` (release 41) to this
PR's merge.** No PR in the range is labelled `one-way`, and every
Release impact answer says release 41 still works:
- **#1217** adds migration `0037_feedback`, a schema release 41 never
reads. **#1227** and **#1228** write into it.
- **#1276** adds migration `0038_single_key_shortcuts`, a column with a
default that release 41 never selects.
- **#1416** adds migrations `0039_company_teams` to
`0041_connection_audiences`, which hold tables that stay empty until
teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 →
head → 7f93b91 → head` on one set of data, and all four steps passed.
- **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the
shell. Patches built on this release carry a `shortcutSetting` manifest
field that release 41 reads without refusing, and its shell names no
frame, so every shortcut stays on.
- **#1218** and **#1219** add CLI commands and an optional
`feedbackHint` in `--json` failures. A CLI from this release refuses to
publish to an older instance before sending anything, as any mismatched
release does.
  - Everything else is skill text, docs, tests and CI.

If this release misbehaves, roll back to `7f93b91` (release 41).

Written by Claude Opus 5.5 in Claude Code, through T3 Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant