Skip to content

Commit 4ae2bae

Browse files
authored
Merge branch 'main' into main
2 parents 661e8e4 + 61205f8 commit 4ae2bae

13 files changed

+428
-118
lines changed

.github/workflows/development.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,20 @@ jobs:
9191
matrix:
9292
python: ["3.9"]
9393
steps:
94-
- uses: actions/checkout@v4
94+
- name: Checkout code
95+
uses: actions/checkout@v4
96+
with:
97+
fetch-depth: 0
9598
- name: Set up Python
9699
uses: actions/setup-python@v5
97100
with:
98101
python-version: ${{ matrix.python }}
99102
- name: Install dependencies
100-
run: pip install toml loguru tox
103+
run: pip install tox
101104
- name: Build the package
102105
run: |
103106
export GUIDELLM_BUILD_TYPE=dev
104-
export GUIDELLM_BUILD_NUMBER=${{ github.event.pull_request.number }}
107+
export GUIDELLM_BUILD_ITERATION=${{ github.event.pull_request.number }}
105108
tox -e build
106109
- name: Upload build artifacts
107110
id: artifact-upload
@@ -112,9 +115,23 @@ jobs:
112115
compression-level: 6
113116
if-no-files-found: error
114117
retention-days: 30
118+
- name: Generate GitHub App token
119+
id: app-token
120+
uses: actions/create-github-app-token@v1
121+
with:
122+
app-id: ${{ secrets.GH_NM_REDHAT_AUTOMATION_APP_ID }}
123+
private-key: ${{ secrets.GH_NM_REDHAT_AUTOMATION_APP_PRIVATE_KEY }}
115124
- name: Comment Install instructions
116-
uses: mshick/add-pr-comment@v2
125+
uses: actions/github-script@v7
117126
with:
118-
message: |
119-
Build artifacts (.whl and .tar.gz) are available for download for up to 30 days.
120-
They are located at ${{ steps.artifact-upload.outputs.artifact-url }}
127+
github-token: ${{ steps.app-token.outputs.token }}
128+
script: |
129+
github.rest.issues.createComment({
130+
issue_number: context.issue.number,
131+
owner: context.repo.owner,
132+
repo: context.repo.repo,
133+
body: `📦 **Build Artifacts Available**
134+
The build artifacts (\`.whl\` and \`.tar.gz\`) have been successfully generated and are available for download: ${{ steps.artifact-upload.outputs.artifact-url }}.
135+
They will be retained for **up to 30 days**.
136+
`
137+
})

.github/workflows/nightly.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install dependencies
2020
run: pip install tox
2121
- name: Run unit tests
22-
run: tox -e test-unit -- -m --cov=guidellm --cov-report=term-missing --cov-fail-under=75
22+
run: tox -e test-unit -- --cov=guidellm --cov-report=term-missing --cov-fail-under=75
2323

2424
integration-tests:
2525
runs-on: ubuntu-latest
@@ -60,17 +60,19 @@ jobs:
6060
matrix:
6161
python: ["3.9"]
6262
steps:
63-
- uses: actions/checkout@v4
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
with:
66+
fetch-depth: 0
6467
- name: Set up Python
6568
uses: actions/setup-python@v5
6669
with:
6770
python-version: ${{ matrix.python }}
6871
- name: Install dependencies
69-
run: pip install toml loguru tox
72+
run: pip install tox
7073
- name: Build the package
7174
run: |
7275
export GUIDELLM_BUILD_TYPE=nightly
73-
export GUIDELLM_BUILD_NUMBER=${{ github.run_number }}
7476
tox -e build
7577
- name: Find wheel artifact
7678
id: find-asset-whl
@@ -103,4 +105,4 @@ jobs:
103105
retention-days: 30
104106
- name: Log artifact location
105107
run: |
106-
echo "Artifacts uploaded to: https://api.github.com/repos/neuralmagic/guidellm/actions/artifacts/${{ steps.artifact-upload.outputs.artifact-id }}"
108+
echo "Artifacts uploaded to: ${{ steps.artifact-upload.outputs.artifact-url }}"

.github/workflows/release-candidate.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- 'release/*'
7-
create:
8-
branches:
9-
- 'release/*'
107

