This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add pai pipeline #2092
Merged
Merged
Add pai pipeline #2092
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,59 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT license. | ||
|
||
jobs: | ||
- job: 'integration_test_paiYarn' | ||
timeoutInMinutes: 0 | ||
|
||
steps: | ||
- script: python3 -m pip install --upgrade pip setuptools --user | ||
displayName: 'Install python tools' | ||
|
||
- script: | | ||
cd deployment/pypi | ||
echo 'building prerelease package...' | ||
make build | ||
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ | ||
condition: eq( variables['build_docker_img'], 'true' ) | ||
displayName: 'build nni bdsit_wheel' | ||
|
||
- script: | | ||
source install.sh | ||
displayName: 'Install nni toolkit via source code' | ||
|
||
- script: | | ||
sudo apt-get install swig -y | ||
PATH=$HOME/.local/bin:$PATH nnictl package install --name=SMAC | ||
PATH=$HOME/.local/bin:$PATH nnictl package install --name=BOHB | ||
displayName: 'Install dependencies for integration tests in PAI mode' | ||
|
||
- script: | | ||
set -e | ||
if [ $(build_docker_img) = 'true' ] | ||
then | ||
cd deployment/pypi | ||
docker login -u $(docker_hub_user) -p $(docker_hub_pwd) | ||
echo 'updating docker file for installing nni from local...' | ||
# update Dockerfile to install NNI in docker image from whl file built in last step | ||
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile | ||
cat ../docker/Dockerfile | ||
export IMG_TAG=`date -u +%y%m%d%H%M` | ||
|
||
echo 'build and upload docker image' | ||
docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG . | ||
docker push $(test_docker_img_name):$IMG_TAG | ||
|
||
export TEST_IMG=$(test_docker_img_name):$IMG_TAG | ||
cd ../../ | ||
else | ||
export TEST_IMG=$(existing_docker_img) | ||
fi | ||
|
||
echo "TEST_IMG:$TEST_IMG" | ||
cd test | ||
python3 generate_ts_config.py --ts paiYarn --pai_host $(pai_host) --pai_user $(pai_user) --pai_pwd $(pai_pwd) --vc $(pai_virtual_cluster) \ | ||
--nni_docker_image $TEST_IMG --data_dir $(data_dir) --output_dir $(output_dir) --nni_manager_ip $(nni_manager_ip) | ||
|
||
PATH=$HOME/.local/bin:$PATH python3 config_test.py --ts paiYarn | ||
PATH=$HOME/.local/bin:$PATH python3 metrics_test.py | ||
displayName: 'integration test' |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why exclude multi phase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paiK8STrainingService does not support multi phase now, maybe will support in next release.