Skip to content

Conversation

@ryanofsky
Copy link
Contributor

@ryanofsky ryanofsky commented Aug 20, 2018

macOS minimal platform is frequently broken, and these are currently failing with Qt 5.11.1.

The tests do pass when run on the full cocoa platform (with test_bitcoin-qt -platform cocoa).

Stack trace from test crash: https://gist.github.com/ryanofsky/3401fb63c52d13d5585e7fc777361f1e

macOS Qt minimal platform is frequently broken, and these are currently failing
with Qt 5.11.1.

The tests do pass when run on the full cocoa platform
(with `test_bitcoin-qt -platform cocoa`).
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 20, 2018

No more conflicts as of last run.

@Sjors
Copy link
Member

Sjors commented Sep 7, 2018

I did make check and src/qt/test/test_bitcoin-qt -platform cocoa, but it's still running WalletTests and AddressBookTests. Maybe I need a different -platform argument?

The test pass for me on macOS 10.13.6 with QT 5.11.1 via Homebrew, with and without this change.

@fanquake
Copy link
Member

fanquake commented Oct 9, 2018

@ryanofsky Could you address any comments/nits here and rebase if needed. I'd like to get this (or something equivalent) merged.

Copy link
Contributor Author

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated 391cca5 -> f7a533f (pr/fuqtmac.2 -> pr/fuqtmac.3) just fixing whitespace.

From comments above I guess fanquake could reproduce the test failures, and sjors couldn't, but I think it's best just to skip these tests on the uncommonly used minimal mac platform, rather than try to debug.

@fanquake
Copy link
Member

tACK f7a533f

make check is now fixed for me.

#ifdef Q_OS_MAC
if (QApplication::platformName() == "minimal") {
// Disable for mac on "minimal" platform to avoid crashes inside the Qt
// framework when it tries to look up unimplmented cocoa functions, and
Copy link
Contributor

@practicalswift practicalswift Oct 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "unimplemented" :-)

@ryanofsky
Copy link
Contributor Author

Updated f7a533f -> a3197c5 (pr/fuqtmac.3 -> pr/fuqtmac.4) with spelling fix.

@jonasschnelli
Copy link
Contributor

utACK a3197c5

@fanquake
Copy link
Member

re-tACK a3197c5

Merged on top of 816fab9 and checked make check -j6.

@IlyasRidhuan
Copy link

testedAck a3197c5
QWarns correctly outputted to logs

********* Start testing of WalletTests *********
Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 9.1.0 (clang-902.0.39.2) (Apple))
PASS   : WalletTests::initTestCase()
WARNING: WalletTests::walletTests() Skipping WalletTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke with 'test_bitcoin-qt -platform cocoa' on mac, or else use a linux or windows build.
   Loc: [qt/test/wallettests.cpp(253)]
PASS   : WalletTests::walletTests()
PASS   : WalletTests::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 0ms
********* Finished testing of WalletTests *********
********* Start testing of AddressBookTests *********
Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 9.1.0 (clang-902.0.39.2) (Apple))
PASS   : AddressBookTests::initTestCase()
WARNING: AddressBookTests::addressBookTests() Skipping AddressBookTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke with 'test_bitcoin-qt -platform cocoa' on mac, or else use a linux or windows build.
   Loc: [qt/test/addressbooktests.cpp(150)]
PASS   : AddressBookTests::addressBookTests()
PASS   : AddressBookTests::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 0ms
********* Finished testing of AddressBookTests *********
PASS qt/test/test_bitcoin-qt (exit status: 0)

@promag
Copy link
Contributor

promag commented Oct 19, 2018

Can't reproduce the error on macOS 10.14.

src/qt/test/test_bitcoin-qt -platform minimal
********* Start testing of URITests *********
Config: Using QtTest library 5.11.1, Qt 5.11.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 9.1.0 (clang-902.0.39.2) (Apple))
...

@ryanofsky
Copy link
Contributor Author

I think this is ready for merge. It is platform specific and has tested acks from fanquake #14011 (comment) #14011 (comment) and IlyasRidhuan #14011 (comment) and an untested ACK from jonasschnelli #14011 (comment).

