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

XCodeSummary failing with sample case #22

Open
AlexTanabe opened this issue Sep 18, 2020 · 0 comments
Open

XCodeSummary failing with sample case #22

AlexTanabe opened this issue Sep 18, 2020 · 0 comments

Comments

@AlexTanabe
Copy link

AlexTanabe commented Sep 18, 2020

Issue

Using the following sample code for XCodeSummary:

import Danger
import DangerXCodeSummary // package: https://github.com/f-meloni/danger-swift-xcodesummary.git

let danger = Danger()

// Xcode summary warnings check.
XCodeSummary(filePath: "result.json").report()

results in the following error:

+ danger-swift ci
(node:47824) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Fatal error: Report not found: file DangerXCodeSummary/XCodeSummary.swift, line 90

Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret /var/folders/__/clhhlm6d5fg7__h0syj9vmtw0000gv/T/_tmp_dangerfile.swift -enable-objc-interop -stack-check -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /usr/local/lib/danger -I /Users/fastlane/.danger-swift/Scripts/Cache/somewhere_PR-703-somewhere-_dangerfile_imports/.build/debug -target-sdk-version 10.15.6 -module-name _tmp_dangerfile -lDangerDependencies -lDanger -- runner /snapshot/danger-js/distribution/commands/danger-ci.js --process danger-swift --passURLForDSL /var/folders/__/clhhlm6d5fg7__h0syj9vmtw0000gv/T/danger-dsl.json /var/folders/__/clhhlm6d5fg7__h0syj9vmtw0000gv/T/danger-response.json 
1.	Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
2.	While running user code "/var/folders/__/clhhlm6d5fg7__h0syj9vmtw0000gv/T/_tmp_dangerfile.swift"

0  swift                       0x0000000114122865
 
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37

1  swift                       0x0000000114121865 llvm::sys::RunSignalHandlers() + 85

2  swift                       0x0000000114122e1f 
SignalHandler(int) + 111
3  libsystem_platform.dylib    0x00007fff6c2935fd _sigtramp + 29
4  libsystem_platform.dylib    0x00007ffee0012670 _sigtramp + 18446744071358115984
5  libDangerDependencies.dylib 0x00000001174a4148 $s18DangerXCodeSummary0bC0C8filePath13resultsFilterACSS_SbAA6ResultVcSgtcfC + 1848
6  libDangerDependencies.dylib 0x00000001174dd0e5 $s18DangerXCodeSummary0bC0C8filePath13resultsFilterACSS_SbAA6ResultVcSgtcfC + 235221

7  swift                       0x000000010fce15cf 
llvm::orc::runAsMain(int (*)(int, char**), llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::Optional<llvm::StringRef>) + 2495

8  swift                       0x000000010fcbe9cb 
swift::RunImmediately(swift::CompilerInstance&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, swift::IRGenOptions const&, swift::SILOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >&&) + 6747

9  swift                      
 0x000000010fc99afa performCompileStepsPostSILGen(swift::CompilerInstance&, swift::CompilerInvocation const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 2426

10 swift                       0x000000010fc89ae0 
swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 21152

11 swift                       0x000000010fc0ac07 
main + 1255
12 libdyld.dylib               0x00007fff6c096cc9 start + 1



Cloning and building inline dependencies: import DangerXCodeSummary // package: https://github.com/f-meloni/danger-swift-xcodesummary.git, this might take some time.
�[0;0m�[31mERROR: Dangerfile eval failed at Dangerfile.swift
�[0;0m
Failing the build, there is 1 fail.

Environment

  • XCodeSummary installed with Marathon
  • danger-swift: 3.5.0
  • XCode 12.0

EDIT : Tested this case with XCode 12 official release and updated the stack trace accordingly (no big changes though)

@AlexTanabe AlexTanabe changed the title [Marathon] XCodeSummary failing with sample case [XCode 12 GM Seed] XCodeSummary failing with sample case Sep 18, 2020
@AlexTanabe AlexTanabe changed the title [XCode 12 GM Seed] XCodeSummary failing with sample case XCodeSummary failing with sample case Sep 18, 2020
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

No branches or pull requests

1 participant