Commit Graph

15 Commits (main)

Author SHA1 Message Date
Mike Kruskal 7d87a1780a Hook up staleness tests to non-bootstrap edition defaults
PiperOrigin-RevId: 623936729
2024-04-11 14:23:41 -07:00
Mike Kruskal 54a8588148 Fix staleness regen script that now silently fails
PiperOrigin-RevId: 613765356
2024-03-07 18:12:42 -08:00
Mike Kruskal 58312a6f2e Check in upb bootstrap gencode for future cmake usage
PiperOrigin-RevId: 613757614
2024-03-07 17:38:35 -08:00
Adam Cozzette 7286ffceb2 Merge the protobuf and upb Bazel repos
A couple weeks ago we moved upb into the protobuf Git repo, and this change
continues the merger of the two repos by making them into a single Bazel repo.
This was mostly a matter of deleting upb's WORKSPACE file and fixing up a bunch
of references to reflect the new structure.

Most of the changes are pretty mechanical, but one thing that needed more
invasive changes was the Python script for generating CMakeLists.txt,
make_cmakelists.py. The WORKSPACE file it relied on no longer exists with this
change, so I updated it to hardcode the information it needed from that file.

PiperOrigin-RevId: 564810016
2023-09-12 13:09:54 -07:00
Adam Cozzette 0937be16c0 Update PHP and Ruby amalgamations in regenerate_stale_files.sh
This removes the need for us to manually rebuild these amalgamation files. I
added the "manual" tag to the corresponding staleness tests so that we won't
get presubmit errors if the amalgamation files are out of date. I also had to
tweak the Ruby BUILD.bazel file to make sure it uses Bazel-generated
amalgamations instead of relying on the checked-in files.

I added deliberate errors to the Ruby and PHP amalgamation files to test that
everything is working. We should not see any CI errors, and the files should
quickly be auto-updated after the change lands on main.

PiperOrigin-RevId: 561187352
2023-08-29 18:05:38 -07:00
Adam Cozzette bac9ce4679 Update stale file regeneration to handle upb's CMakeLists.txt
The auto-updating of upb's CMakeLists.txt file broke with the upb merge but
will be fixed by this change.

PiperOrigin-RevId: 561005809
2023-08-29 06:05:34 -07:00
Protobuf Team Bot e2aa06eaa8 [ObjC] Set up a stateless test for the WKTs.
Also wire it into the regeneration script.

PiperOrigin-RevId: 508751290
2023-02-10 14:12:37 -08:00
Mike Kruskal c399aeccc4 Enable ccache for CMake builds.
This uses ccache + github caching to substantially decrease the time it takes to run CMake builds.  Due to Bazel caching, these are some of our slowest tests, causing one of the biggest presubmit bottlenecks

PiperOrigin-RevId: 507667813
2023-02-06 21:10:24 -08:00
Mike Kruskal eedef31738 Delete remaining dead code from kokoro directory
PiperOrigin-RevId: 507027975
2023-02-03 17:05:36 -08:00
Mike Kruskal f1e746c491 Migrate remaining Windows tests to GHA
PiperOrigin-RevId: 506766851
2023-02-02 17:43:42 -08:00
Mike Kruskal 2b4e4260f0 Migrate to composite GHA actions (#11718)
This migrates from reusable workflows to composite GHA actions.  This has the following advantages:
1) We can split them into smaller, easier to reason about chunks
2) We can reuse them more freely between each other and workflows
3) They don't complicate the job names
4) In theory they'll be easier to test in isolation.  While composite actions can't be unit-tested, we can easily break them up into nodejs or docker actions that can be.

As a proof of concept, some of our non-Bazel tests are migrated to GHA as well (CMake + Composer)

Closes #11718

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11718 from protocolbuffers:gha-actions 5403307bc00616e94816aa460813939d8f37a1bd
PiperOrigin-RevId: 506375417
2023-02-01 11:34:03 -08:00
Mike Kruskal a9f1ea6371 Breaking change: Migrate to Abseil's logging library.
This deletes our old branches of internal Abseil code in favor of their newly open-sourced library.  Notably, this removes the ability to turn CHECK crashes into exceptions.

PiperOrigin-RevId: 504460562
2023-01-24 21:51:03 -08:00
Protobuf Team Bot 4e69c50d62 Regenerate C# files as part of staleness checks
PiperOrigin-RevId: 502333394
2023-01-16 02:29:49 -08:00
Mike Kruskal be0b7e696d Fix broken staleness GHA jobs.
This separates kokoro setup from the stale file regeneration process.

PiperOrigin-RevId: 496985475
2022-12-21 12:50:23 -08:00
Mike Kruskal f589515e56 Regenerate stale files before every test that requires them.
These files get automatically updated as post-submit actions, and there's no reason to ever used the checked in versions.  Daily run staleness test verify that those don't go out of date.

PiperOrigin-RevId: 496800868
2022-12-20 18:44:28 -08:00