Skip to content

ci, refactor: Disable binaries for Android task explicitly - #23286

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
hebasto:211015-android
Oct 15, 2021
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
hebasto:211015-android

Conversation

@hebasto

@hebasto hebasto commented Oct 15, 2021

Copy link
Copy Markdown
Member

This PR defines a set of binaries that are compiled in the Android APK task explicitly via configure options, that allows to avoid relying on the test_bitcoin_qt target from the src/qt/Makefile.

It is ported from bitcoin-core/gui-qml#58.

No behavior change.

@DrahtBot DrahtBot added the Tests label Oct 15, 2021
@maflcko

maflcko commented Oct 15, 2021

Copy link
Copy Markdown
Member

Excerpt Before:

Options used to compile and link:
  external signer = yes
  multiprocess    = no
  with experimental syscall sandbox support = no
  with libs       = yes
  with wallet     = yes
    with sqlite   = yes
    with bdb      = yes
  with gui / qt   = yes
    with qr       = yes
  with zmq        = yes
  with test       = yes
  with bench      = yes
  with upnp       = yes
  with natpmp     = yes
  use asm         = yes
  ebpf tracing    = no
  sanitizers      = 
  debug enabled   = no
  gprof enabled   = no
  werror          = no

  target os       = android
  build os        = linux-gnu
...
  AR       qt/libbitcoinqt.a
  CXXLD    qt/bitcoin-qt
  CXXLD    qt/test/test_bitcoin-qt
make[1]: Leaving directory '/tmp/cirrus-ci-build/src'

Excerpt After:

Options used to compile and link:
  external signer = yes
  multiprocess    = no
  with experimental syscall sandbox support = no
  with libs       = no
  with wallet     = yes
    with sqlite   = yes
    with bdb      = yes
  with gui / qt   = yes
    with qr       = yes
  with zmq        = yes
  with test       = no
  with bench      = no
  with upnp       = yes
  with natpmp     = yes
  use asm         = yes
  ebpf tracing    = no
  sanitizers      = 
  debug enabled   = no
  gprof enabled   = no
  werror          = no

  target os       = android
  build os        = linux-gnu
...
  AR       qt/libbitcoinqt.a
  CXXLD    qt/bitcoin-qt
  CXXLD    qt/test/test_bitcoin-qt
make[2]: Leaving directory '/tmp/cirrus-ci-build/src'

@maflcko

maflcko commented Oct 15, 2021

Copy link
Copy Markdown
Member

cr ACK 67bb6b5

@maflcko
maflcko merged commit e504e9a into bitcoin:master Oct 15, 2021
@hebasto
hebasto deleted the 211015-android branch October 15, 2021 21:08
@fanquake

Copy link
Copy Markdown
Member

I don't understand this PR. What is the motivation?

No behavior change.

Well now we are testing less than we were before, and I'm not sure what we've gained? Even though Android isn't currently a particularly important part of our CI, I don't like the idea that we are reducing test coverage here to work around things that might not work in the https://github.com/bitcoin-core/gui-qml repo.

@hebasto

hebasto commented Oct 16, 2021 •

Copy link
Copy Markdown
Member Author

Well now we are testing less than we were before...

The set of compiled and linked binaries is the same:

...
  CXXLD    qt/bitcoin-qt
  CXXLD    qt/test/test_bitcoin-qt
...

What "reducing test coverage" do you mean?

UPDATE. Now it's possible to drop --disable-X or --without-Y configure options and increase the test coverage, and it will work in both repos because Android APK task now avoids using of pure Makefile targets.

hebasto added a commit to bitcoin-core/gui-qml that referenced this pull request Oct 19, 2021
Pull request description:

  Sync with the main repo up to bitcoin-core/gui@ef59692.

  This sync includes:
  - bitcoin/bitcoin#23242 ported from #49
  - bitcoin/bitcoin#23286 ported from #58

  Parent commits:
  ```
  $ git rev-parse 8967f19^@
  8cfb3cb
  ef59692
  ```

ACKs for top commit:
  jarolrod:
    ACK 8967f19

Tree-SHA512: c387e638862afe5fd4711d9c1aad36165d04f328612c9b74b35a50b477933e6c6b8cf0674caf3b02e24a22d8598aee7e880baf4c3879c629f71a92af31714548
@bitcoin bitcoin locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants