|
1 | 1 | name: CI - Address Sanitizer (nightly) |
2 | 2 |
|
3 | 3 | on: |
4 | | -# schedule: |
5 | | -# - cron: "0 12 * * *" # Daily at 12:00 UTC |
6 | | -# workflow_dispatch: # allows triggering the workflow run manually |
7 | | -# pull_request: # Automatically trigger on pull requests affecting this file |
8 | | -# branches: |
9 | | -# - main |
10 | | -# paths: |
11 | | -# - '**/workflows/asan.yaml' |
| 4 | + schedule: |
| 5 | + - cron: "0 12 * * *" # Daily at 12:00 UTC |
| 6 | + workflow_dispatch: # allows triggering the workflow run manually |
| 7 | + pull_request: # Automatically trigger on pull requests affecting this file |
| 8 | + branches: |
| 9 | + - main |
| 10 | + paths: |
| 11 | + - '**/workflows/asan.yaml' |
12 | 12 |
|
13 | 13 | jobs: |
14 | 14 | asan: |
15 | 15 | runs-on: linux-x86-n2-64 |
16 | 16 | container: |
17 | | - image: index.docker.io/library/ubuntu@sha256:b359f1067efa76f37863778f7b6d0e8d911e3ee8efa807ad01fbf5dc1ef9006b # ratchet:ubuntu:24.04 |
| 17 | + image: us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/ml-build:latest # ratchet:ubuntu:24.04 |
18 | 18 | strategy: |
19 | 19 | fail-fast: false |
20 | 20 | defaults: |
21 | 21 | run: |
22 | 22 | shell: bash -l {0} |
23 | 23 | steps: |
24 | | - # Install git before actions/checkout as otherwise it will download the code with the GitHub |
25 | | - # REST API and therefore any subsequent git commands will fail. |
26 | | - - name: Install clang 18 |
27 | | - env: |
28 | | - DEBIAN_FRONTEND: noninteractive |
29 | | - run: | |
30 | | - apt update |
31 | | - apt install -y clang-18 libstdc++-14-dev build-essential libssl-dev \ |
32 | | - zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git \ |
33 | | - libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ |
34 | | - libffi-dev liblzma-dev |
35 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
36 | | - with: |
37 | | - path: jax |
38 | | - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
39 | | - with: |
40 | | - repository: python/cpython |
41 | | - path: cpython |
42 | | - ref: v3.13.0 |
43 | | - - name: Build CPython with ASAN enabled |
44 | | - env: |
45 | | - ASAN_OPTIONS: detect_leaks=0 |
46 | | - run: | |
47 | | - cd cpython |
48 | | - mkdir ${GITHUB_WORKSPACE}/cpythonasan |
49 | | - CC=clang-18 CXX=clang++-18 ./configure --prefix ${GITHUB_WORKSPACE}/cpythonasan --with-address-sanitizer --without-pymalloc |
50 | | - make -j64 |
51 | | - make install |
52 | | - ${GITHUB_WORKSPACE}/cpythonasan/bin/python3 -m venv ${GITHUB_WORKSPACE}/venv |
| 24 | + # # Install git before actions/checkout as otherwise it will download the code with the GitHub |
| 25 | + # # REST API and therefore any subsequent git commands will fail. |
| 26 | + # - name: Install clang 18 |
| 27 | + # env: |
| 28 | + # DEBIAN_FRONTEND: noninteractive |
| 29 | + # run: | |
| 30 | + # apt update |
| 31 | + # apt install -y clang-18 libstdc++-14-dev build-essential libssl-dev \ |
| 32 | + # zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git \ |
| 33 | + # libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ |
| 34 | + # libffi-dev liblzma-dev |
| 35 | + # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 36 | + # with: |
| 37 | + # path: jax |
| 38 | + # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 39 | + # with: |
| 40 | + # repository: python/cpython |
| 41 | + # path: cpython |
| 42 | + # ref: v3.13.0 |
| 43 | + # - name: Build CPython with ASAN enabled |
| 44 | + # env: |
| 45 | + # ASAN_OPTIONS: detect_leaks=0 |
| 46 | + # run: | |
| 47 | + # cd cpython |
| 48 | + # mkdir ${GITHUB_WORKSPACE}/cpythonasan |
| 49 | + # CC=clang-18 CXX=clang++-18 ./configure --prefix ${GITHUB_WORKSPACE}/cpythonasan --with-address-sanitizer --without-pymalloc |
| 50 | + # make -j64 |
| 51 | + # make install |
| 52 | + # ${GITHUB_WORKSPACE}/cpythonasan/bin/python3 -m venv ${GITHUB_WORKSPACE}/venv |
53 | 53 | # Halt for testing |
54 | 54 | - name: Wait For Connection |
55 | 55 | uses: google-ml-infra/actions/ci_connection@main |
|
0 commit comments