-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Xshards test to github actions #5512
Merged
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3e023a5
Add Xshards test to github actions
1920cd1
add file path
a97e614
fix yml
468ee3e
fix csv path
d218498
fix csv path
a947387
fix yml
ed66919
add wget
fdf1215
fic typo
2a6c76c
fix typo
1366e68
change csv file path
yexinyinancy f749dfd
update pwd
yexinyinancy 5966e9f
add new line
yexinyinancy 0e9dc41
delete a line
yexinyinancy d6997ab
add time
yexinyinancy 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Orca Tutorial Xshards | ||
|
||
on: | ||
#release: | ||
# types: [published] | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- 'python/orca/src/bigdl/**' | ||
- 'python/orca/tutorial/**' | ||
- '.github/workflows/orca-tutorial-xshards.yml' | ||
schedule: | ||
- cron: '0 15 * * *' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: [self-hosted, Gondolin, ubuntu-20.04-lts] | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
#server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
|
||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.2 | ||
|
||
- name: Set up Maven Settings | ||
uses: s4u/[email protected] | ||
with: | ||
sonatypeSnapshots: true | ||
apacheSnapshots: true | ||
servers: | | ||
[{ | ||
"id": "central", | ||
"configuration": { | ||
"httpConfiguration": { | ||
"all": { | ||
"connectionTimeout": "3600000", | ||
"readTimeout": "3600000" | ||
} | ||
} | ||
} | ||
}] | ||
mirrors: '[{"id": "ardaNexus", "name": "ardaNexus", "mirrorOf": "*", "url": "${NEXUS_URL}" }]' | ||
|
||
- name: Setup Env | ||
run: | | ||
apt-get update | ||
apt-get install wget | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools==58.0.4 | ||
pip uninstall -y bigdl-friesian bigdl-friesian-spark3 bigdl-dllib bigdl-dllib-spark3 bigdl-orca pyspark bigdl-orca-spark3 bigdl-chronos bigdl-chronos-spark3 bigdl-friesian bigdl-friesian-spark3 | ||
pip install -i https://pypi.org/simple --pre --upgrade bigdl-orca-spark3 | ||
- name: Run Test | ||
#run: python -m build | ||
run: | | ||
export SPARK_LOCAL_HOSTNAME=localhost | ||
export FTP_URI=ftp://zoo:[email protected] | ||
chmod a+x python/orca/dev/test/run-tutorial-xshards.sh | ||
python/orca/dev/test/run-tutorial-xshards.sh | ||
env: | ||
BIGDL_ROOT: ${{ github.workspace }} | ||
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,39 @@ | ||
# | ||
# Copyright 2016 The BigDL Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
export FTP_URI=$FTP_URI | ||
set -ex | ||
|
||
cd "`dirname $0`" | ||
|
||
export PYSPARK_PYTHON=python | ||
export PYSPARK_DRIVER_PYTHON=python | ||
|
||
ray stop -f | ||
|
||
cd ../../tutorial/xshards | ||
echo "Running RayOnSpark tests" | ||
|
||
if [ -f ${BIGDL_ROOT}/python/orca/tutorial/xshards/train.csv ] | ||
then | ||
echo "train.csv already exists" | ||
else | ||
wget -nv $FTP_URI/analytics-zoo-data/xshards/train.csv -P ${BIGDL_ROOT}/python/orca/tutorial/xshards/ | ||
fi | ||
|
||
#sed -i "s/train.csv/train.csv/g" ${BIGDL_ROOT}/python/orca/tutorial/xshards/tabular_playground_series.py | ||
|
||
python tabular_playground_series.py |
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.
new line at the end