• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-config-service / 45353607953
97%

Build:
DEFAULT BRANCH: main
Ran 24 Nov 2026 08:10AM UTC
Jobs 1
Files 113
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2026 08:08AM UTC coverage: 97.098% (-0.6%) from 97.737%
45353607953

push

github

web-flow
feat: remote config reconcile (#1741)

* feat(chains): declarative remote-config flag reconciliation

Add a remote_config package that reads checked-in declaration files from a Git
ref, diffs them against the Feature/Service/Chain database, and lets an operator
selectively apply the differences from a new admin 'Reconcile flags' view.

- declaration.py / diff.py: pure, Django-free parse + diff core
- github.py: raw-API fetch at a ref (optional token)
- state.py / apply.py: project DB rows and apply changes transactionally with
  admin LogEntry audit (Django 6 log_actions)
- admin reconcile view + template with smart-default checkboxes and a read-only
  'drift vs main' shortcut
- RemoteConfigReconcileRef model (+ migration) remembers last refs per service
- export_remote_config management command to seed declarations from current state
- docs/remote-config.md runbook

* fix(chains): make remote-config ADD idempotent for shared keys

A feature key declared by multiple services (e.g. DEFAULT_TOKENLIST in both
WALLET_WEB and MOBILE) is proposed as ADD for each, because the per-service diff
shares one DB snapshot. Applying both ADDs in a batch collided on the unique key
constraint. ADD now uses get_or_create: the first creates the row, later ADDs for
the same key attach their service instead. Add a regression test and fix the
malformed-token admin test to account for migration-seeded features.

* feat(chains): detect cross-service description/scope conflicts

description and scope are columns on the single Feature row (key is unique), so
services sharing a key must declare them identically. When declarations disagree,
the reconcile view now warns and presents the conflicting description/scope update
un-checked, so applying it can't start a flip-flop between services. The fix for
the conflict is to align the declarations in code.

* docs(chains): note raw-CDN cache lag on branch refs in reconcile

Branch refs are fetched via raw.githubusercontent.com, whose... (continued)

663 of 693 new or added lines in 15 files covered. (95.67%)

2208 of 2274 relevant lines covered (97.1%)

0.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
91.38
src/chains/admin_views.py
4
96.23
src/chains/remote_config/apply.py
4
94.12
src/chains/remote_config/tokens.py
1
96.05
0.08% src/chains/admin.py
1
98.72
-0.61% src/chains/models.py
Jobs
ID Job ID Ran Files Coverage
1 45353607953.1 24 Nov 2026 08:10AM UTC 113
97.1
GitHub Action Run
Source Files on build 45353607953
  • Tree
  • List 113
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45353607953
  • b03e41f7 on github
  • Prev Build on main (#44510676680)
  • Next Build on main (#45360603979)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc