Skip to content

Commit 5395282

Browse files
committed
Merge remote-tracking branch 'origin/master' into reduce-num-retries-in-jasmine
2 parents c57d316 + ac0d8d9 commit 5395282

File tree

125 files changed

+8988
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+8988
-500
lines changed

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
docker:
4141
# need '-browsers' version to test in real (xvfb-wrapped) browsers
4242
- image: circleci/node:10.9.0-browsers
43+
parallelism: 2
4344
working_directory: ~/plotly.js
4445
steps:
4546
- attach_workspace:
@@ -52,6 +53,7 @@ jobs:
5253
docker:
5354
# need '-browsers' version to test in real (xvfb-wrapped) browsers
5455
- image: circleci/node:10.9.0-browsers
56+
parallelism: 2
5557
working_directory: ~/plotly.js
5658
steps:
5759
- attach_workspace:
@@ -75,6 +77,7 @@ jobs:
7577
test-image:
7678
docker:
7779
- image: plotly/testbed:latest
80+
parallelism: 4
7881
working_directory: /var/www/streambed/image_server/plotly.js/
7982
steps:
8083
- attach_workspace:
@@ -121,6 +124,18 @@ jobs:
121124
name: Run syntax tests
122125
command: ./.circleci/test.sh syntax
123126

127+
test-bundle:
128+
docker:
129+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
130+
- image: circleci/node:10.9.0-browsers
131+
working_directory: ~/plotly.js
132+
steps:
133+
- attach_workspace:
134+
at: ~/
135+
- run:
136+
name: Run test-bundle
137+
command: ./.circleci/test.sh bundle
138+
124139
publish:
125140
docker:
126141
- image: circleci/node:10.9.0
@@ -157,6 +172,9 @@ workflows:
157172
build-and-test:
158173
jobs:
159174
- build
175+
- test-bundle:
176+
requires:
177+
- build
160178
- test-jasmine:
161179
requires:
162180
- build

.circleci/test.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ case $1 in
4444
jasmine)
4545
set_tz
4646

47-
npm run test-jasmine -- --skip-tags=noCI,gl,flaky || EXIT_STATE=$?
48-
npm run test-bundle || EXIT_STATE=$?
47+
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
48+
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky --showSkipped || EXIT_STATE=$?
4949

5050
exit $EXIT_STATE
5151
;;
5252

5353
jasmine2)
5454
set_tz
5555

56-
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=gl))
56+
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=gl | circleci tests split))
5757
MAX_AUTO_RETRY=3
5858
for s in ${SHARDS[@]}; do
59-
retry npm run test-jasmine -- "${s}" --tags=gl --skip-tags=noCI
59+
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --showSkipped
6060
done
6161

6262
exit $EXIT_STATE
@@ -65,23 +65,29 @@ case $1 in
6565
jasmine3)
6666
set_tz
6767

68-
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=flaky))
68+
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --tag=flaky | circleci tests split))
6969
MAX_AUTO_RETRY=5
7070
for s in ${SHARDS[@]}; do
71-
retry npm run test-jasmine -- "${s}" --tags=flaky --skip-tags=noCI
71+
retry npm run test-jasmine -- "$s" --tags=flaky --skip-tags=noCI --showSkipped
7272
done
7373

7474
exit $EXIT_STATE
7575
;;
7676

7777
image)
78-
npm run test-image || EXIT_STATE=$?
78+
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | circleci tests split)
79+
npm run test-image -- $SUITE --filter || EXIT_STATE=$?
7980
exit $EXIT_STATE
8081
;;
8182

8283
image2)
8384
npm run test-export || EXIT_STATE=$?
84-
npm run test-image-gl2d || EXIT_STATE=$?
85+
exit $EXIT_STATE
86+
;;
87+
88+
bundle)
89+
set_tz
90+
npm run test-bundle || EXIT_STATE=$?
8591
exit $EXIT_STATE
8692
;;
8793

lib/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ Plotly.register([
1818
require('./histogram'),
1919
require('./histogram2d'),
2020
require('./histogram2dcontour'),
21-
require('./pie'),
2221
require('./contour'),
2322
require('./scatterternary'),
2423
require('./violin'),
24+
require('./waterfall'),
25+
26+
require('./pie'),
27+
require('./sunburst'),
2528

2629
require('./scatter3d'),
2730
require('./surface'),

lib/sunburst.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright 2012-2019, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = require('../src/traces/sunburst');

lib/waterfall.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright 2012-2019, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = require('../src/traces/waterfall');

package-lock.json

Lines changed: 45 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@
3535
"pretest": "node tasks/pretest.js",
3636
"test-jasmine": "karma start test/jasmine/karma.conf.js",
3737
"test-image": "node tasks/test_image.js",
38-
"test-image-gl2d": "node tasks/test_image.js gl2d_* --queue",
3938
"test-export": "node tasks/test_export.js",
4039
"test-syntax": "node tasks/test_syntax.js && npm run find-strings -- --no-output",
4140
"test-bundle": "node tasks/test_bundle.js",
42-
"test": "npm run test-jasmine && npm run test-bundle && npm run test-image && npm run test-image-gl2d && npm run test-syntax && npm run lint",
41+
"test": "npm run test-jasmine -- --nowatch && npm run test-bundle && npm run test-image && npm run test-export && npm run test-syntax && npm run lint",
4342
"start-test_dashboard": "node devtools/test_dashboard/server.js",
4443
"start-image_viewer": "node devtools/image_viewer/server.js",
4544
"start": "npm run start-test_dashboard",
@@ -66,27 +65,28 @@
6665
"country-regex": "^1.1.0",
6766
"d3": "^3.5.12",
6867
"d3-force": "^1.0.6",
68+
"d3-hierarchy": "^1.1.8",
6969
"d3-interpolate": "1",
7070
"d3-sankey-circular": "0.33.0",
7171
"delaunay-triangulate": "^1.1.6",
7272
"es6-promise": "^3.0.2",
7373
"fast-isnumeric": "^1.1.2",
7474
"font-atlas-sdf": "^1.3.3",
75-
"gl-cone3d": "^1.3.0",
75+
"gl-cone3d": "^1.3.1",
7676
"gl-contour2d": "^1.1.5",
77-
"gl-error3d": "^1.0.14",
77+
"gl-error3d": "^1.0.15",
7878
"gl-heatmap2d": "^1.0.5",
79-
"gl-line3d": "^1.1.10",
79+
"gl-line3d": "^1.1.11",
8080
"gl-mat4": "^1.2.0",
81-
"gl-mesh3d": "^2.0.8",
81+
"gl-mesh3d": "^2.0.9",
8282
"gl-plot2d": "^1.4.2",
83-
"gl-plot3d": "^2.2.0",
83+
"gl-plot3d": "^2.2.1",
8484
"gl-pointcloud2d": "^1.0.2",
85-
"gl-scatter3d": "^1.2.0",
85+
"gl-scatter3d": "^1.2.1",
8686
"gl-select-box": "^1.0.3",
8787
"gl-spikes2d": "^1.0.2",
88-
"gl-streamtube3d": "^1.2.0",
89-
"gl-surface3d": "^1.4.3",
88+
"gl-streamtube3d": "^1.2.1",
89+
"gl-surface3d": "^1.4.5",
9090
"gl-text": "^1.1.6",
9191
"glslify": "^7.0.0",
9292
"has-hover": "^1.0.1",
@@ -104,7 +104,7 @@
104104
"regl": "^1.3.11",
105105
"regl-error2d": "^2.0.6",
106106
"regl-line2d": "3.0.13",
107-
"regl-scatter2d": "^3.1.3",
107+
"regl-scatter2d": "^3.1.4",
108108
"regl-splom": "^1.0.6",
109109
"right-now": "^1.0.0",
110110
"robust-orientation": "^1.1.3",

src/components/drawing/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ drawing.hideOutsideRangePoints = function(traceGroups, subplot) {
110110
var trace = d[0].trace;
111111
var xcalendar = trace.xcalendar;
112112
var ycalendar = trace.ycalendar;
113-
var selector = trace.type === 'bar' ? '.bartext' : '.point,.textpoint';
113+
var selector = trace.type === 'bar' ? '.bartext' :
114+
trace.type === 'waterfall' ? '.bartext,.line' :
115+
'.point,.textpoint';
114116

115117
traceGroups.selectAll(selector).each(function(d) {
116118
drawing.hideOutsideRangePoint(d, d3.select(this), xa, ya, xcalendar, ycalendar);

0 commit comments

Comments
 (0)