Skip to content

Test flakiness is in a critical state #30824

Description

@BridgeAR

In the last 100 CI runs we only had 4 successful ones (https://nodejs-ci-health.mmarchini.me/#/job-summary). This is the worst ratio I can remember.

This is probably due to build issues and flaky tests together. I would just like to encourage everyone to have a look into some of these to get the CI results back to a level that we can better rely upon.

Most issues are around Windows (node-test-commit-windows-fanned) followed by arm (node-test-commit-arm-fanned) and containered builds (node-test-commit-linux-containered).

// cc @nodejs/collaborators

Activity

  1. added
    windowsIssues and PRs related to the Windows platform.
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    armIssues and PRs related to the ARM architecture.
    flaky-testIssues and PRs involving tests that fail intermittently in CI.
    linuxIssues and PRs related to the Linux platform.
    on Dec 6, 2019
  2. Trott commented on Dec 6, 2019

    @Trott
    Member

    There seem to be a number of jobs where the subtasks are all green but the main task is red. Hopefully just some network problems with the Jenkins server that have resolved, or something like that, but if it recurs, we'll definitely want to enlist @nodejs/build folks to take a look.....

  3. sam-github commented on Dec 6, 2019

    @sam-github
    Contributor

    https://ci.nodejs.org/job/node-daily-master/ is also useful as evidence of build stability: its had one green in the last 14 days, if master isn't passing tests in CI, that'll show up in PRs.

  4. sam-github commented on Dec 6, 2019

    @sam-github
    Contributor

    And fwiw, @AshCripps has been hacking a bit on @joyeecheung 's ncu-ci utility, to add support for reporting on master. There are always going to be some failures on PRs, so sorting out related-to-PR failures and unrelated might require human judgement, but master build failures are instability in the tests or CI infrastructure pretty much by definition.

  5. sam-github commented on Dec 7, 2019

    @sam-github
    Contributor

    openjs-foundation/summit#213 (comment) --- Perhaps worth having a community corner discussion on this? Though I see there's been a bunch of test fixes in the last days.

  6. joaocgreis commented on Dec 8, 2019

    @joaocgreis
    Member

    Just opened #30848 to mark a few tests as flaky, so we should see less red and more yellow. Getting to see more green is the next step, but it's not as simple so will take longer.

  7. BridgeAR commented on Dec 25, 2019

    @BridgeAR
    MemberAuthor

    Just a heads up: recently a few flakes where looked at and we are back to 12 passing from 100. That is significantly better. I'll close this as soon as we reach 20 from 100. We should probably try to reach at least 25 passing though.

  8. added
    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
    on Dec 25, 2019
  9. BridgeAR commented on Dec 26, 2019

    @BridgeAR
    MemberAuthor

    Thanks a lot to everyone who looked into fixing some of these flaky tests by the way!

  10. BridgeAR commented on Jan 11, 2020

    @BridgeAR
    MemberAuthor

    The CI is back to a "normal" level of flakes.

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

    armIssues and PRs related to the ARM architecture.buildIssues and PRs related to Node.js builds or CI infrastructure.flaky-testIssues and PRs involving tests that fail intermittently in CI.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.linuxIssues and PRs related to the Linux platform.testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions