399 Commits

Author SHA1 Message Date
Jake VanderPlas
7f55cccaea Simplify failure reporting for nightly CI job 2025-01-10 10:03:03 -08:00
Jake VanderPlas
f6c9e87d97 [array api] update test suite to latest commit 2025-01-07 13:58:14 -08:00
Jake VanderPlas
c7b0d681bd Remove deprecated jax.experimental.array_api 2025-01-06 15:19:02 -08:00
dependabot[bot]
7da753eb0b
Bump actions/upload-artifact from 4.4.3 to 4.5.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b4b15b8c7c...6f51ac03b9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-23 18:01:03 +00:00
Adam Paszke
ad00ec1dc9 [Mosaic TPU] Guard tests for new features by the libtpu version
PiperOrigin-RevId: 707875450
2024-12-19 05:04:09 -08:00
Peter Hawkins
71b23ea2fb Enable PJRT compatibility in cloud TPU CI.
There's no reason to limit this to only one CI job.

PiperOrigin-RevId: 707227820
2024-12-17 13:27:22 -08:00
Adam Paszke
b3177daa08 Raise the timeout for Cloud TPU nightly CI
The tests are uncomfortably close to the timeout boundary and do
time out at HEAD.

PiperOrigin-RevId: 706759267
2024-12-16 10:39:01 -08:00
Adam Paszke
e655358ab3 Bump the oldest supported libtpu to conform to the 12 week window
PiperOrigin-RevId: 706681784
2024-12-16 06:07:21 -08:00
Adam Paszke
7e6877b26d Drop the frequency of Cloud TPU tests
Our runners don't seem to be able to keep up with the current frequency.

PiperOrigin-RevId: 706676659
2024-12-16 05:46:50 -08:00
Nitin Srinivasan
d05ab5bb0d Add an experimental Cloud TPU presubmit job
This adds an experimental non-blocking presubmit job that will run a subset of TPU tests, focusing on frequently failing tests. The goal is to achieve comprehensive coverage while keeping the runtime around 10 minutes.

PiperOrigin-RevId: 706064568
2024-12-13 18:06:17 -08:00
Michael Hudgins
4de58e1af7
Merge branch 'jax-ml:main' into main 2024-12-13 14:30:30 -05:00
Michael Hudgins
ac92aaaf3a Enable New bazel presubmits for pull requests.
At this time these workflows will currently be non-blocking for submission.

PiperOrigin-RevId: 704825599
2024-12-10 13:26:48 -08:00
jax authors
dba3358dd4 Merge pull request #25294 from jakevdp:array-api-tests
PiperOrigin-RevId: 704363905
2024-12-09 11:46:00 -08:00
dependabot[bot]
b6863dfcb5
Bump actions/cache from 4.1.2 to 4.2.0
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.2 to 4.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](6849a64899...1bd1e32a3b)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 17:14:14 +00:00
Michael Hudgins
a67eae1023
Merge branch 'jax-ml:main' into main 2024-12-05 20:49:32 -05:00
Jake VanderPlas
d88ef23a63 array API: improve test coverage 2024-12-05 12:56:07 -08:00
Jake VanderPlas
8563449ac3 CI: update array-api-tests to latest commit 2024-12-04 11:56:23 -08:00
Nitin Srinivasan
cc95327a57 Fix missing quotes in local xla path
PiperOrigin-RevId: 702356318
2024-12-03 08:53:07 -08:00
Nitin Srinivasan
0134fa834c Update Cloud TPU workflow with new build.py usage
PiperOrigin-RevId: 702094141
2024-12-02 14:54:06 -08:00
Nitin Srinivasan
47d1960926 Update the render documentation job to use the new self-hosted runners
PiperOrigin-RevId: 700550934
2024-11-26 21:01:50 -08:00
Nitin Srinivasan
afcef67791 Install git before actions/checkout
This fixes the workflow failing at "Build and install JAX" step as it wasn't able to run git command to fetch the `jaxlib` git hash

