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

Fix release scripts - #199

Merged
1ec5 merged 3 commits into
masterfrom
1ec5-build-v5.8.0-alpha.1
Mar 10, 2020
Merged

1ec5 merged 3 commits into
masterfrom
1ec5-build-v5.8.0-alpha.1

Conversation

@1ec5

@1ec5 1ec5 commented Mar 6, 2020 •

Copy link
Copy Markdown
Contributor

The ios-release-tag CI workflow failed during the iOS map SDK v5.8.0-alpha.1 release process (#194). This PR disables ccache so that stale build artifacts from the previous release don’t contaminate the build. In addition, I’ve updated the Slack channel that CircleCI sends some notifications to and fixed an issue that prevented the macOS map SDK release process from running smoothly.

Depends on mapbox/mapbox-gl-native#16290.

/cc @mapbox/maps-ios

@1ec5 1ec5 added this to the release-vanillashake milestone Mar 6, 2020
@1ec5
1ec5 requested review from a team and jmkiley March 6, 2020 23:26
@1ec5 1ec5 self-assigned this Mar 6, 2020
@1ec5 1ec5 changed the title 1ec5 build v5.8.0 alpha.1 Fix release scripts Mar 6, 2020
@1ec5

1ec5 commented Mar 7, 2020 •

Copy link
Copy Markdown
Contributor Author

The ios-release-tag build fails as soon as it tries to compile the first batch of mbgl files:

CompileC /Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/Objects-normal/x86_64/utypes.o /Users/distiller/project/vendor/mapbox-gl-native/vendor/icu/src/utypes.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'mbgl-vendor-icu' from project 'Mapbox GL Native')
    cd /Users/distiller/project/vendor/mapbox-gl-native
    export LANG=en_US.US-ASCII
    /Users/distiller/project/build/ios/ccache-c -x c++ -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O2 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"RelWithDebInfo-iphonesimulator\" -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_LEGACY_CONVERSION=1 -DU_CHARSET_IS_UTF8=1 -DU_CHAR_TYPE=uint_least16_t -DU_HAVE_ATOMIC=1 -DU_HAVE_STRTOD_L=0 -D_REENTRANT -isysroot /Applications/Xcode-11.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/distiller/project/build/ios/RelWithDebInfo-iphonesimulator/include -isystem /Users/distiller/project/vendor/mapbox-gl-native/vendor/icu/include -I/Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/DerivedSources-normal/x86_64 -I/Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/DerivedSources/x86_64 -I/Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/distiller/project/build/ios/RelWithDebInfo-iphonesimulator -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wno-error -Wno-shorten-64-to-32 -std=c++14 -MMD -MT dependencies -MF /Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/Objects-normal/x86_64/utypes.d --serialize-diagnostics /Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/Objects-normal/x86_64/utypes.dia -c /Users/distiller/project/vendor/mapbox-gl-native/vendor/icu/src/utypes.cpp -o /Users/distiller/project/build/ios/Mapbox\ GL\ Native.build/RelWithDebInfo-iphonesimulator/mbgl-vendor-icu.build/Objects-normal/x86_64/utypes.o
ccache: error: Failed to create temporary file for /Users/distiller/.ccache/tmp/utypes.stdout: Permission denied
Command CompileC failed with a nonzero exit code

The same thing happened when ccache was enabled.

This is apparently the same error reported in mapbox/mapbox-gl-native#14345, which affected forks of the gl-native repository. This repository is essentially a fork too.

I have no idea why the v5.5.1 release proceeded without a problem though.

/cc @mapbox/gl-native

@1ec5

1ec5 commented Mar 7, 2020 •

Copy link
Copy Markdown
Contributor Author

mapbox/mapbox-gl-native@7a9f802 in mapbox/mapbox-gl-native#16158 enabled ccache for iOS builds. That change went into mbgl v1.2.0, which we pulled into this repository in #181. I suppose that means disabling ccache setup in the CI configuration won’t make much of a difference.

@tmpsantos

Copy link
Copy Markdown
Contributor

@1ec5 we could revert that PR if needed.

@1ec5
1ec5 force-pushed the 1ec5-build-v5.8.0-alpha.1 branch 2 times, most recently from f888ea7 to 6a2020c Compare March 9, 2020 18:16

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

Approving, so you're not blocked once the cmake change lands.

@1ec5
1ec5 force-pushed the 1ec5-build-v5.8.0-alpha.1 branch from 37f464c to 20730e1 Compare March 10, 2020 05:08
@1ec5
1ec5 merged commit 20730e1 into master Mar 10, 2020
@1ec5
1ec5 deleted the 1ec5-build-v5.8.0-alpha.1 branch March 10, 2020 05:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants