Joshua Haberman
2eb973f53a
Added a GitHub Action to test Python+upb on Windows, and fixed a couple of bugs this revealed.
...
PiperOrigin-RevId: 446322046
3 years ago
Joshua Haberman
fbcd42b9f0
Added a test that the Python module is importable, and fixed several issues that were required to make the test pass:
...
1. For some reason the version script was not working, it was failing to export the main symbol for the Python extension. I fixed this by using the `visibility` attribute instead to export the `PyInit__message` function.
2. We were not properly stripping the `python/dist/` prefix for the C module, which was making the module exported under the name `dist.google._upb` instead of `google._upb`.
3. The `py_library()` rule was failing to actually propagate the module file into the wheel, so I just removed it.
PiperOrigin-RevId: 445446611
3 years ago
Joshua Haberman
5f627b69e5
GitHub Action for building/installing Python wheel.
...
This creates a multi-job workflow. The first step builds all wheels, using the Docker image and cross-compiler. The second step attempts to install that wheel on all platforms.
Future changes will enhance this workflow to also install and run the tests. We also need to add macOS wheels, which are not currently being built.
PiperOrigin-RevId: 444952832
3 years ago
Joshua Haberman
7ff1662f97
Removed pre-generated CMake files from the main branch.
...
From now on, these files will live in the "generated" branch only, and a GitHub action will regenerate these files whenever there is a commit to the main branch.
PiperOrigin-RevId: 438879338
3 years ago
Joshua Haberman
98aa7d7add
Fixed GitHub Actions syntax.
...
PiperOrigin-RevId: 438592264
3 years ago
Joshua Haberman
f32e79a975
Added GitHub Action to build generated files and push them to the `generated` branch.
...
PiperOrigin-RevId: 438583959
3 years ago
Joshua Haberman
283451a9f3
Run "apt update" before "apt install".
3 years ago
Joshua Haberman
dbd5dbed46
Fixed pointer tagging on 32-bit builds.
3 years ago
Joshua Haberman
1d2193ba61
ubsan apparently requires libunwind-dev.
3 years ago
Joshua Haberman
826eca6742
Enabled ubsan tests and fixed ubsan failures.
3 years ago
Joshua Haberman
c22cff01e8
Restored Bazel tests.
...
I accdentally replaced the bazel tests with clang-format tests.
3 years ago
Joshua Haberman
be7dfeba6b
Added GitHub Action to test for clang-format.
3 years ago
Joshua Haberman
1258c61138
Exclude all Python tests from ASAN at the moment.
...
I would like to enabled ASAN here, but it is tricky to do so.
3 years ago
Joshua Haberman
5815be9ae6
Reverted GitHub Actions changes.
3 years ago
Joshua Haberman
14f696fad6
Install Valgrind (attempt #2 ).
3 years ago
Joshua Haberman
55e3f89098
Install Valgrind.
3 years ago
Joshua Haberman
2734519115
Temporarily change GitHub Actions to use Valgrind, to debug CI-only failures.
3 years ago
Joshua Haberman
d2e408ebc4
Removed fail-fast, so we get information about all failures.
3 years ago
Joshua Haberman
ec7d8e69da
Updated branch for GitHub Actions master -> main.
3 years ago
Joshua Haberman
41590d24b0
Disabled Valgrind test for CI, we'll be using ASAN instead.
3 years ago
Joshua Haberman
bd8ab9c742
Need install Valgrind.
3 years ago
Joshua Haberman
7183780b60
Added a Valgrind test that works for Python!
3 years ago
Joshua Haberman
f4fc2c3c4a
Run in venv part 2.
3 years ago
Joshua Haberman
206e5b9aad
Run Python tests under a venv.
3 years ago
Joshua Haberman
c8e4cf7341
Output errors from Bazel tests.
3 years ago
Joshua Haberman
f80d2d9406
Switch exclusion from '...' to 'all'.
3 years ago
Joshua Haberman
b5b2bbaf53
Exclude Python test from asan.
3 years ago
Joshua Haberman
7f72ff0c2e
Another try at fixing YAML syntax.
3 years ago
Joshua Haberman
4a3b2148a1
Fixed YAML syntax.
3 years ago
Joshua Haberman
71a49717c8
Add macOS and GCC tests.
3 years ago
Joshua Haberman
ef0f5a9906
Ditch Docker for now, since pull requests don't have access to secrets.
3 years ago
Joshua Haberman
972228240c
Configure Docker.
3 years ago
Joshua Haberman
6967a1b098
Run tests under Docker.
3 years ago
Joshua Haberman
78056d579f
Try omitting path.
3 years ago
Joshua Haberman
adaa66cd6e
Add command to checkout upb.
3 years ago
Joshua Haberman
b972fa0a39
Run existing Kokoro tests on GitHub Actions.
3 years ago
Joshua Haberman
ef86edc4b4
Experiment with GitHub Actions: log in to gcloud.
3 years ago
Philippe Antoine
451dcbbb9a
Adds CIFuzz
4 years ago