Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faililing tests integration tests on Windows #1115

Closed
piotr-iohk opened this issue Dec 4, 2019 · 11 comments
Closed

Faililing tests integration tests on Windows #1115

piotr-iohk opened this issue Dec 4, 2019 · 11 comments
Assignees

Comments

@piotr-iohk
Copy link
Contributor

piotr-iohk commented Dec 4, 2019

Context

#703

Test Case

Following 21 tests are failing (after the path issue fix -> #1109):

Failures:

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:135:9:
  1) No backend required, Cardano.Wallet.NetworkSpec, Happy Paths, getAccountState: successfully gets account state
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-dbc61946bb87b0ae\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-dbc61946bb87b0ae\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/getAccountState: successfully gets account state/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:147:9:
  2) No backend required, Cardano.Wallet.NetworkSpec, Happy Paths, get network tip
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-fddede207e198264\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-fddede207e198264\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/get network tip/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:155:9:
  3) No backend required, Cardano.Wallet.NetworkSpec, Happy Paths, get some blocks from the genesis
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-4fddc9cc3517e081\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-4fddc9cc3517e081\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/get some blocks from the genesis/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:161:9:
  4) No backend required, Cardano.Wallet.NetworkSpec, Happy Paths, no blocks after the tip
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-b366f54b64748f5c\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-b366f54b64748f5c\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/no blocks after the tip/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:175:9:
  5) No backend required, Cardano.Wallet.NetworkSpec, Happy Paths, initiates recovery when the intersection is unknown
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-1f48d76bd7205e5a\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-1f48d76bd7205e5a\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/initiates recovery when the intersection is unknown/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:207:9:
  6) No backend required, Cardano.Wallet.NetworkSpec, Error paths, networkTip: ErrNetworkUnreachable
       uncaught exception: IOException of type OtherError
       Network.Socket.connect: <socket: 652>: failed (Connection refused (WSAECONNREFUSED))

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/networkTip: ErrNetworkUnreachable/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:221:9:
  7) No backend required, Cardano.Wallet.NetworkSpec, Error paths, nextBlocks: ErrNetworkUnreachable
       uncaught exception: IOException of type OtherError
       Network.Socket.connect: <socket: 524>: failed (Connection refused (WSAECONNREFUSED))

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/nextBlocks: ErrNetworkUnreachable/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:235:9:
  8) No backend required, Cardano.Wallet.NetworkSpec, Error paths, networkTip: throws on invalid url
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-67fb685c5e01c5dd\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-67fb685c5e01c5dd\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/networkTip: throws on invalid url/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:407:5:
  9) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getAccountState, resource not found
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-3ad4ffd19d43325e\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-3ad4ffd19d43325e\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getAccountState/resource not found/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:418:5:
  10) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getAccountState, invalid url path
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-28c4b532bf1095aa\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-28c4b532bf1095aa\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getAccountState/invalid url path/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:407:5:
  11) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getBlock, resource not found
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-64a38408f72f7499\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-64a38408f72f7499\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getBlock/resource not found/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:418:5:
  12) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getBlock, invalid url path
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-26baa8c5033b9330\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-26baa8c5033b9330\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getBlock/invalid url path/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:418:5:
  13) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getDescendantIds, invalid url path
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-ce69fae002d81ebf\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-ce69fae002d81ebf\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getDescendantIds/invalid url path/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:418:5:
  14) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getStakeDistribution, invalid url path
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-30830b20ed38229d\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-30830b20ed38229d\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getStakeDistribution/invalid url path/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:343:9:
  15) No backend required, Cardano.Wallet.NetworkSpec, Submitting signed transactions (that are not obviously wrong), empty tx succeeds
       uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-9fa856d3e650e7be\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-9fa856d3e650e7be\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Submitting signed transactions (that are not obviously wrong)/empty tx succeeds/"

  src/Test/Integration/Scenario/CLI/Miscellaneous.hs:35:9:
  16) No backend required, Miscellaneous CLI tests, CLI_VERSION - cardano-wallet shows version
       expected: "2019.11.18 (git revision: 0000000000000000000000000000000000000000)"
        but got: "2019.11.18 (git revision: 47c2103e33efeaa72509785ac3c9971d137eb1c8)"

  To rerun use: --match "/No backend required/Miscellaneous CLI tests/CLI_VERSION - cardano-wallet shows version/"

  src/Test/Integration/Framework/DSL.hs:608:36:
  17) API Specifications TRANS_EXTERNAL_CREATE_01 - proper single output transaction and proper binary format
       expected: 1
        but got: 2

  To rerun use: --match "/API Specifications/TRANS_EXTERNAL_CREATE_01 - proper single output transaction and proper binary format/"

  test/integration/Test/Integration/Jormungandr/Scenario/CLI/Server.hs:100:13:
  18) CLI Specifications, DaedalusIPC [SERIAL], Should reply with the port --random
       expected: ExitSuccess
        but got: ExitFailure 1

  To rerun use: --match "/CLI Specifications/DaedalusIPC [SERIAL]/Should reply with the port --random/"

  test/integration/Test/Integration/Jormungandr/Scenario/CLI/Server.hs:102:9:
  19) CLI Specifications, DaedalusIPC [SERIAL], Should reply with the port --port
       uncaught exception: IOException of type OtherError
       Network.Socket.connect: <socket: 856>: failed (Connection refused (WSAECONNREFUSED))

  To rerun use: --match "/CLI Specifications/DaedalusIPC [SERIAL]/Should reply with the port --port/"

  test/integration/Test/Integration/Jormungandr/Scenario/CLI/Server.hs:113:13:
  20) CLI Specifications, DaedalusIPC [SERIAL], Regression test for #1036
       expected: ExitSuccess
        but got: ExitFailure 1

  To rerun use: --match "/CLI Specifications/DaedalusIPC [SERIAL]/Regression test for #1036/"

  test/integration/Test/Integration/Jormungandr/Scenario/CLI/Server.hs:169:17:
  21) CLI Specifications, LOGGING - cardano-wallet serve logging [SERIAL], LOGGING - Serve shuts down logging correctly
       "\ESC[34m[iohk.cardano-wallet:Info:ThreadId 3]\ESC[0m [2019-12-04 09:42:42.27 UTC] Creating directory: /does-not-exist\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 3]\ESC[0m [2019-12-04 09:42:42.27 UTC] Running as v2019.11.18 (git revision: 47c2103e33efeaa72509785ac3c9971d137eb1c8)\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 3]\ESC[0m [2019-12-04 09:42:42.27 UTC] Wallet backend server starting...\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 3]\ESC[0m [2019-12-04 09:42:42.27 UTC] Node is J\246rmungandr on testnet\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 23]\ESC[0m [2019-12-04 09:42:42.28 UTC] Waiting for J\246rmungandr to be ready on tcp/65072\n\ESC[34m[iohk.cardano-wallet.daedalus-ipc:Info:ThreadId 22]\ESC[0m [2019-12-04 09:42:42.27 UTC] Daedalus IPC is not enabled.\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 23]\ESC[0m [2019-12-04 09:42:42.28 UTC] J\246rmungandr is ready.\n[iohk.cardano-wallet:Debug:ThreadId 23] [2019-12-04 09:42:42.29 UTC] Using connection string: /does-not-exist\\stake-pools.sqlite\n[iohk.cardano-wallet.query:Debug:ThreadId 23] [2019-12-04 09:42:42.30 UTC] CREATE TABLE \"pool_production\"(\"pool_id\" VARCHAR NOT NULL,\"slot\" INTEGER NOT NULL,\"header_hash\" VARCHAR NOT NULL,\"parent_header_hash\" VARCHAR NOT NULL,\"block_height\" INTEGER NOT NULL, PRIMARY KEY (\"slot\"))\n[iohk.cardano-wallet.query:Debug:ThreadId 23] [2019-12-04 09:42:42.30 UTC] CREATE TABLE \"stake_distribution\"(\"pool_id\" VARCHAR NOT NULL,\"epoch\" INTEGER NOT NULL,\"stake\" INTEGER NOT NULL, PRIMARY KEY (\"pool_id\",\"epoch\"))\n\ESC[35m[iohk.cardano-wallet:Notice:ThreadId 23]\ESC[0m [2019-12-04 09:42:42.30 UTC] 2 migrations were applied to the database.\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.30 UTC] SELECT \"pool_id\", \"slot\", \"header_hash\", \"parent_header_hash\", \"block_height\" FROM \"pool_production\" ORDER BY \"slot\" DESC LIMIT 4\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:42.31 UTC] Start monitoring stake pools. Currently at genesis\n\ESC[34m[iohk.cardano-wallet:Info:ThreadId 23]\ESC[0m [2019-12-04 09:42:42.31 UTC] Wallet backend server listening on 127.0.0.1:65165\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:42.32 UTC] Applying blocks [481260.5 ... 481262.12]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:42.32 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.32 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:42.33 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:42.83 UTC] In sync with the node.\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:43.33 UTC] Applying blocks [481262.13 ... 481262.13]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:43.33 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:43.33 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:43.33 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:43.34 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:43.34 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:43.84 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:44.34 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:44.85 UTC] In sync with the node.\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:45.35 UTC] Applying blocks [481262.14 ... 481262.14]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:45.35 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:45.35 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:45.35 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:45.35 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:45.36 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:45.86 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:46.36 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:46.86 UTC] In sync with the node.\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:47.36 UTC] Applying blocks [481262.15 ... 481262.15]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:47.36 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:47.36 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:47.36 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:47.36 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:47.37 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:47.87 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:48.37 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:48.88 UTC] In sync with the node.\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:49.38 UTC] Applying blocks [481262.16 ... 481262.16]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:49.38 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:49.38 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:49.38 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:49.38 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:49.39 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:49.89 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:50.39 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:50.89 UTC] In sync with the node.\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:51.39 UTC] Applying blocks [481262.17 ... 481262.17]\n\ESC[34m[iohk.cardano-wallet.stake-pools:Info:ThreadId 37]\ESC[0m [2019-12-04 09:42:51.39 UTC] Writing stake-distribution for epoch 481262\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:51.39 UTC] DELETE FROM \"stake_distribution\" WHERE (\"epoch\"=?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:51.39 UTC] INSERT INTO \"stake_distribution\"(\"pool_id\",\"epoch\",\"stake\") VALUES (?,?,?),(?,?,?),(?,?,?)\n[iohk.cardano-wallet.query:Debug:ThreadId 37] [2019-12-04 09:42:51.39 UTC] INSERT INTO \"pool_production\"(\"pool_id\",\"slot\",\"header_hash\",\"parent_header_hash\",\"block_height\") VALUES(?,?,?,?,?)\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:51.40 UTC] In sync with the node.\n[iohk.cardano-wallet.stake-pools:Debug:ThreadId 37] [2019-12-04 09:42:51.90 UTC] In sync with the node.\n" does not contain "Logging shutdown"

  To rerun use: --match "/CLI Specifications/LOGGING - cardano-wallet serve logging [SERIAL]/LOGGING - Serve shuts down logging correctly/"

Randomized with seed 1273040386

Finished in 1049.3688 seconds
1027 examples, 21 failures, 1 pending


Also jormungandr.exe "stays" there and keeps logging to console after the tests are finished...

Failure / Counter-example


Resolution


QA

@rvl
Copy link
Contributor

rvl commented Dec 4, 2019

Thanks

  • The PermissionDenied errors should be easily fixed (windows file locking).
  • The assertion for CLI_VERSION could be adjusted to only consider the version part.
  • Maybe TRANS_EXTERNAL_CREATE_01 is a flaky test that also fails on Linux?
  • The 4 other failures need more investigation.

It would be nice to find out which (failing) tests leave behind the jormungandr.exe process - it's probably the DaedalusIPC tests, but may be other launch tests.

@piotr-iohk
Copy link
Contributor Author

piotr-iohk commented Dec 4, 2019

Edit: updated Failing/Passing after #1125
Executing one by one I found that quite a few were passing, and none of those 21 did not leave hanging Jormungandr:

Failing ❌ :

--match "/CLI Specifications/DaedalusIPC [SERIAL]/Regression test for #1036/"
--match "/CLI Specifications/LOGGING - cardano-wallet serve logging [SERIAL]/LOGGING - Serve shuts down logging correctly/"
--match "/CLI Specifications/DaedalusIPC [SERIAL]/Should reply with the port --port/"
--match "/CLI Specifications/DaedalusIPC [SERIAL]/Should reply with the port --random/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/networkTip: ErrNetworkUnreachable/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/nextBlocks: ErrNetworkUnreachable/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getBlock/invalid url path/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getDescendantIds/invalid url path/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getStakeDistribution/invalid url path/"

