Skip to content

Conversation

@caisq
Copy link
Contributor

@caisq caisq commented Mar 21, 2020

  • Motivation for features / changes
    • Roll forward go/tbpr/3374 with fixes.
  • Technical description of changes
    • Same as go/tbpr/3374, with the following exception: the tf_web_library BUILD targets for requirejs, monaco-editor (core) and monaco-languages are moved to a dedicated BUILD file (tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/source_code/monaco/BUILD) to facilitate sync'ing.
  • Detailed steps to verify changes work correctly (as executed by you)
    • copybara change CL: CL/302218915
    • Final state: CL/302222581. Build passes, after some manual reverts deal with JSCompiler artifacts
  • Alternate designs / implementations considered
    • Alternative: use copybara rules to make the requirejs, monaco-editor and monaco-languages rules BUILD internally.
      • Con: Those transformed targets are not used internally. This is potentially confusing to future developers. It is also an unnecessary maintenance overhead.
      • Con: While using tensorboard_html_binary to wrap around third_party libraries may work for requirejs, which involves a single .js file, it is more tedious for monaco-editors and monaco-languages, which involve multiple separate files (5 for monaco-editors and 3 for monaco-languages). This would involve a large number of confusing rules added to the copybara file. Those rules would be useless except for making the build pass (see the previous Con item). Some of these files are not .js or .css files (e.g., the .ttf file), further increasing the complexity.

@caisq caisq marked this pull request as ready for review March 22, 2020 02:44
@caisq caisq requested a review from stephanwlee March 22, 2020 02:49
Copy link
Contributor

@stephanwlee stephanwlee left a comment

Choose a reason for hiding this comment

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

Your internal only BUILD file may need some content.

@caisq
Copy link
Contributor Author

caisq commented Mar 23, 2020

Thanks for the review, @stephanwlee . I added a comment to the internal BUILD file so that it is non-empty.

@caisq caisq merged commit 5252a1f into tensorflow:master Mar 23, 2020
@caisq caisq deleted the dbg2-source-code-monaco-require-3 branch March 23, 2020 19:36
bileschi pushed a commit to bileschi/tensorboard that referenced this pull request Apr 14, 2020
…libraries (tensorflow#3411)

* Motivation for features / changes
  * Roll forward go/tbpr/3374 with fixes.
* Technical description of changes
  * Same as go/tbpr/3374, with the following exception: the `tf_web_library` BUILD targets for requirejs, monaco-editor (core) and monaco-languages are moved to a dedicated BUILD file (tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/source_code/monaco/BUILD) to facilitate sync'ing.
* Detailed steps to verify changes work correctly (as executed by you)
  * copybara change CL: CL/302218915
  * Final state: CL/302222581. Build passes, after some manual reverts deal with JSCompiler artifacts
* Alternate designs / implementations considered
  * Alternative: use copybara rules to make the requirejs, monaco-editor and monaco-languages rules BUILD internally.
    * Con: Those transformed targets are *not* used internally. This is potentially confusing to future developers. It is also an unnecessary maintenance overhead. 
    * Con: While using `tensorboard_html_binary` to wrap around third_party libraries may work for requirejs, which involves a single .js file, it is more tedious for monaco-editors and monaco-languages, which involve multiple separate files (5 for monaco-editors and 3 for monaco-languages). This would involve a large number of confusing rules added to the copybara file. Those rules would be useless except for making the build pass (see the previous Con item). Some of these files are not .js or .css files (e.g., the .ttf file), further increasing the complexity.
bileschi pushed a commit that referenced this pull request Apr 15, 2020
…libraries (#3411)

* Motivation for features / changes
  * Roll forward go/tbpr/3374 with fixes.
* Technical description of changes
  * Same as go/tbpr/3374, with the following exception: the `tf_web_library` BUILD targets for requirejs, monaco-editor (core) and monaco-languages are moved to a dedicated BUILD file (tensorboard/plugins/debugger_v2/tf_debugger_v2_plugin/views/source_code/monaco/BUILD) to facilitate sync'ing.
* Detailed steps to verify changes work correctly (as executed by you)
  * copybara change CL: CL/302218915
  * Final state: CL/302222581. Build passes, after some manual reverts deal with JSCompiler artifacts
* Alternate designs / implementations considered
  * Alternative: use copybara rules to make the requirejs, monaco-editor and monaco-languages rules BUILD internally.
    * Con: Those transformed targets are *not* used internally. This is potentially confusing to future developers. It is also an unnecessary maintenance overhead. 
    * Con: While using `tensorboard_html_binary` to wrap around third_party libraries may work for requirejs, which involves a single .js file, it is more tedious for monaco-editors and monaco-languages, which involve multiple separate files (5 for monaco-editors and 3 for monaco-languages). This would involve a large number of confusing rules added to the copybara file. Those rules would be useless except for making the build pass (see the previous Con item). Some of these files are not .js or .css files (e.g., the .ttf file), further increasing the complexity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants