This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various updates to "build whl" workflow (#59)
SUMMARY: * updates whl generation workflow to add testing and `testmo` integration * add top-level generate whls workflow TEST PLAN: ran manually ... --------- Co-authored-by: andy-neuma <[email protected]> Co-authored-by: Varun Sundar Rabindranath <[email protected]> Co-authored-by: Michael Goin <[email protected]>
- Loading branch information
1 parent
c961a99
commit 9b8c474
Showing
12 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: install and test whl | ||
description: 'install whl in venv and run tests' | ||
inputs: | ||
python: | ||
description: 'python version, e.g. 3.10.12' | ||
required: true | ||
venv: | ||
description: 'name for python virtual environment' | ||
required: true | ||
whl: | ||
description: 'filepath for magic_wand whl file' | ||
required: true | ||
test_directory: | ||
description: 'directory to test files' | ||
required: true | ||
test_results: | ||
description: 'desired directory for test results' | ||
required: true | ||
outputs: | ||
status: | ||
description: 'return test result' | ||
value: ${{ steps.whl_install_test.outputs.status }} | ||
runs: | ||
using: composite | ||
steps: | ||
- id: whl_install_test | ||
run: | | ||
COMMIT=${{ github.sha }} | ||
VENV="${{ inputs.venv }}-${COMMIT:0:7}" | ||
pyenv virtualenv ${VENV} | ||
source $(pyenv root)/versions/${{ inputs.python }}/envs/${VENV}/bin/activate | ||
pip3 list | ||
ls -alh dist | ||
pip3 install ${{ inputs.whl }} | ||
pip3 install -r requirements-dev.txt | ||
SUCCESS=0 | ||
./.github/scripts/run-tests -t ${{ inputs.test_directory }} -r ${{ inputs.test_results }} || SUCCESS=$? | ||
echo "status=${SUCCESS}" >> "$GITHUB_OUTPUT" | ||
exit ${SUCCESS} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: summary whl | ||
description: 'creates a summary for whl workflow' | ||
inputs: | ||
label: | ||
description: 'GHA runner label' | ||
required: true | ||
gitref: | ||
description: 'git commit hash or branch name' | ||
required: true | ||
testmo_run_url: | ||
description: 'testmo URL for this particular run' | ||
required: true | ||
python: | ||
description: 'python version info' | ||
required: true | ||
whl: | ||
description: 'whl file tested' | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
TESTMO_URL=${{ inputs.testmo_run_url }} | ||
TEST_STATUS=${{ inputs.test_status }} | ||
TEST_EMOJI=$(./.github/scripts/step-status ${TEST_STATUS}) | ||
echo "testmo URL: ${TESTMO_URL}" >> $GITHUB_STEP_SUMMARY | ||
echo "" | ||
echo "| Parameter | |" >> $GITHUB_STEP_SUMMARY | ||
echo "|---|---|" >> $GITHUB_STEP_SUMMARY | ||
echo "| label: | \`${{ inputs.label }}\` |" >> $GITHUB_STEP_SUMMARY | ||
echo "| git sha: | \`${{ github.sha }}\` |" >> $GITHUB_STEP_SUMMARY | ||
echo "| github actor: | '${{ github.actor }}' |" >> $GITHUB_STEP_SUMMARY | ||
echo "| gitref: | '${{ inputs.gitref }}' |" >> $GITHUB_STEP_SUMMARY | ||
echo "| branch name: | '${{ github.ref_name }}' |" >> $GITHUB_STEP_SUMMARY | ||
echo "| python: | ${{ inputs.python }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "| whl: | ${{ inputs.whl }} |" >> $GITHUB_STEP_SUMMARY | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: generate whl | ||
run-name: ${{ github.actor }} generating whl on branch '${{ github.ref }}' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
gitref: | ||
description: 'git commit hash or branch name' | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
|
||
AWS-AVX2-32G-A10G-24G: | ||
strategy: | ||
matrix: | ||
python: [3.8.17, 3.9.17, 3.10.12, 3.11.4] | ||
uses: ./.github/workflows/build-whl.yml | ||
with: | ||
build_label: aws-avx2-192G-4-a10g-96G | ||
timeout: 30 | ||
gitref: ${{ inputs.gitref }} | ||
Gi_per_thread: 4 | ||
python: ${{ matrix.python }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters