Skip to content

Merge main -> google - #4477

Merged
copybara-service[bot] merged 8 commits into
iree-org:googlefrom
GMNGeoffrey:main-to-google
Jan 12, 2021
Merged

copybara-service[bot] merged 8 commits into
iree-org:googlefrom
GMNGeoffrey:main-to-google

Conversation

@GMNGeoffrey

Copy link
Copy Markdown
Member

GMNGeoffrey and others added 8 commits January 11, 2021 14:09
We no longer try to build Python with Bazel
83ae342 Merge pull request iree-org#4466 from rsuderman:main-to-google
d6d987c Synchronize submodules
aee4c3d Synchronize submodules with LLVM at llvm/llvm-project@bcbdeaf
9078b26 Synchronize submodules
79172a3 Integrate LLVM at llvm/llvm-project@89878e8
af141a7 Upstream mhlo.dot lowering to Linalg to MHLO repo.
33c95f4 Synchronize submodules
54f89c7 Integrate LLVM at llvm/llvm-project@bcbdeaf
* Previously, this was being mis-identified as GCC.
* Should fix: iree-org#4448
Instead of adding a new commit that fixes up the submodules, rewrite
the HEAD commit so that they are correct. This action was originally
intended for rare cases where Copybara messed up integrations. These
"rare cases" now happen multiple times a day and are cluttering the
repository history with useless commits. We have already decided it's
ok to rewrite the google branch history to fix up Copybara failures to
create merge commits, so this doesn't change things much. It also
us to expand this action to create those merge commits as well.

Somewhat incidentally, I noticed that this action doesn't actually need
to initialize the submodules themselves. It only really deals in
hashes, which are already recorded. Dropping this makes it ~10x faster.

This has a couple disadvantages:
- If multiple commits are pushed and an intermediate one is the one
  that introduces a submodule diff, the changes will get erroneously
  attributed to the current HEAD commit. The rate of pushes to this
  branch is pretty low, so I don't think that will happen to
  frequently. I can work on some more complex logic that walks the
  history instead.
- If someone is trying to track the google branch, rewriting history
  more frequently will make things difficult for them. This branch is
  only intended for the export from google source control, so the only
  people who should care about it are build cops and maybe googlers,
  and I think the inconvenience will be minor.
- There will be some lag time between when a commit is exported and
  when it can be safely merged into the main branch. This action runs
  in about 10 seconds and quickly reports a failure (plus you can see
  the pending status as well), so I think this isn't likely to happen.

Tested:
Ran this on my fork. Initially pushed a cherry-picked version of
iree-org@78170d0a58fe
![screenshot](https://user-images.githubusercontent.com/5732088/103966637-1dbcaf00-5115-11eb-9077-6192d23d5820.png).
The check action failed on this, marking it with an "x"
(https://github.com/GMNGeoffrey/iree/runs/1666244136) and the
synchronize action fixed it up
(https://github.com/GMNGeoffrey/iree/runs/1666187868)
with the final result being
ec9e72364088.
@google-cla google-cla Bot added the cla: yes label Jan 12, 2021
@copybara-service
copybara-service Bot merged commit 54e529b into iree-org:google Jan 12, 2021
This was referenced Jan 12, 2021
rsuderman added a commit that referenced this pull request Jan 14, 2021
2dda0ee Merge pull request #4510 from rsuderman:main-to-google
19e3880 Synchronize submodules with LLVM at llvm/llvm-project@1786361
8c8a71c Integrated grappler into SavedModel importer, and added unit test coverage for..
5eb5b0a Integrate LLVM at llvm/llvm-project@1786361
9d584bb Synchronize submodules with LLVM at llvm/llvm-project@6f4d460
47e6c8f Use mlir::OpState::operator->() to get to methods of mlir::Operation.
5382d7e Upstream mhlo.dot_general lowering to Linalg to MHLO repo
517b419 Merge pull request #4499 from GMNGeoffrey:main-to-google
fb4c5d3 Synchronize submodules with LLVM at llvm/llvm-project@6f4d460
f780931 Integrate LLVM at llvm/llvm-project@6f4d460
f82a136 Merge pull request #4496 from rsuderman:main-to-google
9b40f24 Synchronize submodules with LLVM at llvm/llvm-project@c8a914d
7971661 Integrate LLVM at llvm/llvm-project@c8a914d
8fd547a Integrate LLVM at llvm/llvm-project@aefeb5f
e122063 Synchronize submodules with LLVM at llvm/llvm-project@89878e8
54e529b Merge pull request #4477 from GMNGeoffrey:main-to-google
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