Skip to content

Commit 609cdf8

Browse files
committed
circleci: 🔪 special handling of gl2d mocks
1 parent 830d0a9 commit 609cdf8

File tree

4 files changed

+2
-42
lines changed

4 files changed

+2
-42
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
test-image:
7878
docker:
7979
- image: plotly/testbed:latest
80-
parallelism: 2
80+
parallelism: 4
8181
working_directory: /var/www/streambed/image_server/plotly.js/
8282
steps:
8383
- attach_workspace:

.circleci/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ case $1 in
8282

8383
image2)
8484
npm run test-export || EXIT_STATE=$?
85-
npm run test-image-gl2d || EXIT_STATE=$?
8685
exit $EXIT_STATE
8786
;;
8887

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
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",

test/image/compare_pixels_test.js

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ argv._.forEach(function(pattern) {
6969
throw new Error('No mocks found with pattern ' + pattern);
7070
}
7171

72-
// gl2d have limited image-test support
73-
if(pattern === 'gl2d_*') {
74-
if(!isInQueue) {
75-
console.log('WARN: Running gl2d image tests in batch may lead to unwanted results\n');
76-
}
77-
console.log('\nSorting gl2d mocks to avoid gl-shader conflicts');
78-
sortGl2dMockList(mockList);
79-
console.log('');
80-
}
81-
8272
allMockList = allMockList.concat(mockList);
8373
});
8474

@@ -120,7 +110,7 @@ else {
120110
function untestableFilter(mockName) {
121111
var cond = !(
122112
mockName === 'font-wishlist' ||
123-
mockName.indexOf('gl2d_') !== -1 ||
113+
// mockName.indexOf('gl2d_') !== -1 ||
124114
mockName.indexOf('mapbox_') !== -1
125115
);
126116

@@ -129,34 +119,6 @@ function untestableFilter(mockName) {
129119
return cond;
130120
}
131121

132-
/* gl2d pointcloud and other non-regl gl2d mock(s)
133-
* must be tested first on in order to work;
134-
* sort them here.
135-
*
136-
* gl-shader appears to conflict with regl.
137-
* We suspect that the lone gl context on CircleCI is
138-
* having issues with dealing with the two different
139-
* program binding algorithm.
140-
*
141-
* The problem will be solved by switching all our
142-
* WebGL-based trace types to regl.
143-
*
144-
* More info here:
145-
* https://github.com/plotly/plotly.js/pull/1037
146-
*/
147-
function sortGl2dMockList(mockList) {
148-
var mockNames = ['gl2d_pointcloud-basic', 'gl2d_heatmapgl'];
149-
var pos = 0;
150-
151-
mockNames.forEach(function(m) {
152-
var ind = mockList.indexOf(m);
153-
var tmp = mockList[pos];
154-
mockList[pos] = m;
155-
mockList[ind] = tmp;
156-
pos++;
157-
});
158-
}
159-
160122
function runInBatch(mockList) {
161123
var running = 0;
162124

0 commit comments

Comments
 (0)