forked from wandb/wandb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
609 lines (564 loc) · 20.2 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
[tox]
minversion=3.24.0
envlist=
black,
isort,
ruff,
mypy,
flake8,
docstrings,
py{36,37,38,39,launch},
func-s_{base,sklearn,metaflow,tf115,tf21,tf24,tf25,tf26,ray112,ray2,service,docs,
imports{1,2,3,4,5,6,7,8,9,10,11,12},noml,grpc}-py37,
standalone-{cpu,gpu,tpu,local}-py38,
regression-{yolov5,huggingface,keras,tensorflow,pytorch,wandb-sdk-standalone,wandb-sdk-examples,wandb-sdk-wandb-examples,s3,sagemaker}-py{37,38,39,310},
func-cover,
cover
[base]
setenv =
YEA_WANDB_VERSION = 0.9.6
; Setting low network buffer so that we exercise flow control logic
WANDB__NETWORK_BUFFER = 1000
[unitbase]
deps =
-r{toxinidir}/requirements.txt
pytest
pytest-cov
pytest-xdist
pytest-flask
pytest-split
pytest-mock
pytest-timeout
pytest-openfiles
pytest-flakefinder
pytest-rerunfailures
parameterized
[unitshardbase]
deps =
{[unitbase]deps}
matplotlib<3.5.2 # TODO: remove after conftest.py refactor
bokeh # TODO: remove after conftest.py refactor
nbclient # TODO: remove after conftest.py refactor
[testenv:py{36,37,38,39,310,launch}]
deps =
{[unitbase]deps}
-r{toxinidir}/requirements_dev.txt
install_command =
py{36,37,38,39,launch}: pip install --timeout 600 --extra-index-url https://download.pytorch.org/whl/cpu {opts} {packages}
passenv =
USERNAME
CI_PYTEST_SPLIT_ARGS
CI_PYTEST_PARALLEL
CI
setenv =
py{36,37,38,39,310,launch}: COVERAGE_FILE={envdir}/.coverage
py{37,39}: WINDIR=C:\\Windows
# Pytorch installations on non-darwin need the `-f`
whitelist_externals =
mkdir
bash
commands =
mkdir -p test-results
py{36,37,38,39,310}: python -m pytest {env:CI_PYTEST_SPLIT_ARGS:} -n={env:CI_PYTEST_PARALLEL:10} --durations=20 --reruns 3 --reruns-delay 1 --junitxml=test-results/junit.xml --cov-config=.coveragerc --cov --cov-report= --no-cov-on-fail {posargs:tests/pytest_tests}
pylaunch: python -m pytest {env:CI_PYTEST_SPLIT_ARGS:} -n={env:CI_PYTEST_PARALLEL:4} --durations=20 --reruns 3 --reruns-delay 1 --junitxml=test-results/junit.xml --cov-config=.coveragerc --cov --cov-report= --no-cov-on-fail {posargs:tests/pytest_tests/unit_tests_old/tests_launch/}
[testenv:unit-s_nb-py{36,37,38,39,310}]
deps =
{[unitshardbase]deps}
s_nb: ipython
s_nb: ipykernel
s_nb: nbclient
whitelist_externals =
mkdir
setenv =
py{36,37,38,39,310,launch}: COVERAGE_FILE={envdir}/.coverage
py{37}: WINDIR=C:\\Windows
s_nb: WB_UNIT_SHARD=s_nb
passenv =
USERNAME
CI_PYTEST_SPLIT_ARGS
CI_PYTEST_PARALLEL
commands =
s_nb: ipython kernel install --user --name=wandb_python
mkdir -p test-results
python -m pytest {env:CI_PYTEST_SPLIT_ARGS:} -n={env:CI_PYTEST_PARALLEL:{env:WB_UNIT_PARALLEL:4}} --durations=20 --reruns 3 --reruns-delay 1 --junitxml=test-results/junit.xml --cov-config=.coveragerc --cov --cov-report= --no-cov-on-fail --timeout 300 {posargs:tests/pytest_tests/unit_tests_old/tests_{env:WB_UNIT_SHARD}/}
[testenv:dev]
usedevelop = true
basepython = python3
commands = ipython
[testenv:bumpversion-to-dev]
basepython=python3
skip_install = true
deps =
bump2version==1.0.1
commands=
python ./tools/bumpversion-tool.py --to-dev {posargs}
[testenv:bumpversion-from-dev]
basepython=python3
skip_install = true
deps =
bump2version==1.0.1
commands=
python ./tools/bumpversion-tool.py --from-dev {posargs}
[testenv:codecovcheck]
basepython=python3
commands=
python tools{/}coverage-tool.py check
[testenv:generatecheck]
basepython=python3
skip_install = false
deps = {[black]deps}
commands=
python tools{/}generate-tool.py --check
[testenv:generate]
basepython=python3
skip_install = false
deps = {[black]deps}
commands=
python tools{/}generate-tool.py --generate
[testenv:protocheck{3,4}]
basepython=python3
skip_install = false
whitelist_externals =
cp
rm
diff
deps =
-r{toxinidir}/requirements.txt
protocheck3: mypy-protobuf==3.3.0
protocheck3: grpcio==1.46.3
protocheck3: grpcio-tools==1.46.3
protocheck4: mypy-protobuf==3.4.0
protocheck4: grpcio==1.50.0
protocheck4: grpcio-tools==1.50.0
changedir={toxinidir}/wandb/proto
commands=
rm -rf {toxinidir}/wandb/proto_check/
protocheck3: cp -r {toxinidir}/wandb/proto/v3/ {toxinidir}/wandb/proto_check/
protocheck4: cp -r {toxinidir}/wandb/proto/v4/ {toxinidir}/wandb/proto_check/
python wandb_internal_codegen.py
protocheck3: diff {toxinidir}/wandb/proto/v3/ {toxinidir}/wandb/proto_check/
protocheck4: diff {toxinidir}/wandb/proto/v4/ {toxinidir}/wandb/proto_check/
[testenv:proto{3,4}]
basepython=python3
skip_install = false
deps =
-r{toxinidir}/requirements.txt
proto3: mypy-protobuf==3.3.0
proto3: grpcio==1.46.3
proto3: grpcio-tools==1.46.3
proto4: mypy-protobuf==3.4.0
proto4: grpcio==1.50.0
proto4: grpcio-tools==1.50.0
changedir={toxinidir}/wandb/proto
commands=
proto{3,4}: python wandb_internal_codegen.py
[flake8base]
deps =
flake8>=5.0.0
grpcio>=1.46.3
[testenv:flake8]
basepython=python3
skip_install = true
deps =
{[flake8base]deps}
flake8-bugbear>=21.4.2
pep8-naming
flake8-fixme
flake8-typing-imports>=1.1
commands =
flake8 --append-config={toxinidir}/.flake8-base --color=always {posargs}
[testenv:docstrings]
basepython=python3
skip_install = true
deps =
{[flake8base]deps}
flake8-docstrings>=1.3.1
commands =
flake8 --select D --append-config={toxinidir}/.flake8-docstrings {posargs}
[testenv:darglint]
basepython=python3
skip_install = true
deps =
{[flake8base]deps}
darglint>=1.8.0
commands =
flake8 --append-config={toxinidir}/.flake8-darglint {posargs}
[testenv:pylint]
basepython=python3
deps=pylint
commands=
pylint -rn --rcfile={toxinidir}/.pylintrc wandb.sdk
[testenv:mypy]
basepython=python3
skip_install = true
deps=
types-click==7.1.8
mypy
lxml
grpcio
httpx>=0.22.0 # 0.23.0 dropped Python 3.6; we can upgrade once we drop it too
setenv =
MYPYPATH = {toxinidir}
commands=
mypy --install-types --non-interactive --show-error-codes --config-file {toxinidir}/mypy.ini -p wandb --html-report mypy-results/ --cobertura-xml-report mypy-results/ --lineprecision-report mypy-results/
[testenv:mypy-report]
basepython=python3
skip_install = true
deps=
pycobertura
commands=
pycobertura show --format text mypy-results/cobertura.xml
[isort]
deps=
isort
[testenv:isort-check]
basepython = python3
skip_install = true
deps=
{[isort]deps}
commands=
isort --check --resolve-all-configs --config-root {toxinidir} {toxinidir}
[testenv:isort-format]
basepython = python3
skip_install = true
deps=
{[isort]deps}
commands=
isort --resolve-all-configs --config-root {toxinidir} {toxinidir}
[ruff]
deps=
ruff
[testenv:ruff]
basepython = python3
skip_install = true
deps=
{[ruff]deps}
commands=
ruff {toxinidir}
[testenv:ruff-fix]
basepython = python3
skip_install = true
deps=
{[ruff]deps}
commands=
ruff --fix {toxinidir}
[black]
deps=
black==22.3.0
[testenv:format]
basepython = python3
skip_install = true
deps= {[black]deps}
commands =
black wandb/ tests/ tools/
[testenv:black]
basepython = python3
skip_install = true
deps = {[black]deps}
commands =
black --check wandb/ tests/ tools/
[testenv:blackdiff]
basepython = python3
skip_install = true
deps = {[black]deps}
commands =
black --diff wandb/ tests/ tools/
[testenv:pyupgrade]
basepython=python3
whitelist_externals =
sh
deps=
pyupgrade<=2.34.0
commands=
sh -c 'python tools/locate-py-files.py | xargs pyupgrade --py36-plus --keep-mock'
[flake8]
max-line-length = 88
# ignore = D203, W503, E203
ignore =
# TODO()'s are allowed for now
T101,
W503,
# allow long lines, lets use blacks rules
E501,
# ignore space after comma rule, let black rule
E231,
# ignore whitespace before ':' (incompatible with black)
E203,
# google convention for docstrings, expressed as ignores
D203,D204,D213,D215,D400,D401,D404,D406,D407,D408,D409,D413,
# ignore missing docstrings
D1,
# configure darglint for function signatures
DAR103,
# select = C,E,F,W,B,B901,I,N
max-complexity = 18
# docstring checking
docstring-convention = all
docstring-style = google
ignore-regex=^_(.*)
strictness=short
[testenv:covercircle]
skip_install = true
basepython = python3
passenv = CI CIRCLECI CIRCLE_* CODECOV_* TOXENV
deps =
pytest
coverage
; codecov
setenv =
CIRCLE_BUILD_NUM={env:CIRCLE_WORKFLOW_ID}
whitelist_externals =
mkdir
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/py*/.coverage*'
coverage xml --ignore-errors
cp .coverage coverage.xml cover-results/
coverage report --ignore-errors --skip-covered --omit "wandb/vendor/*"
; codecov -e TOXENV -F unittest
# temporary until we can consolidate coverage collection paths
[testenv:unit-covercircle]
skip_install = true
basepython = python3
passenv = CI CIRCLECI CIRCLE_* CODECOV_* TOXENV
deps =
pytest
coverage
; codecov
setenv =
CIRCLE_BUILD_NUM={env:CIRCLE_WORKFLOW_ID}
whitelist_externals =
mkdir
bash
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/unit-s*-py*/.coverage*'
/usr/bin/env bash -c '{envpython} -m coverage xml --ignore-errors'
cp .coverage coverage.xml cover-results/
coverage report --ignore-errors --skip-covered --include "wandb/*" --omit "wandb/vendor/*"
; codecov -e TOXENV -F unittest
# temporary until we can consolidate coverage collection paths
[testenv:unit-cover]
skip_install = true
deps =
pytest
coverage
whitelist_externals =
mkdir
bash
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/unit-s*-py*/.coverage*'
coverage xml --ignore-errors
cp .coverage coverage.xml cover-results/
coverage report -m --ignore-errors --skip-covered --omit "wandb/vendor/*"
# hack until we figure out how to do better path conversions for windows
[testenv:wincovercircle]
skip_install = true
basepython = python3
passenv = CI CIRCLECI CIRCLE_* CODECOV_* TOXENV
deps =
pytest
coverage
; codecov
setenv =
CIRCLE_BUILD_NUM={env:CIRCLE_WORKFLOW_ID}
whitelist_externals =
mkdir
cp
bash.exe
commands =
bash.exe -c 'mkdir -p cover-results'
bash.exe -c '~/project/.tox/wincovercircle/Scripts/python.exe -m coverage combine ~/project/.tox/py39/.coverage*'
bash.exe -c '~/project/.tox/wincovercircle/Scripts/python.exe -m coverage xml'
bash.exe -c 'cp .coverage coverage.xml cover-results/'
bash.exe -c '~/project/.tox/wincovercircle/Scripts/python.exe -m coverage report --ignore-errors --skip-covered --omit "wandb/vendor/*"'
; bash.exe -c '~/project/.tox/wincovercircle/Scripts/python.exe -m codecov -e TOXENV -F unittest'
[testenv:cover]
skip_install = true
deps =
pytest
coverage
whitelist_externals =
mkdir
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/py*/.coverage*'
coverage xml --ignore-errors
cp .coverage coverage.xml cover-results/
coverage report -m --ignore-errors --skip-covered --omit "wandb/vendor/*"
[testenv:func-s_{base,sklearn,metaflow,tf115,tf21,tf24,tf25,tf26,ray112,ray2,service,py310,docs,imports1,imports2,imports3,imports4,imports5,imports6,imports7,imports8,imports9,imports10,imports11,imports12,noml,grpc,kfp}-{py36,py37,py38,py39,py310}]
install_command = pip install --extra-index-url https://download.pytorch.org/whl/cpu {opts} {packages}
commands_pre =
setenv =
{[base]setenv}
COVERAGE_FILE={envdir}/.coverage
YEACOV_SOURCE={envsitepackagesdir}/wandb/
s_kfp: WB_PROBE_PACKAGE=true
passenv =
USERNAME
CI_PYTEST_SPLIT_ARGS
deps =
-r{toxinidir}/requirements.txt
func-s_{base,metaflow}-py{36,37,38,39,310}: -r{toxinidir}/requirements_dev.txt
pytest-mock
yea-wandb=={env:YEA_WANDB_VERSION}
extras =
func-s_service-py{36,37,38,39,310}: service
func-s_grpc-py{36,37,38,39,310}: grpc
whitelist_externals =
mkdir
commands =
mkdir -p test-results
func-s_base-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard default run {posargs:--all}
func-s_sklearn-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard sklearn run {posargs:--all}
func-s_metaflow-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard metaflow run {posargs:--all}
func-s_tf115-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard tf115 run {posargs:--all}
func-s_tf21-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard tf21 run {posargs:--all}
func-s_tf24-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard tf24 run {posargs:--all}
func-s_tf25-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard tf25 run {posargs:--all}
func-s_tf26-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard tf26 run {posargs:--all}
func-s_ray112-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard ray112 run {posargs:--all}
func-s_ray2-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard ray2 run {posargs:--all}
func-s_service-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard service run {posargs:--all}
func-s_grpc-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard grpc run {posargs:--all}
func-s_py310-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard py310 run {posargs:--all}
func-s_docs-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --yeadoc --shard docs run {posargs:--all}
func-s_imports1-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports1 run {posargs:--all}
func-s_imports2-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports2 run {posargs:--all}
func-s_imports3-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports3 run {posargs:--all}
func-s_imports4-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports4 run {posargs:--all}
func-s_imports5-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports5 run {posargs:--all}
func-s_imports6-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports6 run {posargs:--all}
func-s_imports7-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports7 run {posargs:--all}
func-s_imports8-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports8 run {posargs:--all}
func-s_imports9-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports9 run {posargs:--all}
func-s_imports10-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports10 run {posargs:--all}
func-s_imports11-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports11 run {posargs:--all}
func-s_imports12-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard imports12 run {posargs:--all}
func-s_noml-py{36,37,38,39,310}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict --shard noml run {posargs:--all}
func-s_kfp-py{37}: yea {env:CI_PYTEST_SPLIT_ARGS:} --strict -p wandb:mockserver-bind=0.0.0.0 -p wandb:mockserver-host=__auto__ --shard kfp run {posargs:--all}
[testenv:pod-store]
whitelist_externals =
mkdir
cp
commands =
mkdir -p /wandb-store/test-results
cp -rp test-results /wandb-store/test-results
[testenv:func-cover]
skip_install = true
deps =
coverage
whitelist_externals =
mkdir
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/func-s*-py*/.coverage*'
/usr/bin/env bash -c '{envpython} -m coverage xml --ignore-errors'
cp .coverage coverage.xml cover-results/
coverage report
[testenv:func-covercircle]
skip_install = true
basepython = python3
passenv = CI CIRCLECI CIRCLE_* CODECOV_* TOXENV
deps =
pytest
coverage
; codecov
setenv =
CIRCLE_BUILD_NUM={env:CIRCLE_WORKFLOW_ID}
whitelist_externals =
mkdir
cp
commands =
mkdir -p cover-results
/usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/func-s*-py*/.coverage*'
/usr/bin/env bash -c '{envpython} -m coverage xml --ignore-errors'
cp .coverage coverage.xml cover-results/
coverage report --ignore-errors --skip-covered --include "wandb/*" --omit "wandb/vendor/*"
; codecov -e TOXENV -F functest
[testenv:standalone-{cpu,gpu,tpu,local}-py{36,37,38,39,310}]
install_command = pip install --extra-index-url https://download.pytorch.org/whl/cpu {opts} {packages}
commands_pre =
setenv =
{[base]setenv}
COVERAGE_FILE={envdir}/.coverage
YEACOV_SOURCE={envsitepackagesdir}/wandb/
WANDB_PROJECT=standalone-{env:DATE}
passenv =
DATE
USERNAME
WANDB_API_KEY
deps =
-r{toxinidir}/requirements.txt
standalone-{cpu,gpu,tpu,local}-py{36,37,38,39,310}: -r{toxinidir}/requirements_dev.txt
pytest-mock
yea-wandb=={env:YEA_WANDB_VERSION}
whitelist_externals =
date
echo
export
mkdir
sh
commands =
mkdir -p test-results
wandb login --relogin {env:WANDB_API_KEY}
standalone-cpu-py{36,37,38,39,310}: yea --debug --strict -p wandb:mockserver-relay=true -p wandb:mockserver-relay-remote-base-url=https://api.wandb.ai --shard standalone-cpu run {posargs:--all}
standalone-gpu-py{36,37,38,39,310}: yea --debug --strict -p wandb:mockserver-relay=true -p wandb:mockserver-relay-remote-base-url=https://api.wandb.ai --shard standalone-gpu run {posargs:--all}
standalone-tpu-py{36,37,38,39,310}: yea --debug --strict -p wandb:mockserver-relay=true -p wandb:mockserver-relay-remote-base-url=https://api.wandb.ai --shard standalone-tpu run {posargs:--all}
standalone-local-py{36,37,38,39,310}: yea --debug --strict -p wandb:mockserver-bind=0.0.0.0 -p wandb:mockserver-host=__auto__ -p wandb:mockserver-relay=true -p wandb:mockserver-relay-remote-base-url=http://localhost:5000 --shard standalone-cpu run {posargs:--all}
[testenv:regression-{yolov5,huggingface,keras,tensorflow,pytorch,wandb-sdk-standalone,wandb-sdk-examples,wandb-sdk-other,s3,sagemaker}-py{37,38,39,310}]
install_command = pip install --extra-index-url https://download.pytorch.org/whl/cpu {opts} {packages}
commands_pre =
setenv =
{[base]setenv}
COVERAGE_FILE={envdir}/.coverage
TESTING_DIR={toxinidir}/wandb-testing/regression
passenv = *
whitelist_externals =
git
echo
export
mkdir
sh
curl
source
time
set
pushd
popd
ulimit
commands =
git clone -b update-py-v https://github.com/wandb/wandb-testing.git
python -m pip install pyyaml six wandb shortuuid
regression-yolov5-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/yolov5/ {posargs}
regression-huggingface-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/huggingface/ {posargs}
regression-keras-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/keras/ {posargs}
regression-tensorflow-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/tensorflow/ {posargs}
regression-pytorch-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/pytorch/ {posargs}
regression-wandb-sdk-standalone-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/wandb-git/client/standalone_tests {posargs}
regression-wandb-sdk-examples-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/wandb-git/examples {posargs}
regression-wandb-sdk-other-py{37,38,39,310}: {env:TESTING_DIR}/do-cloud-regression.sh tests/main/wandb-git/wandb-examples {posargs}
regression-s3-py{37,38,39,310}: {env:TESTING_DIR}/do-s3-regression.sh tests/s3-beta/ {posargs}
regression-sagemaker-py{37,38,39,310}: {env:TESTING_DIR}/do-sagemaker-regression.sh tests/sagemaker-beta/ {posargs}
[testenv:executor-{pex,uwsgi,gunicorn}]
install_command = pip install --extra-index-url https://download.pytorch.org/whl/cpu {opts} {packages}
basepython=python3.9
commands_pre =
deps =
flask
gunicorn
uwsgi==2.0.21
pex
setenv =
{[base]setenv}
passenv = *
whitelist_externals =
bash
commands =
bash tests/standalone_tests/executor_tests/{envname}.sh {posargs}