Merge upstream/main into main (weekly sync, 2026-09-26 b)

Merged
JA
2mo ago
+13926-1675

Summary

The weekly upstream sync that #118 ("Staying in sync", duty 1) requires. #232 merged earlier today and left fork main level with upstream 7cc6aa0; since then the mirror has moved 7 commits. This PR brings fork main level with we-promise/sure 45ab75ae6.

It is one merge commit, 2f4a7a2, with both parents: 8569fe0 (fork main, including #236) and 45ab75ae6 (mirror/upstream-main). Merge it with a merge commit, not a squash, per #118 duty 4.

Scope and dependencies

  • Issue: #118 (weekly sync duty)
  • Parent PR/branch, if stacked: none. The base is main at 8569fe0.
  • Intentionally out of scope: no fork-side changes beyond resolving conflicts.

Upstream commits (7)

CommitUpstream PRChange
63c6362we-promise/sure#3671Export and import provider-assigned merchants, and reuse the existing taxonomy on Sure import
600d57ewe-promise/sure#3725ProviderMerchant does not support color. Adds migration 20260925220151_null_provider_merchant_colors.rb (data only)
34bdc78we-promise/sure#3636Bills: custom repeat interval, dated search rows, and a fix for the French price notice
e7f882cwe-promise/sure#3710Removes the dead credit card overview partial and its locale keys. Nothing on the fork references credit_cards/overview or credit_cards.overview.* (checked with grep)
aaf3fdawe-promise/sure#3450Plaid: keep the bank's description in the transaction name, and show the provider metadata behind it
58e8922we-promise/sure#3689Completes the ru, uk and tr translations. This commit caused the conflicts below
45ab75awe-promise/sure#3703Makes on-chain wallet transfers cash-neutral

Conflicts and resolutions (3 files)

config/locales/views/loans/ru.yml, tr.yml and uk.yml conflicted the same way. Upstream's #3689 translated these files while the fork's loan epic had changed them:

  • The fork added keys: offset accounts, the day-count basis, the schedule projection figures, and the chart and extra-payment strings.
  • The fork removed the dead loans.overview.* scope from all 19 locales (#7).
  • The fork renamed three loans.tabs.overview keys (#115).

Git merged everything except the loans.overview block, which upstream had extended and the fork had deleted.

WhatResolution
loans.overview.* (the conflict hunk)Kept upstream's block. On the fork these keys are dead: no view reads them, and #7 removed them from every other locale. They are kept because this sync does not delete upstream keys, and keeping them avoids a conflict on every later upstream edit. Owner decision: keep them, or drop them in line with #7.
Fork-only keys missing from ru/tr/uk (44 per file)Added in English, copied line for line from the fork's en.yml. Every key in the fork's en loans locale now exists in each file.
Upstream's translated stringsAll kept, unchanged. No upstream value in these files was altered.
loans.tabs.overview.{interest_rate,monthly_payment,original_principal}Git applied the fork's #115 rename (to current_interest_rate, current_monthly_payment and original_loan_balance) without a conflict. Upstream's translations remain under the new names. These three old names are the only upstream keys absent from the result.

The fork-only keys ship in English, not translated. config.i18n.fallbacks = true would already render English for them, so explicit English copies change nothing a user sees today. They do, however, hide these keys from i18n-tasks missing. The fork's other 15 locales rely on fallback for the same keys. Translating them into ru, tr and uk is a follow-up.

Schema regeneration (duty 2)

db/schema.rb merged cleanly (upstream only moved the version stamp), but it was not taken on trust:

  1. Loaded fork main's db/schema.rb into a fresh development database (sure_sync2_dev, PostgreSQL 16.15).
  2. db:migrate:status showed exactly one pending migration: 20260925220151 Null provider merchant colors. db:migrate ran it; it is an UPDATE, with no DDL.
  3. Compared the dump with both parents:
    • Against fork main: the version stamp (2026_09_24_140000 becomes 2026_09_25_220151) and one line. The financekit_lineage_account_origin check constraint came out as ARRAY['created'::character varying::text, ...] instead of ARRAY[...]::text[]. The constraint is the same; only the way this local PostgreSQL build prints it differs. Both parents contain the ::text[] form byte for byte, so the committed file keeps it.
    • Against upstream: the delta, not counting the version line, is the same 142 lines as fork main against upstream. All of them are fork-only tables and columns, and the migration adds none.
  4. The committed db/schema.rb is therefore fork main plus the new version stamp.

Evidence checklist

  • Each issue in this PR has its own acceptance criteria and no unrelated issue work is included. This is a sync only.
  • Contract rows touched by this change name existing tests. Not applicable: no contract rows change.
  • Any gate test has an observed failing mutation transcript attached. Not applicable.
  • Fixtures used as evidence assert internal consistency. Not applicable.
  • Financial calculations use BigDecimal and documented rounding points. Not applicable.
  • De-identification uses token-shape allowlists; no personal data is included.
  • Files changed, decisions, tests/runtime, risks, and next unblocked issue are documented below.

Validation

  • Locale check (a Ruby script run over the merged files), for each of ru, tr and uk:
    • all three parse;
    • no duplicate keys (Psych AST walk);
    • no en loans key missing;
    • no fork-main key or value dropped or changed;
    • no upstream value changed;
    • no %{} interpolation that differs from en.
  • bin/rails test test/i18n_test.rb: 7 runs, 0 failures (4 skipped by design).
  • Full bin/rails test: 10624 runs, 46590 assertions, 4 failures, 3 errors, 33 skips on the final tree 2f4a7a2, using Ruby 3.3.6. All 7 are the known Ruby 3.3.6 environment failures, and nothing else fails: Provider::RegistryTest (anthropic ENV), Provider::OpenaiTest (extra_headers), three Settings::HostingsControllerTest anthropic_base_url tests, ActiveStorageAuthorizationTest (variants) and Admin::UsersControllerTest (profile picture). The first tree, built on a52e804, gave 10616 runs with the same 7.
  • bin/rubocop on the 47 added or modified Ruby files: no offences.
  • erb_lint on the 14 added or modified ERB files: no errors.
  • bin/brakeman --no-pager -q: 0 warnings.
  • The tree was rebuilt once. The first merge was built on a52e804; fork main then gained #236 (8569fe0). The branch had not been pushed, so the merge was redone on 8569fe0 with the same resolution. The resulting tree equals the first one plus exactly #236's 7 files. None of those files is touched by the 7 upstream commits.

Risks, blockers, and follow-up

  • Owner decision: whether to keep upstream's dead loans.overview.* block in ru/tr/uk (kept here) or drop it to match #7.
  • Follow-up: translate the 44 fork-only loan keys per file into ru, tr and uk. Today they are English copies.
  • The 7 local test failures come from the environment. Locally this runs on Ruby 3.3.6 because 3.4.9 cannot be installed here; CI runs 3.4.9. The same 7 tests also fail on unmerged main in this environment.