Skip to content

Conversation

@elichai
Copy link
Contributor

@elichai elichai commented Nov 25, 2019

Discovered this as part of #17402 and a conversation with gmaxwell.

You can see here that the platform is indeed BE: https://travis-ci.org/elichai/bitcoin/jobs/616656410#L36

This closes #6466

@fanquake fanquake added the Tests label Nov 25, 2019
@laanwj
Copy link
Member

laanwj commented Nov 25, 2019

Concept ACK

Hope this works!

@elichai
Copy link
Contributor Author

elichai commented Nov 25, 2019

@maflcko maflcko changed the title Testing bitcoin in a Big Endian platform - s390x ci: AddBig Endian platform - s390x Nov 25, 2019
@maflcko maflcko changed the title ci: AddBig Endian platform - s390x ci: Add big endian platform - s390x Nov 25, 2019
Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

Didn't know that s390x is be

Thanks. Concept ACK

export GOAL="install"
export BITCOIN_CONFIG="--enable-reduce-exports --with-incompatible-bdb"

lscpu
Copy link
Member

Choose a reason for hiding this comment

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

Could add this to the script where we print free?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that I see that it's already printing that it's bigendian as part of the configure I don't mind removing this https://travis-ci.org/bitcoin/bitcoin/jobs/616670043#L2148


export LC_ALL=C.UTF-8

export HOST=s390x-unknown-linux-gnu
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export HOST=s390x-unknown-linux-gnu
export HOST=s390x-unknown-linux-gnu
# The host arch is unknown, so we run the tests through qemu.
# If the host is arm and wants to run the tests natively, it can set QEMU_USER_CMD to the empty string.
export QEMU_USER_CMD="${QEMU_USER_CMD:"qemu-s390x"}"

And then add in the travis.yml:

        QEMU_USER_CMD=""  # Can run the tests natively without qemu

(just like we do for arm)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should I also add the QEMU packages that we have in the ARM script?

Copy link
Member

Choose a reason for hiding this comment

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

Ah good catch, yes.

export LC_ALL=C.UTF-8

export HOST=s390x-unknown-linux-gnu
export DOCKER_NAME_TAG=s390x/ubuntu:18.04
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export DOCKER_NAME_TAG=s390x/ubuntu:18.04

Is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check, in the PowerPC one Docker failed to download the right image for the platform (and instead downloaded amd64)

export PACKAGES="clang llvm python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev"
export NO_DEPENDS=1
export RUN_UNIT_TESTS=true
export RUN_FUNCTIONAL_TESTS=false
Copy link
Member

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They were timing out in PowerPC, but I didn't try them here, though because this is BE we might want to extend the timeout to make it work(because this is way more interesting then PowerPC)

@maflcko
Copy link
Member

maflcko commented Nov 25, 2019

ACK da1f153

@elichai
Copy link
Contributor Author

elichai commented Nov 25, 2019

Not sure what's up with appveyor though

@maflcko
Copy link
Member

maflcko commented Nov 25, 2019

Just ignore that

@laanwj
Copy link
Member

laanwj commented Nov 25, 2019

yes AppVeyor issue is being fixed in #17592 and unrelated

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

Concept ACK -- very nice.

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #17402 (ci: Travis support for PowerPC64 by elichai)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@practicalswift
Copy link
Contributor

Concept ACK

QEMU_USER_CMD="" # Can run the tests natively without qemu
- stage: test
name: 'S390x [GOAL: install] [unit tests, functional tests]'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
name: 'S390x [GOAL: install] [unit tests, functional tests]'
name: 'S390x [GOAL: install] [unit tests, no functional tests]'

@sipa
Copy link
Member

sipa commented Nov 25, 2019

Is there a chance of including functional tests, or is it just too slow?

maflcko pushed a commit that referenced this pull request Nov 25, 2019
da1f153 Add s390x tests to travis (Elichai Turkel)
2fa65e0 Add ci script to install on s390x (Elichai Turkel)

Pull request description:

  Discovered this as part of #17402 and a conversation with gmaxwell.

  You can see here that the platform is indeed BE: https://travis-ci.org/elichai/bitcoin/jobs/616656410#L36

  This closes #6466

ACKs for top commit:
  MarcoFalke:
    ACK da1f153

Tree-SHA512: e7e94e54e220257d91b24fddc79eab2bcaaadf0b2d1e7e6872d9757808ab2541728f00b1f3ab7e343305c0e7d91bb48a17a3f9621f6fff6c9fe6cde6682de408
@maflcko maflcko merged commit da1f153 into bitcoin:master Nov 25, 2019
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 25, 2019
da1f153 Add s390x tests to travis (Elichai Turkel)
2fa65e0 Add ci script to install on s390x (Elichai Turkel)

Pull request description:

  Discovered this as part of bitcoin#17402 and a conversation with gmaxwell.

  You can see here that the platform is indeed BE: https://travis-ci.org/elichai/bitcoin/jobs/616656410#L36

  This closes bitcoin#6466

ACKs for top commit:
  MarcoFalke:
    ACK da1f153

Tree-SHA512: e7e94e54e220257d91b24fddc79eab2bcaaadf0b2d1e7e6872d9757808ab2541728f00b1f3ab7e343305c0e7d91bb48a17a3f9621f6fff6c9fe6cde6682de408
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 26, 2019
maflcko pushed a commit that referenced this pull request Apr 9, 2020
6136a96 ci: Rename RUN_CI_ON_HOST to DANGER_RUN_CI_ON_HOST (Hennadii Stepanov)
97ba77a ci: Add native s390x (Hennadii Stepanov)

Pull request description:

  Unlike the Docker wrapped solution (#17591) this PR suggests running on host system directly.

  This approach makes builds quick and stable (see: #18106).

  The excerpt from the Travis log:
  ```
  ...
  Running on host system without docker wrapper
  ...
  Byte Order: Big Endian
  ...
  ```

ACKs for top commit:
  MarcoFalke:
    ACK 6136a96

Tree-SHA512: 1b591de13e38d10a35217e1de11cbd648a359d18d16eed166fac18ea5788b58cc9fc6d407086ed342b99e57e479efd951a0ea693710177e500eb116316b9a788
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
da1f153 Add s390x tests to travis (Elichai Turkel)
2fa65e0 Add ci script to install on s390x (Elichai Turkel)

Pull request description:

  Discovered this as part of bitcoin#17402 and a conversation with gmaxwell.

  You can see here that the platform is indeed BE: https://travis-ci.org/elichai/bitcoin/jobs/616656410#L36

  This closes bitcoin#6466

ACKs for top commit:
  MarcoFalke:
    ACK da1f153

Tree-SHA512: e7e94e54e220257d91b24fddc79eab2bcaaadf0b2d1e7e6872d9757808ab2541728f00b1f3ab7e343305c0e7d91bb48a17a3f9621f6fff6c9fe6cde6682de408
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 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.

CI run on big-endian platform

8 participants