Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browserstack benchmark tool] Enable customizing local builds #6705

Merged
merged 5 commits into from
Aug 2, 2022

Conversation

Linchenn
Copy link
Collaborator

@Linchenn Linchenn commented Aug 1, 2022

This PR replaces --webDeps with --localBuild=... arguments for both browserstack benchmark's Website tool and Command Line tool. As a result, users could customize local builds, instead of using 'all local build' or 'all web deps'.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Copy link
Member

@mattsoulanille mattsoulanille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit

e2e/benchmarks/browserstack-benchmark/package.json Outdated Show resolved Hide resolved
Comment on lines 32 to 41
"build-all-deps": "yarn build-link-package && yarn build-tfjs",
"build-tfjs": "cd ../../../tfjs && yarn && yarn build-npm",
"build-link-package": "cd ../../../link-package && yarn build",
"build-backend-cpu": "cd ../../../tfjs-backend-cpu && yarn && yarn build-npm",
"build-backend-wasm": "cd ../../../tfjs-backend-wasm && yarn && yarn build && yarn build-npm",
"build-backend-webgl": "cd ../../../tfjs-backend-webgl && yarn && yarn build && yarn build-npm",
"build-converter": "cd ../../../tfjs-converter && yarn && yarn build && yarn build-npm",
"build-core": "cd ../../../tfjs-core && yarn && yarn build && yarn build-npm",
"build-data": "cd ../../../tfjs-data && yarn && yarn build",
"build-layers": "cd ../../../tfjs-layers && yarn && yarn build && yarn build-npm",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the build-[some-package] scripts that you replaced with build-link-package. This includes all the Bazel packages, although you'll have to leave the non-bazel packages' scripts here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Matt!

I just updated the scripts here, as:

    "build-all-link-packages": "cd ../../../link-package && yarn build",
    "build-individual-link-package": "cd ../../../link-package && yarn build-deps-for",

@Linchenn Linchenn requested a review from mattsoulanille August 2, 2022 17:04
Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much Lin and Matt!

Reviewable status: :shipit: complete! 2 of 1 approvals obtained (waiting on @mattsoulanille)

@Linchenn Linchenn merged commit 5c5f446 into tensorflow:master Aug 2, 2022
@Linchenn Linchenn deleted the localBuild branch August 2, 2022 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants