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

Fix kernels_to_ops failing to generate kernel2op.json #6823

Merged
merged 3 commits into from
Sep 12, 2022

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Sep 7, 2022

Avoid using chdir = 'tfjs-converter' in kernels_to_ops.bzl. Using chdir follows the symlink to tfjs-converter's files in the execroot directory (/usr/local/google/home/msoulanille/.cache/bazel/_bazel_msoulanille/f671279d7efd00bb0451adc485135cc0/execroot/tfjs/tfjs-converter). Then, when node is started, it doesn't know that it followed a symlink, so when it tries to write to ../bazel-out/....., it's no longer looking in the execroot directory and can not find the correct path.

Fix this by starting node in the execroot directory instead of in the tfjs-converter symlink's directory.

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


This change is Reviewable

Avoid using `chdir = 'tfjs-converter'` in kernels_to_ops.bzl. Using `chdir` follows the symlink to `tfjs-converter`'s files in the execroot directory (`/usr/local/google/home/msoulanille/.cache/bazel/_bazel_msoulanille/f671279d7efd00bb0451adc485135cc0/execroot/tfjs/tfjs-converter`). Then, when node is started, it doesn't know that it followed a symlink, so when it tries to write to `../bazel-out/.....`, it's no longer looking in the execroot directory and can not find the correct file.

Fix this by starting node in the execroot directory instead of in the `tfjs-converter` symlink's directory.
@mattsoulanille mattsoulanille marked this pull request as ready for review September 7, 2022 18:27
Copy link
Collaborator

@Linchenn Linchenn 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!

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 1 approvals obtained (waiting on @lina128)

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.

LGTM

Reviewable status: :shipit: complete! 3 of 1 approvals obtained

@mattsoulanille mattsoulanille merged commit 05ff063 into tensorflow:master Sep 12, 2022
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.

4 participants