-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from apache/dev
upddate
- Loading branch information
Showing
350 changed files
with
16,850 additions
and
4,885 deletions.
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,67 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You 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. | ||
# | ||
|
||
on: ["push", "pull_request"] | ||
env: | ||
DOCKER_DIR: ./docker | ||
LOG_DIR: /tmp/dolphinscheduler | ||
|
||
name: e2e Test | ||
|
||
jobs: | ||
|
||
build: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build Image | ||
run: | | ||
export VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` | ||
sh ./dockerfile/hooks/build | ||
- name: Docker Run | ||
run: | | ||
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'` | ||
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -p 8888:8888 dolphinscheduler:$VERSION all | ||
- name: Check Server Status | ||
run: sh ./dockerfile/hooks/check | ||
- name: Prepare e2e env | ||
run: | | ||
sudo apt-get install -y libxss1 libappindicator1 libindicator7 xvfb unzip | ||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
sudo dpkg -i google-chrome*.deb | ||
sudo apt-get install -f -y | ||
wget -N https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_linux64.zip | ||
unzip chromedriver_linux64.zip | ||
sudo mv -f chromedriver /usr/local/share/chromedriver | ||
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver | ||
- name: Run e2e Test | ||
run: cd ./e2e && mvn -B clean test | ||
- name: Collect logs | ||
run: | | ||
mkdir -p ${LOG_DIR} | ||
docker logs dolphinscheduler > ${LOG_DIR}/dolphinscheduler.txt | ||
continue-on-error: true |
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
158 changes: 158 additions & 0 deletions
158
ambari_plugin/common-services/DOLPHIN/1.2.1/alerts.json
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,158 @@ | ||
{ | ||
"DOLPHIN": { | ||
"service": [], | ||
"DOLPHIN_API": [ | ||
{ | ||
"name": "dolphin_api_port_check", | ||
"label": "dolphin_api_port_check", | ||
"description": "dolphin_api_port_check.", | ||
"interval": 10, | ||
"scope": "ANY", | ||
"source": { | ||
"type": "PORT", | ||
"uri": "{{dolphin-application-api/server.port}}", | ||
"default_port": 12345, | ||
"reporting": { | ||
"ok": { | ||
"text": "TCP OK - {0:.3f}s response on port {1}" | ||
}, | ||
"warning": { | ||
"text": "TCP OK - {0:.3f}s response on port {1}", | ||
"value": 1.5 | ||
}, | ||
"critical": { | ||
"text": "Connection failed: {0} to {1}:{2}", | ||
"value": 5.0 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"DOLPHIN_LOGGER": [ | ||
{ | ||
"name": "dolphin_logger_port_check", | ||
"label": "dolphin_logger_port_check", | ||
"description": "dolphin_logger_port_check.", | ||
"interval": 10, | ||
"scope": "ANY", | ||
"source": { | ||
"type": "PORT", | ||
"uri": "{{dolphin-common/loggerserver.rpc.port}}", | ||
"default_port": 50051, | ||
"reporting": { | ||
"ok": { | ||
"text": "TCP OK - {0:.3f}s response on port {1}" | ||
}, | ||
"warning": { | ||
"text": "TCP OK - {0:.3f}s response on port {1}", | ||
"value": 1.5 | ||
}, | ||
"critical": { | ||
"text": "Connection failed: {0} to {1}:{2}", | ||
"value": 5.0 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"DOLPHIN_MASTER": [ | ||
{ | ||
"name": "DOLPHIN_MASTER_CHECK", | ||
"label": "check dolphin scheduler master status", | ||
"description": "", | ||
"interval":10, | ||
"scope": "HOST", | ||
"enabled": true, | ||
"source": { | ||
"type": "SCRIPT", | ||
"path": "DOLPHIN/1.2.1/package/alerts/alert_dolphin_scheduler_status.py", | ||
"parameters": [ | ||
|
||
{ | ||
"name": "connection.timeout", | ||
"display_name": "Connection Timeout", | ||
"value": 5.0, | ||
"type": "NUMERIC", | ||
"description": "The maximum time before this alert is considered to be CRITICAL", | ||
"units": "seconds", | ||
"threshold": "CRITICAL" | ||
}, | ||
{ | ||
"name": "alertName", | ||
"display_name": "alertName", | ||
"value": "DOLPHIN_MASTER", | ||
"type": "STRING", | ||
"description": "alert name" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"DOLPHIN_WORKER": [ | ||
{ | ||
"name": "DOLPHIN_WORKER_CHECK", | ||
"label": "check dolphin scheduler worker status", | ||
"description": "", | ||
"interval":10, | ||
"scope": "HOST", | ||
"enabled": true, | ||
"source": { | ||
"type": "SCRIPT", | ||
"path": "DOLPHIN/1.2.1/package/alerts/alert_dolphin_scheduler_status.py", | ||
"parameters": [ | ||
|
||
{ | ||
"name": "connection.timeout", | ||
"display_name": "Connection Timeout", | ||
"value": 5.0, | ||
"type": "NUMERIC", | ||
"description": "The maximum time before this alert is considered to be CRITICAL", | ||
"units": "seconds", | ||
"threshold": "CRITICAL" | ||
}, | ||
{ | ||
"name": "alertName", | ||
"display_name": "alertName", | ||
"value": "DOLPHIN_WORKER", | ||
"type": "STRING", | ||
"description": "alert name" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"DOLPHIN_ALERT": [ | ||
{ | ||
"name": "DOLPHIN_DOLPHIN_ALERT_CHECK", | ||
"label": "check dolphin scheduler alert status", | ||
"description": "", | ||
"interval":10, | ||
"scope": "HOST", | ||
"enabled": true, | ||
"source": { | ||
"type": "SCRIPT", | ||
"path": "DOLPHIN/1.2.1/package/alerts/alert_dolphin_scheduler_status.py", | ||
"parameters": [ | ||
|
||
{ | ||
"name": "connection.timeout", | ||
"display_name": "Connection Timeout", | ||
"value": 5.0, | ||
"type": "NUMERIC", | ||
"description": "The maximum time before this alert is considered to be CRITICAL", | ||
"units": "seconds", | ||
"threshold": "CRITICAL" | ||
}, | ||
{ | ||
"name": "alertName", | ||
"display_name": "alertName", | ||
"value": "DOLPHIN_ALERT", | ||
"type": "STRING", | ||
"description": "alert name" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.