Skip to content

Commit 9b00313

Browse files
authored
Merge branch 'master' into async-llm
2 parents f722562 + cbe0135 commit 9b00313

File tree

124 files changed

+3483
-1149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+3483
-1149
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
timeout-minutes: 10
2525

2626
steps:
27-
- uses: actions/checkout@v4.1.7
27+
- uses: actions/checkout@v4.2.0
2828
- uses: actions/setup-python@v5
2929
with:
3030
python-version: 3.12
@@ -39,7 +39,7 @@ jobs:
3939
timeout-minutes: 10
4040

4141
steps:
42-
- uses: actions/checkout@v4.1.7
42+
- uses: actions/checkout@v4.2.0
4343
- uses: actions/setup-python@v5
4444
with:
4545
python-version: 3.12
@@ -54,7 +54,7 @@ jobs:
5454
timeout-minutes: 10
5555

5656
steps:
57-
- uses: actions/checkout@v4.1.7
57+
- uses: actions/checkout@v4.2.0
5858
- uses: actions/setup-python@v5
5959
with:
6060
python-version: 3.12
@@ -70,19 +70,22 @@ jobs:
7070
# This will also trigger "make dist" that creates the Python packages
7171
make aws-lambda-layer
7272
- name: Upload Python Packages
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
75-
name: ${{ github.sha }}
75+
name: artifact-build_lambda_layer
7676
path: |
7777
dist/*
78+
if-no-files-found: 'error'
79+
# since this artifact will be merged, compression is not necessary
80+
compression-level: '0'
7881

7982
docs:
8083
name: Build SDK API Doc
8184
runs-on: ubuntu-latest
8285
timeout-minutes: 10
8386

8487
steps:
85-
- uses: actions/checkout@v4.1.7
88+
- uses: actions/checkout@v4.2.0
8689
- uses: actions/setup-python@v5
8790
with:
8891
python-version: 3.12
@@ -91,7 +94,23 @@ jobs:
9194
make apidocs
9295
cd docs/_build && zip -r gh-pages ./
9396
94-
- uses: actions/[email protected]
97+
- uses: actions/upload-artifact@v4
98+
with:
99+
name: artifact-docs
100+
path: |
101+
docs/_build/gh-pages.zip
102+
if-no-files-found: 'error'
103+
# since this artifact will be merged, compression is not necessary
104+
compression-level: '0'
105+
106+
merge:
107+
name: Create Release Artifact
108+
runs-on: ubuntu-latest
109+
needs: [build_lambda_layer, docs]
110+
steps:
111+
- uses: actions/upload-artifact/merge@v4
95112
with:
113+
# Craft expects release assets from github to be a single artifact named after the sha.
96114
name: ${{ github.sha }}
97-
path: docs/_build/gh-pages.zip
115+
pattern: artifact-*
116+
delete-merged: true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v4.1.7
49+
uses: actions/checkout@v4.2.0
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
name: "Release a new version"
2020
steps:
21-
- uses: actions/checkout@v4.1.7
21+
- uses: actions/checkout@v4.2.0
2222
with:
2323
token: ${{ secrets.GH_RELEASE_PAT }}
2424
fetch-depth: 0

.github/workflows/test-integrations-ai.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.7","3.9","3.11","3.12"]
30+
python-version: ["3.7","3.9","3.11","3.12","3.13"]
3131
# python3.6 reached EOL and is no longer being supported on
3232
# new versions of hosted runners on Github Actions
3333
# ubuntu-20.04 is the last version that supported python3.6
3434
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
3535
os: [ubuntu-20.04]
3636
steps:
37-
- uses: actions/checkout@v4.1.7
37+
- uses: actions/checkout@v4.2.0
3838
- uses: actions/setup-python@v5
3939
with:
4040
python-version: ${{ matrix.python-version }}
@@ -66,43 +66,47 @@ jobs:
6666
set -x # print commands that are executed
6767
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest"
6868
- name: Generate coverage XML (Python 3.6)
69-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
69+
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
7070
run: |
7171
export COVERAGE_RCFILE=.coveragerc36
7272
coverage combine .coverage-sentry-*
7373
coverage xml --ignore-errors
7474
- name: Generate coverage XML
75-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
75+
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
7676
run: |
7777
coverage combine .coverage-sentry-*
7878
coverage xml
7979
- name: Upload coverage to Codecov
8080
if: ${{ !cancelled() }}
81-
uses: codecov/codecov-action@v4.5.0
81+
uses: codecov/codecov-action@v4.6.0
8282
with:
8383
token: ${{ secrets.CODECOV_TOKEN }}
8484
files: coverage.xml
85+
# make sure no plugins alter our coverage reports
86+
plugin: noop
87+
verbose: true
8588
- name: Upload test results to Codecov
8689
if: ${{ !cancelled() }}
8790
uses: codecov/test-results-action@v1
8891
with:
8992
token: ${{ secrets.CODECOV_TOKEN }}
9093
files: .junitxml
94+
verbose: true
9195
test-ai-pinned:
9296
name: AI (pinned)
9397
timeout-minutes: 30
9498
runs-on: ${{ matrix.os }}
9599
strategy:
96100
fail-fast: false
97101
matrix:
98-
python-version: ["3.7","3.9","3.11","3.12"]
102+
python-version: ["3.7","3.9","3.11","3.12","3.13"]
99103
# python3.6 reached EOL and is no longer being supported on
100104
# new versions of hosted runners on Github Actions
101105
# ubuntu-20.04 is the last version that supported python3.6
102106
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
103107
os: [ubuntu-20.04]
104108
steps:
105-
- uses: actions/checkout@v4.1.7
109+
- uses: actions/checkout@v4.2.0
106110
- uses: actions/setup-python@v5
107111
with:
108112
python-version: ${{ matrix.python-version }}
@@ -134,28 +138,32 @@ jobs:
134138
set -x # print commands that are executed
135139
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
136140
- name: Generate coverage XML (Python 3.6)
137-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
141+
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
138142
run: |
139143
export COVERAGE_RCFILE=.coveragerc36
140144
coverage combine .coverage-sentry-*
141145
coverage xml --ignore-errors
142146
- name: Generate coverage XML
143-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
147+
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
144148
run: |
145149
coverage combine .coverage-sentry-*
146150
coverage xml
147151
- name: Upload coverage to Codecov
148152
if: ${{ !cancelled() }}
149-
uses: codecov/codecov-action@v4.5.0
153+
uses: codecov/codecov-action@v4.6.0
150154
with:
151155
token: ${{ secrets.CODECOV_TOKEN }}
152156
files: coverage.xml
157+
# make sure no plugins alter our coverage reports
158+
plugin: noop
159+
verbose: true
153160
- name: Upload test results to Codecov
154161
if: ${{ !cancelled() }}
155162
uses: codecov/test-results-action@v1
156163
with:
157164
token: ${{ secrets.CODECOV_TOKEN }}
158165
files: .junitxml
166+
verbose: true
159167
check_required_tests:
160168
name: All AI tests passed
161169
needs: test-ai-pinned

.github/workflows/test-integrations-aws-lambda.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
name: permissions check
3333
runs-on: ubuntu-20.04
3434
steps:
35-
- uses: actions/checkout@v4.1.7
35+
- uses: actions/checkout@v4.2.0
3636
with:
3737
persist-credentials: false
3838
- name: Check permissions on PR
@@ -67,7 +67,7 @@ jobs:
6767
os: [ubuntu-20.04]
6868
needs: check-permissions
6969
steps:
70-
- uses: actions/checkout@v4.1.7
70+
- uses: actions/checkout@v4.2.0
7171
with:
7272
ref: ${{ github.event.pull_request.head.sha || github.ref }}
7373
- uses: actions/setup-python@v5
@@ -85,28 +85,32 @@ jobs:
8585
set -x # print commands that are executed
8686
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda"
8787
- name: Generate coverage XML (Python 3.6)
88-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
88+
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
8989
run: |
9090
export COVERAGE_RCFILE=.coveragerc36
9191
coverage combine .coverage-sentry-*
9292
coverage xml --ignore-errors
9393
- name: Generate coverage XML
94-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
94+
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
9595
run: |
9696
coverage combine .coverage-sentry-*
9797
coverage xml
9898
- name: Upload coverage to Codecov
9999
if: ${{ !cancelled() }}
100-
uses: codecov/codecov-action@v4.5.0
100+
uses: codecov/codecov-action@v4.6.0
101101
with:
102102
token: ${{ secrets.CODECOV_TOKEN }}
103103
files: coverage.xml
104+
# make sure no plugins alter our coverage reports
105+
plugin: noop
106+
verbose: true
104107
- name: Upload test results to Codecov
105108
if: ${{ !cancelled() }}
106109
uses: codecov/test-results-action@v1
107110
with:
108111
token: ${{ secrets.CODECOV_TOKEN }}
109112
files: .junitxml
113+
verbose: true
110114
check_required_tests:
111115
name: All AWS Lambda tests passed
112116
needs: test-aws_lambda-pinned

.github/workflows/test-integrations-cloud-computing.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.8","3.11","3.12"]
30+
python-version: ["3.8","3.11","3.12","3.13"]
3131
# python3.6 reached EOL and is no longer being supported on
3232
# new versions of hosted runners on Github Actions
3333
# ubuntu-20.04 is the last version that supported python3.6
3434
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
3535
os: [ubuntu-20.04]
3636
steps:
37-
- uses: actions/checkout@v4.1.7
37+
- uses: actions/checkout@v4.2.0
3838
- uses: actions/setup-python@v5
3939
with:
4040
python-version: ${{ matrix.python-version }}
@@ -62,43 +62,47 @@ jobs:
6262
set -x # print commands that are executed
6363
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest"
6464
- name: Generate coverage XML (Python 3.6)
65-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
65+
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
6666
run: |
6767
export COVERAGE_RCFILE=.coveragerc36
6868
coverage combine .coverage-sentry-*
6969
coverage xml --ignore-errors
7070
- name: Generate coverage XML
71-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
71+
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
7272
run: |
7373
coverage combine .coverage-sentry-*
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/codecov-action@v4.5.0
77+
uses: codecov/codecov-action@v4.6.0
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
81+
# make sure no plugins alter our coverage reports
82+
plugin: noop
83+
verbose: true
8184
- name: Upload test results to Codecov
8285
if: ${{ !cancelled() }}
8386
uses: codecov/test-results-action@v1
8487
with:
8588
token: ${{ secrets.CODECOV_TOKEN }}
8689
files: .junitxml
90+
verbose: true
8791
test-cloud_computing-pinned:
8892
name: Cloud Computing (pinned)
8993
timeout-minutes: 30
9094
runs-on: ${{ matrix.os }}
9195
strategy:
9296
fail-fast: false
9397
matrix:
94-
python-version: ["3.6","3.7","3.9","3.11","3.12"]
98+
python-version: ["3.6","3.7","3.9","3.11","3.12","3.13"]
9599
# python3.6 reached EOL and is no longer being supported on
96100
# new versions of hosted runners on Github Actions
97101
# ubuntu-20.04 is the last version that supported python3.6
98102
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
99103
os: [ubuntu-20.04]
100104
steps:
101-
- uses: actions/checkout@v4.1.7
105+
- uses: actions/checkout@v4.2.0
102106
- uses: actions/setup-python@v5
103107
with:
104108
python-version: ${{ matrix.python-version }}
@@ -126,28 +130,32 @@ jobs:
126130
set -x # print commands that are executed
127131
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp"
128132
- name: Generate coverage XML (Python 3.6)
129-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
133+
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
130134
run: |
131135
export COVERAGE_RCFILE=.coveragerc36
132136
coverage combine .coverage-sentry-*
133137
coverage xml --ignore-errors
134138
- name: Generate coverage XML
135-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
139+
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
136140
run: |
137141
coverage combine .coverage-sentry-*
138142
coverage xml
139143
- name: Upload coverage to Codecov
140144
if: ${{ !cancelled() }}
141-
uses: codecov/codecov-action@v4.5.0
145+
uses: codecov/codecov-action@v4.6.0
142146
with:
143147
token: ${{ secrets.CODECOV_TOKEN }}
144148
files: coverage.xml
149+
# make sure no plugins alter our coverage reports
150+
plugin: noop
151+
verbose: true
145152
- name: Upload test results to Codecov
146153
if: ${{ !cancelled() }}
147154
uses: codecov/test-results-action@v1
148155
with:
149156
token: ${{ secrets.CODECOV_TOKEN }}
150157
files: .junitxml
158+
verbose: true
151159
check_required_tests:
152160
name: All Cloud Computing tests passed
153161
needs: test-cloud_computing-pinned

0 commit comments

Comments
 (0)