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
2 changes: 1 addition & 1 deletion deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions docs/jobs/crowdin-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

| | |
| --- | --- |
Expand Down Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions src/session_ops/crowdin/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/session_ops/shared/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"session-app": {"update-localization": BOT},
"session-website": {"update-localization": BOT},
"session-appium": {"update-localization": BOT},
"session-playwright": {"update-localization": BOT},
}


Expand Down
10 changes: 5 additions & 5 deletions tests/test_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down