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

LFDT-Panurus / panurus / 32718791851
85%

Build:
DEFAULT BRANCH: main
Ran 24 Aug 2026 11:08AM UTC
Jobs 68
Files 546
Run time 4min
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 Aug 2026 10:50AM UTC coverage: 83.88%. First build
32718791851

push

github

Effi-S
fix(selector): expire token locks by the consuming transaction

The SQLite lease cleanup correlated token_locks to token_requests on
tl.tx_id = tr.tx_id, the transaction that created the locked token, while
Postgres correlated on tl.consumer_tx_id, the transaction that is trying to
spend it. Only the latter says anything about whether a lock is still live,
so on SQLite a lock held by a Deleted or Orphan consumer leaked until the
lease aged out, and a lock held by an in-flight consumer was dropped as soon
as the producing transaction died.

The SQLite delete was also scoped as tx_id IN (SELECT tl.tx_id ...) while the
primary key is (tx_id, idx), so one expired lock evicted the live locks on
every other output of the same transaction.

Move the cleanup statement into the shared store as IsStaleLock, correlated
on consumer_tx_id and scoped per row, and let both backends use it: SQLite
inherits it, Postgres keeps only the logging of the rows about to go. The
generated Postgres SQL is unchanged.

Replace the SQLite tests that asserted the generated SQL string - and so
encoded the wrong join as the expected output - with behavioural cases in the
shared dbtest suite, which runs on SQLite, the in-memory backend and
Postgres: a lock of a Deleted or Orphan consumer is released, a lock whose
producing transaction died is kept, sibling indices survive, an aged lease is
reclaimed, and a fresh pending lock is left alone. Four of them fail against
the previous SQLite implementation.

Fixes #2018

Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe03.vpc.cloud9.ibm.com>

Signed-off-by: Effi-S <effi.szt@gmail.com>

175 of 177 new or added lines in 4 files covered. (98.87%)

44511 of 53065 relevant lines covered (83.88%)

11984.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.08
token/services/storage/db/sql/common/tokenlock.go
Jobs
ID Job ID Ran Files Coverage
1 itest-nft-fabtoken - 32718791851.1 24 Aug 2026 11:11AM UTC 481
29.85
GitHub Action Run
2 itest-dvp-dlog - 32718791851.2 24 Aug 2026 11:12AM UTC 485
38.73
GitHub Action Run
3 itest-dlog-fabric-t1-replicas - 32718791851.3 24 Aug 2026 11:16AM UTC 485
43.73
GitHub Action Run
4 itest-interop-dlog-t5 - 32718791851.4 24 Aug 2026 11:14AM UTC 485
39.76
GitHub Action Run
5 itest-nft-dlog - 32718791851.5 24 Aug 2026 11:10AM UTC 485
37.32
GitHub Action Run
6 itest-dlog-fabric-t1-websocket - 32718791851.6 24 Aug 2026 11:16AM UTC 485
42.38
GitHub Action Run
7 itest-dlog-fabric-t10-libp2p - 32718791851.7 24 Aug 2026 11:17AM UTC 485
44.53
GitHub Action Run
8 itest-dlog-fabric-t5 - 32718791851.8 24 Aug 2026 11:14AM UTC 485
38.63
GitHub Action Run
9 itest-fabricx-dlog-t5 - 32718791851.9 24 Aug 2026 11:13AM UTC 505
40.68
GitHub Action Run
10 itest-fabtoken-fabric-t5 - 32718791851.10 24 Aug 2026 11:12AM UTC 485
30.7
GitHub Action Run
11 itest-dvp-fabtoken - 32718791851.11 24 Aug 2026 11:12AM UTC 481
31.42
GitHub Action Run
12 itest-fabricx-dlog-t4 - 32718791851.12 24 Aug 2026 11:12AM UTC 505
40.69
GitHub Action Run
13 itest-dlog-fabric-t6-replicas - 32718791851.13 24 Aug 2026 11:18AM UTC 485
43.77
GitHub Action Run
14 itest-dloghsm-fabric-t2-libp2p - 32718791851.14 24 Aug 2026 11:17AM UTC 485
42.53
GitHub Action Run
15 itest-dlog-fabric-t7 - 32718791851.15 24 Aug 2026 11:17AM UTC 485
33.93
GitHub Action Run
16 itest-fabtoken-fabric-t3 - 32718791851.16 24 Aug 2026 11:10AM UTC 485
29.36
GitHub Action Run
17 itest-fabricx-dlog-t13 - 32718791851.17 24 Aug 2026 11:12AM UTC 505
38.39
GitHub Action Run
18 utest-unit-tests-race - 32718791851.18 24 Aug 2026 11:11AM UTC 545
74.76
GitHub Action Run
19 itest-fabricx-dlog-t6-replicas - 32718791851.19 24 Aug 2026 11:21AM UTC 505
45.89
GitHub Action Run
20 itest-dlog-fabric-t8-replicas - 32718791851.20 24 Aug 2026 11:18AM UTC 485
43.53
GitHub Action Run
21 utest-unit-tests-regression - 32718791851.21 24 Aug 2026 11:11AM UTC 545
74.71
GitHub Action Run
22 itest-dlog-fabric-t10-websocket - 32718791851.22 24 Aug 2026 11:16AM UTC 485
44.91
GitHub Action Run
23 itest-interop-dlog-t1 - 32718791851.23 24 Aug 2026 11:16AM UTC 485
41.19
GitHub Action Run
24 itest-dloghsm-fabric-t2-websocket - 32718791851.24 24 Aug 2026 11:17AM UTC 485
41.9
GitHub Action Run
25 itest-dlogstress-t1 - 32718791851.25 24 Aug 2026 11:08AM UTC 485
37.35
GitHub Action Run
26 itest-dlog-fabric-t4 - 32718791851.26 24 Aug 2026 11:14AM UTC 485
38.46
GitHub Action Run
27 itest-interop-fabtoken-t1 - 32718791851.27 24 Aug 2026 11:16AM UTC 485
33.14
GitHub Action Run
28 itest-dloghsm-fabric-t1-libp2p - 32718791851.28 24 Aug 2026 11:16AM UTC 485
42.41
GitHub Action Run
29 itest-fabtoken-fabric-t4 - 32718791851.29 24 Aug 2026 11:13AM UTC 485
30.74
GitHub Action Run
30 itest-fabtoken-fabric-t1-libp2p - 32718791851.30 24 Aug 2026 11:15AM UTC 485
34.23
GitHub Action Run
31 itest-fabtoken-fabric-t2 - 32718791851.31 24 Aug 2026 11:15AM UTC 485
27.43
GitHub Action Run
32 itest-dlog-fabric-t13 - 32718791851.32 24 Aug 2026 11:14AM UTC 485
36.35
GitHub Action Run
33 itest-fabricx-dlog-t1-libp2p - 32718791851.33 24 Aug 2026 11:19AM UTC 505
43.96
GitHub Action Run
34 itest-dlog-fabric-t6-libp2p - 32718791851.34 24 Aug 2026 11:16AM UTC 485
42.53
GitHub Action Run
35 itest-interop-fabtoken-t5 - 32718791851.35 24 Aug 2026 11:16AM UTC 485
31.69
GitHub Action Run
36 itest-fabricx-dlog-t11 - 32718791851.36 24 Aug 2026 11:14AM UTC 505
34.54
GitHub Action Run
37 itest-dlog-fabric-t11 - 32718791851.37 24 Aug 2026 11:15AM UTC 485
32.92
GitHub Action Run
38 itest-update-t3 - 32718791851.38 24 Aug 2026 11:24AM UTC 485
38.21
GitHub Action Run
39 itest-fabricx-dlog-t6-libp2p - 32718791851.39 24 Aug 2026 11:19AM UTC 505
44.18
GitHub Action Run
40 itest-interop-dlog-t3 - 32718791851.40 24 Aug 2026 11:17AM UTC 485
40.33
GitHub Action Run
41 itest-dloghsm-fabric-t1-replicas - 32718791851.41 24 Aug 2026 11:18AM UTC 485
43.5
GitHub Action Run
42 itest-dlog-fabric-t8-websocket - 32718791851.42 24 Aug 2026 11:16AM UTC 485
42.44
GitHub Action Run
43 itest-dlog-fabric-t3 - 32718791851.43 24 Aug 2026 11:14AM UTC 485
37.29
GitHub Action Run
44 itest-fabricx-dlog-t1-replicas - 32718791851.44 24 Aug 2026 11:18AM UTC 505
45.65
GitHub Action Run
45 itest-fabtoken-fabric-t1-websocket - 32718791851.45 24 Aug 2026 11:16AM UTC 485
34.23
GitHub Action Run
46 itest-dlog-fabric-t10-replicas - 32718791851.46 24 Aug 2026 11:19AM UTC 485
46.28
GitHub Action Run
47 itest-dlog-fabric-t8-libp2p - 32718791851.47 24 Aug 2026 11:17AM UTC 485
42.4
GitHub Action Run
48 itest-interop-fabtoken-t3 - 32718791851.48 24 Aug 2026 11:17AM UTC 485
32.25
GitHub Action Run
49 itest-fabricx-dlog-t16-libp2p - 32718791851.49 24 Aug 2026 11:18AM UTC 505
44.15
GitHub Action Run
50 itest-fabricx-dlog-t16-replicas - 32718791851.50 24 Aug 2026 11:22AM UTC 505
45.81
GitHub Action Run
51 itest-fabtoken-dlog-fabric - 32718791851.51 24 Aug 2026 11:24AM UTC 485
41.43
GitHub Action Run
52 itest-fabricx-dlog-t16-websocket - 32718791851.52 24 Aug 2026 11:19AM UTC 505
44.18
GitHub Action Run
53 itest-fabricx-dlog-t1-websocket - 32718791851.53 24 Aug 2026 11:18AM UTC 505
43.96
GitHub Action Run
54 itest-interop-fabtoken-t4 - 32718791851.54 24 Aug 2026 11:13AM UTC 485
31.09
GitHub Action Run
55 itest-dlog-fabric-t9 - 32718791851.55 24 Aug 2026 11:13AM UTC 485
34.44
GitHub Action Run
56 itest-dlog-fabric-t1-libp2p - 32718791851.56 24 Aug 2026 11:15AM UTC 485
41.97
GitHub Action Run
57 itest-dloghsm-fabric-t1-websocket - 32718791851.57 24 Aug 2026 11:17AM UTC 485
42.13
GitHub Action Run
58 itest-fabricx-dlog-t6-websocket - 32718791851.58 24 Aug 2026 11:19AM UTC 505
44.2
GitHub Action Run
59 itest-interop-dlog-t4 - 32718791851.59 24 Aug 2026 11:17AM UTC 485
38.86
GitHub Action Run
60 itest-update-t2 - 32718791851.60 24 Aug 2026 11:19AM UTC 485
37.74
GitHub Action Run
61 itest-dlog-fabric-t6-websocket - 32718791851.61 24 Aug 2026 11:15AM UTC 485
42.59
GitHub Action Run
62 itest-dlog-fabric-t2 - 32718791851.62 24 Aug 2026 11:18AM UTC 485
33.86
GitHub Action Run
63 itest-update-t1 - 32718791851.63 24 Aug 2026 11:17AM UTC 485
42.6
GitHub Action Run
64 itest-dlog-fabric-t12 - 32718791851.64 24 Aug 2026 11:12AM UTC 485
39.87
GitHub Action Run
65 itest-dlog-fabric-t2.1 - 32718791851.65 24 Aug 2026 11:18AM UTC 485
33.58
GitHub Action Run
66 itest-dloghsm-fabric-t2-replicas - 32718791851.66 24 Aug 2026 11:18AM UTC 485
43.8
GitHub Action Run
67 itest-fabtoken-fabric-t1-replicas - 32718791851.67 24 Aug 2026 11:17AM UTC 485
35.54
GitHub Action Run
68 itest-fabricx-dlog-t3 - 32718791851.68 24 Aug 2026 11:10AM UTC 505
38.56
GitHub Action Run
Source Files on build 32718791851
  • Tree
  • List 546
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32718791851
  • 74712d69 on github
  • Prev Build on main (#32713639145)
  • Next Build on main (#32723866705)
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