forked from TencentBlueKing/bk-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f4ddaef
Showing
8,273 changed files
with
1,377,377 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,15 @@ | ||
--- | ||
name: Bug Report | ||
about: Report a bug encountered while operating bk-log | ||
labels: kind/bug | ||
--- | ||
|
||
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!--> | ||
|
||
**What happened**: | ||
|
||
**What you expected to happen**: | ||
|
||
**How to reproduce it (as minimally and precisely as possible)**: | ||
|
||
**Anything else we need to know?**: |
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,11 @@ | ||
--- | ||
name: Enhancement Request | ||
about: Suggest an enhancement to the bk-log project | ||
labels: kind/enhancement | ||
|
||
--- | ||
<!-- Please only use this template for submitting enhancement requests --> | ||
|
||
**What would you like to be added**: | ||
|
||
**Why is this needed**: |
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,12 @@ | ||
--- | ||
name: Support Request | ||
about: Support request or question relating to bk-log | ||
labels: help wanted | ||
|
||
--- | ||
|
||
<!-- | ||
STOP -- PLEASE READ! | ||
GitHub is not the right place for support requests. | ||
--> |
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,40 @@ | ||
name: "[BKLog] CodeCov" | ||
|
||
defaults: | ||
run: | ||
working-directory: bklog | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'bklog/**' | ||
pull_request: | ||
paths: | ||
- 'bklog/**' | ||
schedule: | ||
- cron: "0 10 * * *" | ||
|
||
jobs: | ||
run: | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: bklog | ||
container: | ||
image: python:3.6.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Generate Report | ||
run: | | ||
source scripts/test_env.sh | ||
sed -i '/APIGW_ENABLED/d' dev.env.yml | ||
pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
pip install coverage | ||
pip uninstall pycrypto -y | ||
pip uninstall pycryptodome -y | ||
pip install pycryptodome | ||
coverage run manage.py test apps.tests | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v1 |
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,72 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: "[BKMonitor] Alarm Backend Test" | ||
|
||
defaults: | ||
run: | ||
working-directory: bkmonitor | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'bkmonitor/**' | ||
pull_request: | ||
paths: | ||
- 'bkmonitor/**' | ||
jobs: | ||
build: | ||
|
||
runs-on: self-hosted | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
- name: Set Timezone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "Singapore Standard Time" | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Init Mysql | ||
run: | | ||
sudo mkdir -v /var/run/mysqld && sudo chown mysql /var/run/mysqld | ||
sudo mysqld_safe --skip-grant-tables & | ||
- name: Setup Mysql | ||
run: | | ||
mysql -u root mysql -V | ||
update_sql="UPDATE mysql.user SET authentication_string=PASSWORD('') WHERE USER='root';FLUSH PRIVILEGES;" | ||
mysql -u root -e "${update_sql}" | ||
sudo mysqladmin -S /var/run/mysqld/mysqld.sock shutdown | ||
sudo /etc/init.d/mysql start | ||
mysql -u root -e "create database saas_dev character set UTF8 collate utf8_general_ci" | ||
mysql -u root -e "create database backend_dev character set UTF8 collate utf8_general_ci" | ||
mysql -u root -e "show databases;" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
cat requirements.txt |grep -v '#' >> requirements_test_ci.txt | ||
cat requirements_test.txt >> requirements_test_ci.txt | ||
pip install support-files/pkgs/* | ||
pip install -r requirements_test_ci.txt | ||
- name: Migrate DB | ||
run: | | ||
mkdir -p logs/bkmonitor/ | ||
env DJANGO_CONF_MODULE=conf.development DJANGO_SETTINGS_MODULE=settings BKAPP_DEPLOY_PLATFORM=enterprise python manage.py migrate --fake iam_migration | ||
env DJANGO_CONF_MODULE=conf.development DJANGO_SETTINGS_MODULE=settings BKAPP_DEPLOY_PLATFORM=enterprise python manage.py migrate | ||
- name: Test with pytest alarm_backends | ||
run: | | ||
source .pytest_local.sh | ||
pytest alarm_backends/tests/ --cov=alarm_backends/service --cov=alarm_backends/core -vv | ||
- name: Test with pytest query_api | ||
run: | | ||
source .pytest_local.sh | ||
pytest query_api --cov=query_api -vv | ||
# pytest bkmonitor/data_source/tests --cov=bkmonitor/data_source -vv |
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,37 @@ | ||
name: "[BKLog] Backend Test" | ||
|
||
defaults: | ||
run: | ||
working-directory: bklog | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'bklog/**' | ||
pull_request: | ||
paths: | ||
- 'bklog/**' | ||
schedule: | ||
- cron: "0 10 * * *" | ||
jobs: | ||
run: | ||
runs-on: self-hosted | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: bklog | ||
container: | ||
image: python:3.6.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run Test | ||
run: | | ||
source scripts/test_env.sh | ||
sed -i '/APIGW_ENABLED/d' dev.env.yml | ||
pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
pip install coverage | ||
pip uninstall pycrypto -y | ||
pip uninstall pycryptodome -y | ||
pip install pycryptodome | ||
python manage.py test apps.tests |
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,32 @@ | ||
name: "[BKLog] Web" | ||
|
||
defaults: | ||
run: | ||
working-directory: bklog | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'bklog/web/**' | ||
pull_request: | ||
paths: | ||
- 'bklog/web/**' | ||
schedule: | ||
- cron: "0 10 * * *" | ||
|
||
jobs: | ||
run: | ||
runs-on: self-hosted | ||
env: | ||
OS: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js environment | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16.16.0 | ||
- name: Run build web | ||
run: | | ||
cd web | ||
npm install --legacy-peer-deps | ||
npm run build |
Oops, something went wrong.