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

CouchDB Kitura NIO tests failing on Linux #91

Closed
Andrew-Lees11 opened this issue Nov 16, 2018 · 6 comments · Fixed by #100
Closed

CouchDB Kitura NIO tests failing on Linux #91

Andrew-Lees11 opened this issue Nov 16, 2018 · 6 comments · Fixed by #100
Assignees
Labels
Milestone

Comments

@Andrew-Lees11
Copy link
Contributor

There was a missing return statement in the CouchDB tests. This was causing the tests to automatically pass without actually running.
A pr fixing this has been raised here

Now the tests are running the KituraNio travis builds are failing.

We need to investigate why they are failing and either fix them or propose a new solution for making rest requests within this repo.

@djones6
Copy link
Contributor

djones6 commented Dec 17, 2018

Attn: @nethraravindran @pushkarnk

@pushkarnk pushkarnk self-assigned this Dec 18, 2018
@djones6
Copy link
Contributor

djones6 commented Dec 18, 2018

All tests are failing with: DB creation error: 400 Error: bad_request, reason: Authorization header has invalid base64 value

@djones6
Copy link
Contributor

djones6 commented Dec 18, 2018

@pushkarnk turns out, I already fixed the failure above (Kitura/Kitura-NIO#116) - I restarted CI with this fix.

Now there is a crash in ClientRequest during the second CouchDB test: https://travis-ci.org/IBM-Swift/Kitura-CouchDB/jobs/455930086

Test Case 'DocumentViewTests.testViewTest' started at 2018-12-18 10:29:15.431
Exited with signal code 4
(lldb) target create ".build/debug/Kitura-CouchDBPackageTests.xctest" --core "./core"
Core file '/home/travis/build/IBM-Swift/Kitura-CouchDB/./core' (x86_64) was loaded.
(lldb) thread backtrace all
* thread #1, name = 'Kitura-CouchDBP', stop reason = signal SIGILL
  * frame #0: 0x000055cfa3ac7ecb Kitura-CouchDBPackageTests.xctest`ClientRequest.end(close=false, self=<unavailable>) at ClientRequest.swift:353
    frame #1: 0x000055cfa3a86ce2 Kitura-CouchDBPackageTests.xctest`Database.queryByView(view=<unavailable>, design=<unavailable>, params=<unavailable>, callback=<unavailable>, self=<unavailable>) at Database.swift:471
    frame #2: 0x000055cfa3aabd14 Kitura-CouchDBPackageTests.xctest`DocumentViewTests.readDocument(self=<unavailable>) at DocumentViewTests.swift:66
    frame #3: 0x000055cfa3aaf227 Kitura-CouchDBPackageTests.xctest`closure #1 in DocumentViewTests.createDesign(document=<unavailable>, error=<unavailable>, self=<unavailable>) at DocumentViewTests.swift:137
    frame #4: 0x000055cfa3aaf24c Kitura-CouchDBPackageTests.xctest`partial apply for closure #1 in DocumentViewTests.createDesign() at <compiler-generated>:0
    frame #5: 0x000055cfa3a88483 Kitura-CouchDBPackageTests.xctest`closure #1 in Database.createDesign(response=<unavailable>, doc=<unavailable>, callback=<unavailable>) at Database.swift:495
    frame #6: 0x000055cfa3a88525 Kitura-CouchDBPackageTests.xctest`partial apply for closure #1 in Database.createDesign(_:document:callback:) at <compiler-generated>:0
    frame #7: 0x000055cfa3ace618 Kitura-CouchDBPackageTests.xctest`closure #4 in HTTPClientHandler.channelRead(self=<unavailable>) at ClientRequest.swift:640
    frame #8: 0x000055cfa3ace65c Kitura-CouchDBPackageTests.xctest`partial apply for closure #4 in HTTPClientHandler.channelRead(ctx:data:) at <compiler-generated>:0
    frame #9: 0x000055cfa3a9099d Kitura-CouchDBPackageTests.xctest`thunk for @escaping @callee_guaranteed () -> () at <compiler-generated>:0
    frame #10: 0x00007f63ab232ae7 libdispatch.so`_dispatch_call_block_and_release + 7
    frame #11: 0x00007f63ab242549 libdispatch.so`_dispatch_worker_thread + 937
    frame #12: 0x00007f63aa999184 libpthread.so.0`start_thread + 196
    frame #13: 0x00007f63a898effd libc.so.6`clone + 109

@pushkarnk
Copy link
Contributor

This fixes on of the failures seen in DocumentViewTests: Kitura/Kitura-NIO#171

There's another failure seen in AttachmentTest.swift, I'll investigate that next.

@pushkarnk
Copy link
Contributor

The failure in AttachmentTest.swift goes away with this pull request: Kitura/Kitura-NIO#172

@djones6 djones6 modified the milestones: 2019.04, 2019.05 Mar 13, 2019
@djones6
Copy link
Contributor

djones6 commented Mar 13, 2019

Awaiting Kitura/Kitura-NIO#171 merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants