Tags: google/copybara
Tags
Optimize SequenceGlob matching performance using a Set. When `origin_files` is provided as a list of files, Copybara uses `SequenceGlob`. Previously, `SequenceGlob.relativeTo` returned a `PathMatcher` that iterated linearly through all files in the list for every file checked during checkout. This resulted in O(N*M) complexity where N is the number of files in the list and M is the number of files checked. This change optimizes `SequenceGlob` to pre-calculate the relative paths and store them in an `ImmutableSet`. This allows for O(1) lookup time during matching, reducing the complexity to O(N + M). Benchmarks show a ~73x speedup in matching time for 5000 files (1589ms -> 21ms). BUG=467397947 GWSQ_IGNORE: [email protected] PiperOrigin-RevId: 847778127 Change-Id: Idaf21e5773faa3d61ce3c9a07ac0d1524df1c0f5
Update dependency bazelbuild/bazel to latest version Included changes: - bc7f26710dc5f2cd28ac5d78a982517ff59103b2 perf: Avoid recomputing 'dotd_files_enabled' repeatedly - fbbdfad763472928b6c32babe3308c9506f13ec1 Do not cache (parts of) the CommandContext in BuildEventS... - 6d1bb8fb9ffc703c175d7a2d805fe18ccc9a64fa Update to use coverage_output_generator 3.0 - 9c45849986b61f8f3eb3c585a1b2264fdd30d018 Automated rollback of commit c82313b4ca4749c0f1c8f304b4c1... - 249e6891f08367631cebc4fb2248a013f84ced16 Allow `DebugPackageProvider` from either `@_builtins` or ... - b8907fca5c4b8b8922d97638745ef4451348c1d9 Bring the builtins cc allowlist in sync with rules_cc - 24d0f85b495e11de04a21093990578fe1c90ad69 Fix updating of action results with a disk cache - 60bc017bca7dcdc6662061d591b544abac8d6107 Add `--experimental_strict_repo_env` option - 08bc4d7bac30c36b67e4b48c0543aaf0d0b791c5 Omit `run` args optional - 472bd6381faf6ab5b442ff08cfa3578a5b24ae48 Add Augment Code to Bazel users page - a63c6d8d4b96d17e38aa29da20d5cba952843098 Typo fix - 25f91f948a84de1b9158dea8904a98b671e76ed5 Internal change. - 7a7d94c476148c2d583e82a3c1e0771eccb096dc Revert "Enable --enable_platform_specific_config by defau... - f57b39513a30d0ebd46e8888b2445313b3198de1 Internal change. - 3598f42646adabc89dd9c24f1fb54f541a28eded Migrate tests to load cc rules and providers - 8e0996f729c5a57d88f69e78313c344303997352 Remove Path.getDirectoryDigest(). - b27ea05b2ce0864284b38bf3539f8c2fe019ef64 Fix materialization edge cases in the remote repo content... - be76b4211b586c2e724008f9a91890fc7dd99a08 Document why exactly --action_listener= is incompatible w... - f742466024b6cf3fa6689c922998259d2d75ca8c add remote_java_tools_linux_aarch64 to test repos - 39b0e63f65cfe159e95f342115607dd16e36a0d2 Skycache: Discard SkyValues after selection - 887b6b1bd24de876dbf8c75793b9f3f98665bc6c Split off type expression traversal from the Resolver - b5e4ae37e35745054af6e1fc84ec5ef9c47fb923 Reserve space in `known_members_` and `violations_` to re... - 6a0f393719a474b2014cce91baeff444a6f59177 Use `fallocate` (when available) to reduce the cost of re... - 6d2f83864f3e8791b334591b74c611af246f0dfa Add BazelCon 2025 link to the help page. - f8c7609024345029ab650d94c60669580a1797bb Drop discovered inputs immediately after the action in --... - 580cbdbdd10ff7ef99a3fe655d8ae18fe6260a66 Singlejar options handling cleanup - 3e02568c2fb51e9ed3563d0b49d57d6bb7145f6d Add a note to the toolchain configuration paragraph - d787b3becfd57402d18396f65289c33a97dc3633 Add a new optional param to fail() to allow pretty-printi... - ade92cfc266dbc12e8f3fda5767394477fc1c8f1 Preserve facts present in the lockfile - 3e9a7da725cc5dfe83d3328b8cd406ba726950b0 Fix `AbortReason` in `test`/`coverage`/`run` commands. - cb098701c6770eb5cd9b8b9f3e8f82e47bdf9c76 Manually check for ASCII space characters. - 997ce3934365595b74f9dffd512c3763e9966853 Update deps to latest versions - e887cfbfd641f57a3cdd950249daf9b568ebaeb5 Delete a no-op flag (`--ignore_unsupported_sandboxing`) a... - ab973795cd60d55139643ba167ebc1bae8ed2c8d Internal change - 1224c0bea569c46580efc74a571fc2a308464980 Skycache: Set metadata response field in stats proto. - 0e0e380413853e5ab188b0a22207ee7cec2445c4 Bazel Docs: Add missing documentation files. - 5a12196363463a41db4e5707af0d55362cee22d8 Handle CancellationException in SkyValueRetriever instead... - 0271bbc87a7ff3ae1f63a0345c48f45f8556df21 Tweak configuration documentation - fe51591bd0ee5c9950ab9ccd247649778e5b5fd8 Bazel Docs: Partial rollback of https://github.com/bazelb... - 05de5fdf9f653ea23a049b2a5a4f66383d8777d7 Bazel Docs: Delete remnants of obsolete docs. - f3da367f1160dc0efb68abb9b50f1e2f54c13adb Add an option to cancel the future if the wait is interru... - 7be8376bb78df492e10c39441820894f2567d4af Enable C++ rules and providers - 09115bb999c8d100a6e1517f99fe91f5131a0d6f Gracefully handle action outputs when collecting lost inp... - 3ca9ce13423393b90564710670b09486955383af Make remote repo contents cache less spammy - 491f2524883f318dd7293f59de85c025a2148607 Release 10.0.0-pre.20251105.2 (2025-11-18) - 4ed66b652bdedecbce50c3d3b9971c4ca4cf8ad2 Release 10.0.0-pre.20251105.2 (2025-11-18) - 8679b3b00b2f003ff3249558d24cb31a45118eab Release 10.0.0-pre.20251105.2 (2025-11-18) - ddafb1a5af1171e5ecc82050ee1cec95217a3fa8 Make the Profiler singleton functional even when `Profile... - 3b93ad786c5d05fc68304233e4721617ec93e96e Remove @comius from Bazel CODEOWNERS and maintainers guide. - 123f7aacdb4785bcdfc920da5ec40f419c702734 Delete unused code. - a7d0e91dce87cde6f9bd8c1e0139db2cd07df4d9 Fix NPE with remote repo contents cache - 915c8a519a80e6d97cb8f28e31203ee25b3bee77 Resolve java_import load before using it in the HTTP_JAR_... - ee3af97622b9d0a0e35be126023835692b629f1c Support checking out the repo's default branch in `git_re... - afeecb614d34bf783508af6a3bab7eb929b12f3b Avoid locking during writes. - 01705f6b0641140c93b2a12a88c69defbe82241c Warn that some uses of `OutputJar` do not call its destru... - c643ff0ed5b136e2779a19f53b36f86d086b7a92 Reformat singlejar - dab96fce23a3d65d40c048ee7e736a5c1cfb7686 Compensate for Windows filesystems lacking junction support - e5cd69ba96cfc8ae3a60d7a36aaa04cf392e3b0a Memory-map the command-line file. - 7bacce2bc0ef82fa2ec10c3bb0da04073c6447bd Add C++ rules loads to Bazel tests - 953921774b4a73bf5b53f3f784d221348e8405e4 Add C++ rules loads to Bazel tests - 7c096ba03fed206d9e6fe3afccbfe5c91a71ec46 Improve the documentation for OutputMetadataStore. - b445e776af3cbe2dbd5cd7de64e4e335b05f869d Remove outdated `affected by starlark transition` flag. - f27277378b87d89cde3b8aec92c858b44824be45 Remove --experimental_output_directory_naming_scheme. - cb8345845110f2da6a948dd97239070014fe69c9 Add a note to coverage documentation about GCOV_PREFIX_ST... - 221d29721784f481f5b4801004b3e11d610a0b75 Move `--experimental_py_binaries_include_label` to gravey... - 545d58330ecdb21a75a647f30b894d7f8aaa07e5 Update support matrix after releasing Bazel 7.7.1 - 58cd0a15421529a957bfb0f7fca1b188930dc5b5 Include allowed attribute values in Stardoc proto - f0803e3fb1874fe72b86161710eaca256ae0f2fe Add OutputMetadataStore to ActionCompletionEvent. - 0be7f81388bbb464bf14eeb698c2688c5412eef8 Internal change - 8428cd3baa676bde4450cf5e609ef4e2f4eda149 Remove `--experimental_exec_configuration_distinguisher`. - 3cee6b053169ad08a754870a36cc19487e822d84 Use `absl::flat_hash_map` instead of `std::unordered_map`. - d3684789750068b2742a8cb7ac4493ff6f412c43 enable gRPC keepalive by default - e697ff774eff6c8a708fffca6fd8eeeb7f468bfe Flip incompatible_strict_action_env - 924b6aaecc3e1bf881dacbf79d24918510ba4695 Leave comments in places where it's important not to incr... - 9f18c800ea28fc497b58ac8054a4f409f1c36635 Fix counting of internal actions - 8df944560c4a3ac95c94bc88648d10672f6ca560 Isolate the `SystemNetworkStats`, which uses JNI. - 496ffae21983944791871d2919dc08efc213a5b8 Clean up `Facts#debugPrint` implementation - 2ce9c6a0d3a2125873191a5294c60674d67fe151 Centralize more logic in SymlinkTreeHelper. - 194f85d74c230dcc7b5c51c919165e53ae22a546 Internal change. - e65f8175d78642399b616c9bb23fb584920264b6 gen_command-line-reference: store stderr so that it's eas... - b70e00580b8900390fb6b253354ebd2767c4cb92 Update to Turbine 0.12.0 - 6fc0aa1e328e4a4da1880c53906104489558f16c Automatic code cleanup. - 203b692a80993cf50b41e64372cd998e1eebb106 Release 7.7.1 (2025-11-12) - 8e61ea3ef76118b38889e5aa141a2064368277d9 [Docs Migration] Update MDX files so they are properly pa... - d4053003dbcdef2120ff9fdf2da2b23064b83b18 feat: send a workflow-dispatch event to bazel-docs repo - 9b800bae4c8cd970ed04d710b9c0613a9d091b16 Automatic code cleanup. - b1630eedbe79a7487a79dc4b7f75d27b22e3c0ab Patch rules_graalvm for Bazel 9 - 8846e51a3742718e6fc043660c8abdfea49d9c1b Isolate the Profiler into the SC. - ba6d1cbee311272178d22229c95d908529f7f1d0 Add C++ rules loads to Bazel unit tests - 427040e8d5f8bab67e590494a440fdc97b7fe46b Avoid premature Profiler.instance() calls - 1d6a56eda3746c0fe37e0829fc2a5b806383540e Add C++ rules loads to Bazel unit tests - 4edab36db3ae8687a8c02228399a5f0d3e065c88 Add C++ rules loads to Bazel unit tests - c32926f879b4378c7df8e54c93b00f1a7feef901 Fix missing starlarkification allowlist values - ce8fa279ec37d735c06a5543a2299bb4d0d4accf Compare paths as fragments in `AbstractActionInputPrefetc... - f7564a6465a6606491fa556adb5e70dd70131b73 Actually fix the NPE when checking the owner of a source ... - b01c050ef565b8c01a97ff439192bb5ae5886ad6 Reset interrupt bit before throwing an InterruptedExcepti... - 3c04b654e816d2cb3e8fe4794e35fbafb2ac5d32 Remove the assertion which disallows stopBranch to be cal... - c82313b4ca4749c0f1c8f304b4c12328e8beb4ea Replace deprecated `ByteStreams.copy(in, out)` with `in.t... - 5a7d6f4e4dee4a08c95ca2450f046f566537266d Automatic code cleanup. - 515083c24a227f69a0d383d8ad35f8a46102197a Add `isinstance` keyword, and allow isinstance(x,t) to be... (And 366 more changes) BAZEL_VERSION_REV_ID: bc7f26710dc5f2cd28ac5d78a982517ff59103b2 Change-Id: I0f17a04ee1e14c5bbd405bdb500b97a8438f839b Change-Id: Ia8de7770b101a151a9ece4465d94cc5c3d1f0d5c
Change warning message for re-importing the same version Re-importing the same version is sometimes useful, e.g. when working on transformations and patches. However, currently there is a warning about the current version being _newer_ than the incoming version, when really it should say _not older_ (i.e. `≥` instead of `>`). GWSQ_IGNORE: [email protected] PiperOrigin-RevId: 820213041 Change-Id: I69026c6acd5446a15035d5e42d9b2d2381d33ab3
Add support for push options with values * Change the push option validator to first check if it's a key=value option, and if so, only match on the key for the list of allowed options. BUG=430127515 GWSQ_IGNORE: [email protected] PiperOrigin-RevId: 830973743 Change-Id: Iffca218b899537053056a07fd24848caae855546
feat: Info command returns NO_OP if no changes This change modifies the InfoCmd to return ExitCode.NO_OP when there are no available changes to migrate. Previously, it would return ExitCode.SUCCESS. BUG=376686035 GWSQ_IGNORE: [email protected] PiperOrigin-RevId: 827518531 Change-Id: Ibe7c1043cdb1b6d5bf768ddaf850c6a9407736f0
PreviousNext