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

Do not build the osx cross packages when running CI tests #1032

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

cyli
Copy link
Contributor

@cyli cyli commented Nov 14, 2016

Hopefully this will shave at least 30 seconds from the CI times.
Also, bump up to go 1.7.3.

cc #1029

@@ -1,4 +1,4 @@
FROM golang:1.7.1
FROM golang:1.7.3
Copy link
Contributor

Choose a reason for hiding this comment

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

If the OSXCross stuff is no longer in here, can this (and should this) use alpine now?

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 originally tried that, but I ran into weird issues when running tests in alpine:

# runtime/race
race_linux_amd64.syso: In function `__sanitizer::InternalAlloc(unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*, unsigned long)':
gotsan.cc:(.text+0x1631): undefined reference to `__libc_malloc'
race_linux_amd64.syso: In function `__sanitizer::GetArgv()':
gotsan.cc:(.text+0x43c3): undefined reference to `__libc_stack_end'
race_linux_amd64.syso: In function `__sanitizer::InternalRealloc(void*, unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*)':
gotsan.cc:(.text+0x5580): undefined reference to `__libc_realloc'
race_linux_amd64.syso: In function `__sanitizer::ReExec()':
gotsan.cc:(.text+0x10337): undefined reference to `__libc_stack_end'
race_linux_amd64.syso: In function `__sanitizer::WriteOneLineToSyslog(char const*)':
gotsan.cc:(.text+0x4a97): undefined reference to `__syslog_chk'
race_linux_amd64.syso: In function `__sanitizer::InternalFree(void*, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*)':
gotsan.cc:(.text+0x55f8): undefined reference to `__libc_free'
collect2: error: ld returned 1 exit status
FAIL    github.com/docker/notary/client [build failed]

I didn't know what that was, so I just stuck with debian for now :|

Copy link
Contributor

Choose a reason for hiding this comment

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

No worries, just noticed the comment about not using alpine due to osxcross.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it's golang/go#14481 - so for our CI tests, which run with -race enabled, I don't think we can use alpine :|

Copy link
Contributor

@endophage endophage left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@riyazdf riyazdf left a comment

Choose a reason for hiding this comment

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

LGTM!

…akes a little while.

Upgrade to go 1.7.3 from go 1.7.1
Remove the unnecessary "-dflags=-s" when building for OS X.

Signed-off-by: Ying Li <[email protected]>
@cyli cyli force-pushed the use-alpine-dockerfile-for-build branch from 7f3e02e to 3e6ba6d Compare November 14, 2016 19:54
@cyli cyli merged commit 2d31d9e into notaryproject:master Nov 14, 2016
@cyli cyli deleted the use-alpine-dockerfile-for-build branch November 14, 2016 21:06
@endophage endophage mentioned this pull request Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants