Skip to content

Commit b1a0649

Browse files
author
Raj Burnwal
committed
commented out workflow for sonar and integration test.
1 parent 4694221 commit b1a0649

File tree

2 files changed

+164
-164
lines changed

2 files changed

+164
-164
lines changed

.github/workflows/integration_run.yml

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,104 @@
1-
name: Run Pebblo Integration Tests
2-
on:
3-
schedule:
4-
- cron: '30 2,14 * * *'
1+
# name: Run Pebblo Integration Tests
2+
# on:
3+
# schedule:
4+
# - cron: '30 2,14 * * *'
55

6-
workflow_dispatch: # Activate this workflow manually
7-
env:
8-
PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }}
9-
OPENAI_API_KEY_SECRET: ${{ secrets.OPENAI_API_KEY }}
10-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
11-
SLACK_CH: ${{ secrets.SLACK_CH }}
12-
jobs:
13-
Setup_Pebblo_Run_Tests:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v2
6+
# workflow_dispatch: # Activate this workflow manually
7+
# env:
8+
# PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }}
9+
# OPENAI_API_KEY_SECRET: ${{ secrets.OPENAI_API_KEY }}
10+
# SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
11+
# SLACK_CH: ${{ secrets.SLACK_CH }}
12+
# jobs:
13+
# Setup_Pebblo_Run_Tests:
14+
# runs-on: ubuntu-latest
15+
# steps:
16+
# - name: Checkout Repository
17+
# uses: actions/checkout@v2
1818

19-
- name: Set up Python
20-
uses: actions/setup-python@v4
21-
with:
22-
ref: 'main'
23-
python-version: ${{ env.PYTHON_VERSION }}
19+
# - name: Set up Python
20+
# uses: actions/setup-python@v4
21+
# with:
22+
# ref: 'main'
23+
# python-version: ${{ env.PYTHON_VERSION }}
2424

25-
- name: Build Pebblo
26-
run: |
27-
pip install build
28-
python -m build --wheel
29-
ls -la dist/
25+
# - name: Build Pebblo
26+
# run: |
27+
# pip install build
28+
# python -m build --wheel
29+
# ls -la dist/
3030

31-
- name: Install Pebblo Packages
32-
run: |
33-
echo 'Install Pebblo Package'
34-
pkg_file=$(ls dist | grep .whl)
35-
pip3 install dist/$pkg_file --force-reinstall
36-
pip3 install --upgrade pip
31+
# - name: Install Pebblo Packages
32+
# run: |
33+
# echo 'Install Pebblo Package'
34+
# pkg_file=$(ls dist | grep .whl)
35+
# pip3 install dist/$pkg_file --force-reinstall
36+
# pip3 install --upgrade pip
3737

38-
- name: Start Pebblo Server
39-
run: |
40-
echo 'Running Pebblo server'
41-
sleep 10
42-
pebblo &
43-
sleep 120
38+
# - name: Start Pebblo Server
39+
# run: |
40+
# echo 'Running Pebblo server'
41+
# sleep 10
42+
# pebblo &
43+
# sleep 120
4444

45-
- name: Verify Pebblo Server
46-
run: |
47-
cat /tmp/logs/pebblo.log
45+
# - name: Verify Pebblo Server
46+
# run: |
47+
# cat /tmp/logs/pebblo.log
4848

49-
if grep -q "Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)" /tmp/logs/pebblo.log; then
50-
echo "Server started successfully."
51-
else
52-
echo "Unexpected issue detected at server."
53-
exit 1
54-
fi
49+
# if grep -q "Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)" /tmp/logs/pebblo.log; then
50+
# echo "Server started successfully."
51+
# else
52+
# echo "Unexpected issue detected at server."
53+
# exit 1
54+
# fi
5555

56-
- name: Install Required Sample Application Dependencies
57-
run: |
58-
echo 'Install Sample Application dependency'
59-
pip3 install --upgrade pip
60-
pip3 install -r tests/integration/samples/requirements.txt --force-reinstall
56+
# - name: Install Required Sample Application Dependencies
57+
# run: |
58+
# echo 'Install Sample Application dependency'
59+
# pip3 install --upgrade pip
60+
# pip3 install -r tests/integration/samples/requirements.txt --force-reinstall
6161

62-
- name: Run Sample RAG App
63-
run: |
64-
export OPENAI_API_KEY=$OPENAI_API_KEY_SECRET
65-
echo 'Running pebblo_csvloader Samples'
66-
cd tests/integration/samples/pebblo_csv_loader
67-
python3 pebblo_csvloader.py
68-
cd ../../
69-
sleep 300
62+
# - name: Run Sample RAG App
63+
# run: |
64+
# export OPENAI_API_KEY=$OPENAI_API_KEY_SECRET
65+
# echo 'Running pebblo_csvloader Samples'
66+
# cd tests/integration/samples/pebblo_csv_loader
67+
# python3 pebblo_csvloader.py
68+
# cd ../../
69+
# sleep 300
7070

71-
- name: Check Pebblo App Run Logs
72-
run: |
73-
cat /tmp/logs/pebblo.log
71+
# - name: Check Pebblo App Run Logs
72+
# run: |
73+
# cat /tmp/logs/pebblo.log
7474

75-
- name: Upload Pebblo App Run Logs as Artifact
76-
uses: actions/upload-artifact@v4
77-
with:
78-
name: Pebblo_Report
79-
path: |
80-
/tmp/logs/pebblo.log
75+
# - name: Upload Pebblo App Run Logs as Artifact
76+
# uses: actions/upload-artifact@v4
77+
# with:
78+
# name: Pebblo_Report
79+
# path: |
80+
# /tmp/logs/pebblo.log
8181

82-
- name: Check logs for Pebblo Report
83-
run: |
84-
if grep -q "INFO - PDF report generated, please check path : /home/runner/.pebblo/" /tmp/logs/pebblo.log; then
85-
echo "Report Generated Successfully."
86-
else
87-
echo "Unexpected issue detected at running sample app."
88-
cat /tmp/logs/pebblo.log
89-
exit 1
90-
fi
82+
# - name: Check logs for Pebblo Report
83+
# run: |
84+
# if grep -q "INFO - PDF report generated, please check path : /home/runner/.pebblo/" /tmp/logs/pebblo.log; then
85+
# echo "Report Generated Successfully."
86+
# else
87+
# echo "Unexpected issue detected at running sample app."
88+
# cat /tmp/logs/pebblo.log
89+
# exit 1
90+
# fi
9191

92-
- name: Upload Pebblo Report File
93-
run: |
94-
cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader
95-
curl -F file=@pebblo_report.pdf https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Nightly Report"
92+
# - name: Upload Pebblo Report File
93+
# run: |
94+
# cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader
95+
# curl -F file=@pebblo_report.pdf https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Nightly Report"
9696

97-
- name: Report Status if test case or build failure
98-
if: always()
99-
uses: ravsamhq/notify-slack-action@master
100-
with:
101-
status: ${{ job.status }}
102-
notify_when: 'failure'
103-
env:
104-
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SECRET }}
97+
# - name: Report Status if test case or build failure
98+
# if: always()
99+
# uses: ravsamhq/notify-slack-action@master
100+
# with:
101+
# status: ${{ job.status }}
102+
# notify_when: 'failure'
103+
# env:
104+
# SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SECRET }}

.github/workflows/sonarscan_run.yml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
1-
name: Run Pebblo Scanner Tests
2-
on:
3-
push:
4-
branches:
5-
- main
6-
schedule:
7-
- cron: '30 2,14 * * *'
1+
# name: Run Pebblo Scanner Tests
2+
# on:
3+
# push:
4+
# branches:
5+
# - main
6+
# schedule:
7+
# - cron: '30 2,14 * * *'
88

9-
workflow_dispatch: # Activate this workflow manually
10-
env:
11-
PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }}
12-
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
13-
SLACK_CH: ${{ secrets.SLACK_CH }}
14-
jobs:
15-
Setup_Pebblo_Run_Tests:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout Repository
19-
uses: actions/checkout@v2
9+
# workflow_dispatch: # Activate this workflow manually
10+
# env:
11+
# PYTHON_VERSION: ${{ github.event.inputs.python_version || '3.11.x' }}
12+
# SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
13+
# SLACK_CH: ${{ secrets.SLACK_CH }}
14+
# jobs:
15+
# Setup_Pebblo_Run_Tests:
16+
# runs-on: ubuntu-latest
17+
# steps:
18+
# - name: Checkout Repository
19+
# uses: actions/checkout@v2
2020

21-
- name: Set up Python
22-
uses: actions/setup-python@v4
23-
with:
24-
ref: 'main'
25-
python-version: ${{ env.PYTHON_VERSION }}
21+
# - name: Set up Python
22+
# uses: actions/setup-python@v4
23+
# with:
24+
# ref: 'main'
25+
# python-version: ${{ env.PYTHON_VERSION }}
2626

27-
- name: Build Pebblo
28-
run: |
29-
pip install build
30-
python -m build --wheel
31-
ls -la dist/
27+
# - name: Build Pebblo
28+
# run: |
29+
# pip install build
30+
# python -m build --wheel
31+
# ls -la dist/
3232

33-
- name: Install Pebblo Packages
34-
run: |
35-
echo 'Install Pebblo Package'
36-
pkg_file=$(ls dist | grep .whl)
37-
pip3 install dist/$pkg_file --force-reinstall
38-
pip3 install --upgrade pip
33+
# - name: Install Pebblo Packages
34+
# run: |
35+
# echo 'Install Pebblo Package'
36+
# pkg_file=$(ls dist | grep .whl)
37+
# pip3 install dist/$pkg_file --force-reinstall
38+
# pip3 install --upgrade pip
3939

40-
- name: SonarCloud Scan
41-
id: sonarqube-scan-check
42-
uses: SonarSource/[email protected]
43-
env:
44-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40+
# - name: SonarCloud Scan
41+
# id: sonarqube-scan-check
42+
# uses: SonarSource/[email protected]
43+
# env:
44+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4545

46-
# - name: SonarQube Quality Gate check
47-
# id: sonarqube-quality-gate-check
48-
# uses: sonarsource/sonarqube-quality-gate-action@master
49-
# # Force to fail step after specific time.
50-
# timeout-minutes: 5
51-
# env:
52-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46+
# # - name: SonarQube Quality Gate check
47+
# # id: sonarqube-quality-gate-check
48+
# # uses: sonarsource/sonarqube-quality-gate-action@master
49+
# # # Force to fail step after specific time.
50+
# # timeout-minutes: 5
51+
# # env:
52+
# # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5353

5454

55-
- name: Install Sonar Report and generate
56-
id: sonar-report-gen
57-
run: |
58-
echo 'Installing sonar-report NPM package.'
59-
npm install -g sonar-report
60-
sonar-report \
61-
--sonarurl="https://sonarcloud.io" \
62-
--sonarcomponent="daxa-ai_pebblo" \
63-
--sonarorganization="daxa-ai" \
64-
--project="daxa-ai_pebblo" \
65-
--application="sonar-report" \
66-
--release="1.0.0" \
67-
--branch="main" \
68-
--output="./pebblo_sonar.html" \
69-
--sonartoken ${{ secrets.SONAR_TOKEN }}
55+
# - name: Install Sonar Report and generate
56+
# id: sonar-report-gen
57+
# run: |
58+
# echo 'Installing sonar-report NPM package.'
59+
# npm install -g sonar-report
60+
# sonar-report \
61+
# --sonarurl="https://sonarcloud.io" \
62+
# --sonarcomponent="daxa-ai_pebblo" \
63+
# --sonarorganization="daxa-ai" \
64+
# --project="daxa-ai_pebblo" \
65+
# --application="sonar-report" \
66+
# --release="1.0.0" \
67+
# --branch="main" \
68+
# --output="./pebblo_sonar.html" \
69+
# --sonartoken ${{ secrets.SONAR_TOKEN }}
7070

71-
- name: Upload Pebblo SonarQube report File
72-
if: steps.sonar-report-gen.outcome == 'success'
73-
run: |
74-
curl -F file=@pebblo_sonar.html https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Sonar Scan Report"
71+
# - name: Upload Pebblo SonarQube report File
72+
# if: steps.sonar-report-gen.outcome == 'success'
73+
# run: |
74+
# curl -F file=@pebblo_sonar.html https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Sonar Scan Report"
7575

76-
- name: Report Status if sonarscanner failure
77-
if: ${{ always() }} || steps.sonarqube-scan-check.outcome == 'failure'
78-
uses: ravsamhq/notify-slack-action@master
79-
with:
80-
status: ${{ job.status }}
81-
notify_when: 'failure'
82-
message_format: "{emoji} *{workflow}* {status_message} with Scan status ${{ steps.sonarqube-scan-check.outcome }}"
83-
env:
84-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
76+
# - name: Report Status if sonarscanner failure
77+
# if: ${{ always() }} || steps.sonarqube-scan-check.outcome == 'failure'
78+
# uses: ravsamhq/notify-slack-action@master
79+
# with:
80+
# status: ${{ job.status }}
81+
# notify_when: 'failure'
82+
# message_format: "{emoji} *{workflow}* {status_message} with Scan status ${{ steps.sonarqube-scan-check.outcome }}"
83+
# env:
84+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)