238 Commits

Author SHA1 Message Date
Jieying Luo
8128b54e15 Increase test timeout for Cloud TPU nightly CI.
Recent runs got timeout when it is close to finish. https://github.com/google/jax/actions/runs/7182549669/job/19559323926

PiperOrigin-RevId: 590253735
2023-12-12 10:30:09 -08:00
Jake VanderPlas
b1e9afcaa6 CI: use ratchet to pin actions commits 2023-12-11 10:56:16 -08:00
Jake VanderPlas
bdd8318e36 CI: update actions/setup-python to v5 2023-12-11 09:23:30 -08:00
jax authors
e686ed7e93 Merge pull request #18870 from jakevdp:array-api-tests
PiperOrigin-RevId: 589184048
2023-12-08 10:58:23 -08:00
Jake VanderPlas
4b1077da09 array-api: update test suite & fix nonzero 2023-12-08 08:55:57 -08:00
Jake VanderPlas
eea2eabe0e remove upstream-nightly CI job
Because of C-API changes, this no longer works with upstream numpy without a jaxlib
build, which is too expensive to run as part of a github action. We should replace
with a nightly kokoro job, but in the meantime there's no reason to use these CI
resources for a failing nightly run.
2023-12-08 08:46:53 -08:00
Peter Hawkins
7274960a6d Remove nightly NVIDIA GPU multiprocess CI.
This CI seems to be dead.
2023-12-01 17:13:24 -05:00
Jake VanderPlas
ada5fe5dc9 Remove numpy-dispatch CI job & simplify build specification
The numpy-dispatch approach has been superseded by the Python Array API (Tracked for JAX in https://github.com/google/jax/issues/18353).

While we're here, we'll reduce the github CI to only two jobs: the oldest and newest supported Python versions. Other versions can be covered by Kokoro.

PiperOrigin-RevId: 587041291
2023-12-01 10:03:15 -08:00
Jake VanderPlas
053e2cff11 Update array-api-tests to most recent commit 2023-11-28 08:17:45 -08:00
Peter Hawkins
6a1dde605b Request specific version information in the bug template. 2023-11-21 14:42:38 -05:00
Jake VanderPlas
c235045422 CI: pin actions/setup-python & actions/github-script to recent release 2023-11-20 09:58:14 -08:00
George Necula
3601b25899 Move multi_platform_export_test.py out of jax2tf.
This test is now independent of jax2tf. Move it out and rename it export_harnesses_multi_platform_test.py.

We disable the test in GitHub CI, because it is very large, pending
some changes to ensure it parallelizes well. The test is still
running in internal CI. This is matching the current behavior, since
jax2tf tests are only run internally.

PiperOrigin-RevId: 583603863
2023-11-18 02:52:44 -08:00
Jake VanderPlas
78b889632b [array api] update array-api-tests 2023-11-17 08:59:53 -08:00
Jake VanderPlas
271d31c1c8 Add jax.experimental.array_api interface 2023-11-16 14:21:04 -08:00
jax authors
7ffcbbbe5c Merge pull request #18019 from google:dependabot/github_actions/styfle/cancel-workflow-action-0.12.0
PiperOrigin-RevId: 580675174
2023-11-08 15:13:53 -08:00
Jieying Luo
8ffc88c1e4 Bump LIBTPU_OLDEST_VERSION_DATE to 20230915 to include https://github.com/openxla/xla/pull/5617.
PiperOrigin-RevId: 577285685
2023-10-27 13:12:36 -07:00
dependabot[bot]
65fed59cda
Bump actions/checkout from 4.1.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-23 17:39:31 +00:00
Skye Wanderman-Milne
f16ea4f180 Fix oldest supported libtpu install command 2023-10-20 09:45:05 -07:00
Samuel Agyakwa
0cd6ef012e Merge remote-tracking branch 'origin/patch-1' into patch-1 2023-10-13 16:47:10 +00:00
Samuel Agyakwa
91f17459ed making ENABLE_PJRT_COMPATIBILITY conditionally true 2023-10-12 23:42:39 +00:00
Samuel Agyakwa
d69e810e90 Merge branch 'google:main' into patch-1 2023-10-12 19:50:25 +00:00
Samuel Agyakwa
f59b157b6a
Setup compatibility testing to support the oldest supported libtpu version (12 weeks)
- A new matrix option was added to jaxlib-version matrix
- Expected to immediately fail due to strict jaxlib version check (requires libtpu to have the same API verison as jaxlib, fails otherwise)
- Due to expected failure, so chat will be sent when the jaxlib-version matrix is "nightly+oldest_supported_libtpu"
2023-10-11 15:02:15 -07:00
dependabot[bot]
c24c7da085
Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases)
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.11.0...0.12.0)

---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 17:51:44 +00:00
Peter Hawkins
58cb0d9ede Use the released version of Python 3.12 in the Windows wheel builds. 2023-10-03 21:51:37 -04:00
Skye Wanderman-Milne
24c9e62910 Remove the LD_PRELOAD workaround introduced in ef241e506e
libtpu has been updated to hopefully avoid the deadlock.
2023-10-02 11:30:20 -07:00
Skye Wanderman-Milne
ef241e506e Cloud TPU CI: don't use tcmalloc (temporary workaround for tcmalloc deadlock) 2023-09-28 16:55:11 -07:00
Skye Wanderman-Milne
b6bd74f331 [Cloud TPU CI] Update job names to be more descriptive and add description comment to yaml file. 2023-09-27 09:56:55 -07:00
Peter Hawkins
cf28e2c5fa Small improvements to build/build.py
Add a --verbose option that logs all shell() commands run by the script.
Remove some Python 2 backward compatibility logic related to urllib and shutil.

