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.

Spurious MGLOfflineStorage unit test failures on iOS build bot #6385

Closed

Description

@jfirebaugh

The following tests are spuriously failing iOS builds with regularity:

    ✗ testAddPack, Asynchronous wait failed: Exceeded timeout of 1 seconds, with unfulfilled expectations: "add pack completion handler", "Expect change to packs of <MGLOfflineStorage: 0x7fd210cd1340>".
    ✗ testAddPack, (([MGLOfflineStorage sharedOfflineStorage].packs.count) equal to (countOfPacks + 1)) failed: ("0") is not equal to ("1") - Added pack should have been added to the canonical collection of packs owned by the shared offline storage object. This assertion can fail if this test is run before -testAAALoadPacks.
    ✗ testAddPack, ((pack.region) equal to (region)) failed: ("(null)") is not equal to ("<MGLTilePyramidOfflineRegion: 0x7fd213408730>") - Added pack’s region has changed.
    ✗ testAddPack, (([userInfo isKindOfClass:[NSDictionary class]]) is true) failed - Context of offline pack isn’t a dictionary.
    ✗ testAddPack, (([userInfo[nameKey] isKindOfClass:[NSString class]]) is true) failed - Name of offline pack isn’t a string.
    ✗ testAddPack, ((userInfo[nameKey]) equal to (name)) failed: ("(null)") is not equal to ("🍇 Grape Grove") - Name of offline pack has changed.
    ✗ testAddPack, ((pack.state) equal to (MGLOfflinePackStateInactive)) failed: ("0") is not equal to ("1") - New pack should initially have inactive state.

Activity

  1. added
    iOS
    on Sep 20, 2016
  2. changed the title [-]Spurious iOS offline tests[/-] [+]Spurious iOS offline test failures[/+] on Sep 20, 2016
  3. 1ec5 commented on Sep 20, 2016

    @1ec5
    Contributor

    The first test started failing reliably about a month ago, causing all the other tests to cascade, without any relevant SDK-level changes. #6007 improved their reliability, but not completely. Let's try increasing the timeout a bit; this might be indicative of a performance problem.

  4. 1ec5 commented on Sep 20, 2016

    @1ec5
    Contributor

    This failure only affects some of my branches, including #5999. 61043b5 is an attempt to close one potential race condition. I'll split that out and merge it separately to see if it helps.

  5. 1ec5 commented on Sep 20, 2016

    @1ec5
    Contributor

    We’re bumping the timeout in #6397.

  6. changed the title [-]Spurious iOS offline test failures[/-] [+]Spurious MGLOfflineStorage unit test failures on iOS build bot[/+] on Sep 23, 2016
  7. 1ec5 commented on Sep 23, 2016

    @1ec5
    Contributor

    I think this may be related to #5996, which for whatever reason only reproduces on macOS.

  8. added this to the ios-v3.4.0 milestone on Sep 23, 2016
  9. self-assigned this
    on Sep 26, 2016
  10. boundsj commented on Sep 28, 2016

    @boundsj
    Contributor

    #5996 changed the bitrise.yml file for macOS so that artifacts with additional context are created for each build. The fix for #5996 probably won't help with the spurious failure noted here but, if it happens again, the additional logging may be useful. I'll keep this open and keep 👀. Please continue to post the bitrise build results here if you see a macOS failure especially now that we have additional logging in place.

    cc @1ec5 @jfirebaugh

  11. boundsj commented on Oct 17, 2016

    @boundsj
    Contributor

    I've not seen any trace of this issue for some time now. I'm going to close for now. Please reopen and paste the failed bitrise build link here if you see this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

iOStests

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions