Skip to content

Commit 960f910

Browse files
committed
Merge remote-tracking branch 'origin-plotly/master' into barmode_relative_offsetgroup
2 parents 14e92a3 + dd8e968 commit 960f910

File tree

1,571 files changed

+1508342
-1575003
lines changed

Some content is hidden

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

1,571 files changed

+1508342
-1575003
lines changed

.circleci/config.yml

Lines changed: 49 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,9 @@ orbs:
1010
# https://hub.docker.com/r/cimg/node/tags/
1111

1212
jobs:
13-
install-and-cibuild-node12: # cibuild using node 12 & npm 6
13+
install-and-cibuild:
1414
docker:
15-
- image: cimg/node:12.22.7
16-
working_directory: ~/plotly.js
17-
steps:
18-
- checkout
19-
- run:
20-
name: Set up build environment
21-
command: .circleci/env_build.sh
22-
- run:
23-
name: Pretest
24-
command: npm run pretest
25-
- run:
26-
name: CI-Build
27-
command: npm run cibuild
28-
29-
install-and-cibuild: # main cibuild using node 16 & npm 7
30-
docker:
31-
- image: cimg/node:16.17.1
15+
- image: cimg/node:18.20.4
3216
working_directory: ~/plotly.js
3317
steps:
3418
- checkout
@@ -52,12 +36,15 @@ jobs:
5236
timezone-jasmine:
5337
docker:
5438
# need '-browsers' version to test in real (xvfb-wrapped) browsers
55-
- image: cimg/node:16.17.1-browsers
39+
- image: cimg/node:18.20.4-browsers
5640
working_directory: ~/plotly.js
5741
steps:
58-
- browser-tools/install-browser-tools: &browser-versions
42+
- run: sudo apt-get update
43+
- browser-tools/install-browser-tools:
5944
install-firefox: false
6045
install-geckodriver: false
46+
install-chrome: true
47+
chrome-version: "127.0.6533.119"
6148
- attach_workspace:
6249
at: ~/
6350
- run:
@@ -84,16 +71,19 @@ jobs:
8471
no-gl-jasmine:
8572
docker:
8673
# need '-browsers' version to test in real (xvfb-wrapped) browsers
87-
- image: cimg/node:16.17.1-browsers
74+
- image: cimg/node:18.20.4-browsers
8875
environment:
8976
# Alaska time (arbitrary timezone to test date logic)
9077
TZ: "America/Anchorage"
9178
parallelism: 12
9279
working_directory: ~/plotly.js
9380
steps:
94-
- browser-tools/install-browser-tools: &browser-versions
81+
- run: sudo apt-get update
82+
- browser-tools/install-browser-tools:
9583
install-firefox: false
9684
install-geckodriver: false
85+
install-chrome: true
86+
chrome-version: "127.0.6533.119"
9787
- attach_workspace:
9888
at: ~/
9989
- run:
@@ -103,16 +93,19 @@ jobs:
10393
webgl-jasmine:
10494
docker:
10595
# need '-browsers' version to test in real (xvfb-wrapped) browsers
106-
- image: cimg/node:16.17.1-browsers
96+
- image: cimg/node:18.20.4-browsers
10797
environment:
10898
# Alaska time (arbitrary timezone to test date logic)
10999
TZ: "America/Anchorage"
110100
parallelism: 8
111101
working_directory: ~/plotly.js
112102
steps:
113-
- browser-tools/install-browser-tools: &browser-versions
103+
- run: sudo apt-get update
104+
- browser-tools/install-browser-tools:
114105
install-firefox: false
115106
install-geckodriver: false
107+
install-chrome: true
108+
chrome-version: "127.0.6533.119"
116109
- attach_workspace:
117110
at: ~/
118111
- run:
@@ -122,16 +115,19 @@ jobs:
122115
virtual-webgl-jasmine:
123116
docker:
124117
# need '-browsers' version to test in real (xvfb-wrapped) browsers
125-
- image: cimg/node:16.17.1-browsers
118+
- image: cimg/node:18.20.4-browsers
126119
environment:
127120
# Alaska time (arbitrary timezone to test date logic)
128121
TZ: "America/Anchorage"
129122
parallelism: 8
130123
working_directory: ~/plotly.js
131124
steps:
132-
- browser-tools/install-browser-tools: &browser-versions
125+
- run: sudo apt-get update
126+
- browser-tools/install-browser-tools:
133127
install-firefox: false
134128
install-geckodriver: false
129+
install-chrome: true
130+
chrome-version: "127.0.6533.119"
135131
- attach_workspace:
136132
at: ~/
137133
- run:
@@ -141,15 +137,18 @@ jobs:
141137
flaky-no-gl-jasmine:
142138
docker:
143139
# need '-browsers' version to test in real (xvfb-wrapped) browsers
144-
- image: cimg/node:16.17.1-browsers
140+
- image: cimg/node:18.20.4-browsers
145141
environment:
146142
# Alaska time (arbitrary timezone to test date logic)
147143
TZ: "America/Anchorage"
148144
working_directory: ~/plotly.js
149145
steps:
150-
- browser-tools/install-browser-tools: &browser-versions
146+
- run: sudo apt-get update
147+
- browser-tools/install-browser-tools:
151148
install-firefox: false
152149
install-geckodriver: false
150+
install-chrome: true
151+
chrome-version: "127.0.6533.119"
153152
- attach_workspace:
154153
at: ~/
155154
- run:
@@ -159,79 +158,44 @@ jobs:
159158
bundle-jasmine:
160159
docker:
161160
# need '-browsers' version to test in real (xvfb-wrapped) browsers
162-
- image: cimg/node:16.17.1-browsers
161+
- image: cimg/node:18.20.4-browsers
163162
environment:
164163
# Alaska time (arbitrary timezone to test date logic)
165164
TZ: "America/Anchorage"
166165
working_directory: ~/plotly.js
167166
steps:
168-
- browser-tools/install-browser-tools: &browser-versions
167+
- run: sudo apt-get update
168+
- browser-tools/install-browser-tools:
169169
install-firefox: false
170170
install-geckodriver: false
171+
install-chrome: true
172+
chrome-version: "127.0.6533.119"
171173
- attach_workspace:
172174
at: ~/
173175
- run:
174176
name: Run jasmine tests (part D)
175177
command: .circleci/test.sh bundle-jasmine
176178

