-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
--workspace_status_command cannot easily be made platform-independent (Windows/Linux) #5958
Comments
This is split between Windows and External Deps. You can figure out who really should do the work. |
FYI, as a workaround you can use a Python script. Demo: https://github.com/laszlocsomor/projects/tree/master/bazel/workspace-status |
Thanks for the hint & demo, that seems like a good idea. Just to make sure: Does bazel always depend on Python, i. e. can we be 100% sure a python interpreter is in PATH? (From https://docs.bazel.build/versions/master/install-windows.html it looks like it could be omitted on Windows, all other build/install docs on bazel.build state it is a hard prerequisite) |
No, it's not guaranteed that Python's always available. FYI, there's more context here: #5002. |
In our case we have a JS project, so we can expect NodeJS to be globally available. I wonder how feasible it would be to run a target as the workspace status command though... That way a .sh script could be used when sourced through |
While Python is a compelling option, it comes with its own cross-platform challenge as the demo itself shows. Namely for Python3 users currently |
If going for python, I think everything else except making sure that python3 is used consistently on every platform would be very unwise. |
This allows to seamlessly build Gerrit on different operating systems. See also discussions in: [1], [2]. [1] bazelbuild/bazel#5958 [2] bazelbuild/bazel#10151 Change-Id: I7738a23c08f4890a2010182587b64a2979256ad4
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I6935fa1a27803797b2470f770bc1b6abed2936b8
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I74455d68c94d7c42867b6ae23095f018065172fb
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: If48636ede381827755c2435b96bec47ac065bedc
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: Id886e7e97dffa4b2548ed1f6258b0ffbb9dc0143
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: If97392ba6dcf29bf6c9eb289d40d31e5bd6fa31b
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: If9b77d143403f5b2512b513e8394075299721f58
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0
Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: Ib42a21921c0e192a175cb0b6236dbfeabaf9acf8
* Update plugins/delete-project from branch 'stable-3.0' to d1df1db00f293de3e00dc5f506f6b514a5f000c5 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ic060483ccb190c7f31c3bb13eeb15d230c3378b1 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Change-Id: I29fca09892a5a6878547c5d0bbd2966310d986a3 - Merge changes Iaf1826ab,I02632cb6,I5ca2ec2b,I6578e664 into stable-2.15 * changes: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion - DeleteProjectIT: Check that project gets unwatched after deletion Change-Id: Iaf1826ab98280aa042304b30d873575c71bdac60 - DeleteProjectIT: Assert that after forced delete reindexing happened Unit tests didn't check whether reindexing happened after deletion or not. In NoteDb case even after git repo got deleted changes were still present in the index, so querying on a deleted project name returned change information. Bug: Issue 11650 Change-Id: I02632cb6195e262478850e5ec589d01aab4a9ef3 - DeleteProjectIT: Add ssh delete watched project test similar to http Change-Id: I5ca2ec2b7df92a8fc24135c4d94efe00ab4d761e - Fix reindex after project deletion Make plugin to properly support NoteDb. DatabaseDeleteHandler: - Check if ReviewDb is enabled from inside DatabaseHandler. - Add functionality for deleteChanges to check whether ReviewDb is enabled, since NoteDb behaves differently compared to ReviewDb. Bug: Issue 11650 Change-Id: I6578e6649e9fe0d8c139243cdade8c86e1b6c0ed - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: Ib378315a93969b1de605e2d9cc8b2758f37920e4 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: Ib8b9c5efc04f2b2f983c091bf96c4eafeca510ec - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: Icf85a0b3340f2bfe58b3b21ec57a2640cf8a1ba4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: I9ff2983f304b3cfa04ef88401f09d33c5746595f - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: Ie6b12736c2b07752cf91908764bf828a83694c6c - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I53bd20467b8c6268a102acc75badcaf7290ce720 - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: Ia7d244ec3ec3ae0078cb8b766bef95b3c9be922a - Bump Bazel version to 1.1.0 Change-Id: I4e4c2a3c6f1b73e913fd6eda7e53f30fd8a20985 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: build.md: Correct in-tree test command Change-Id: Iea24800c7100e6c0ab405158a3573eceb0f3957e - build.md: Correct in-tree test command Change-Id: Iff17be4a87b058eeabc30faf774c04e26f9d51ea - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I0c901f84e0c4c07a4ae913eab4f71e1f6167dab5
* Update plugins/delete-project from branch 'stable-3.1' to 4ffca21d1a581b61a1ff94acacb9249089b573b8 - Merge branch 'stable-3.0' into stable-3.1 * stable-3.0: Fix so that GWTUI js file is not executed under PolyGerrit DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Adjust DeleteProjectIT and DatabaseDeleteHandler to API changes. Change-Id: I7dd082b728fa7a98b225c10ef6d2ecf11e7daa09 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Fix so that GWTUI js file is not executed under PolyGerrit Change-Id: I9b5e59bb31cc7de07cf863af7baebe556e8f494f - Merge "Fix so that GWTUI js file is not executed under PolyGerrit" into stable-2.16 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ic060483ccb190c7f31c3bb13eeb15d230c3378b1 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Change-Id: I29fca09892a5a6878547c5d0bbd2966310d986a3 - Merge changes Iaf1826ab,I02632cb6,I5ca2ec2b,I6578e664 into stable-2.15 * changes: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion - Fix so that GWTUI js file is not executed under PolyGerrit When using PolyGerrit, it appears that it loads GWTUI specific delete-project js files. It dosen't appear to inject "window.Polymer" into it thus will always equal undefined or false. To fix this we look for the GERRIT_UI cookie which if the user is using GWTUI, will have this set. Change-Id: I2512fe18108799f3a73b00ada8a756eb6e397879 - DeleteProjectIT: Check that project gets unwatched after deletion Change-Id: Iaf1826ab98280aa042304b30d873575c71bdac60 - DeleteProjectIT: Assert that after forced delete reindexing happened Unit tests didn't check whether reindexing happened after deletion or not. In NoteDb case even after git repo got deleted changes were still present in the index, so querying on a deleted project name returned change information. Bug: Issue 11650 Change-Id: I02632cb6195e262478850e5ec589d01aab4a9ef3 - DeleteProjectIT: Add ssh delete watched project test similar to http Change-Id: I5ca2ec2b7df92a8fc24135c4d94efe00ab4d761e - Fix reindex after project deletion Make plugin to properly support NoteDb. DatabaseDeleteHandler: - Check if ReviewDb is enabled from inside DatabaseHandler. - Add functionality for deleteChanges to check whether ReviewDb is enabled, since NoteDb behaves differently compared to ReviewDb. Bug: Issue 11650 Change-Id: I6578e6649e9fe0d8c139243cdade8c86e1b6c0ed - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: Ib378315a93969b1de605e2d9cc8b2758f37920e4 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: Ib8b9c5efc04f2b2f983c091bf96c4eafeca510ec - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: Icf85a0b3340f2bfe58b3b21ec57a2640cf8a1ba4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: I9ff2983f304b3cfa04ef88401f09d33c5746595f - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: Ie6b12736c2b07752cf91908764bf828a83694c6c - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I53bd20467b8c6268a102acc75badcaf7290ce720 - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: Ia7d244ec3ec3ae0078cb8b766bef95b3c9be922a - Bump Bazel version to 1.1.0 Change-Id: I4e4c2a3c6f1b73e913fd6eda7e53f30fd8a20985 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: build.md: Correct in-tree test command Change-Id: Iea24800c7100e6c0ab405158a3573eceb0f3957e - build.md: Correct in-tree test command Change-Id: Iff17be4a87b058eeabc30faf774c04e26f9d51ea - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I0c901f84e0c4c07a4ae913eab4f71e1f6167dab5
* Update plugins/delete-project from branch 'master' to 39dd25c822be14a69282d38e5205f0ca4f2902c1 - Merge branch 'stable-3.1' * stable-3.1: Fix so that GWTUI js file is not executed under PolyGerrit DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Change-Id: I68db79e2797b254c7fd79d8587b51e066f81b7f4 - Merge branch 'stable-3.0' into stable-3.1 * stable-3.0: Fix so that GWTUI js file is not executed under PolyGerrit DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Adjust DeleteProjectIT and DatabaseDeleteHandler to API changes. Change-Id: I7dd082b728fa7a98b225c10ef6d2ecf11e7daa09 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Fix so that GWTUI js file is not executed under PolyGerrit Change-Id: I9b5e59bb31cc7de07cf863af7baebe556e8f494f - Merge "Fix so that GWTUI js file is not executed under PolyGerrit" into stable-2.16 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 build.md: Correct in-tree test command Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ic060483ccb190c7f31c3bb13eeb15d230c3378b1 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion Change-Id: I29fca09892a5a6878547c5d0bbd2966310d986a3 - Merge changes Iaf1826ab,I02632cb6,I5ca2ec2b,I6578e664 into stable-2.15 * changes: DeleteProjectIT: Check that project gets unwatched after deletion DeleteProjectIT: Assert that after forced delete reindexing happened DeleteProjectIT: Add ssh delete watched project test similar to http Fix reindex after project deletion - Fix so that GWTUI js file is not executed under PolyGerrit When using PolyGerrit, it appears that it loads GWTUI specific delete-project js files. It dosen't appear to inject "window.Polymer" into it thus will always equal undefined or false. To fix this we look for the GERRIT_UI cookie which if the user is using GWTUI, will have this set. Change-Id: I2512fe18108799f3a73b00ada8a756eb6e397879 - DeleteProjectIT: Check that project gets unwatched after deletion Change-Id: Iaf1826ab98280aa042304b30d873575c71bdac60 - DeleteProjectIT: Assert that after forced delete reindexing happened Unit tests didn't check whether reindexing happened after deletion or not. In NoteDb case even after git repo got deleted changes were still present in the index, so querying on a deleted project name returned change information. Bug: Issue 11650 Change-Id: I02632cb6195e262478850e5ec589d01aab4a9ef3 - DeleteProjectIT: Add ssh delete watched project test similar to http Change-Id: I5ca2ec2b7df92a8fc24135c4d94efe00ab4d761e - Fix reindex after project deletion Make plugin to properly support NoteDb. DatabaseDeleteHandler: - Check if ReviewDb is enabled from inside DatabaseHandler. - Add functionality for deleteChanges to check whether ReviewDb is enabled, since NoteDb behaves differently compared to ReviewDb. Bug: Issue 11650 Change-Id: I6578e6649e9fe0d8c139243cdade8c86e1b6c0ed - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: Ib378315a93969b1de605e2d9cc8b2758f37920e4 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: Ib8b9c5efc04f2b2f983c091bf96c4eafeca510ec - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: Icf85a0b3340f2bfe58b3b21ec57a2640cf8a1ba4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Bazel: Migrate workspace status script to python Change-Id: I9ff2983f304b3cfa04ef88401f09d33c5746595f - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: Ie6b12736c2b07752cf91908764bf828a83694c6c - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I53bd20467b8c6268a102acc75badcaf7290ce720 - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: Ia7d244ec3ec3ae0078cb8b766bef95b3c9be922a - Bump Bazel version to 1.1.0 Change-Id: I4e4c2a3c6f1b73e913fd6eda7e53f30fd8a20985 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: build.md: Correct in-tree test command Change-Id: Iea24800c7100e6c0ab405158a3573eceb0f3957e - build.md: Correct in-tree test command Change-Id: Iff17be4a87b058eeabc30faf774c04e26f9d51ea - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I0c901f84e0c4c07a4ae913eab4f71e1f6167dab5
* Update plugins/webhooks from branch 'stable-3.0' to 0b787b1abc35ac12cd0ea2a9242bafb15c93bd5b - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump Bazel version to 2.0.0 Bazel: Remove empty glob Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I83a8f4400e5f49b1453bbeac3cd93733a26be3fb - Bump Bazel version to 2.0.0 Change-Id: I0a836dc57d4749ec5874afa5d1388e4e737cc618 - Bazel: Remove empty glob Bug: Issue 12110 Change-Id: If9bf21aeab2428c45748870a7eaa0cc6baad6058 - Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Change-Id: I8d8aa4924e85437283a66bf256fcce351a425af8 - Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Change-Id: I1622a992c2a24deba350af915866775c299a4a50 - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: I53ea39b9eb2da2198b9175642cd62f6aed5fa2ec - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Change-Id: I3fd7407a08292ae56e93bea820a781c6e71c397f - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: I5b0cfcdf3c988793ef0d8b1e56d012b26dff2614 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bazel: Migrate workspace status script to python Change-Id: I141919270fe4590f38fc794ff4b65c8c54d66193 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: Ica546d49b8e6c1ce41e08ad6e0ab1c1d0153bccb - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: Iabfc1dd9e5144e1506601c1cf62fc94c8764b654 - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I8620ef4dfc850e234759da59253ea2939566e730 - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: I0059aac96c20c4245edf565198d693c6bd5da133 - Bump Bazel version to 1.1.0 Change-Id: I324d090b867d43741cd8d3eedcc12db054a60762 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I263039fc29ba0e5822ca63d93728d340bcb5d06f - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I6ff50d492444ea044f9814ea5d30e585bbd8e415 - Remove bazel-genfiles from .gitignore Change-Id: I1af194ce981f0de2fdd5e52d1ff57b80300e1950 - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: Idd8a9b212db874f55902844f4522e8a25e3d6657
* Update plugins/webhooks from branch 'master' to 377fec17d2c0fc71cdfb1d12f502cfa1eba1fbd7 - Merge branch 'stable-3.0' * stable-3.0: Remove .gitignore file Bump Bazel version to 2.0.0 Bazel: Remove empty glob Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I4dc59310b6734cc16ae0ea522d8376880901e274 - Remove .gitignore file Webhooks plugin is promoted to core gerrit plugins and the standalone build mode was removed, but the .gitignore file was missed to be removed. Change-Id: Id973535668c628a937d3d39888443dc15e39affa - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump Bazel version to 2.0.0 Bazel: Remove empty glob Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I83a8f4400e5f49b1453bbeac3cd93733a26be3fb - Bump Bazel version to 2.0.0 Change-Id: I0a836dc57d4749ec5874afa5d1388e4e737cc618 - Bazel: Remove empty glob Bug: Issue 12110 Change-Id: If9bf21aeab2428c45748870a7eaa0cc6baad6058 - Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Change-Id: I8d8aa4924e85437283a66bf256fcce351a425af8 - Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Change-Id: I1622a992c2a24deba350af915866775c299a4a50 - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: I53ea39b9eb2da2198b9175642cd62f6aed5fa2ec - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Change-Id: I3fd7407a08292ae56e93bea820a781c6e71c397f - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: I5b0cfcdf3c988793ef0d8b1e56d012b26dff2614 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bazel: Migrate workspace status script to python Change-Id: I141919270fe4590f38fc794ff4b65c8c54d66193 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: Ica546d49b8e6c1ce41e08ad6e0ab1c1d0153bccb - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: Iabfc1dd9e5144e1506601c1cf62fc94c8764b654 - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I8620ef4dfc850e234759da59253ea2939566e730 - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: I0059aac96c20c4245edf565198d693c6bd5da133 - Bump Bazel version to 1.1.0 Change-Id: I324d090b867d43741cd8d3eedcc12db054a60762 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I263039fc29ba0e5822ca63d93728d340bcb5d06f - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Remove bazel-genfiles from .gitignore Replace bazel-genfiles with bazel-bin in documentation Change-Id: I6ff50d492444ea044f9814ea5d30e585bbd8e415 - Remove bazel-genfiles from .gitignore Change-Id: I1af194ce981f0de2fdd5e52d1ff57b80300e1950 - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: Idd8a9b212db874f55902844f4522e8a25e3d6657
* Update plugins/gitiles from branch 'stable-3.0' to 4ba2cc4ea8d46e1e8050b46d62c654b8772b969a - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ie23a1d582b74a918ecd7c08ce3ca3d39a8aaef31 - Bump Bazel version to 2.0.0 Change-Id: Ie7e432dcec730f513ec73b25a3e66a9f7e5d54cc - Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Change-Id: Iebd2bd6a692e1932fc51e1de2370774713a3c728 - Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Change-Id: I5030ccd61b1376004735fd70316c582a541e7fb8 - Upgrade gitiles-servlet to 0.2-7.1 Version 0.2-7 is quite old and does not include fixes that have since been included in versions up to the latest 0.2-11 and on the stable-0.2 branch. In particular, [1] which was causing Gerrit JVM GC to start a series of 'stop-the-world' when rendering large files, has been fixed in the latest stable-0.2. We cannot upgrade directly to 0.2-11 because that also includes updates to JGit and soy which are not compatible with core Gerrit's 2.16 series. Hence, 0.2-7.1 has been released which includes all of the bug fixes and improvements, but not the library upgrades [1] google/gitiles#192 Change-Id: Iaad970f0400d14bd6c51fc1720aa12cc1b56c82a - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: I674f603537fa3295d458210efd7a213a0e70a277 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Change-Id: I20bea00c6e9f0c40cab57ef174af7a4b8f638281 - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: I502f5038ab5ed5e0ac2173ada6e9ee335a2297a6 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bazel: Migrate workspace status script to python Change-Id: Ic4877ce81c885f1b36c96745b7b9ef8772522a61 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: Icde086c6cc20f2ee74a950577795ede98bad1025 - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: I4fb2b40132673a4832740e0cda02f79c899ab1f5 - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I73b265cfbaeb4771f1ba08d8b66164f868a6a91c - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: I2825624c55da0f5069fad70da2fa24b77130d8e7 - Bump Bazel version to 1.1.0 Change-Id: I4dcd50245de8a8793b1f826d14ffbd6176ef33ad - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I4bb7a8e5228123618dfa94aad1aea88a8198c2db
* Update plugins/gitiles from branch 'stable-3.1' to 0912a48d51981d86e7912c8d682ce75d62afb81d - Merge branch 'stable-3.0' into stable-3.1 * stable-3.0: Bazel: Remove unused java_library import Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ib3ee7fc8e0be7229f1e16f949f9fda84027ce8f6 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ie23a1d582b74a918ecd7c08ce3ca3d39a8aaef31 - Bazel: Remove unused java_library import Change-Id: If8a38c325aa9780bbb5e3caa06f839030c0f3c03 - Bump Bazel version to 2.0.0 Change-Id: Ie7e432dcec730f513ec73b25a3e66a9f7e5d54cc - Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Change-Id: Iebd2bd6a692e1932fc51e1de2370774713a3c728 - Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Change-Id: I5030ccd61b1376004735fd70316c582a541e7fb8 - Upgrade gitiles-servlet to 0.2-7.1 Version 0.2-7 is quite old and does not include fixes that have since been included in versions up to the latest 0.2-11 and on the stable-0.2 branch. In particular, [1] which was causing Gerrit JVM GC to start a series of 'stop-the-world' when rendering large files, has been fixed in the latest stable-0.2. We cannot upgrade directly to 0.2-11 because that also includes updates to JGit and soy which are not compatible with core Gerrit's 2.16 series. Hence, 0.2-7.1 has been released which includes all of the bug fixes and improvements, but not the library upgrades [1] google/gitiles#192 Change-Id: Iaad970f0400d14bd6c51fc1720aa12cc1b56c82a - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: I674f603537fa3295d458210efd7a213a0e70a277 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Change-Id: I20bea00c6e9f0c40cab57ef174af7a4b8f638281 - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: I502f5038ab5ed5e0ac2173ada6e9ee335a2297a6 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bazel: Migrate workspace status script to python Change-Id: Ic4877ce81c885f1b36c96745b7b9ef8772522a61 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: Icde086c6cc20f2ee74a950577795ede98bad1025 - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: I4fb2b40132673a4832740e0cda02f79c899ab1f5 - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I73b265cfbaeb4771f1ba08d8b66164f868a6a91c - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: I2825624c55da0f5069fad70da2fa24b77130d8e7 - Bump Bazel version to 1.1.0 Change-Id: I4dcd50245de8a8793b1f826d14ffbd6176ef33ad - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I4bb7a8e5228123618dfa94aad1aea88a8198c2db
* Update plugins/gitiles from branch 'master' to 825ca06dddc9de89daa6b126dfc187fbeb25280c - Merge branch 'stable-3.1' * stable-3.1: Bazel: Remove unused java_library import Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: I646b195ea8623873470589656ff2656329cdf03b - Merge branch 'stable-3.0' into stable-3.1 * stable-3.0: Bazel: Remove unused java_library import Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ib3ee7fc8e0be7229f1e16f949f9fda84027ce8f6 - Merge branch 'stable-2.16' into stable-3.0 * stable-2.16: Bump Bazel version to 2.0.0 Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Upgrade gitiles-servlet to 0.2-7.1 Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Upgrade bazlets to latest stable-2.16 Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Replace bazel-genfiles with bazel-bin in documentation Change-Id: Ie23a1d582b74a918ecd7c08ce3ca3d39a8aaef31 - Bazel: Remove unused java_library import Change-Id: If8a38c325aa9780bbb5e3caa06f839030c0f3c03 - Bump Bazel version to 2.0.0 Change-Id: Ie7e432dcec730f513ec73b25a3e66a9f7e5d54cc - Upgrade bazlets to latest stable-2.16 to build with 2.16.15 API Change-Id: Iebd2bd6a692e1932fc51e1de2370774713a3c728 - Upgrade bazlets to latest stable-2.16 to build with 2.16.14 API Change-Id: I5030ccd61b1376004735fd70316c582a541e7fb8 - Upgrade gitiles-servlet to 0.2-7.1 Version 0.2-7 is quite old and does not include fixes that have since been included in versions up to the latest 0.2-11 and on the stable-0.2 branch. In particular, [1] which was causing Gerrit JVM GC to start a series of 'stop-the-world' when rendering large files, has been fixed in the latest stable-0.2. We cannot upgrade directly to 0.2-11 because that also includes updates to JGit and soy which are not compatible with core Gerrit's 2.16 series. Hence, 0.2-7.1 has been released which includes all of the bug fixes and improvements, but not the library upgrades [1] google/gitiles#192 Change-Id: Iaad970f0400d14bd6c51fc1720aa12cc1b56c82a - Upgrade bazlets to latest stable-2.16 to build with 2.16.13 API Change-Id: I674f603537fa3295d458210efd7a213a0e70a277 - Upgrade bazlets to latest stable-2.16 download_file.py: Fix root workspace directory detection Change-Id: I26017fc180b761feba2b5f01d4eb7a0e7c7b690c - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Bazel: Migrate workspace status script to python Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Change-Id: I20bea00c6e9f0c40cab57ef174af7a4b8f638281 - Upgrade bazlets to latest stable-2.15 to build with 2.15.18 API Change-Id: I502f5038ab5ed5e0ac2173ada6e9ee335a2297a6 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bazel: Migrate workspace status script to python Change-Id: Ic4877ce81c885f1b36c96745b7b9ef8772522a61 - Bazel: Migrate workspace status script to python Migrate tools/workspace-status.sh script to Python to ensure better compatibility with other operating systems, as suggested in: [1]. [1] bazelbuild/bazel#5958 Change-Id: I20ec325d610353309a40fc85132382004bc61bd0 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: Icde086c6cc20f2ee74a950577795ede98bad1025 - Upgrade bazlets to latest stable-2.15 download_file.py: Fix root workspace directory detection Change-Id: I1c5eb23dfe5978270c10ef6d2baaed7ecd0a04fc - Upgrade bazlets to latest stable-2.14 download_file.py: Fix root workspace directory detection Change-Id: Id2da57a98ab0344dc9942d9ff0338309494b0f48 - Upgrade bazlets to latest stable-2.16 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Upgrade bazlets to latest stable-2.15 Upgrade bazlets to latest stable-2.14 Bump Bazel version to 1.1.0 Change-Id: I4fb2b40132673a4832740e0cda02f79c899ab1f5 - Upgrade bazlets to latest stable-2.15 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Upgrade bazlets to latest stable-2.14 Change-Id: I73b265cfbaeb4771f1ba08d8b66164f868a6a91c - Upgrade bazlets to latest stable-2.14 Fix genrule2 to clean up temporary folder content Change-Id: I1d186a2082b364f7acc2d99c20ec0211efebbfd2 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Bump Bazel version to 1.1.0 Change-Id: I2825624c55da0f5069fad70da2fa24b77130d8e7 - Bump Bazel version to 1.1.0 Change-Id: I4dcd50245de8a8793b1f826d14ffbd6176ef33ad - Merge branch 'stable-2.15' into stable-2.16 * stable-2.15: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I1496826af979861ef9391d113430379535a152e4 - Merge branch 'stable-2.14' into stable-2.15 * stable-2.14: Replace bazel-genfiles with bazel-bin in documentation Change-Id: I70ea61357ec662fa2e18325a437185d27bcd4f3d - Replace bazel-genfiles with bazel-bin in documentation Bug: Issue 11757 Change-Id: I4bb7a8e5228123618dfa94aad1aea88a8198c2db
https://docs.bazel.build/versions/4.2.2/command-line-reference.html#flag--enable_platform_specific_config could probably help ease this issue, there is nothing we can do to the --workspace_status_command itself. |
Description of the problem:
The
--workspace_status_command
will be executed from/bin/sh
under Linux (and macOS I think) and fromCMD.EXE
under Windows. This makes it difficult to conceive a workspace status script that has the same output on both platforms.It should either be possible to specify different commands for different architectures on the command line, or some guarantees about execution environments of the workspace status command should be made (such as run everything through
BAZEL_SH
).Feature requests: what underlying problem are you trying to solve with this feature?
We use committed
tools/bazel.rc
files to execute a workspace status script that is also committed to the repository.Our current workaround is to include a script called
workspace.bat
that contains effectively the following:with
workspace_status.sh
andworkspace_status.cmd
containing ash
andCMD.EXE
implementation of the same commands (essentially somegit rev-list
with some output processing).The above is a hybrid bash/cmd executable script as inspired by https://stackoverflow.com/questions/17510688/single-script-to-run-in-both-windows-batch-and-linux-bash
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
tools
directory with abazel.rc
file containinge. g. with the .bat file described above
2. Bazel build on Windows
3. Observe the .bat file being executed with CMD.EXE
4. Bazel build on Linux
5. Observe the .bat file being executed with
/bin/sh
The text was updated successfully, but these errors were encountered: