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

first version of e2e of nuclia #123

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
bc1befb
first version of e2e of nuclia
sunbit Dec 13, 2024
28dbcee
Merge branch 'main' into nuclia_e2e
sunbit Dec 13, 2024
9ffe006
activity log tests
sunbit Dec 19, 2024
8dd2d78
Merge branch 'nuclia_e2e' of github.com:nuclia/e2e into nuclia_e2e
sunbit Dec 19, 2024
ac2a79e
fix
sunbit Dec 19, 2024
fffb62f
fix
sunbit Dec 19, 2024
44311f2
Fix
sunbit Dec 19, 2024
f6653ea
fixes
sunbit Dec 19, 2024
89c098d
Fix
sunbit Dec 19, 2024
ce00fbe
Fix
sunbit Dec 19, 2024
d3ff586
Merge branch 'main' into nuclia_e2e
drf7 Jan 3, 2025
1825816
ruff
drf7 Jan 3, 2025
1a46960
-
drf7 Jan 7, 2025
04c5b76
ndb client
drf7 Jan 7, 2025
5a2b57f
Fix ask and remi tests
sunbit Jan 14, 2025
05c81e9
Fix sdk usage when there is concurrency with different configs
sunbit Jan 14, 2025
65170db
Merge branch 'main' into nuclia_e2e
sunbit Jan 14, 2025
b858fd5
Merge branch 'nuclia_e2e' of github.com:nuclia/e2e into nuclia_e2e
sunbit Jan 14, 2025
4a8d552
ruff config
sunbit Jan 14, 2025
4e47de5
refix
sunbit Jan 14, 2025
b29a964
ruff
sunbit Jan 14, 2025
360b0dc
change
sunbit Jan 15, 2025
3f9246e
debug
sunbit Jan 15, 2025
37bf78d
debug
sunbit Jan 15, 2025
7e54ecc
DEBUG
sunbit Jan 15, 2025
d5e09ee
fix
sunbit Jan 15, 2025
ff11c01
fix
sunbit Jan 15, 2025
55ac977
fix
sunbit Jan 15, 2025
2fdce48
fix
sunbit Jan 15, 2025
fac3b91
fix
sunbit Jan 15, 2025
983f792
fix
sunbit Jan 15, 2025
e8de4c7
debug
sunbit Jan 15, 2025
39fa7fc
debug
sunbit Jan 15, 2025
05779a4
debug
sunbit Jan 15, 2025
a57cbb5
missing env vars
sunbit Jan 15, 2025
406f3e6
fix
sunbit Jan 15, 2025
2176f27
fix
sunbit Jan 15, 2025
7ff1652
fix
sunbit Jan 15, 2025
d1c8fed
debug
sunbit Jan 15, 2025
50fe440
debug
sunbit Jan 15, 2025
fc05494
idebug
sunbit Jan 15, 2025
54db5f0
debug
sunbit Jan 15, 2025
74dadbe
remove debug
sunbit Jan 15, 2025
19f91fa
debug
sunbit Jan 15, 2025
0662cae
remove debug
sunbit Jan 15, 2025
076f80f
copy all tests from nua and adapt
sunbit Jan 16, 2025
5f7496c
upgrade python
sunbit Jan 17, 2025
f75ee5c
debug
sunbit Jan 17, 2025
2d84edd
fix
sunbit Jan 17, 2025
212a8e3
fix
sunbit Jan 17, 2025
039fff1
debug
sunbit Jan 17, 2025
8a9e228
fix setup
sunbit Jan 17, 2025
508483e
Fix kbs list
sunbit Jan 17, 2025
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
Next Next commit
first version of e2e of nuclia
  • Loading branch information
sunbit committed Dec 13, 2024
commit bc1befb1da6e2e6d9ba0592e9ff27f90d6df4e53
58 changes: 58 additions & 0 deletions .github/workflows/run-e2e-nuclia-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: run-nuclia-e2e-prod
run-name: Running e2e PROD NUCLIA tests
on:
push:
branches:
- '**'
workflow_dispatch:
branches:
- main
schedule:
# run every day at 04:25
- cron: '25 4 * * *'
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Launch NucliaDB in docker

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r nuclia/requirements.txt

- name: Run tests
env: # Or as an environment variable
PROD_PERMAMENT_ACCOUNT_OWNER_PAT_TOKEN: ${{ secrets.PROD_PERMAMENT_ACCOUNT_OWNER_PAT_TOKEN }}
PROD_ROOT_PAT_TOKEN: ${{ secrets.PROD_ROOT_PAT_TOKEN }}

run: |
TEST_ENV=prod pytest nuclia/e2e --durations=0 --junitxml nuclia.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'nuclia.xml'

- name: Slack notification
id: slack
uses: slackapi/slack-github-action@v1.24.0
if: ${{ failure() && github.ref_name == 'main' }}
with:
payload: |
{
"text": "⚠️ tests failed on PROD\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
58 changes: 58 additions & 0 deletions .github/workflows/run-e2e-nuclia-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: run-nuclia-e2e-stage
run-name: Running e2e STAGE NUCLIA tests
on:
push:
branches:
- '**'
workflow_dispatch:
branches:
- main
schedule:
# run every day at 04:25
- cron: '25 4 * * *'
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
# Launch NucliaDB in docker

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r nuclia/requirements.txt

- name: Run tests
env: # Or as an environment variable
STAGE_PERMAMENT_ACCOUNT_OWNER_PAT_TOKEN: ${{ secrets.STAGE_PERMAMENT_ACCOUNT_OWNER_PAT_TOKEN }}
STAGE_ROOT_PAT_TOKEN: ${{ secrets.STAGE_ROOT_PAT_TOKEN }}

run: |
TEST_ENV=prod pytest nuclia/e2e --durations=0 --junitxml nua.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'nuclia.xml'

- name: Slack notification
id: slack
uses: slackapi/slack-github-action@v1.24.0
if: ${{ failure() && github.ref_name == 'main' }}
with:
payload: |
{
"text": "⚠️ tests failed on STAGE\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@ yarn-error.log
testem.log
/typings
.python-version
__pycache__

# System Files
.DS_Store
214 changes: 214 additions & 0 deletions nuclia/assets/chocolatier.html

Large diffs are not rendered by default.

Binary file added nuclia/assets/e2e.financial.export
Binary file not shown.
Binary file added nuclia/assets/e2e.financial.mini.export
Binary file not shown.
Empty file added nuclia/e2e/__init__.py
Empty file.
Loading
Loading