forked from phoenix/litellm-mirror
(ci/cd) update release body
This commit is contained in:
parent
c7e9730f82
commit
9148a3ce76
2 changed files with 4 additions and 8 deletions
3
.github/workflows/interpret_load_test.py
vendored
3
.github/workflows/interpret_load_test.py
vendored
|
@ -40,7 +40,7 @@ def interpret_results(csv_file):
|
||||||
result_str += " Failed ❌\n"
|
result_str += " Failed ❌\n"
|
||||||
print(result_str)
|
print(result_str)
|
||||||
interpreted_results_str += result_str
|
interpreted_results_str += result_str
|
||||||
print(interpreted_results_str)
|
print("interpreted_results_str() output: ", interpreted_results_str)
|
||||||
return interpreted_results_str
|
return interpreted_results_str
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@ if __name__ == "__main__":
|
||||||
csv_file = "load_test_stats.csv" # Change this to the path of your CSV file
|
csv_file = "load_test_stats.csv" # Change this to the path of your CSV file
|
||||||
interpreted_results_str = interpret_results(csv_file)
|
interpreted_results_str = interpret_results(csv_file)
|
||||||
markdown_table = csv_to_markdown(csv_file)
|
markdown_table = csv_to_markdown(csv_file)
|
||||||
print(markdown_table)
|
|
||||||
|
|
||||||
# Update release body with interpreted results
|
# Update release body with interpreted results
|
||||||
github_token = os.getenv("GITHUB_TOKEN")
|
github_token = os.getenv("GITHUB_TOKEN")
|
||||||
|
|
7
.github/workflows/load_test.yml
vendored
7
.github/workflows/load_test.yml
vendored
|
@ -23,16 +23,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
LOCUSTFILE: ".github/workflows/locustfile.py"
|
LOCUSTFILE: ".github/workflows/locustfile.py"
|
||||||
URL: "https://litellm-api.up.railway.app/"
|
URL: "https://litellm-api.up.railway.app/"
|
||||||
USERS: "1"
|
USERS: "100"
|
||||||
RATE: "10"
|
RATE: "10"
|
||||||
RUNTIME: "3s"
|
RUNTIME: "10s"
|
||||||
- name: Process Load Test Stats
|
- name: Process Load Test Stats
|
||||||
run: |
|
run: |
|
||||||
echo "Current working directory: $PWD"
|
echo "Current working directory: $PWD"
|
||||||
ls
|
ls
|
||||||
python ".github/workflows/interpret_load_test.py"
|
python ".github/workflows/interpret_load_test.py"
|
||||||
interpreted_results=$(cat load_test_interpreted_results.txt)
|
|
||||||
echo "::set-output name=interpreted_results::$interpreted_results"
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
|
@ -45,4 +43,3 @@ jobs:
|
||||||
update_latest_release: true
|
update_latest_release: true
|
||||||
tag_name: "load-test"
|
tag_name: "load-test"
|
||||||
overwrite: true
|
overwrite: true
|
||||||
default_release_body: ${{ steps.locust_run.outputs.interpreted_results }}
|
|
Loading…
Add table
Add a link
Reference in a new issue