Commit Graph

125 Commits (main)

Author SHA1 Message Date
Protobuf Team Bot 21d75f861c Remove references to rules_proto
They are not needed after the rules are move into protobuf repo.
Except for the reference to toolchain type, which is currently in rules_proto and can be moved after the implementation is moved into protobuf repo.

PiperOrigin-RevId: 622176865
2024-04-05 07:50:25 -07:00
Protobuf Team Bot 83ec410d30 Internal change
PiperOrigin-RevId: 619377672
2024-03-27 05:50:55 -07:00
Protobuf Team Bot 41aeb3c7ed Update to ads v16.
Google ads api v13 is sunsetted.

PiperOrigin-RevId: 618321878
2024-03-22 17:02:46 -07:00
Chris Kennelly 9e7cff0629 Automated Code Change
PiperOrigin-RevId: 612547901
2024-03-04 12:39:59 -08:00
Eric Salo c32838ac30 upb: remove base:internal as a dep in upb/benchmarks/
PiperOrigin-RevId: 601306785
2024-01-24 19:34:32 -08:00
Adam Cozzette 4ec9170bcd Fix layering check for usage of gtest
To satisfy the layering check, we need to depend on :gtest for the headers, in
addition to :gtest_main which provides the main() function.

There are a bunch of formatting changes as a side effect of this, but they
should be harmless.

PiperOrigin-RevId: 594318263
2023-12-28 14:41:48 -08:00
Joshua Haberman 37a926e177 Added JSON parsing/serialization to benchmark
PiperOrigin-RevId: 594293336
2023-12-28 12:00:24 -08:00
Eric Salo 0eac807f3b upb: delete the aliases for base:internal and mini_descriptor:internal
PiperOrigin-RevId: 594280505
2023-12-28 10:40:34 -08:00
Protobuf Team Bot 0fab773c1d Update remainder of upb to new short license style.
PiperOrigin-RevId: 584116886
2023-11-20 13:43:32 -08:00
Eric Salo 90a7de5063 upb: use upb_c_proto_library() instead of upb_proto_library()
PiperOrigin-RevId: 574674453
2023-10-18 18:37:34 -07:00
Adam Cozzette 501ececd39 Reorganize upb file structure
This change moves almost everything in the `upb/` directory up one level, so
that for example `upb/upb/generated_code_support.h` becomes just
`upb/generated_code_support.h`. The only exceptions I made to this were that I
left `upb/cmake` and `upb/BUILD` where they are, mostly because that avoids
conflict with other files and the current locations seem reasonable for now.

The `python/` directory is a little bit of a challenge because we had to merge
the existing directory there with `upb/python/`. I made `upb/python/BUILD` into
the BUILD file for the merged directory, and it effectively loads the contents
of the other BUILD file via `python/build_targets.bzl`, but I plan to clean
this up soon.

PiperOrigin-RevId: 568651768
2023-09-26 14:38:35 -07:00
Chris Kennelly 83c499de86 Delete benchmarks.
C++ benchmarks have been superceded by https://github.com/google/fleetbench.
2022-08-29 09:38:22 -07:00
Mike Kruskal ce1cd3dec2
Specify that the python benchmark requires python 3 (#10402) 2022-08-12 15:44:13 -07:00
Mike Kruskal ca4b0630a6 Sync from Piper @467099277
PROTOBUF_SYNC_PIPER
2022-08-11 20:55:01 -07:00
Mike Kruskal ed5c57a574
Remove all autotools usage (#10132)
* Bazelfying conformance tests

Adding infrastructure to "Bazelify" languages other than Java and C++

* Delete benchmarks for languages supported by other repositories

* Bazelfying benchmark tests

* Bazelfying python

Use upb's system python rule instead of branching tensorflow

* Bazelfying Ruby

* Bazelfying C#

* Bazelfying Objective-c

* Bazelfying Kokoro mac builds

* Bazelfying Kokoro linux builds

* Deleting all deprecated files from autotools cleanup

This boils down to Makefile.am and tests.sh and all of their remaining references

* Cleanup after PR reorganizing

- Enable 32 bit tests
- Move conformance tests back
- Use select statements to select alternate runtimes
- Add internal prefixes to proto library macros

* Updating READMEs to use bazel instead of autotools.

* Bazelfying Kokoro release builds

* First round of review fixes

* Second round of review fixes

* Third round of review fixes

* Filtering out conformance tests from Bazel on Windows (b/241484899)

* Add version metadata that was previously scraped from configure.ac

* fixing typo from previous fix

* Adding ruby version tests

* Bumping pinned upb version, and adding tests to python CI
2022-08-10 22:51:29 -07:00
Joshua Haberman 887daf693f Sync from Piper @461045587
PROTOBUF_SYNC_PIPER
2022-07-14 21:05:36 +00:00
Dennis Shao 6dd8af4ecf Sync from Piper @451217119
PROTOBUF_SYNC_PIPER
2022-05-26 19:21:41 +00:00
David L. Jones e5e8378a62
[Bazel] Make the protobuf workspace (nearly) wildcard-buildable. (#10010)
- Add back benchmarks/datasets/BUILD.bazel to dist archive
- Change dist/build_systems.bzl to be compatible with Bazel 4.0.0.

After this, most builds can use //..., with one exception: non-Mac environments must also exclude objectivec:
`bazel build -- //... -//objectivec/...`
2022-05-20 19:33:42 -07:00
David L. Jones 354aba886e
Add a test for bazel-built dist archives (#9929)
This also fixes some packaging rules that are needed for the result to be buildable.
2022-05-09 16:32:59 -07:00
Adam Cozzette 5eafa23c98
Update CHANGES.txt (#9897) 2022-05-03 10:26:36 -07:00
David L. Jones 95da0ba5b4
Rename all BUILD files to BUILD.bazel (#9892)
This avoids conflicting names in a couple of cases.

1. Within google, we want to sync files but not name them BUILD (since the structure doesn't match).
2. On case-insensitive filesystems, `build` may be used for a build directory. Naming `BUILD.bazel` avoids potentioal conflicts.
2022-04-29 17:57:55 -07:00
David L. Jones d76f8c868c
Add source distribution packaging rules (#9835)
This change adds `rules_pkg`-based targets that will produce source distribution archives, similar to `make dist`.

These rules produce nearly the same outputs as `make dist`. However, there are some differences and caveats:

1. The outputs do not contain vendored googletest sources.
2. You have to run `autogen.sh` before `blaze build pkg:all`. This produces several autotools-related files directly into the source tree.
3. The output .zip files do not have a directory prefix like `protobuf-3.20.1-rc-1` (this will be addressed after [Substitute package variables in `pkg_zip#package_dir`. bazelbuild/rules_pkg#577](https://github.com/bazelbuild/rules_pkg/pull/577); the tar files do have this prefix, though.)
4. One file is missing from the archives, which is produced during the `make` build: benchmarks/gogo/cpp_no_group/cpp_benchmark.cc
5. In several places, I have explicitly excluded some files that are not in the autotools distribution outputs. I think most of those files should probably be included, but for now, I'm aiming for parity with `make dist`. These are marked with comments, so it should be easy to clean them up later.
2022-04-22 16:58:16 -07:00
noahdietz 5abf802bc2 Replace master with main in URLs & docs 2022-04-12 10:25:08 -07:00
Elliotte Rusty Harold 8c170146ee
download_data.sh no longer exists (#9661)
@haberman download_data.sh doesn't seem to exist any more and I can't find it in the git log
2022-03-22 16:33:10 +00:00
David L. Jones 1ba1d73e0d Sync from Piper @429333699
PROTOBUF_SYNC_PIPER
2022-02-17 09:53:51 -08:00
Deanna Garcia b7fe12e367 Syncing from internal 2022-02-01 21:30:49 +00:00
Deanna Garcia ab4585a695 Sync from Piper @425656941
PROTOBUF_SYNC_PIPER
2022-02-01 18:24:53 +00:00
Elliotte Rusty Harold 749243db7e
Must build project before running benchmarks (#9454)
* Must build project before running benchmarks

That is, it does not test the version downloaded from Maven central.

* Update README.md
2022-01-28 21:50:35 +00:00
Adam Cozzette 6a9cf18cba
Fix benchmark by making sure we use Python 3 (#9170)
The benchmark runs have been failing since we started requiring Python
3, so this changes fixes the benchmarks by ensuring we always use Python
3.
2021-11-01 09:00:31 -07:00
Adam Cozzette 4eed0dab5a Sync from Piper @392076391
PROTOBUF_SYNC_PIPER
2021-08-20 15:05:53 -07:00
Adam Cozzette 5d03f8c8a5 Merge tag 'refs/tags/sync-piper' into sync-stage 2021-08-03 12:25:42 -07:00
Adam Cozzette 562fc946c7 Sync from Piper @388508285
PROTOBUF_SYNC_PIPER
2021-08-03 11:58:05 -07:00
Derek Perez b90ec9c242
updating caliper to latest maven version. (#8813)
Fixes #8665
2021-07-13 15:58:40 -07:00
Jan Tattermusch b4a06a193b print benchmarks JSON results to build job log 2021-05-31 11:07:33 +02:00
David L. Jones f82e268ed7 Remove references to stale benchmark data sources. 2021-04-01 12:21:02 -07:00
Yannic Bonenberger ef70abad8a Restrict visibility and add target for C++ benchmark 2021-03-14 10:58:03 +01:00
Yannic Bonenberger c5abd97e36 [bazel] Add BUILD files for benchmark protos
This change adds BUILD files to //benchmarks that allow
users to consume the .proto files in that directory
to run benchmarks (e.g. for custom generators).
2021-03-13 16:50:24 +01:00
Peter Newman e2cc2de304
Fix lots of spelling errors (#7751)
* Fix a typo

* Fix lots of spelling errors

* Fix a few more spelling mistakes

* s/parsable/parseable/

* Don't touch the third party files

* Cloneable is the preferred C# term

* Copyable is the preferred C++ term

* Revert "s/parsable/parseable/"

This reverts commit 534ecf7675.

* Revert unparseable->unparsable corrections
2020-08-10 11:08:25 -07:00
Joshua Haberman c649397029
Set execute bit on files if and only if they begin with (#!). (#7347)
* Set execute bit on files if and only if they begin with (#!).

Git only tracks the 'x' (executable) bit on each file. Prior to this
CL, our files were a random mix of executable and non-executable.
This change imposes some order by making files executable if and only
if they have shebang (#!) lines at the beginning.

We don't have any executable binaries checked into the repo, so
we shouldn't need to worry about that case.

* Added fix_permissions.sh script to set +x iff a file begins with (#!).
2020-04-01 15:28:25 -07:00
Joshua Haberman 6e229f124e Revert mistake in the previous integration. 2020-03-31 17:08:31 -07:00
Joshua Haberman b99994d994 Sync from Piper @304070343
PROTOBUF_SYNC_PIPER
2020-03-31 16:25:37 -07:00
Joe Tsai 9bccb253c4 Add license header to benchmark/datasets .proto files 2020-03-11 09:52:33 -07:00
Brian Wignall a104dffcb6 Fix typos (#7050)
Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, with https://github.com/bwignall/typochecker to help automate the checking.
2020-01-08 10:18:20 -08:00
summerCol 6d087c256c fix typos in benchmarks/README.md 2019-12-10 11:32:44 -08:00
Jie Luo 84241c6154 Add missing files under benchmarks/ to the dist (#6580)
* Add missing files under benchmarks/ to the dist

* fix typo
2019-08-27 13:16:28 -07:00
Hao Nguyen 88339fa7f8 Down integrate to GitHub 2019-05-21 16:02:13 -07:00
Hao Nguyen 66540237ca Down integrate to GitHub 2019-05-17 12:01:17 -07:00
Mickaël Schoentgen ed10d9cf6d Fix several DeprecationWarning: invalid escape sequence (#5897)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-03-21 11:51:14 -07:00
Jon Skeet 233f4865ee First pass at benchmarking for C# 2019-03-13 15:26:57 +00:00
Paul Yang bf32b36ab8
Merge pull request #5765 from BSBandme/integration
down integration from internal
2019-02-26 22:11:08 -08:00