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

ci: Add big endian native s390x build #18569

Merged
merged 2 commits into from Apr 9, 2020

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Apr 8, 2020

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
...

@hebasto hebasto changed the title ci: Add big endian native s390x build [WIP] ci: Add big endian native s390x build Apr 8, 2020
@fanquake fanquake added the Tests label Apr 8, 2020
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.

I don't really like going back to using the travis environment, which is in constant flux and thus more brittle. Also, as they replace vanilla packages with their own versions (pyenv etc), debugging failures locally is probably going to be a pain.

But if this runs without much hassle, why not.

ci/test/04_install.sh Outdated Show resolved Hide resolved
.travis.yml Outdated
cache:
directories:
- $TRAVIS_BUILD_DIR/ci/scratch/.ccache
- $TRAVIS_BUILD_DIR/releases/$HOST
Copy link
Member

Choose a reason for hiding this comment

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

Why is the overwrite needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

To get rid of smth like this:

adding /usr/local/Homebrew to cache
creating directory /usr/local/Homebrew
mkdir: cannot create directory ‘/usr/local/Homebrew’: Permission denied
/usr/local/Homebrew is not yet cached
/usr/local/Homebrew: No such file or directory
/usr/local/Homebrew: unknown file type

Copy link
Member

Choose a reason for hiding this comment

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

In that case, I'd rather move the overwrite to macos, since that is causing the trouble

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

export LC_ALL=C.UTF-8

export HOST=s390x-linux-gnu
export RUN_CI_ON_HOST=true
Copy link
Member

@maflcko maflcko Apr 8, 2020

Choose a reason for hiding this comment

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

This is a dangerous setting. Would be best to put this in the .travis.yml to make sure no one is setting this locally and trashing their machine?

Edit: The setting should probably be renamed to DANGER_RUN_CI_ON_HOST or so

Copy link
Member Author

Choose a reason for hiding this comment

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

The setting should probably be renamed to DANGER_RUN_CI_ON_HOST or so

Implemented.

@hebasto hebasto force-pushed the 20200326-allow-s390x branch 2 times, most recently from 42b45d0 to 8d4ff5c Compare April 8, 2020 23:11
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated
- $TRAVIS_BUILD_DIR/ci/scratch/.ccache
- $TRAVIS_BUILD_DIR/releases/$HOST
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
Copy link
Member

@maflcko maflcko Apr 8, 2020

Choose a reason for hiding this comment

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

Isn't this build cross compilation? I think this whole hunk can be discarded.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@hebasto hebasto changed the title [WIP] ci: Add big endian native s390x build ci: Add big endian native s390x build Apr 9, 2020
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 9, 2020

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

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.

@maflcko
Copy link
Member

maflcko commented Apr 9, 2020

ACK 6136a96

@maflcko maflcko merged commit 1ae366e into bitcoin:master Apr 9, 2020
@hebasto hebasto deleted the 20200326-allow-s390x branch April 9, 2020 14:23
@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.

None yet

4 participants