Skip to content

ci: Unexpected end of JSON input flakes on test_docs_examples_ivy #31842

Closed

Description

@gkalpak

I've been occasionally seeing the following flakes recently on test_docs_examples_ivy CircleCI jobs. (They are not related to a specific example and/or port.)

They might be related to ngcc processing (see #30593).

running: yarn e2e --prod --no-webdriver-update --port=4010
...
chunk {0} runtime.858f8dd898b75fe86926.js, runtime.858f8dd898b75fe86926.js.map (runtime) 1.46 kB [entry] [rendered]
chunk {1} main.7ad9d3bff607835cd780.js, main.7ad9d3bff607835cd780.js.map (main) 140 kB [initial] [rendered]
chunk {2} polyfills.12f05dd60a9f2606773d.js, polyfills.12f05dd60a9f2606773d.js.map (polyfills) 189 bytes [initial] [rendered]
chunk {3} polyfills-es5.fda5b2b92895a7fccf2b.js, polyfills-es5.fda5b2b92895a7fccf2b.js.map (polyfills-es5) 68.1 kB [initial] [rendered]
chunk {4} styles.5a0929e8dea91c06925b.css, styles.5a0929e8dea91c06925b.css.map (styles) 824 bytes [initial] [rendered]

ERROR in Unexpected end of JSON input
...

Sample failures:

UPDATE [2019-08-03]: Maybe coincidence, but I noticed in the above failures it is always either the 2nd, 4th or 8th cli (i.e. non-SystemJS) example that fails (all even numbers) 🤔

Activity

  1. added this to the needsTriage milestone on Jul 25, 2019
  2. changed the title [-]ci: `Unexpected end of JSON input` flakes on `test_docs_examples[_ivy]`[/-] [+]ci: `Unexpected end of JSON input` flakes on `test_docs_examples_ivy`[/+] on Jul 25, 2019
  3. gkalpak commented on Jul 25, 2019

    @gkalpak
    MemberAuthor

    FWIW, I wasn't able to reproduce it by ssh'ing into a container and running the docs examples e2e tests ~25 times 😞

    Also, checked @angular/core/package.json before and after ng e2e and there aren't any differences (meaning ngcc doesn't need to update the package.json during the cli build (for the @angular/core package at least)).

  4. gkalpak commented on Sep 5, 2019

    @gkalpak
    MemberAuthor

    Interestingly, when this job failed with that error and I ssh'd into the VM and rerun (yarn example-e2e --filter=attribute-directives - i.e. without touching node_modules/) it passed.

    So, it might not be ngcc related after all 🎉
    It looks like a "regular" (cli-related?) flake 🤔

  5. added a commit that references this issue on Sep 5, 2019
    2ec9144
  6. added a commit that references this issue on Sep 6, 2019
    0b680bb
  7. angular-automatic-lock-bot commented on Oct 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: build & ciRelated the build and CI infrastructure of the project

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions