Commit Graph

50 Commits

Author SHA1 Message Date
Matthew Soulanille a234798ae8
Cleanup and standardize package.json scripts of Bazel packages (#7005)
* [core] Remove unused package.json scripts

* [cpu] Remove unused package.json scripts

* [wasm] Remove unused package.json scripts

* [webgl] Remove unused package.json scripts

* [core] Add --test_output=streamed

* [converter] Remove unused package.json scripts

* [data] Remove unused package.json scripts

* [layers] Standardize package.json scripts

* [core] Use streamed test output where only one test is run

* [tflite] Standardize package.json scripts

* Bazel format
2022-11-02 13:08:58 -07:00
Moustapha Sall b83e5b437a
Bump seedrandom to avoid unsafe-eval issues (#6440)
* Bump seedrandom to avoid unsafe-eval issues

* Reset to upstream

* Update lock files

Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
2022-06-28 16:35:57 -07:00
Matthew Soulanille 87416db23d
Upgrade @bazel/bazelisk and @bazel/ibazel (#6565) 2022-06-27 12:28:19 -07:00
Matthew Soulanille b98fcc6ab4
Add a Bazel test_suite to organize tests (#6550)
Create a test_suite target named tests in each package and a test_suite in the root of the repository that runs all the tests for all the Bazel packages. WebGPU is excluded at the moment because it is in alpha.

Running yarn test at the root of the repository will run the tests.

This target is just for developer convenience.
2022-06-23 10:08:57 -07:00
Matthew Soulanille 30baf2f9bf
Add string_decoder to tfjs-data (#6538)
string_decoder is used by [tfjs-data/src/util/deep_map.ts:261](https://github.com/tensorflow/tfjs/blob/master/tfjs-data/src/util/deep_map.ts#L261), so it should be included in the package.json and Bazel build rule for tfjs-data.
2022-06-15 14:38:29 -07:00
Matthew Soulanille 57940285ec
Remove unneeded devDependencies from packages that build with Bazel (#6452)
* [core] Remove devDependencies that are no longer needed

* [cpu] Remove devDependencies that are no longer needed

* [layers] Remove devDependencies that are no longer needed

* [webgl] Remove devDependencies that are no longer needed

* [converter] Remove devDependencies that are no longer needed

* [data] Remove devDependencies that are no longer needed

* [tflite] Remove devDependencies that are no longer needed
2022-05-26 10:35:16 -07:00
Ping Yu 7e3c36adec
[secu] update package.json files to resolve security alerts (#6448)
Clean up the package.json files for directories migrated to bazel.
2022-05-25 13:41:56 -07:00
rancyr 694c6e2b3c
Update package.json to include the repository (#5770)
Add repository metadata to the package.json files for the following packages:
* @tensorflow/tfjs-react-native
* @tensorflow/tfjs-layers
* @tensorflow/tfjs-data
* @tensorflow/tfjs-backend-wasm

Co-authored-by: Matthew Soulanille <msoulanille@google.com>
2021-11-23 10:42:09 -08:00
Matthew Soulanille 441537199e
Lint Bazel packages with a central lint script (#5790)
INTERNAL
* Add global lint script

* Omit non-bazel packages from repo-wide lint

* Lint Bazel packages with a global lint script

* Fix lint errors

* [core] Remove lint script

* [cpu] Remove lint script

* [webgl] Remove lint script

* [converter] Remove tslint script

* [layers] Remove tslint script

* [tflite] Remove tslint script

* [data] Remove tslint script

* Update cloudbuild golden file tests

* [webgpu] Revert incorrect lint changes

* Add lint instructions to Bazel migration doc

* Fix lint errors

* [core] Remove circular import in platform_node

Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
2021-11-02 14:48:54 -07:00
Ping Yu 1707ea512e
[tfjs-data] Bazel migration for tfjs-data (#5748)
* init build file

* migrate tfjs-data to bazel

* fix tests

* skip mediaDevices tests if it is null

* test on chrome only

* addressed comments

* fix typo

* fixed snippet tests
2021-10-21 11:33:16 -07:00
Ping Yu ed94a27288
[tfjs-layers] Bazel migration (#5672)
FEATURE
INTERNAL
* add more bazel build files

* remove the integration test directory

* enumerate tests

* require tests files

* fix tests

* fixed spyOn test errors

* fix more tests

* keep function name for esbuild

* fix more tests

* allow random flag for jasmine test

* updated deps

* merged

* fixed bazel lint

* fixed layers snippet tests

* fixed tests

* fix test failure

* fix bazel tests

* addressed comments

* addressed comments

* fix test

* fix bazel failure
2021-09-30 22:50:20 -07:00
Matthew Soulanille 6f26aac510
[core] Fix io test flakiness when run out-of-order (#5582)
IO tests use the same browser storage, so they need to run one-at-a-time. This PR adds the function runWithLock to jasmine_util that makes any spec that uses it run exclusively to other specs that use it.

Co-authored-by: Ping Yu <4018+pyu10055@users.noreply.github.com>
2021-09-09 15:09:56 -07:00
Matthew Soulanille e745d42cae
Use Bazel and ts_library to build core and backend-cpu (#5133)
This PR builds tfjs-core and tfjs-backend-cpu using Bazel and makes the build outputs available to the other packages in the monorepo. It also sets up Bazel rules and macros that facilitate converting other packages in the monorepo to Bazel. For more details, see #5133.
2021-07-15 14:50:45 -07:00
Matthew Soulanille b0fd0111ac
Generate code coverage reports for packages (#4946)
Add a `yarn coverage` command to packages to generate coverage reports. Coverage is not yet automated in CI.
2021-04-28 14:24:29 -07:00
Ping Yu c238c49f70
fix sec vulnerabilities for all packages (#4869)
SECURITY
* fix sec vul for all packages

* fix rn error

* update pkg version

* update deps for automl

* fix lint

* fix node error

* fix karma stuck error for wasm
2021-03-30 15:53:14 -07:00
Matthew Elliott Soulanille 98d71518f6
Don't rebuild core when running test-snippets in CI (#4399)
* Don't rebuild core when running test-snippets in CI

* Add missing comma

* Make the test-snippets cloudbuild step wait for core to build

* [layers] Add a test-snippets-ci yarn command

* [data] Add a test-snippets-ci yarn command

* [converter] Add a test-snippets-ci yarn command

* Update cloudbuild test golden file
2020-12-14 10:24:50 -08:00
Matthew Elliott Soulanille e6434f8c0b
Run ts-node tests with --transpile-only to increase speed (#4272)
* Run ts-node tests with --transpile-only to increase speed

* Run 'yarn build' before testing with ts-node

* [cpu] Move run_tests.ts to /src so it is typechecked

* [union] Run test-tools with typechecking

* Remove old tfjs-node integration tests

* Add test-dev to packages that use ts-node

* [core] Remove dependency on union that was added earlier in this PR

* Add a  command to each package

* Remove --transpile-only flag from targets that never run through tsc
2020-12-08 10:39:56 -08:00
Yannick Assogba aecaf8d716
update node fetch version (#3971)
SECURITY
2020-09-25 09:48:28 -04:00
Yannick Assogba 397fbdcc45
fix test-snippets invocation (#3268)
INTERNAL
2020-05-13 13:30:37 -04:00
Yannick Assogba 1ea245d397
Fix webgl bundling and test invocation
Fixes webgl bundling of imports from CPu backend
Fixes test invocation when dependencies are pinned versions.

INTERNAL
2020-05-08 11:46:14 -04:00
Yannick Assogba 8c59e2b43a
Update packages to compile to ESM modules by default (#3112)
BREAKING
INTERNAL
2020-04-27 13:29:25 -04:00
Kangyi Zhang 83bb618af7
update yarn.lock (#3090)
DEV
2020-04-16 15:41:46 -07:00
Na Li c7b64f6760
Refactor CI flow. (#3081)
DEV Refactor CI flow.
2020-04-16 12:03:13 -07:00
Yannick Assogba b72893a610
Move cpu backend out of tfjs-core (#3008)
BREAKING

This moves the javascript cpu backend out of tfjs-core into its own package. It can be used as a peer dependency alongside tfjs-core and is part of our larger work to modularise tfjs.
2020-04-08 11:27:41 -04:00
Na Li b3f17bb7d5
Remove master branch version update. (#2958) 2020-03-24 13:09:03 -07:00
Na Li 51d5568fb0
Fix bugs in release and publish scripts. (#2952) 2020-03-24 12:13:24 -07:00
Na Li 68b830c0bf
Remove link-master. Refactor test steps. (#2913) 2020-03-16 14:29:16 -07:00
Na Li b429581b62
[node]Test against head. (#2854) 2020-03-10 15:30:56 -07:00
Ann Yuan 323839dbcb
Update tfjs-data to 1.7.0. (#2860)
INTERNAL
2020-03-10 10:47:28 -04:00
Na Li 00da8e0a68
Add link-to-master.js. Temporary solution for tfjs-data symlink. (#2851) 2020-03-09 10:30:19 -07:00
Ann Yuan de7219c085
Update tfjs-data to 1.6.1. (#2847)
INTERNAL
2020-03-09 11:25:06 -04:00
Na Li bbe07d43aa
[data]Remove use of browserstack. (#2833)
* [layers]Remove use of browserstack.

* Remove browserstack commands.
2020-03-06 12:18:56 -08:00
Na Li d989856c78
[data]Test against head. (#2832) 2020-03-05 16:11:36 -08:00
Na Li ebde93180c
Update tfjs-data to 1.6.0. (#2826) 2020-03-04 14:47:54 -08:00
Na Li 48d7221db5
Update tfjs-data to 1.5.2. (#2710) 2020-01-29 14:20:20 -08:00
Kangyi Zhang 1bf4a698c3 Update tfjs-data to 1.5.1. (#2607) 2019-12-20 15:36:30 -08:00
Nikhil Thorat 48745fd451
Update tfjs-data to 1.5.0. (#2596)
INTERNAL
2019-12-19 15:54:51 -05:00
Nikhil Thorat 9d62a5d79a
Update tfjs-data to 1.4.0. (#2490)
INTERNAL
2019-12-05 14:31:38 -05:00
Kangyi Zhang 6553031b37
Update tfjs-layers, tfjs-converter, tfjs-data to 1.3.2, 1.3.2, 1.3.2. (#2382)
DEV
2019-11-12 17:42:15 -08:00
Nikhil Thorat 5fe3dc2c69
Update tfjs-layers, tfjs-converter, tfjs-data to 1.3.1, 1.3.1, 1.3.1. (#2293)
INTERNAL
2019-10-29 18:59:13 -07:00
Daniel Smilkov 59822b57c5
Update tfjs-layers, tfjs-converter, tfjs-data to 1.3.0, 1.3.0,… (#2274)
INTERNAL

Update tfjs-layers, tfjs-converter, tfjs-data to 1.3.0, 1.3.0, 1.3.0.
2019-10-25 12:14:38 -07:00
Kangyi Zhang 0e1d505b15
Update tfjs-layers, tfjs-converter, tfjs-data to 1.2.11, 1.2.11, 1.2.11. (#2165)
INTERNAL
2019-10-07 13:10:38 -07:00
Ann Yuan c055284f4e Update tfjs-layers, tfjs-converter, tfjs-data to 1.2.10, 1.2.10… (#2121)
INTERNAL
2019-10-01 02:21:09 +09:00
Kangyi Zhang 314cfef353
Update tfjs-layers, tfjs-converter, tfjs-data to 1.2.9, 1.2.9, 1.2.9. (#1978)
INTERNAL
2019-09-05 12:35:26 -07:00
Kangyi Zhang 403f860ff2
[tfjs-data] Update webcam tests for tfjs-core@1.2.9 (#1979)
INTERNAL
* prepare data for 1.2.9

* update test

* no restart in firefox browserstack

* save

* fix nit

* fix test
2019-09-05 12:17:44 -07:00
Daniel Smilkov 439a2ab9f5
[tfjs-data] Share the global lint setting and fix circular deps (#1921)
DEV

- Share the global lint settings
- Fix circular deps
- Upgrade typescript to 3.5.3
2019-08-27 11:00:17 -04:00
Nikhil Thorat c9ad825027
Update the tfjs-data => tfjs-layers dev dep to 1.2.8 (#1871)
DEV
2019-08-20 11:14:23 -04:00
Nikhil Thorat edec5977d3
Consolidate make-version, and tag-version scripts. (#1862)
DEV
2019-08-20 10:16:19 -04:00
Nikhil Thorat 58393538b0
Update tfjs-layers, tfjs-converter, tfjs-data to 1.2.8, 1.2.8, 1.2.8. (#1854)
INTERNAL
2019-08-19 12:44:59 -04:00
Nikhil Thorat eef666a188
Prepare tfjs-data for the monorepo. (#211)
DEV
2019-08-14 12:39:19 -04:00