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

WIP Workaround to make danger work on linux with swift 5.0 #219

Closed
wants to merge 7 commits into from

Conversation

f-meloni
Copy link
Member

@f-meloni f-meloni commented Apr 1, 2019

I wanted to test if we can have a workaround until the problem reported on #214 is not fixed

@f-meloni f-meloni closed this Apr 2, 2019
@f-meloni f-meloni reopened this Apr 2, 2019
@f-meloni f-meloni force-pushed the swift_5.0_on_linux branch 5 times, most recently from e886fe5 to aafd85a Compare April 9, 2019 21:34
@DangerCI
Copy link

DangerCI commented Apr 9, 2019

Fails
🚫

danger-swift` failed.

Log

[1/18] Compiling CYaml src/writer.c
[2/18] Compiling SourceKit SourceKit.m
[3/18] Compiling Swift Module 'SwiftyTextTable' (1 sources)
[4/18] Compiling Swift Module 'SWXMLHash' (3 sources)
[5/18] Compiling Swift Module 'Result' (4 sources)
[6/18] Compiling Swift Module 'CryptoSwift' (75 sources)
[7/18] Compiling Clang_C Clang_C.m
[8/18] Compiling Swift Module 'Commandant' (9 sources)
[9/18] Compiling CYaml src/scanner.c
[10/18] Compiling CYaml src/reader.c
[11/18] Compiling CYaml src/parser.c
[12/18] Compiling CYaml src/emitter.c
[13/18] Compiling CYaml src/api.c
[14/18] Compiling Swift Module 'Yams' (16 sources)
[15/18] Compiling Swift Module 'SourceKittenFramework' (36 sources)
[16/18] Compiling Swift Module 'SwiftLintFramework' (291 sources)
[17/18] Compiling Swift Module 'swiftlint' (14 sources)
[18/18] Linking ./.build/x86_64-unknown-linux/debug/swiftlint
Stack dump:
0.	Program arguments: /home/travis/.swiftenv/versions/5.0/usr/bin/swift -frontend -interpret /tmp/_tmp_dangerfile.swift -disable-objc-interop -I .build/debug -module-name _tmp_dangerfile -lDangerDeps -- /tmp/danger-dsl.json /tmp/danger-response.json 
#0 0x0000000004298144 PrintStackTraceSignalHandler(void*) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x4298144)
#1 0x00000000042962a0 llvm::sys::RunSignalHandlers() (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x42962a0)
#2 0x00000000042984a8 SignalHandler(int) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x42984a8)
#3 0x00007ffaea402330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007ffaea82235c
#5 0x00007ffaea82133a
#6 0x0000000000c98fd6 llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0xc98fd6)
#7 0x0000000000c9cfcf llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::vector<std::string, std::allocator<std::string> > const&, char const* const*) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0xc9cfcf)
#8 0x000000000050a537 swift::RunImmediately(swift::CompilerInstance&, std::vector<std::string, std::allocator<std::string> > const&, swift::IRGenOptions&, swift::SILOptions const&) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x50a537)
#9 0x00000000004e15b7 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x4e15b7)
#10 0x00000000004dc947 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x4dc947)
#11 0x000000000048ddc3 main (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x48ddc3)
#12 0x00007ffae8bcff45 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21f45)
#13 0x000000000048c018 _start (/home/travis/.swiftenv/versions/5.0/usr/bin/swift+0x48c018)
Got URL for JSON: /tmp/danger-dsl.json
�[0;0mCreated a temporary file for the Dangerfile DSL at: /tmp/danger-dsl.json
�[0;0mRunning Dangerfile at: Dangerfile.swift
�[0;0mPreparing to compile
�[0;0mRunning: /home/travis/.swiftenv/shims/swiftc --driver-mode=swift -L .build/debug -I .build/debug -lDangerDeps /tmp/_tmp_dangerfile.swift /tmp/danger-dsl.json /tmp/danger-response.json
�[0;0mCompleted evaluation
�[0;0m�[31mERROR: Dangerfile eval failed at Dangerfile.swift
�[0;0m�[31mERROR: Could not get the results JSON file at /tmp/danger-response.json
�[0;0m

Generated by 🚫 dangerJS against 35575c1

@f-meloni f-meloni force-pushed the swift_5.0_on_linux branch 2 times, most recently from 91a7dba to 1946392 Compare April 10, 2019 22:00
@f-meloni f-meloni closed this Apr 11, 2019
@f-meloni f-meloni reopened this Apr 11, 2019
@f-meloni f-meloni closed this Apr 11, 2019
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.

None yet

2 participants