177-
mathjax-firefox81:
178-
docker:
179-
# need '-browsers' version to test in real (xvfb-wrapped) browsers
180-
- image: cimg/node:16.17.1-browsers
181-
environment:
182-
# Alaska time (arbitrary timezone to test date logic)
183-
TZ: "America/Anchorage"
184-
working_directory: ~/plotly.js
185-
steps:
186-
- browser-tools/install-browser-tools: &browser-versions
187-
firefox-version: '81.0'
188-
install-chrome: false
189-
install-chromedriver: false
190-
- attach_workspace:
191-
at: ~/
192-
- run:
193-
name: Test MathJax on firefox-81
194-
command: .circleci/test.sh mathjax-firefox
195-
196-
mathjax-firefox82:
197-
docker:
198-
# need '-browsers' version to test in real (xvfb-wrapped) browsers
199-
- image: cimg/node:16.17.1-browsers
200-
environment:
201-
# Alaska time (arbitrary timezone to test date logic)
202-
TZ: "America/Anchorage"
203-
working_directory: ~/plotly.js
204-
steps:
205-
- browser-tools/install-browser-tools: &browser-versions
206-
firefox-version: '82.0'
207-
install-chrome: false
208-
install-chromedriver: false
209-
- attach_workspace:
210-
at: ~/
211-
- run:
212-
name: Test MathJax on firefox-82
213-
command: .circleci/test.sh mathjax-firefox82+
214-
215179
mathjax-firefoxLatest:
216180
docker:
217181
# need '-browsers' version to test in real (xvfb-wrapped) browsers
218-
- image: cimg/node:16.17.1-browsers
182+
- image: cimg/node:18.20.4-browsers
219183
environment:
220184
# Alaska time (arbitrary timezone to test date logic)
221185
TZ: "America/Anchorage"
222186
working_directory: ~/plotly.js
223187
steps:
224-
- browser-tools/install-browser-tools: &browser-versions
188+
- browser-tools/install-browser-tools:
225189
install-chrome: false
226190
install-chromedriver: false
227191
- attach_workspace:
228192
at: ~/
229193
- run:
230194
name: Test MathJax on firefox-latest
231-
command: .circleci/test.sh mathjax-firefox82+
195+
command: .circleci/test.sh mathjax-firefox
232196

233197
make-baselines-virtual-webgl:
234-
parallelism: 4
198+
parallelism: 8
235199
docker:
236200
- image: circleci/python:3.8.9
237201
working_directory: ~/plotly.js
@@ -268,7 +232,7 @@ jobs:
268232
- plotly.js
269233

270234
make-baselines:
271-
parallelism: 4
235+
parallelism: 12
272236
docker:
273237
- image: circleci/python:3.8.9
274238
working_directory: ~/plotly.js
@@ -287,7 +251,7 @@ jobs:
287251
- plotly.js
288252

289253
make-baselines-b64:
290-
parallelism: 4
254+
parallelism: 12
291255
docker:
292256
- image: circleci/python:3.8.9
293257
working_directory: ~/plotly.js
@@ -307,7 +271,7 @@ jobs:
307271

308272
test-baselines:
309273
docker:
310-
- image: circleci/node:16.9.0
274+
- image: cimg/node:18.20.4
311275
working_directory: ~/plotly.js
312276
steps:
313277
- attach_workspace:
@@ -321,7 +285,7 @@ jobs:
321285

322286
test-baselines-virtual-webgl:
323287
docker:
324-
- image: circleci/node:16.9.0
288+
- image: cimg/node:18.20.4
325289
working_directory: ~/plotly.js
326290
steps:
327291
- attach_workspace:
@@ -335,7 +299,7 @@ jobs:
335299

336300
test-baselines-b64:
337301
docker:
338-
- image: circleci/node:16.9.0
302+
- image: cimg/node:18.20.4
339303
working_directory: ~/plotly.js
340304
steps:
341305
- attach_workspace:
@@ -349,7 +313,7 @@ jobs:
349313

350314
test-baselines-mathjax3:
351315
docker:
352-
- image: circleci/node:16.9.0
316+
- image: cimg/node:18.20.4
353317
working_directory: ~/plotly.js
354318
steps:
355319
- attach_workspace:
@@ -374,8 +338,8 @@ jobs:
374338
- run:
375339
name: Install poppler-utils to have pdftops for exporting eps
376340
command: |
377-
sudo apt-get update --allow-releaseinfo-change
378-
sudo apt-get install poppler-utils
341+
sudo apt-get update --allow-releaseinfo-change
342+
sudo apt-get install poppler-utils
379343
- run:
380344
name: Create svg, jpg, jpeg, webp, pdf and eps files
381345
command: python3 test/image/make_exports.py
@@ -386,7 +350,7 @@ jobs:
386350

387351
test-exports:
388352
docker:
389-
- image: circleci/node:16.9.0
353+
- image: cimg/node:18.20.4
390354
working_directory: ~/plotly.js
391355
steps:
392356
- attach_workspace:
@@ -400,7 +364,7 @@ jobs:
400364

401365
mock-validation:
402366
docker:
403-
- image: cimg/node:16.17.1
367+
- image: cimg/node:18.20.4
404368
working_directory: ~/plotly.js
405369
steps:
406370
- attach_workspace:
@@ -414,7 +378,7 @@ jobs:
414378

415379
source-syntax:
416380
docker:
417-
- image: cimg/node:16.17.1
381+
- image: cimg/node:18.20.4
418382
working_directory: ~/plotly.js
419383
steps:
420384
- attach_workspace:
@@ -425,7 +389,7 @@ jobs:
425389

426390
publish-dist:
427391
docker:
428-
- image: cimg/node:16.17.1
392+
- image: cimg/node:18.20.4
429393
working_directory: ~/plotly.js
430394
steps:
431395
- checkout
@@ -486,16 +450,10 @@ jobs:
486450
- run:
487451
name: Test plotly.min.js import using requirejs
488452
command: npm run test-requirejs
489-
- run:
490-
name: Test plotly bundles against es6
491-
command: npm run no-es6-dist
492-
- run:
493-
name: Display function constructors in all bundles
494-
command: npm run no-new-func
495453

496454
test-stackgl-bundle:
497455
docker:
498-
- image: cimg/node:16.17.1
456+
- image: cimg/node:18.20.4
499457
working_directory: ~/plotly.js
500458
steps:
501459
- checkout
@@ -516,21 +474,13 @@ workflows:
516474
version: 2
517475
build-and-test:
518476
jobs:
519-
- install-and-cibuild-node12
520-
521477
- install-and-cibuild
522478
- timezone-jasmine:
523479
requires:
524480
- install-and-cibuild
525481
- bundle-jasmine:
526482
requires:
527483
- install-and-cibuild
528-
- mathjax-firefox81:
529-
requires:
530-
- install-and-cibuild
531-
- mathjax-firefox82:
532-
requires:
533-
- install-and-cibuild
534484
- mathjax-firefoxLatest:
535485
requires:
536486
- install-and-cibuild

.circleci/test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ case $1 in
8484
exit $EXIT_STATE
8585
;;
8686

87-
mathjax-firefox82+)
88-
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --skip-tags=noFF82 --nowatch &&
89-
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --mathjax3 --skip-tags=noFF82 --nowatch &&
87+
mathjax-firefox)
88+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --nowatch &&
89+
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax --mathjax3 --nowatch &&
9090
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --mathjax3 --nowatch &&
9191
./node_modules/karma/bin/karma start test/jasmine/karma.conf.js --FF --bundleTest=mathjax_config --nowatch || EXIT_STATE=$?
9292
exit $EXIT_STATE
@@ -95,14 +95,14 @@ case $1 in
9595
make-baselines-virtual-webgl)
9696
SUITE=$({\
9797
find $ROOT/test/image/mocks/gl* -type f -printf "%f\n"; \
98-
find $ROOT/test/image/mocks/mapbox* -type f -printf "%f\n"; \
98+
find $ROOT/test/image/mocks/map* -type f -printf "%f\n"; \
9999
} | sed 's/\.json$//1' | circleci tests split)
100100
python3 test/image/make_baseline.py virtual-webgl $SUITE || EXIT_STATE=$?
101101
exit $EXIT_STATE
102102
;;
103103

104104
make-baselines-mathjax3)
105-
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax || EXIT_STATE=$?
105+
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax ternary-mathjax-title-place-subtitle || EXIT_STATE=$?
106106
exit $EXIT_STATE
107107
;;
108108

0 commit comments

Comments
 (0)