From 647b7e8fff5195f2b6831b9c33371f86c232a868 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 30 Nov 2026 11:45:42 +1100 Subject: [PATCH] chore(crowdin): drop the archived session-playwright target session-playwright is archived, so pushing its update-localization bump fails on every scheduled crowdin-sync run. --- deploy/README.md | 2 +- docs/jobs/crowdin-sync.md | 5 ++--- src/session_ops/crowdin/sync.py | 4 +--- src/session_ops/shared/github.py | 1 - tests/test_publish.py | 10 +++++----- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/deploy/README.md b/deploy/README.md index 53c7216..a368362 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -134,7 +134,7 @@ for link in /etc/systemd/system/paths.target.wants/session-ops@*.path; do done systemctl disable --now session-ops-queue.timer zendesk-relay.service session-ops-discord.service for repo in session-android session-ios session-localization session-desktop-dynamic-assets \ - session-desktop session-app session-website session-appium session-playwright; do + session-desktop session-app session-website session-appium; do gh pr list -R "session-foundation/$repo" --state open --json number,headRefName \ -q '.[] | select(.headRefName | startswith("rehearsal/")) | .number' | xargs -r -I{} gh pr close -R "session-foundation/$repo" {} --delete-branch diff --git a/docs/jobs/crowdin-sync.md b/docs/jobs/crowdin-sync.md index 69e0182..3acc8e9 100644 --- a/docs/jobs/crowdin-sync.md +++ b/docs/jobs/crowdin-sync.md @@ -12,7 +12,6 @@ commit just pushed: | `app` | session-app | `main` | `packages/localization/src/localization-src` | | `website` | session-website | `main` | `lib/app_localization` | | `appium` | session-appium | `main` | `run/localizer/lib` | -| `playwright` | session-playwright | `main` | `tests/localization/lib` | | | | | --- | --- | @@ -42,8 +41,8 @@ each run and force-pushed: the branch is the job's, and nobody else commits to i unchanged tree is not pushed again, and a run with nothing to change closes the pull request and deletes the branch. Android's own CI validates its pull request, so no Gradle build runs here. The bumps follow the same rules from `update-localization`, -rebuilt from each client's base; appium's and playwright's assertions follow the -strings, so their pull request may need test fixes before it merges. +rebuilt from each client's base; appium's assertions follow the +strings, so its pull request may need test fixes before it merges. ## Publishing diff --git a/src/session_ops/crowdin/sync.py b/src/session_ops/crowdin/sync.py index 5bf077c..0bc0865 100644 --- a/src/session_ops/crowdin/sync.py +++ b/src/session_ops/crowdin/sync.py @@ -6,7 +6,7 @@ feature/update-crowdin-translations, rebuilt from `dev` each run. - session-localization gets a commit straight onto `main`. - The clients holding session-localization as a submodule (session-desktop, - session-app, session-website, session-appium, session-playwright) each get a pull request from + session-app, session-website, session-appium) each get a pull request from update-localization moving it to that commit, or to `main`'s tip when this run leaves localization out. @@ -67,8 +67,6 @@ "packages/localization/src/localization-src"), "website": submodules.Submodule("session-website", "main", "lib/app_localization"), "appium": submodules.Submodule("session-appium", "main", "run/localizer/lib"), - "playwright": submodules.Submodule("session-playwright", "main", - "tests/localization/lib"), } TARGETS = ("android", "ios", "localization", *CLIENTS) diff --git a/src/session_ops/shared/github.py b/src/session_ops/shared/github.py index 2827e50..6512587 100644 --- a/src/session_ops/shared/github.py +++ b/src/session_ops/shared/github.py @@ -40,7 +40,6 @@ "session-app": {"update-localization": BOT}, "session-website": {"update-localization": BOT}, "session-appium": {"update-localization": BOT}, - "session-playwright": {"update-localization": BOT}, } diff --git a/tests/test_publish.py b/tests/test_publish.py index 2df021f..317091c 100644 --- a/tests/test_publish.py +++ b/tests/test_publish.py @@ -650,18 +650,18 @@ def test_a_rejected_summary_keeps_every_targets_failure(self): self.assertEqual(set(outcome.failures()), {"ios", "report"}) def test_a_run_that_changes_nothing_still_posts(self): - self.run_sync("--only", "playwright") + self.run_sync("--only", "appium") self.work = tempfile.mkdtemp(dir=self.root) - outcome, _ = self.run_sync("--only", "playwright") + outcome, _ = self.run_sync("--only", "appium") self.assertEqual(outcome.failures(), {}) (message,) = self.posted - self.assertIn("session-foundation/session-playwright: update-localization already up to date", + self.assertIn("session-foundation/session-appium: update-localization already up to date", message["content"]) def test_a_bump_alone_moves_to_localizations_tip(self): - outcome, _ = self.run_sync("--only", "playwright") + outcome, _ = self.run_sync("--only", "appium") self.assertEqual(outcome.failures(), {}) - self.assertEqual(self.bumped("playwright"), tip(self.localization, "main")) + self.assertEqual(self.bumped("appium"), tip(self.localization, "main")) self.assertEqual(self.branches("session-desktop"), ["dev"]) def test_nothing_is_bumped_when_localization_fails(self):