Passing ✔️ :

--match "/API Specifications/TRANS_EXTERNAL_CREATE_01 - proper single output transaction and proper binary format/"
--match "/No backend required/Miscellaneous CLI tests/CLI_VERSION - cardano-wallet shows version/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/no blocks after the tip/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/initiates recovery when the intersection is unknown/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/getAccountState: successfully gets account state/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/get network tip/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Happy Paths/get some blocks from the genesis/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Error paths/networkTip: throws on invalid url/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getAccountState/resource not found/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getAccountState/invalid url path/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getBlock/resource not found/"
--match "/No backend required/Cardano.Wallet.NetworkSpec/Submitting signed transactions (that are not obviously wrong)/empty tx succeeds/"

Perhaps those that are now passing were failing due to this unexpected Jormungandr hanging in bg...

@KtorZ
Copy link
Member

KtorZ commented Dec 4, 2019

That is very plausible @piotr-iohk 🤔

@rvl rvl self-assigned this Dec 6, 2019
@rvl
Copy link
Contributor

rvl commented Dec 6, 2019

I had a closer look at the removeDirectoryRecursive errors.

uncaught exception: IOException of type PermissionDenied
       C:\Users\katar\AppData\Local\Temp\cardano-wallet-jormungandr-dbc61946bb87b0ae\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\katar\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-dbc61946bb87b0ae\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

Actually it's not simply a matter of ignoring the exception, as I previously thought.

By the time removeDirectoryRecursive is called, the launch code should have ensured that jormungandr.exe has exited. But this is not the case.

iohk-bors bot added a commit that referenced this issue Dec 6, 2019
1124: Core Benchmark Adjustments r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#1067 

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

1/ Use db transactions "correctly" :s .. I noticed that the benchmark where doing a lot of mapM_ (atomically action) instead of atomitically (mapM_ action). The difference is subtle but the later is much faster (one db transaction) and actually, better reflects what the actual code does in the wallet engine.
2/ I've removed some pointless extreme case like trying to insert 1000 checkpoints. We insert at most k/100 + 10 checkpoints, so that's ~30 checkpoints. So, now, the worst case bench is just about inserting 100 checkpoints. Though, as a counterpart, I've increased the max size of the UTxO to make sure they better reflect what we might face.
3/ I've removed the "NBatch" parameter for transactions. We always insert transaction history as one batch (though the internal db engine might do multiple batch, that's irrelevant for the bench setup).
4/ I've added some heavier transaction write with 255 and 255 max inputs / outputs since this is the actual limit of Jörmungandr (which didn't end up using a soft tx limit in the end).


# Comments

<!-- Additional comments or screenshots to attach if any -->

Nightly here: https://buildkite.com/input-output-hk/cardano-wallet-nightly/builds/303

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


1125: Fixing Windows  failing tests r=piotr-iohk a=piotr-iohk

# Issue Number

#1115

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [ ] Fixed `TRANS_EXTERNAL_CREATE_01` and `CLI_VERSION`

# Comments

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <[email protected]>
Co-authored-by: Piotr Stachyra <[email protected]>
iohk-bors bot added a commit that referenced this issue Dec 6, 2019
1125: Fixing Windows  failing tests r=piotr-iohk a=piotr-iohk

# Issue Number

#1115

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [ ] Fixed `TRANS_EXTERNAL_CREATE_01` and `CLI_VERSION`

# Comments

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: Piotr Stachyra <[email protected]>
iohk-bors bot added a commit that referenced this issue Dec 9, 2019
1116: Estimate fees for joining a stake pool r=KtorZ a=Anviking

# Issue Number

WB-32: #1094 #1096 (Found it easier to tackle both at once)

# Overview

Also see commit history, but main points:

- [x] Added API endpoint *GET /stake-pools/{stake-pool}/wallets/{wallet}/fee*
- [x] Added `feeBalance :: CoinSelection -> Word64`. I re-use `selectCoinsForDelegation` together with `feeBalance` to implement the `joinStakePoolFee` handler.
- [x] Integration tests:
    - STAKE_POOLS_ESTIMATE_FEE_01 - fee matches eventual cost
    - STAKE_POOLS_ESTIMATE_FEE_02 - empty wallet cannot estimate fee
    - STAKE_POOLS_ESTIMATE_FEE_03 - can't use byron wallets
    - STAKE_POOLS_ESTIMATE_FEE_04 - invalid pool and wallet ids

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


1149: bump versions to v2019.12.9 r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

N/A

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] I have bumped versions to v2019.12.9

# Comments

<!-- Additional comments or screenshots to attach if any -->

Known issues for the upcoming release:

- #1115
- #1071
- #961

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: Johannes Lund <[email protected]>
Co-authored-by: KtorZ <[email protected]>
iohk-bors bot added a commit that referenced this issue Dec 9, 2019
1149: bump versions to v2019.12.9 r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

N/A

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] I have bumped versions to v2019.12.9

# Comments

<!-- Additional comments or screenshots to attach if any -->

Known issues for the upcoming release:

- #1115
- #1071
- #961

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <[email protected]>
@piotr-iohk
Copy link
Contributor Author

piotr-iohk commented Jan 9, 2020

