Skip to content

Commit 462364c

Browse files
authored
Merge pull request #37 from pytorch/fix-repo-name
Fix wrong repo name
2 parents 3478bce + 2835a50 commit 462364c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/vllm-benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
pull_request:
2424
paths:
2525
- .github/workflows/vllm-benchmark.yml
26-
- vllm-benchmarks/benchmarks/**
26+
- vllm-benchmarks/**
2727

2828
concurrency:
2929
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}

vllm-benchmarks/upload_benchmark_results.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ def parse_args() -> Any:
111111

112112
def get_git_metadata(repo_dir: str) -> Tuple[str, str]:
113113
repo = Repo(repo_dir)
114-
# Git metadata
115-
repo_name = repo.remotes.origin.url.split(".git")[0].split(":")[-1]
114+
# Git metadata, an example remote URL is https://github.com/vllm-project/vllm.git
115+
# and we want the vllm-project/vllm part
116+
repo_name = repo.remotes.origin.url.split(".git")[0].replace("https://github.com/", "")
116117
hexsha = repo.head.object.hexsha
117118
committed_date = repo.head.object.committed_date
118119

0 commit comments

Comments
 (0)