View Issue Details

IDProjectCategoryView StatusLast Update
0007516Talerdeployment and operationspublic2023-09-23 13:09
ReporterMS Assigned ToMS Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Florian Dold

2023-01-10 12: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 09:09

reporter   ~0020105

Last edited: 2023-04-18 09: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 13: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 14: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 14:41

manager   ~0020111

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

Issue History

Date ModifiedUsernameFieldChange
2022-12-10 14:36MSNew Issue
2022-12-10 14:36MSDescription Updated
2022-12-10 14:37MSReproducibilityhave not tried => sometimes
2022-12-10 14:37MSProduct Version => git (master)
2022-12-10 14:38MSAssigned To => Florian Dold
2022-12-10 14:38MSStatusnew => assigned
2022-12-10 14:41MSSummaryTypeScript test harness fails itself at preparing the database. => TypeScript test harness fails at preparing the database.
2023-01-10 12:10Florian DoldAssigned ToFlorian Dold => MS
2023-01-10 12:10Florian DoldStatusassigned => feedback
2023-01-10 12:10Florian DoldNote Added: 0019623
2023-04-04 14:21Florian DoldTarget Version => 0.9.3
2023-04-18 09:09MSNote Added: 0020105
2023-04-18 09:10MSStatusfeedback => informing
2023-04-18 09:10MSResolutionopen => fixed
2023-04-18 09:12MSNote Edited: 0020105
2023-04-18 13:06Christian GrothoffNote Added: 0020106
2023-04-18 14:38MSNote Added: 0020110
2023-04-18 14:41Christian GrothoffNote Added: 0020111
2023-09-23 13:07Christian GrothoffFixed in Version => 0.9.3
2023-09-23 13:09Christian GrothoffStatusinforming => closed