Skip to content

test-cluster-master-{error,kill} fail only in weird CI environment #6193

Closed
@drewfish

Description

@drewfish
  • Version: 4.4.3
  • Platform: some rhel 6
  • Subsystem: cluster

We build 4.x for use internally in the company, using a Jenkins job which creates a docker image in which the actual build and tests are run. Very oddly, test-cluster-master-error and test-cluster-master-kill fail every build. I've not been able to reproduce this in any other environment, even running the same docker image on my macbook.

Here is the output of the two failing tests:

00:30:43.898 not ok 97 test-cluster-master-error.js
00:30:43.898 # 
00:30:43.898 # assert.js:90
00:30:43.898 #   throw new assert.AssertionError({
00:30:43.899 #   ^
00:30:43.899 # AssertionError: The workers did not die after an error in the master
00:30:43.899 #     at process.<anonymous> (/var/builds/workspace/105338-v3-component/BUILD_CONTAINER/rhel6/label/DOCKER-LOW/app_root/test/parallel/test-cluster-master-error.js:152:12)
00:30:43.899 #     at process.g (events.js:260:16)
00:30:43.900 #     at emitOne (events.js:82:20)
00:30:43.900 #     at process.emit (events.js:169:7)
00:30:43.900   ---
00:30:43.900   duration_ms: 0.710
00:30:43.900   ...
00:30:45.613 not ok 98 test-cluster-master-kill.js
00:30:45.613 # 
00:30:45.613 # assert.js:90
00:30:45.613 #   throw new assert.AssertionError({
00:30:45.614 #   ^
00:30:45.614 # AssertionError: worker was alive after master died
00:30:45.614 #     at process.<anonymous> (/var/builds/workspace/105338-v3-component/BUILD_CONTAINER/rhel6/label/DOCKER-LOW/app_root/test/parallel/test-cluster-master-kill.js:79:12)
00:30:45.614 #     at process.g (events.js:260:16)
00:30:45.614 #     at emitOne (events.js:82:20)
00:30:45.614 #     at process.emit (events.js:169:7)
00:30:45.615   ---
00:30:45.615   duration_ms: 1.712
00:30:45.615   ...

The tests were run via:

export NODE_COMMON_PORT=16733
export NODE_TEST_DIR=/tmp/screwdriver
scl enable devtoolset-4 python27 -- gmake CFLAGS=-m64 LDFLAGS=-Wl,-rpath,/home/y/lib64 test-ci

Metadata

Metadata

Assignees

No one assigned

    Labels

    clusterIssues and PRs related to the cluster subsystem.testIssues and PRs related to the tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions