Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Update CircleCI images and add Address/Undefined Behavior sanitizers - #9399

Merged
kkaefer merged 3 commits into
masterfrom
update-circle-images
Jul 13, 2017
Merged

kkaefer merged 3 commits into
masterfrom
update-circle-images

Conversation

@kkaefer

@kkaefer kkaefer commented Jun 30, 2017

Copy link
Copy Markdown
Member

Caveats:

  • We are currently not failing the build for Address/Undefined Behavior sanitizer because there are some lingering issues that we need to fix before.
  • We are not using ccache or any other type of caching to make this faster.

@kkaefer
kkaefer requested a review from brunoabinader June 30, 2017 01:17
@kkaefer kkaefer added build Core The cross-platform C++ core, aka mbgl labels Jun 30, 2017
@kkaefer
kkaefer force-pushed the update-circle-images branch 18 times, most recently from 15a8a2b to ac369ea Compare July 3, 2017 12:49
@kkaefer

kkaefer commented Jul 3, 2017

Copy link
Copy Markdown
Member Author

Added ccache, and CircleCI caching, which generates one cache per job, per week, per branch.

  • Android doesn't pick up ccache yet it seems.

  • Android build show these errors:

    scripts/check-cxx11abi.sh: line 15: readelf: command not found
    scripts/check-cxx11abi.sh: line 15: c++filt: command not found
    

@brunoabinader

Copy link
Copy Markdown
Contributor

@kkaefer

kkaefer commented Jul 3, 2017

Copy link
Copy Markdown
Member Author

The Android images aren't based off of the -linux image.

@kkaefer

kkaefer commented Jul 3, 2017

Copy link
Copy Markdown
Member Author

Note that the Android images already have ccache installed, and it also seems to fill up the cache, but they're not used on subsequent compiles.

@brunoabinader brunoabinader left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is awesome @kkaefer - and thanks for the suppression cleanup necessary after the CircleCI switch 🙇

Comment thread circle.yml
name: Run tests
command: |
xvfb-run --server-args="-screen 0 1024x768x24" make run-test 2> >(tee sanitizer 1>&2)
# Unfortunately, Google Test eats the status code, so we'll have to check the output.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Google Test uses fork to execute the tests, and failing tests in those child processes probably return the correct status code. However, Google Test fails to interpret/forward that.

@kkaefer
kkaefer force-pushed the update-circle-images branch 5 times, most recently from 91d4504 to 0a45c23 Compare July 13, 2017 10:53
@kkaefer
kkaefer force-pushed the update-circle-images branch from 0a45c23 to 7f74dfe Compare July 13, 2017 12:37
@kkaefer
kkaefer merged commit 6ca7b28 into master Jul 13, 2017
@kkaefer
kkaefer deleted the update-circle-images branch July 13, 2017 13:11
@kkaefer kkaefer mentioned this pull request Jul 13, 2017
@friedbunny

friedbunny commented Jul 14, 2017 •

Copy link
Copy Markdown
Contributor

Can/should this be ported to the current iOS/Android release branch? (Mostly curious about ccache.)

@kkaefer

kkaefer commented Jul 14, 2017 •

Copy link
Copy Markdown
Member Author

Let's not pull this into the release branch for now to avoid build instability. E.g. I just discovered a severe bug where building with Xcode-beta.app (version 9) will actually use the old compiler from Xcode.app (version 8).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build Core The cross-platform C++ core, aka mbgl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants