GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Investigate flaky test test-child-process-spawnsync · Issue #2470 · nodejs/node

Investigate flaky test test-child-process-spawnsync #2470

New issue
Copy link
New issue
Copy link
Closed
Closed
Investigate flaky test test-child-process-spawnsync#2470
Copy link
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.testIssues and PRs related to Node.js core tests and test infrastructure.

Description

@joaocgreis
joaocgreis
opened on Aug 20, 2015
Issue body actions

Examples of failures:

  • centos7-64

Activity

  1. joaocgreis
    added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Aug 20, 2015
  2. Trott commented on Aug 25, 2015

    @Trott
    Trott
    on Aug 25, 2015
    Member
    More actions

    If I'm understanding the test correctly, the part of the test that is flaky is actually invalid. It checks to see if the function passed to setTimeout() executes in the same second as call to spawnSync() finishes. This will not always necessarily be the case, and the test will only get flakier if more things are added to it. (There are two other test cases below the flaky one.)

    There's already an assertion to confirm that the spawnSync() ends before setTimeout() runs, so I'll submit a PR to remove the check altogether rather than do something like convert the timestamps to nanoseconds since start and make sure the one set by setTimeout() is greater than the one set by spawnSync().

  3. Trott commented on Aug 25, 2015

    @Trott
    Trott
    on Aug 25, 2015
    Member
    More actions

    Fixed in 7e63eb7 / #2535

  4. Trott
    closed this as completedon Aug 25, 2015
  5. Trott
    added a commit that references this issue on Aug 26, 2015

    test: make spawnSync() test robust

    856baf4
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

    buildIssues and PRs related to Node.js builds or CI infrastructure.testIssues and PRs related to Node.js core tests and test infrastructure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.