118
jobs:
129
unit-tests:
@@ -64,17 +61,19 @@ jobs:
6461
matrix:
6562
python: ["3.9"]
6663
steps:
67-
- uses: actions/checkout@v4
64+
- name: Checkout code
65+
uses: actions/checkout@v4
66+
with:
67+
fetch-depth: 0
6868
- name: Set up Python
6969
uses: actions/setup-python@v5
7070
with:
7171
python-version: ${{ matrix.python }}
7272
- name: Install dependencies
73-
run: pip install toml loguru tox
73+
run: pip install tox
7474
- name: Build the package
7575
run: |
76-
export GUIDELLM_BUILD_TYPE=release_candidate
77-
export GUIDELLM_BUILD_NUMBER=${{ github.run_number }}
76+
export GUIDELLM_BUILD_TYPE=candidate
7877
tox -e build
7978
- name: Upload build artifacts
8079
id: artifact-upload
@@ -87,7 +86,7 @@ jobs:
8786
retention-days: 30
8887
- name: Log artifact location
8988
run: |
90-
echo "Artifacts uploaded to: https://api.github.com/repos/neuralmagic/guidellm/actions/artifacts/${{ steps.artifact-upload.outputs.artifact-id }}"
89+
echo "Artifacts uploaded to: ${{ steps.artifact-upload.outputs.artifact-url }}"
9190
- name: Push wheel to PyPI
9291
uses: neuralmagic/nm-actions/actions/publish-whl@v1.0.0
9392
with:

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ jobs:
1212
matrix:
1313
python: ["3.9"]
1414
steps:
15-
- uses: actions/checkout@v4
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
1619
- name: Set up Python
1720
uses: actions/setup-python@v5
1821
with:
1922
python-version: ${{ matrix.python }}
2023
- name: Install dependencies
21-
run: pip install toml loguru tox
24+
run: pip install tox
2225
- name: Build the package
2326
run: |
2427
export GUIDELLM_BUILD_TYPE=release
25-
export GUIDELLM_BUILD_NUMBER=${{ github.run_number }}
2628
tox -e build
2729
- name: Upload build artifacts
2830
id: artifact-upload
@@ -35,7 +37,7 @@ jobs:
3537
retention-days: 90
3638
- name: Log artifact location
3739
run: |
38-
echo "Artifacts uploaded to: https://api.github.com/repos/neuralmagic/guidellm/actions/artifacts/${{ steps.artifact-upload.outputs.artifact-id }}"
40+
echo "Artifacts uploaded to: Artifacts uploaded to: ${{ steps.artifact-upload.outputs.artifact-url }}"
3941
- name: Push wheel to PyPI
4042
uses: neuralmagic/nm-actions/actions/publish-whl@v1.0.0
4143
with:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# build version files
2+
src/guidellm/version.txt
3+
src/guidellm/version.py
4+
15
# Output files
26
benchmarks.json
37
benchmarks.yaml

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ repos:
2626
pydantic_settings,
2727
pyyaml,
2828
respx,
29-
requests,
3029
rich,
30+
setuptools,
31+
setuptools-git-versioning,
3132
transformers,
3233

3334
# dev dependencies
3435
pytest,
3536
pydantic_settings,
36-
requests-mock,
3737

3838
# types
3939
types-click,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Our comprehensive documentation offers detailed guides and resources to help you
163163

164164
- [**Installation Guide**](https://github.com/neuralmagic/guidellm/tree/main/docs/install.md) - This guide provides step-by-step instructions for installing GuideLLM, including prerequisites and setup tips.
165165
- [**Backends Guide**](https://github.com/neuralmagic/guidellm/tree/main/docs/backends.md) - A comprehensive overview of supported backends and how to set them up for use with GuideLLM.
166+
- [**Data/Datasets Guide**](https://github.com/neuralmagic/guidellm/tree/main/docs/datasets.md) - Information on supported datasets, including how to use them for benchmarking.
166167
- [**Metrics Guide**](https://github.com/neuralmagic/guidellm/tree/main/docs/metrics.md) - Detailed explanations of the metrics used in GuideLLM, including definitions and how to interpret them.
167168
- [**Outputs Guide**](https://github.com/neuralmagic/guidellm/tree/main/docs/outputs.md) - Information on the different output formats supported by GuideLLM and how to use them.
168169
- [**Architecture Overview**](https://github.com/neuralmagic/guidellm/tree/main/docs/architecture.md) - A detailed look at GuideLLM's design, components, and how they interact.

0 commit comments

Comments
 (0)