Sjors and promag have reported in #14011 (comment) and #14011 (comment) that they actually see tests passing without this change, so the issue does seem be a little unpredictable. But this is a good, safe fix for #14349, and also a prerequisite for #11625, which expands qt test coverage and exposes more problems with the qt mac minimal platform.

@promag
Copy link
Contributor

promag commented Oct 19, 2018

utACK a3197c5, code change LGTM.

@jamesob
Copy link
Contributor

jamesob commented Oct 19, 2018

utACK a3197c5

Code changes are confined to tests and look good to me.

@sipa sipa merged commit a3197c5 into bitcoin:master Oct 20, 2018
sipa added a commit that referenced this pull request Oct 20, 2018
…al platform

a3197c5 Disable wallet and address book Qt tests on macOS minimal platform (Russell Yanofsky)

Pull request description:

  macOS minimal platform is frequently broken, and these are currently failing with Qt 5.11.1.

  The tests do pass when run on the full cocoa platform (with `test_bitcoin-qt -platform cocoa`).

  Stack trace from test crash: https://gist.github.com/ryanofsky/3401fb63c52d13d5585e7fc777361f1e

Tree-SHA512: a05644ef15d75ea7d7f85ea804c6a5fe78e4e7358b189cbab639d9f7dc46163a35f77f7a2b4ae2fd6be5b9fb22898386b4d88069d5ee8d5fdbd995157c6f0846
@fanquake fanquake mentioned this pull request Oct 24, 2018
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Oct 25, 2018
macOS Qt minimal platform is frequently broken, and these are currently failing
with Qt 5.11.1.

The tests do pass when run on the full cocoa platform
(with `test_bitcoin-qt -platform cocoa`).

Github-Pull: bitcoin#14011
Rebased-From: a3197c5
toxeus pushed a commit to toxeus/bitcoin that referenced this pull request Nov 28, 2018
macOS Qt minimal platform is frequently broken, and these are currently failing
with Qt 5.11.1.

The tests do pass when run on the full cocoa platform
(with `test_bitcoin-qt -platform cocoa`).

Github-Pull: bitcoin#14011
Rebased-From: a3197c5
Earlz added a commit to qtumproject/qtum-x86 that referenced this pull request Apr 24, 2019
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
…S minimal platform

a3197c5 Disable wallet and address book Qt tests on macOS minimal platform (Russell Yanofsky)

Pull request description:

  macOS minimal platform is frequently broken, and these are currently failing with Qt 5.11.1.

  The tests do pass when run on the full cocoa platform (with `test_bitcoin-qt -platform cocoa`).

  Stack trace from test crash: https://gist.github.com/ryanofsky/3401fb63c52d13d5585e7fc777361f1e

Tree-SHA512: a05644ef15d75ea7d7f85ea804c6a5fe78e4e7358b189cbab639d9f7dc46163a35f77f7a2b4ae2fd6be5b9fb22898386b4d88069d5ee8d5fdbd995157c6f0846
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
…S minimal platform

a3197c5 Disable wallet and address book Qt tests on macOS minimal platform (Russell Yanofsky)

Pull request description:

  macOS minimal platform is frequently broken, and these are currently failing with Qt 5.11.1.

  The tests do pass when run on the full cocoa platform (with `test_bitcoin-qt -platform cocoa`).

  Stack trace from test crash: https://gist.github.com/ryanofsky/3401fb63c52d13d5585e7fc777361f1e

Tree-SHA512: a05644ef15d75ea7d7f85ea804c6a5fe78e4e7358b189cbab639d9f7dc46163a35f77f7a2b4ae2fd6be5b9fb22898386b4d88069d5ee8d5fdbd995157c6f0846
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 3, 2021
…S minimal platform

a3197c5 Disable wallet and address book Qt tests on macOS minimal platform (Russell Yanofsky)

Pull request description:

  macOS minimal platform is frequently broken, and these are currently failing with Qt 5.11.1.

  The tests do pass when run on the full cocoa platform (with `test_bitcoin-qt -platform cocoa`).

  Stack trace from test crash: https://gist.github.com/ryanofsky/3401fb63c52d13d5585e7fc777361f1e

Tree-SHA512: a05644ef15d75ea7d7f85ea804c6a5fe78e4e7358b189cbab639d9f7dc46163a35f77f7a2b4ae2fd6be5b9fb22898386b4d88069d5ee8d5fdbd995157c6f0846
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.