Enable debug logging on Windows wheel builds.

Also include setuptools in the build requirements and test for its presence in build.py.
2023-09-26 21:55:45 -04:00
dependabot[bot]
867201a77e
Bump actions/checkout from 4.0.0 to 4.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](3df4ab11eb...8ade135a41)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 17:21:10 +00:00
jax authors
5db71b877f Merge pull request #17674 from hawkinsp:py312
PiperOrigin-RevId: 566813669
2023-09-19 18:56:45 -07:00
Peter Hawkins
c125aa7f19 Add Python 3.12.0-rc.3 to the Windows wheel releases. 2023-09-19 21:34:51 -04:00
Yash Katariya
cf3fc55da3 Put JAXLIB_RELEASE env var in the correct step (build wheel) for windows release
PiperOrigin-RevId: 566461339
2023-09-18 17:39:31 -07:00
Yash Katariya
4fb0b4bace Set JAXLIB_RELEASE env var to True for windows release scripts
PiperOrigin-RevId: 566442791
2023-09-18 16:17:48 -07:00
Jake VanderPlas
f8031fed5b CI: pin actions/checkout to v4 2023-09-05 09:26:15 -07:00
Skye Wanderman-Milne
719cae5849 Small Cloud TPU CI debugging improvements
1. Use `strings` to print the libtpu build date, which is useful if
   the libtpu version is stale and causes an API version mismatch
   error.

2. Set the default shell to add bash -x command, so all commands are
   printed inline. This makes lining up the output with the command
   easier.
2023-08-14 10:37:26 -07:00
Skye Wanderman-Milne
0f30685dac Remove StreamExecutor-based TPU runtime from Cloud TPU CI
The old StreamExecutor-based backend is no longer supported as of
3e50fea29e
2023-08-09 10:05:46 -07:00
Sharad Vikram
d872812a35 [Pallas] Upstream pallas to JAX
PiperOrigin-RevId: 552963029
2023-08-01 16:43:13 -07:00
Peter Hawkins
319ab98980 Apply pyupgrade --py39-plus.
Notable changes:
* use PEP 585 type names
* use PEP 604 type union syntax where `from __future__ import annotations` is present.
* use f-strings in more places.
* remove redundant arguments to open().
2023-07-21 14:49:44 -04:00
Sharad Vikram
3d556b7a19 Add Mosaic to Jaxlib and expose bindings in jax.experimental.mosaic
PiperOrigin-RevId: 549801858
2023-07-20 18:28:51 -07:00
Skye Wanderman-Milne
6c909760d5 Cloud TPU CI: make sure we update test deps and upgrade protobuf version
`profiler_test.py:ProfilerTest.test_remote_profiler` fails with the
protobuf upgrade. However, I was seeing mysterious hangs without this,
and in general I think we should be testing with up-to-date deps given
that we don't pin. I'm gonna continue working on getting the Cloud TPU
CI green.
2023-07-19 16:17:47 -07:00
Peter Hawkins
816ba91263 Use lower-case PEP 585 names for types.
Issue https://github.com/google/jax/issues/16537

PiperOrigin-RevId: 542969282
2023-06-23 15:12:14 -07:00
Peter Hawkins
487b640acf Jax 0.4.13 release. 2023-06-22 14:59:36 -07:00
jax authors
961d918883 Merge pull request #16333 from skye:profiler_test
PiperOrigin-RevId: 542069606
2023-06-20 15:40:10 -07:00
Skye Wanderman-Milne
2ca151ef5b profiler_test.py fixes and add coverage to Cloud TPU CI
* Add deps to test requirements, including in new
  `collect-profile-requirements.txt` (to avoid adding tensorflow to
  `test-requirements.txt`).
* Use correct Python executable `ProfilerTest.test_remote_profiler`
  (`python` sometimes defaults to python2)
* Run computations for longer in `ProfilerTest.test_remote_profiler`,
  othewise `collect_profile` sometimes misses it.
2023-06-20 22:25:17 +00:00
Peter Hawkins
741f0d03c3 Rename Github actions so they have more consistent naming. 2023-06-20 16:26:12 -04:00
Peter Hawkins
34d9f5a9ae Add a CI presubmit that renders the documentation. 2023-06-20 09:29:25 -04:00
Peter Hawkins
3efe4f94ee Don't allow the use of stale cache entries in Github actions CI.
The use of restore-keys allows the pip cache to match stale cache entries. This allows for partial cache reuse, but means the cache also grows without bound.
At the time of writing, the pip cache is 4.7GB, which is much larger than just downloading the wheels we need (20MB)! So it's probably a net positive not to reuse caches even if it requires some redundant downloads.
2023-06-16 17:10:57 -04:00
Peter Hawkins
a05ffab786 Fix xla_bridge_test.py test failures.
We are splitting the plugins in the enviroment variable using os.pathsep; we should make sure to use that as the separator in the test.
2023-06-16 10:17:07 -04:00
Peter Hawkins
990eb2ce68 Enable colored output in pytest under github actions. 2023-06-15 18:57:12 -04:00
Peter Hawkins
758f93723a Tag the wheels generated by the Windows CI as dev versions. 2023-06-14 11:50:33 -04:00