Skip to content

Commit

Permalink
chore(e2e): install the correct version in e2e when run job (#2553)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenxinxing authored Jul 25, 2023
1 parent a7ede5b commit 2bd0b74
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/external/base-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ welcome() {
echo "StarWhale Base Entrypoint"
echo "Date: `date -u +%Y-%m-%dT%H:%M:%SZ`"
echo "Starwhale Version: ${SW_VERSION}"
echo "Python Version: ${SW_RUNTIME_VERSION}"
echo "Python Version: ${PYTHON_VERSION}"
echo "Runtime Restored: ${RUNTIME_RESTORED}"
echo "Command type(Whether use custom command): ${USE_CUSTOM_CMD}"
echo "Run: $1"
Expand Down
5 changes: 3 additions & 2 deletions example/runtime/pytorch-e2e/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
starwhale[serve]
# use e2e version
starwhale[serve]==${PYPI_RELEASE_VERSION}
# for pfp
pycocotools
# for ucf101
Expand All @@ -16,4 +17,4 @@ torch==1.13.1; python_version=='3.7'
torchaudio
torchdata
torchtext
torchvision
torchvision
11 changes: 11 additions & 0 deletions scripts/client_test/update_controller_setting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ resourcePoolSetting:
- name: "memory"
defaults: 3145728
- name: "nvidia.com/gpu"
pypiSetting:
indexUrl: "http://$NEXUS_HOSTNAME:$PORT_NEXUS/repository/$REPO_NAME_PYPI/simple"
extraIndexUrl: "$SW_PYPI_EXTRA_INDEX_URL"
trustedHost: "$NEXUS_HOSTNAME"
retries: 10
timeout: 90
datasetBuild:
resourcePool: "default"
image: "docker-registry.starwhale.cn/star-whale/base:latest"
clientVersion: "$PYPI_RELEASE_VERSION"
pythonVersion: "3.10"
EOF
)
curl -X 'POST' \
Expand Down

0 comments on commit 2bd0b74

Please sign in to comment.