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

test CI on Bitrise #2419

Closed
Closed

Description

@incanus

Though Bitrise doesn't yet support public apps, that shouldn't block us from trying it out and maybe offloading the long-running iOS Travis jobs there.

Also unclear if we could build for OS X there, since the host machine is OS X. Depends on what SDKs they provide.

Activity

  1. added
    iOS
    macOS
    on Sep 24, 2015
  2. self-assigned this
    on Sep 24, 2015
  3. incanus commented on Sep 24, 2015

    @incanus
    ContributorAuthor

    Bitrise is definitely Xcode project-focused, so it's looking to be tricky to get our make iproj etc. to run ahead of time before running the iOS tests (which are Xcode-based).

  4. added a commit that references this issue on Sep 24, 2015
  5. incanus commented on Oct 2, 2015

    @incanus
    ContributorAuthor

    Picking this back up again, currently in https://github.com/mapbox/mapbox-gl-native/compare/bitrise until I confirm whether this is viable, then I'll PR.

  6. incanus commented on Oct 2, 2015

    @incanus
    ContributorAuthor

    Looking good so far — at least getting to Xcode test failures, meaning successful runs of make ipackage-sim on Bitrise architecture. Jobs run about 9 minutes, which is also an improvement.

    Now moving on to KIF and seeing if it needs updating / other kicks in the pants as it seems to be flaking.

  7. incanus commented on Oct 2, 2015

    @incanus
    ContributorAuthor
  8. added a commit that references this issue on Oct 20, 2015
  9. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    Close.

    Test Suite 'MapViewTests' failed at 2015-10-19 17:29:05.990.
         Executed 16 tests, with 2 failures (2 unexpected) in 20.084 (20.104) seconds
    
  10. friedbunny commented on Oct 20, 2015

    @friedbunny
    Contributor
  11. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    Currently:

    Test Case '-[MapViewTests testUserTrackingModeFollow]' started.
    2015-10-19 17:29:03.084 Mapbox GL Tests[3968:12877] _BSMachError: (os/kern) invalid capability (20)
    2015-10-19 17:29:03.351 Mapbox GL Tests[3968:12877] _BSMachError: (os/kern) invalid capability (20)
    2015-10-19 17:29:03.798 Mapbox GL Tests[3968:12877] tap point is not within the bounds of the screen
    /Users/vagrant/git/test/ios/KIF/Classes/UIAutomationHelper.m:61: error: -[MapViewTests testUserTrackingModeFollow] : failed: caught "UIAExceptionBadPoint", "tap point is not within the bounds of the screen"
    (
        0   CoreFoundation                      0x000000010c6eaf65 __exceptionPreprocess + 165
        1   libobjc.A.dylib                     0x000000010c162deb objc_exception_throw + 48
        2   CoreFoundation                      0x000000010c6eae9d +[NSException raise:format:] + 205
        3   UIAutomation                        0x00000001240b82a3 -[UIATarget _tapOptionalObject:tapCount:touchCount:tapOffset:] + 466
        4   UIAutomation                        0x00000001240a6f4b -[UIAElement tap] + 319
        5   Test Bundle                         0x000000011bc9dbdd -[UIAutomationHelper acknowledgeSystemAlert] + 203
        6   Test Bundle                         0x000000011bc9da8c +[UIAutomationHelper acknowledgeSystemAlert] + 48
        7   Test Bundle                         0x000000011bc98f98 -[MapViewTests testUserTrackingModeFollow] + 266
        8   CoreFoundation                      0x000000010c5d985c __invoking___ + 140
        9   CoreFoundation                      0x000000010c5d96ae -[NSInvocation invoke] + 286
        10  XCTest                              0x00000001162cb608 __24-[XCTestCase invokeTest]_block_invoke_2 + 159
        11  XCTest                              0x00000001162fac90 -[XCTestContext performInScope:] + 184
        12  XCTest                              0x00000001162cb558 -[XCTestCase invokeTest] + 169
        13  XCTest                              0x00000001162cb9f3 -[XCTestCase performTest:] + 443
        14  XCTest                              0x00000001162c96b9 -[XCTestSuite performTest:] + 377
        15  XCTest                              0x00000001162c96b9 -[XCTestSuite performTest:] + 377
        16  XCTest                              0x00000001162c96b9 -[XCTestSuite performTest:] + 377
        17  XCTest                              0x00000001162b6ec2 __25-[XCTestDriver _runSuite]_block_invoke + 51
        18  XCTest                              0x00000001162d70cb -[XCTestObservationCenter _observeTestExecutionForBlock:] + 615
        19  XCTest                              0x00000001162b6e0e -[XCTestDriver _runSuite] + 408
        20  XCTest                              0x00000001162b7b6d -[XCTestDriver _checkForTestManager] + 263
        21  XCTest                              0x00000001162fbff1 _XCTestMain + 628
        22  CoreFoundation                      0x000000010c61708c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
        23  CoreFoundation                      0x000000010c60cd15 __CFRunLoopDoBlocks + 341
        24  CoreFoundation                      0x000000010c60c472 __CFRunLoopRun + 850
        25  CoreFoundation                      0x000000010c60be98 CFRunLoopRunSpecific + 488
        26  GraphicsServices                    0x0000000112612ad2 GSEventRunModal + 161
        27  UIKit                               0x000000010d056676 UIApplicationMain + 171
        28  Mapbox GL Tests                     0x000000010b107753 main + 80
        29  libdyld.dylib                       0x000000010f0d992d start + 1
    )
    Test Case '-[MapViewTests testUserTrackingModeFollow]' failed (2.156 seconds).
    
  12. 1ec5 commented on Oct 20, 2015

    @1ec5
    Contributor

    Sounds like it might be running in a simulator for a different device than expected (or a resizable simulator for a non-standard size).

  13. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    You can check it out using the secondary Bitrise account (credentials in Meldium), but I had picked iPhone 6. You can see this also in the log:

    +------------------------------------------------------------------------------+
    | (5) Xcode: Unit Test                                                         |
    +------------------------------------------------------------------------------+
    | id: xcode-test                                                               |
    | version: 1.5.0                                                               |
    | collection: https://github.com/bitrise-io/bitrise-steplib.git                |
    | time: 2015-10-19T17:26:57-07:00                                              |
    +------------------------------------------------------------------------------+
    |                                                                              |
    WARN[17:26:57] step.dependencies is deprecated... Use step.deps instead. 
    INFO[17:26:57] Deprecated dependencies found                
    INFO[17:26:57]  * [OK] Step dependency (xcode) installed, available. 
    INFO[17:26:58]  * [OK] Step dependency (go) installed, available. 
    => Switching to working directory: /Users/vagrant/git
    $ cd /Users/vagrant/git
    2015/10/19 17:27:02 
    2015/10/19 17:27:02 ========== Configs ==========
    2015/10/19 17:27:02  * project_path: ./test/ios/ios-tests.xcodeproj
    2015/10/19 17:27:02  * scheme: Mapbox GL Tests
    2015/10/19 17:27:02  * simulator_device: iPhone 6
    2015/10/19 17:27:02  * simulator_os_version: latest
    
  14. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    The stack trace in #2419 (comment) seems to indicate it's related to acknowledgeSystemAlert.

  15. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    I think I can just make our location services prompt handling more robust as in other testing instances we've done.

  16. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    Ok, got this passing on Bitrise (and Travis). Rebased & squashed down to 6eee72e. Will do one more run, then merge, then try to configure GitHub/Bitrise for iOS.

  17. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    Are we cool with getting Bitrise running in parallel for a while on master, and then dropping the iOS slice on Travis? @1ec5 @friedbunny @jfirebaugh

  18. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    BTW we should also be able to build a Bitrise workflow that builds the package on OS X as we are doing now on Travis, so we could also eventually drop that slice if desired.

  19. jfirebaugh commented on Oct 20, 2015

    @jfirebaugh
    Contributor

    Are we cool with getting Bitrise running in parallel for a while on master, and then dropping the iOS slice on Travis?

    Sounds good to me.

  20. incanus commented on Oct 20, 2015

    @incanus
    ContributorAuthor

    Web hook integrated for pushes and PRs now on Bitrise. Keep in mind that the README badge for Bitrise links to the app's page at https://www.bitrise.io/app/7514e4cf3da2cc57, which currently is private due to Bitrise's lack of support for public apps. Go vote for this feature!

    https://bitrise.uservoice.com/forums/235233-general/suggestions/8795035-allow-public-or-publicly-viewable-apps

  21. added a commit that references this issue on Nov 6, 2015
    95d275c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildiOSmacOS

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions