Skip to content
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

cicd: fix minor issues in github actions workflows #5539

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/dllib-scala-ut-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Run tests
shell: bash
run: |
export SPARK_LOCAL_HOSTNAME=localhost
export KERAS_BACKEND=tensorflow
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/friesian-scala-ut-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Set up redis
shell: bash
run: |
sudo mkdir -p /usr/share/keyrings
curl -fsSL https://packages.redis.io/gpg | sudo -E gpg --yes --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
Expand All @@ -14,6 +15,7 @@ runs:
redis-cli ping

- name: Set up mkl
shell: bash
run: |
cd /tmp
curl -O http://10.239.45.10:8081/repository/raw/analytics-zoo-data/faiss-lib.zip
Expand All @@ -23,13 +25,15 @@ runs:
sudo ln -fs /lib/libmkl_intel_lp64.so /lib/libmkl_intel_lp64.so.2

- name: Prepare data
shell: bash
run: |
mkdir -p /tmp/friesian-unittest
cd /tmp/friesian-unittest
curl -O http://10.239.45.10:8081/repository/raw/analytics-zoo-data/friesian-serving-upload.tar.gz
tar -zxf friesian-serving-upload.tar.gz

- name: Run tests
shell: bash
run: |
export SPARK_LOCAL_HOSTNAME=localhost
export KERAS_BACKEND=tensorflow
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/orca-jep-exampletest-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Setup Env
shell: bash
run: |
apt-get update
apt-get install wget
Expand All @@ -12,6 +13,7 @@ runs:
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
Expand All @@ -21,8 +23,8 @@ runs:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r python/orca/dev/example/requirements-jep.txt
pip uninstall -y opencv-python-headless
pip install opencv-python-headless

- name: Run Test
shell: bash
run: |
export SPARK_LOCAL_HOSTNAME=localhost
chmod a+x python/orca/dev/example/run-example-tests-jep.sh
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/orca-python-exampletest-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Setup Env
shell: bash
run: |
apt-get update
apt-get install wget
Expand All @@ -14,6 +15,7 @@ runs:
python-version: '3.7.6'

- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools==58.0.4
Expand All @@ -24,6 +26,7 @@ runs:
pip uninstall -y opencv-python-headless
pip install opencv-python-headless
- name: Run Test
shell: bash
run: |
export MAVEN_OPTS="-XX:MaxPermSize=3G -Xmx100G -XX:ReservedCodeCacheSize=512m"
export _JAVA_OPTIONS="-Xmx100G -XX:MaxPermSize=3G"
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/orca-python-exampletest-ray-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Setup Env
shell: bash
run: |
apt-get update
apt-get install wget
Expand All @@ -14,6 +15,7 @@ runs:
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
Expand All @@ -25,6 +27,7 @@ runs:
pip install opencv-python-headless

- name: Run Test
shell: bash
run: |
export SPARK_LOCAL_HOSTNAME=localhost
chmod a+x python/orca/dev/example/run-example-test-ray.sh
Expand Down
1 change: 1 addition & 0 deletions .github/actions/ppml-scala-ut-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ runs:
using: "composite"
steps:
- name: Run tests
shell: bash
run: |
export SPARK_LOCAL_HOSTNAME=localhost
export KERAS_BACKEND=tensorflow
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manually_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:


bigdl-ppml-trusted-big-data-ml-python-graphene:
if: ${{ github.event.inputs.artifact == 'docker-bigdl-ppml-trusted-big-data-ml-python-graphene' || github.event.inputs.artifact == 'all' }}
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-big-data-ml-python-graphene' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire]

steps:
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,48 +205,6 @@ jobs:
docker push 10.239.45.10/arda/${IMAGE}-spark-3.1.2:${TAG}
docker rmi -f ${IMAGE}-spark-3.1.2:${TAG}


needs: scala-build
if: ${{ github.event.schedule == '0 12 * * 1' || github.event.inputs.artifact == 'docker-kms' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire]

steps:
- uses: actions/checkout@v3
- name: Set the variable
env:
DEFAULT_TAG: '0.3.0'
run: echo "TAG=${{ github.event.inputs.kmsTag || env.DEFAULT_TAG }}" >> $GITHUB_ENV
- name: docker deploy kms-util
run: |
export IMAGE=intelanalytics/kms-utils
cd ppml/services/kms-utils/docker
echo "########################################"
echo "############## kms-utils ###############"
echo "########################################"
docker build \
--no-cache=true \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \
--build-arg JDK_URL=${JDK_URL} \
-t $IMAGE:$TAG -f ./Dockerfile .
docker tag ${IMAGE}:${TAG} 10.239.45.10/arda/${IMAGE}:${TAG}
docker push 10.239.45.10/arda/${IMAGE}:${TAG}
docker rmi -f ${IMAGE}:${TAG} 10.239.45.10/arda/${IMAGE}:${TAG}
- name: docker deploy pccs
run: |
export IMAGE=intelanalytics/pccs
cd ppml/services/pccs/docker
echo "########################################"
echo "################# PCCS #################"
echo "########################################"
docker build \
--no-cache=true \
--build-arg http_proxy=${HTTP_PROXY} \
--build-arg https_proxy=${HTTPS_PROXY} \
-t $IMAGE:$TAG -f ./Dockerfile .
docker tag ${IMAGE}:${TAG} 10.239.45.10/arda/${IMAGE}:${TAG}
docker push 10.239.45.10/arda/${IMAGE}:${TAG}
docker rmi -f ${IMAGE}:${TAG} 10.239.45.10/arda/${IMAGE}:${TAG}

python-build:
if: ${{ github.event.schedule || github.event.inputs.artifact == 'python-build' || github.event.inputs.artifact == 'all' }}
Expand Down