Without git present on the PATH, it seems that `actions/checkout` (from its logs) will download the code with the GitHub REST API. This results in the code not being a git repository and therefore any subsequent git commands fail.

PiperOrigin-RevId: 700518101
2024-11-26 18:16:16 -08:00
Nitin Srinivasan
6761512658 Re-factor build CLI to a subcommand based approach
This commit reworks the JAX build CLI to a subcommand based approach where CLI use cases are now defined as subcommands. Two subcommands are defined: build and requirements_update. "build" is to be used when wanting to build a JAX wheel package. "requirements_update" is to be used when wanting to update the requirements_lock.txt files. The new structure offers a clear and organized CLI that enables users to execute specific build tasks without having to navigate through a monolithic script.

Each subcommand has specific arguments that apply to its respective build process. In addition, arguments are separated into groups to achieve a cleaner separation and improves the readability when the CLI subcommands are run with `--help`. It also makes it clear as to which parts of the build they affect. E.g: CUDA arguments only apply to CUDA builds, ROCM arguments only apply to ROCM builds, etc. This reduces the complexity and the potential for errors during the build process. Segregating functionalities into distinct subcommands also simplifies the code which should help with the maintenance and future extensions.

There is also a transition from using `subprocess.check_output` to `asyncio.create_subprocess_shell` for executing the build commands which allows for streaming logs and helps in showing the build progress in real time.

Usage:
* Building `jaxlib`:
```
python build/build.py build --wheels=jaxlib --python_version=3.10
```
* Building `jax-cuda-plugin`:
```
python build/build.py build --wheels=jax-cuda-plugin --cuda_version=12.3.2 --cudnn_version=9.1.1 --python_version=3.10
```
* Building multiple packages:
```
python build/build.py build --wheels=jaxlib,jax-cuda-plugin,jax-cuda-pjrt --cuda_version=12.3.2 --cudnn_version=9.1.1 --python_version=3.10
```
* Building `jax-rocm-pjrt`:
```
python build/build.py build --wheels=jax-rocm-pjrt --rocm_version=60 --rocm_path=/path/to/rocm
```
* Using a local XLA path:
```
python build/build.py build --wheels=jaxlib --local_xla_path=/path/to/xla
```
* Updating requirements_lock.txt files:
```
python build/build.py requirements_update --python_version=3.10
```

For more details on each argument and to see available options, run:
```
python build/build.py build --help
```
or
```
python build/build.py requirements_update --help
```

PiperOrigin-RevId: 700075411
2024-11-25 13:03:04 -08:00
Nitin Srinivasan
34a2f0ca4a Add a jaxlib at head build to the cloud-tpu-ci-nightly workflow
This will allow us to test TPU compatibility with jaxlib at head. Also, enable v4 runners as they are now online.

PiperOrigin-RevId: 699155667
2024-11-22 06:45:36 -08:00
jax authors
b1b1ad622e Merge pull request #25018 from jakevdp:update-array-api
PiperOrigin-RevId: 698811575
2024-11-21 09:32:33 -08:00
Nitin Srinivasan
1e6654a031 Fix cron schedule to run past minute 0 every 2nd hour
In the previous schedule, we were running at every minute at every 2nd hour.

PiperOrigin-RevId: 698804124
2024-11-21 09:09:14 -08:00
Nitin Srinivasan
7d7a0fa249 Run the TPU workflow on new self-hosted runners
We are not able to run the TPU workflows because of no active runners (https://github.com/jax-ml/jax/actions/runs/11879479226/job/33101456081). So this adds the new self-hosted runners to the TPU workflow to fix this issue. The v3 type is disabled as we do not have that available yet.

PiperOrigin-RevId: 698772505
2024-11-21 07:26:05 -08:00
Jake VanderPlas
f749fca760 [array api] use most recent version of array_api_tests 2024-11-20 14:50:06 -08:00
Nitin Srinivasan
14187399d7 Add new CI script for running Bazel GPU presubmits
PiperOrigin-RevId: 697643622
2024-11-18 08:52:51 -08:00
Jake VanderPlas
a115b2cec5 Update array-api-tests commit 2024-11-14 16:05:30 -08:00
Jake VanderPlas
d0f36666ff Update array-api-tests commit 2024-11-14 11:52:21 -08:00
vfdev
6644bbc9c1
Fixed typo in asan.yaml 2024-11-14 17:59:58 +01:00
Nitin Srinivasan
195d407081 Add new CI scripts for running Bazel CPU presubmits
This commit introduces new CI scripts and environment files for running Bazel CPU presubmits.

* Adds a ci directory at the root of the repository to store these files.
* Environment files are located in ci/envs and define new JAXCI_ environment variables to control CI build behavior.
* The build script sources these environment files and set up the build environment before running the build commands.

PiperOrigin-RevId: 695957540
2024-11-12 20:00:35 -08:00
dependabot[bot]
39e0f486a2
Bump actions/cache from 4.1.1 to 4.1.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4.1.1...6849a6489940f00c2f30c0fb92c6274307ccb58a)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 17:40:54 +00:00
Dan Foreman-Mackey
4a365670f7 Fix pre-commit to run on all files in CI. 2024-11-08 13:47:27 -05:00
Dan Foreman-Mackey
b7bdee9056 Update pre-commit workflow to cache on jax version 2024-11-01 13:12:50 -04:00
Jake VanderPlas
17ad8a9582 [array api] update test suite to latest commit 2024-10-31 14:53:28 -07:00
Dan Foreman-Mackey
ce8dba98fb Move the CUDA end-to-end example to FFI examples workflow + hosted
runner.
2024-10-31 12:21:51 -04:00
dependabot[bot]
aef405b623
Bump actions/setup-python from 5.2.0 to 5.3.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](f677139bbe...0b93645e9f)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 18:23:52 +00:00
dependabot[bot]
ae0433afdc
Bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 18:07:27 +00:00
dependabot[bot]
c9f9664266
Bump actions/cache from 4.1.1 to 4.1.2
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](3624ceb22c...6849a64899)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 17:39:11 +00:00
Michael Hudgins
ae066c299c Limit self-hosted jobs to JAX main repo 2024-10-25 19:35:16 +00:00
Peter Hawkins
e4f3f8f064 Use libtpu releases rather than libtpu-nightly for jax[tpu].
PiperOrigin-RevId: 688632409
2024-10-22 11:47:07 -07:00
jax authors
90cd8a79dc Merge pull request #24290 from jax-ml:dependabot/github_actions/actions/upload-artifact-4.4.3
PiperOrigin-RevId: 685764189
2024-10-14 11:00:05 -07:00
dependabot[bot]
93adc0e931
Bump actions/upload-artifact from 4.4.1 to 4.4.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.1 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](604373da63...b4b15b8c7c)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 17:42:00 +00:00
dependabot[bot]
0fdd653509
Bump actions/cache from 4.1.0 to 4.1.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](2cdf405574...3624ceb22c)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 17:41:55 +00:00
Michael Hudgins
2b4a3af0e5 Update CI-Build job to not reference core count as part of job name
PiperOrigin-RevId: 684430824
2024-10-10 07:07:08 -07:00
jax authors
b65be4e1ae Add Python 3.13.0 to JAX Docker images with CUDA 12.3 and CUDA 12.1.
Set max Python version to 3.13.0 in JAX Kokoro jobs.

PiperOrigin-RevId: 684216757
2024-10-09 16:48:58 -07:00
Michael Hudgins
a7b3a05f11 Update ci-build to use new runners 2024-10-09 18:50:03 +00:00
Peter Hawkins
667221ba34 Move ASAN build to Python 3.13.0. 2024-10-07 21:49:57 -04:00
jax authors
db47e18f39 Merge pull request #24169 from jax-ml:dependabot/github_actions/actions/checkout-4.2.1
PiperOrigin-RevId: 683264063
2024-10-07 11:40:19 -07:00