Running tests on recent master (https://hydra.iohk.io/build/1552156) and there are only 2 failures:

Failures:

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:371:9:
  1) No backend required, Cardano.Wallet.NetworkSpec, Submitting signed transactions (that are not obviously wrong), no input, one output
       uncaught exception: IOException of type PermissionDenied
       C:\Users\piotr\AppData\Local\Temp\cardano-wallet-jormungandr-ee837d6b69462b5c\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\piotr\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-ee837d6b69462b5c\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/Submitting signed transactions (that are not obviously wrong)/no input, one output/"

  test/integration/Test/Integration/Jormungandr/Scenario/CLI/Server.hs:169:17:
  2) CLI Specifications, LOGGING - cardano-wallet serve logging [SERIAL], LOGGING - Serve shuts down logging correctly
       "... a lot of logs here..." does not contain "Logging shutdown"

  To rerun use: --match "/CLI Specifications/LOGGING - cardano-wallet serve logging [SERIAL]/LOGGING - Serve shuts down logging correctly/"

Randomized with seed 774828659

Finished in 2386.2869 seconds
1108 examples, 2 failures, 1 pending

The first one however passes when re-running with --match " --match "/No backend required/Cardano.Wallet.NetworkSpec/Submitting signed transactions (that are not obviously wrong)/no input, one output/""
The second one probably can be fixed... I think...

@KtorZ
Copy link
Member

KtorZ commented Jan 9, 2020

@piotr-iohk are you also able to run all tests at once now or do you still run things one-by-one ?

@piotr-iohk
Copy link
Contributor Author

@KtorZ I've run everything at once.

iohk-bors bot added a commit that referenced this issue Jan 13, 2020
1255: Fix LOGGING test on Windows r=piotr-iohk a=piotr-iohk

# Issue Number

#1115 

# Overview

- 71c8f30
  Fix LOGGING test on Windows
  
- c3e9828
  chmod +x for test_scripts

# Comments
Fixes test:
```
  2) CLI Specifications, LOGGING - cardano-wallet serve logging [SERIAL], LOGGING - Serve shuts down logging correctly
       "... a lot of logs here..." does not contain "Logging shutdown"
```
which now pass on Windows and Linux.

Co-authored-by: Piotr Stachyra <[email protected]>
Co-authored-by: Rodney Lorrimar <[email protected]>
@piotr-iohk
Copy link
Contributor Author

Today, after the fix - #1255 - I get such errors on integration tests:

Failures:

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:418:5:
  1) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getAccountState, invalid url path
       uncaught exception: IOException of type PermissionDenied
       C:\Users\piotr\AppData\Local\Temp\cardano-wallet-jormungandr-2b1b7f7322ffdb56\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\piotr\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-2b1b7f7322ffdb56\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getAccountState/invalid url path/"

  test/integration/Cardano/Wallet/Jormungandr/NetworkSpec.hs:433:5:
  2) No backend required, Cardano.Wallet.NetworkSpec, White-box error path tests, getBlock, invalid resource id
       uncaught exception: IOException of type PermissionDenied
       C:\Users\piotr\AppData\Local\Temp\cardano-wallet-jormungandr-8b6338dae37ed1d9\chain\blocks.sqlite-shm: removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:DeleteFile "\\\\?\\C:\\Users\\piotr\\AppData\\Local\\Temp\\cardano-wallet-jormungandr-8b6338dae37ed1d9\\chain\\blocks.sqlite-shm": permission denied (Odmowa dostępu.)

  To rerun use: --match "/No backend required/Cardano.Wallet.NetworkSpec/White-box error path tests/getBlock/invalid resource id/"

Randomized with seed 789715958

Finished in 2767.1534 seconds
1107 examples, 2 failures, 1 pending

However, the other day, I think all tests passed for me. 🤔

Another issue is that after tests are finished - Jormungandr is not killed but left working and logging to the console.

@piotr-iohk
Copy link
Contributor Author

On the latest https://hydra.iohk.io/build/1566747 all integration tests are passing when running standalone:

Finished in 2690.9991 seconds
1107 examples, 0 failures, 1 pending

Also unit tests passed for me for core and jormungandr...

@KtorZ
Copy link
Member

KtorZ commented Jan 18, 2020

@piotr-iohk Shall we close this one then? Perhaps we can now open a new ticket to replace this one about getting the tests to run properly in Hydra? (cc @rvl)

@piotr-iohk
Copy link
Contributor Author

Closing. New issue created for tracking failing tests on Hydra -> #1283.

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

No branches or pull requests

3 participants