Commit graph

28 commits

Author SHA1 Message Date
Rachel Goldfinger
0404e66d8b Add conformance test for edition unstable
PiperOrigin-RevId: 850054867
2025-12-29 07:41:37 -08:00
Mike Kruskal
b9cb1842d0 Delete old conformance test hack
This is no longer relevant, and all 3 python implementations are conformant in JSON and binary formats

PiperOrigin-RevId: 705214440
2024-12-11 13:22:49 -08:00
Yamil Morales
eceb8ccc0d Implementation of go/conformanceDebuggability. Refactor ForkPipeRunner::RunTest(): There's no need for rerunning through argv for common flags between suites. This also enables "debug_test_names" to be shared between suites.
PiperOrigin-RevId: 656509695
2024-07-26 13:28:21 -07:00
Protobuf Team Bot
ecb8214f22 Update failure lists to include a small comment of 'why' a test failed.
Makes it easier to recognize what the intended behavior should be when wanting to fix these test failures.

PiperOrigin-RevId: 654912513
2024-07-22 15:17:15 -07:00
Mike Kruskal
ea81024ddf Refactor editions infrastructure to a top-level directory.
The only public target here is the edition defaults helper macro, which can be used by external runtimes and plugins.  None of this code is C++-specific though, and should be organized higher up.  Appropriate aliases are also placed at the top level for public targets

PiperOrigin-RevId: 625392504
2024-04-16 11:13:19 -07:00
Mike Kruskal
8ab39ed6f8 Add editions-specific conformance tests
For now, these are limited to tests of text-form for delimited fields that locks down our problematic behavior in editions.  Follow up changes will adjust the behavior to behave better under editions.

PiperOrigin-RevId: 622211473
2024-04-05 10:12:09 -07:00
Mike Kruskal
15eccf3ec4 Implement Editions in Pure Python.
This change only covers pure python, and follow-up changes will handle C++/upb variants and actually enable editions support.  The C++ one works (as evident from the conformance tests), but needs some APIs added to allow for testing.

PiperOrigin-RevId: 580304039
2023-11-07 14:40:26 -08:00
Sandy Zhang
81068e8e8c Internal change
PiperOrigin-RevId: 566426899
2023-09-18 15:17:56 -07:00
Joshua Haberman
8a4bfd645d Shorten our license headers into an abbreviated form that references LICENSE instead of including it in full.
PiperOrigin-RevId: 563909131
2023-09-08 20:24:45 -07:00
Gregory P. Smith
d35a66e67b Use sys.stdin.buffer and sys.stdout.buffer directly for binary I/O, don't
reassign sys.stdin and sys.stdout with files that do not match the text API
contract of those.  This fixes a stdin pipe IO race condition on input that was
leading to flakiness depending on the test system load.

PiperOrigin-RevId: 489320918
2022-11-17 15:17:49 -08:00
Gregory P. Smith
9fe9adf4d8 Remove an incorrect comment about the Python struct module.
"<I" has always been defined as little endian 32-bit unsigned int.
https://docs.python.org/3/library/struct.html#format-characters

PiperOrigin-RevId: 485963034
2022-11-03 13:48:05 -07:00
Mike Kruskal
ca4b0630a6 Sync from Piper @467099277
PROTOBUF_SYNC_PIPER
2022-08-11 20:55:01 -07:00
Joshua Haberman
503a2116aa Sync from Piper @305053102
PROTOBUF_SYNC_PIPER
2020-04-06 09:57:03 -07:00
Joshua Haberman
b99994d994 Sync from Piper @304070343
PROTOBUF_SYNC_PIPER
2020-03-31 16:25:37 -07:00
Rafi Kamal
58d4420e2d Down Integrate Internal Changes 2019-11-12 13:38:58 -08:00
Hao Nguyen
2f864fdfdf Down integrate to Github 2019-03-20 11:45:01 -07:00
Yilun Chong
d8c2501b43 down integration from internal 2019-02-22 18:13:33 +08:00
Yilun Chong
cb95a7f6a8
Down-integrate internal changes to github. (#5566)
* Down-integrate internal changes to github.

* fix csharp conformance test

* add comments in conformance.proto for text format

* fix comments

* fix comments, re-generated csharp file

* fix comments, re-generated csharp file
2019-01-11 11:40:52 -08:00
Yilun Chong
0adb74c2d3 Down-integrate internal changes to github. (#5555)
* Down-integrate internal changes to github.

* fix python conformance test

* fix csharp conformance test

* add back java map_lite_test.proto's optimize for option

* fix php conformance test
2019-01-08 15:06:30 -08:00
Feng Xiao
6bbe197e9c Down-integrate from google3. 2018-08-08 17:00:41 -07:00
Yilun Chong
3adb054bbf add some test proto2 supported, add js proto2 supported, fixed some error 2017-06-30 17:22:32 -07:00
Yilun Chong
020a24dfdc change cpp and python to uniform message 2017-06-29 11:33:22 -07:00
Yilun Chong
18a0c2c4d2 add proto2 supported for cpp,python,nodejs,ruby,php 2017-06-27 18:24:15 -07:00
Joshua Haberman
f1ce60e7b4 Factored Conformance and Benchmark test messages into shared test schema. (#1971)
* Factored Conformance test messages into shared test schema.

* Updated benchmarks to use new proto3 message locations.

* Fixed include path.

* Conformance: fixed include of Python test messages.

* Make maven in Rakefile use --batch-mode.

* Revert changes to benchmarks.

On second thought I think a separate schema for
CPU benchmarking makes sense.

* Try regenerating C# protos for new test protos.

* Removed benchmark messages from test proto.

* Added Jon Skeet's fixes for C#.

* Removed duplicate/old test messages C# file.

* C# fixes for test schema move.

* Fixed C# to use the correct TestAllTypes message.

* Fixes for Objective C test schema move.

* Added missing EXTRA_DIST file.
2016-12-03 11:51:25 -05:00
Bo Yang
cc8ca5b6a5 Integrate internal changes 2016-10-10 11:23:36 -07:00
Josh Haberman
874eb3648e Remove all bare strings as exceptions. 2015-12-04 15:03:12 -08:00
Josh Haberman
a3faf080e3 Added JSON support to Python conformance tests. 2015-12-02 13:21:42 -08:00
Josh Haberman
325392dd61 Conformance test implementation for Python. 2015-12-02 12:53:42 -08:00