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

mozilla-releng / balrog / #5811
91%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 06:17PM UTC
Jobs 1
Files 61
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

10 Nov 2026 06:04PM UTC coverage: 90.551% (+0.02%) from 90.527%
#5811

push

circleci

web-flow
Port to SQLAlchemy 2.x (#3943)

* db: port Core API usage to SQLAlchemy 2.0

- AUSTable.getEngine() now returns self.db.engine instead of going
  through bound MetaData (metadata.bind), which is removed in 2.0.
  AUSDatabase no longer sets/clears metadata.bind.
- Replace Engine.execute() (removed) with explicit
  engine.connect()/engine.begin() context managers.
- select([col1, col2]) list form -> select(col1, col2); select()
  order_by/limit/offset/distinct kwargs -> chained .order_by()/
  .limit()/.offset()/.distinct(); select(columns=, from_obj=) ->
  select(...).select_from(...).
- dict(row) -> dict(row._mapping) throughout, since plain Row no
  longer supports dict()/string-key access in 2.0.
- Fix HistoryTable.getPointInTime and
  ReleasesJSON/ReleaseAssets.getPotentialRequiredSignoffs, which
  string-indexed a raw Row instead of using row._mapping.
- Make AUSTransaction.rollback() a no-op if the underlying
  transaction is already inactive, avoiding a double-rollback
  SAWarning (promoted to a hard failure by this project's test
  config) when execute() rolls back on error and then __exit__
  rolls back again.
- Remove a dead assignment in ScheduledChangeTable.update() whose
  value was always overwritten before use.

* tests: port shared fixtures off SQLAlchemy 1.x connectionless execution

table.insert().execute(...), table.select().execute(), and reliance
on bound MetaData are all removed in SQLAlchemy 2.0. Rewrite the
insert_release/insert_release_sc fixtures in conftest.py and the
setup fixtures in admin/views/base.py and web/api/base.py to use
explicit engine.begin()/connect() + conn.execute(stmt, params)
instead.

* tests: port test_db.py off SQLAlchemy 1.x connectionless execution

- Rewrite ~340 table.insert/select/update/delete().execute(...)
  call sites to conn.execute(stmt, params) inside
  engine.begin()/connect() blocks.
- Replace MetaData(engine) (bind constructor arg removed in 2.0)
  with MetaData() + explicit metadata.create_... (continued)

2246 of 2616 branches covered (85.86%)

Branch coverage included in aggregate %.

39 of 39 new or added lines in 2 files covered. (100.0%)

5909 of 6390 relevant lines covered (92.47%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #5811.1 10 Nov 2026 06:17PM UTC 61
90.55
Source Files on build #5811
  • Tree
  • List 61
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #5811
  • e1940ae0 on github
  • Prev Build on main
  • Next Build on main
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