Skip to content

Conversation

gogeterobert
Copy link
Collaborator

No description provided.

Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
Copy link

github-actions bot commented Jul 9, 2025

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🟢 Statements
84.28% (+16.4% 🔼)
429/509
🟡 Branches
65.47% (+16.55% 🔼)
91/139
🟡 Functions
75.78% (+26.93% 🔼)
97/128
🟢 Lines
85.42% (+16.5% 🔼)
410/480
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / AddressRepository.ts
100% 100% 100% 100%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / BlockRepository.ts
100%
75% (-25% 🔻)
100% 100%
🟡
... / BlockIndexer.worker.logic.ts
66.67% (-5.03% 🔻)
31.25% (-13.19% 🔻)
50%
68.18% (-2.65% 🔻)

Test suite run failed

Failed tests: 2/62. Failed suites: 1/12.
  ● BlockIndexer.worker.logic api › should not start twice

    PrismaClientUnknownRequestError: 
    Invalid `prisma.block.findFirst()` invocation in
    /home/runner/work/dig-sdk-v2/dig-sdk-v2/src/infrastructure/Workers/BlockIndexer/BlockIndexer.worker.logic.ts:21:34

      18 let blockchainService: IBlockchainService;
      19 
      20 async function syncToBlockchainHeight() {
    → 21   const row = await prisma.block.findFirst(
    Engine is not yet connected.
    Backtrace []

      19 |
      20 | async function syncToBlockchainHeight() {
    > 21 |   const row = await prisma.block.findFirst({ orderBy: { blockHeight: 'desc' } });
         |               ^
      22 |   blockHeight = row && typeof row.blockHeight === 'number' && !isNaN(row.blockHeight) ? row.blockHeight : 0;
      23 |
      24 |   const blockchainHeight = await blockchainService.getCurrentBlockchainHeight();

      at Xn.handleRequestError (node_modules/@prisma/client/runtime/library.js:121:7649)
      at Xn.handleAndLogRequestError (node_modules/@prisma/client/runtime/library.js:121:6784)
      at Xn.request (node_modules/@prisma/client/runtime/library.js:121:6491)
      at l (node_modules/@prisma/client/runtime/library.js:130:9812)
      at syncToBlockchainHeight (src/infrastructure/Workers/BlockIndexer/BlockIndexer.worker.logic.ts:21:15)
      at Object.start (src/infrastructure/Workers/BlockIndexer/BlockIndexer.worker.logic.ts:58:5)
      at Object.<anonymous> (test/infrastructure/workers/BlockIndexer/BlockIndexer.worker.logic.test.ts:31:5)

  ● BlockIndexer.worker.logic api › should stop and reset

    {"is_panic":false,"message":"Engine is not yet connected.","backtrace":"Backtrace []"}



Report generated by 🧪jest coverage report action from 88efb27

Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
@gogeterobert gogeterobert deleted the add-support-for-postgres-86c4bduyz branch July 9, 2025 08:29
@gogeterobert gogeterobert restored the add-support-for-postgres-86c4bduyz branch July 9, 2025 08:29
@gogeterobert gogeterobert deleted the add-support-for-postgres-86c4bduyz branch July 11, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant