View Issue Details

IDProjectCategoryView StatusLast Update
0007516Talerdeployment and operationspublic2023-09-23 15:09
ReporterMS Assigned ToMS  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.9.3Fixed in Version0.9.3 
Summary0007516: TypeScript test harness fails at preparing the database.
DescriptionThe following error happens when running the complete suite (command below), marking the test case as failed.
It MAY be needed to run the suite more than once.

Ideally, the harness should handle the problem, or at least mark the test as skipped.

$ taler-wallet-cli testing run-integrationtests
Additional Informationrunning test test-withdrawal-manual in worker process
running test test-withdrawal-manual
2022-12-10T14:17:19.331Z harness.ts INFO running test in directory [
  "/tmp/taler-integrationtests-Li7zK6/test-withdrawal-manual"
]
FATAL: test failed with exception Error: Command failed: createdb "taler-integrationtest"
createdb: error: database creation failed: ERROR: database "taler-integrationtest" already exists

    at ChildProcess.exithandler (node:child_process:398:12)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'createdb "taler-integrationtest"',
  stdout: '',
  stderr: 'createdb: error: database creation failed: ERROR: database "taler-integrationtest" already exists\n'
}
2022-12-10T14:17:24.395Z harness.ts INFO shutting down
test test-withdrawal-manual finished in worker
TagsNo tags attached.

Activities

Florian Dold

2023-01-10 13:10

manager   ~0019623

I've added some code to the harness to write the output of "dropdb" and "createdb" to log files.

Please try again and look at the logs: /tmp/taler-integrationtests-$ID/$TESTNAME/{dropdb,createdb}-stderr.log

This might be a permissions issue on your side.

MS

2023-04-18 11:09

reporter   ~0020105

Last edited: 2023-04-18 11:12

Yes, the log files reflect your last change.

And no, in contrast with this bug report, Florian points out that integration
tests should fail even when a part not belonging to Taler isn't reliable. That
however isn't already the case for the exchange codebase, that instead skips
integration tests when the DB, for example, isn't properly configured.

Christian Grothoff

2023-04-18 15:06

manager   ~0020106

That's different. If the OS is not configured correctly (dependencies missing, database down), then I think 'skip' is correct. But if say there is a bug in libgnunetutil, then the test should fail.

MS

2023-04-18 16:38

reporter   ~0020110

The TypeScript harness was observed to fail with a database down, so if things stay this way, wallet-core.git and exchange.git handle this scenario inconsistently.

Christian Grothoff

2023-04-18 16:41

manager   ~0020111

I think it should fail --- with a return code of 77 ;-).

Issue History

Date Modified Username Field Change
2022-12-10 15:36 MS New Issue
2022-12-10 15:36 MS Description Updated
2022-12-10 15:37 MS Reproducibility have not tried => sometimes
2022-12-10 15:37 MS Product Version => git (master)
2022-12-10 15:38 MS Assigned To => Florian Dold
2022-12-10 15:38 MS Status new => assigned
2022-12-10 15:41 MS Summary TypeScript test harness fails itself at preparing the database. => TypeScript test harness fails at preparing the database.
2023-01-10 13:10 Florian Dold Assigned To Florian Dold => MS
2023-01-10 13:10 Florian Dold Status assigned => feedback
2023-01-10 13:10 Florian Dold Note Added: 0019623
2023-04-04 16:21 Florian Dold Target Version => 0.9.3
2023-04-18 11:09 MS Note Added: 0020105
2023-04-18 11:10 MS Status feedback => resolved
2023-04-18 11:10 MS Resolution open => fixed
2023-04-18 11:12 MS Note Edited: 0020105
2023-04-18 15:06 Christian Grothoff Note Added: 0020106
2023-04-18 16:38 MS Note Added: 0020110
2023-04-18 16:41 Christian Grothoff Note Added: 0020111
2023-09-23 15:07 Christian Grothoff Fixed in Version => 0.9.3
2023-09-23 15:09 Christian Grothoff Status resolved => closed