Skip to content

Conversation

@JamesHollyer
Copy link
Contributor

  • Motivation for features / changes
    These lint checks are needed to ensure the Tensorflow proto files stay in sync with each other. However, in Tensorboard we do not make changes to these files so they do not need to stay synced. Furthermore the checks are looking for files that we do not copy over to Tensorboard so they actually fail.

  • Technical description of changes
    This change updates the script we use to copy the proto files so that we disable the lint checks automatically every time we copy them. I also ran the script as done in this PR which was our latest update to these proto files for the 2.9 release.

@JamesHollyer JamesHollyer requested a review from nfelt May 3, 2022 20:41
-e 's|tensorflow\.DataType|tensorboard.DataType|g;' \
-e 's|tensorflow\.TensorProto|tensorboard.TensorProto|g;' \
-e 's|tensorflow\.TensorShapeProto|tensorboard.TensorShapeProto|g;' \
-e 's|LINT\.|DISABLED.|g;' \
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we narrow this matching a little bit, for example like this?

s|^// LINT\.|// DISABLED.|g;

That way it will only match LINT. if it's at the start of the line and preceded by // .

@JamesHollyer JamesHollyer merged commit 33fffd4 into tensorflow:master May 5, 2022
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
* Update script and run it

* fix tests

* make LINT regex more specific
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
* Update script and run it

* fix tests

* make LINT regex more specific
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants