test(e2e): exempt JobAccountMerge from the blanket process kill switch - #1323
Open
davidleomay wants to merge 1 commit into
Open
test(e2e): exempt JobAccountMerge from the blanket process kill switch#1323davidleomay wants to merge 1 commit into
davidleomay wants to merge 1 commit into
Conversation
🤖 PR Review Bot
|
davidleomay
force-pushed
the
test/e2e-account-merge-validation
branch
from
August 13, 2026 15:53
4f0d3f6 to
c16d2f4
Compare
DISABLED_PROCESSES=* switches off every Process, including JobAccountMerge — which is not background upkeep but the process that executes the account-merge confirmation link. With it off neither the kick nor the dispatcher sweep runs, the merge is never performed, and specs/auth.spec.ts:346 waits out its 30s timeout because the success screen never renders. Requires DFXswiss/backend#4496, which introduces the ! exemption. Before that the API reads the value as a list of process names, finds neither '*' nor '!JobAccountMerge', and disables nothing at all — so this must not merge first.
davidleomay
force-pushed
the
test/e2e-account-merge-validation
branch
from
August 18, 2026 07:10
c16d2f4 to
c96c5f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warum
e2e-stack/env/api.envsetztDISABLED_PROCESSES=*. Das schaltet jedenProcessab — auchJobAccountMerge, und der ist kein Hintergrund-Job, sondern der Ausführungspfad des Account-Merge-Bestätigungslinks.Mit DFXswiss/api#4496 wird der Merge zu einem Job. Ist der Prozess aus, läuft weder der Kick noch der Dispatcher-Sweep — beide hängen an genau diesem Schalter — und der Merge wird nie ausgeführt. Belegt im E2E-Lauf gegen api#4496:
specs/auth.spec.ts:346 › /account-merge?otp=… merges accountsläuft 30 s in den Timeout, weilAccount merged successfully!nie erscheint. Die übrigen 8 Fehlschläge desselben Laufs sind aufdevelopebenfalls rot und gehören nicht dazu.api#4496 antwortet inzwischen mit 503 statt mit einem Ticket, das nie fertig wird — das macht den Fehler sichtbar, behebt ihn hier aber nicht: Der Test braucht einen Merge, der tatsächlich durchläuft.
Was sich ändert
Eine Zeile:
Die
!-Ausnahme kommt aus api#4496 (Config.disabledProcesses()):*bleibt „alles aus",!Namenimmt genau einen Prozess davon aus. Alle übrigen 145 Prozesse bleiben abgeschaltet — die Ruhe im Stack bleibt also erhalten, nur der eine Prozess, an dem ein Nutzer-Endpoint hängt, läuft.Reihenfolge: Dieser PR setzt api#4496 voraus. Vorher versteht die API die
!-Syntax nicht und liest den Wert als Namensliste, in der kein Prozess*oder!JobAccountMergeheisst — Ergebnis: gar nichts wäre abgeschaltet. Nicht mergen, bevor api#4496 drin ist.Offen, bewusst nicht in diesem PR
Die Playwright-Spezifikation deckt weiter nur den schnellen Pfad ab. Überschreitet ein Merge das Wartefenster (
maxWaitSeconds: 5), antwortet der Endpoint mit 202 und einemJobDto; die Frontend-Behandlung dafür kommt in #1322, ein E2E-Fall dafür fehlt noch. Kontext: #1304.Herkunft
Der Branch zweigt vom Head von #1322 ab, damit die Kombination aus Frontend-Polling und Harness-Fix zusammen gegen api#4496 laufen kann. Der Commit war zuerst direkt auf den Branch gepusht — ohne PR; das wird hiermit nachgeholt, damit die Änderung den normalen Review-Weg nimmt.