Skip to content

Commit b9ea1de

Browse files
abhilash-aotkurianbenoy-aotshibin-aotnikhila-aotabilpraju-aot
authored
V4.0.5 Changes (AOT-Technologies#274)
Co-authored-by: Kurian Benoy <[email protected]> Co-authored-by: Shibin Thomas <[email protected]> Co-authored-by: nikhila-aot <[email protected]> Co-authored-by: Abil P Raju <[email protected]> Co-authored-by: sumathi-thirumani-aot <[email protected]> Co-authored-by: athira-aot <[email protected]> Co-authored-by: seethalelias-aot <[email protected]> Co-authored-by: Bonymol-aot <[email protected]> Co-authored-by: Bonymol Baby <[email protected]> Co-authored-by: sneha <[email protected]> Co-authored-by: SnehaSuresh-aot <[email protected]> Co-authored-by: shibin-aot <[email protected]> Co-authored-by: unknown <[email protected]> Co-authored-by: Krishnan Subramanian <[email protected]> Co-authored-by: sreehari-aot <[email protected]> Co-authored-by: seethalelias-aot <[email protected]> Co-authored-by: alanraju-aot <[email protected]> Co-authored-by: shuhaib s <[email protected]> Co-authored-by: abilpraju-aot <[email protected]> Co-authored-by: shuhaibzahir <[email protected]> Co-authored-by: Krishnan Subramanian <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sumesh Punakkal Kariyil <[email protected]> Co-authored-by: Abijith Sebastian <[email protected]> Co-authored-by: auslin-aot <[email protected]> Co-authored-by: kurianbenoy-aot <[email protected]> Co-authored-by: Raveena-aot <[email protected]> Co-authored-by: Raveena-aot <[email protected]> Co-authored-by: AbijithS-aot <[email protected]> Co-authored-by: Sneha Suresh <[email protected]> Co-authored-by: DESKTOP-EGTI4MU\DELL <[email protected]> Co-authored-by: auslin-aot <[email protected]> Co-authored-by: shuhaib-aot <[email protected]> Co-authored-by: alanraju-aot <[email protected]> Co-authored-by: Josephalexantony-aot <[email protected]> Co-authored-by: ambadi-aot <[email protected]> Co-authored-by: ambadi <[email protected]>
1 parent 6136d51 commit b9ea1de

File tree

478 files changed

+63348
-11511
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

478 files changed

+63348
-11511
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Declare files that will always have CRLF line endings on checkout.
2+
*.sh text eol=lf
+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: Forms Flow API CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
- master
9+
pull_request:
10+
branches:
11+
- develop
12+
- master
13+
paths:
14+
- "forms-flow-api/**"
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
working-directory: ./forms-flow-api
20+
21+
jobs:
22+
setup-job:
23+
runs-on: ubuntu-20.04
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- run: "true"
28+
29+
linting:
30+
needs: setup-job
31+
runs-on: ubuntu-20.04
32+
33+
strategy:
34+
matrix:
35+
python-version: [3.8]
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Set up Python ${{ matrix.python-version }}
40+
uses: actions/setup-python@v1
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
- name: Install dependencies
44+
run: |
45+
pip install -r requirements/dev.txt
46+
- name: Pylint
47+
id: pylint
48+
run: |
49+
pylint --rcfile=setup.cfg src/formsflow_api
50+
- name: Flake8
51+
id: flake8
52+
run: |
53+
flake8 src/formsflow_api tests
54+
55+
PyTest:
56+
needs: setup-job
57+
env:
58+
FLASK_ENV: "testing"
59+
DATABASE_URL_TEST: "postgresql://postgres:postgres@localhost:5432/postgres"
60+
FORMSFLOW_API_URL: "http://localhost:5000"
61+
KEYCLOAK_URL: ${{ secrets.KEYCLOAK_URL }}
62+
KEYCLOAK_URL_REALM: ${{ secrets.KEYCLOAK_URL_REALM }}
63+
KEYCLOAK_BPM_CLIENT_SECRET: ${{ secrets.KEYCLOAK_BPM_CLIENT_SECRET }}
64+
CAMUNDA_API_URL: ${{ secrets.CAMUNDA_API_URL }}
65+
JWT_OIDC_WELL_KNOWN_CONFIG: ${{ secrets.JWT_OIDC_WELL_KNOWN_CONFIG }}
66+
JWT_OIDC_ALGORITHMS: "RS256"
67+
JWT_OIDC_JWKS_URI: ${{ secrets.JWT_OIDC_JWKS_URI }}
68+
JWT_OIDC_ISSUER: ${{ secrets.JWT_OIDC_ISSUER }}
69+
JWT_OIDC_AUDIENCE: ${{ secrets.JWT_OIDC_AUDIENCE }}
70+
JWT_OIDC_CACHING_ENABLED: "True"
71+
BPM_API_BASE: ${{ secrets.BPM_API_BASE }}
72+
BPM_CLIENT_SECRET: ${{ secrets.BPM_CLIENT_SECRET }}
73+
BPM_CLIENT_ID: ${{ secrets.BPM_CLIENT_ID }}
74+
BPM_TOKEN_API: ${{ secrets.BPM_TOKEN_API }}
75+
TEST_REVIEWER_USERID: ${{ secrets.TEST_REVIEWER_USERID }}
76+
TEST_REVIEWER_PASSWORD: ${{ secrets.TEST_REVIEWER_PASSWORD }}
77+
INSIGHT_API_URL: ${{ secrets.INSIGHT_API_URL }}
78+
INSIGHT_API_KEY: ${{ secrets.INSIGHT_API_KEY }}
79+
SKIP_IN_CI: "True"
80+
81+
runs-on: ubuntu-20.04
82+
83+
services:
84+
postgres:
85+
image: postgres:11
86+
env:
87+
POSTGRES_USER: postgres
88+
POSTGRES_PASSWORD: postgres
89+
POSTGRES_DB: postgres
90+
ports:
91+
- 5432:5432
92+
# needed because the postgres container does not provide a healthcheck
93+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
94+
95+
steps:
96+
- uses: actions/checkout@v2
97+
- name: Set up Python ${{ matrix.python-version }}
98+
uses: actions/setup-python@v1
99+
with:
100+
python-version: ${{ matrix.python-version }}
101+
- name: Install dependencies
102+
run: |
103+
make build
104+
- name: Test
105+
id: test
106+
run: |
107+
make test
108+
# - name: Upload coverage to Codecov
109+
# uses: codecov/codecov-action@v1
110+
# with:
111+
# file: ./forms-flow-api/coverage.xml
112+
# flags: formsflowapi
113+
# name: codecov-formsflow-api
114+
# fail_ci_if_error: true
115+
build:
116+
needs: PyTest
117+
runs-on: ubuntu-20.04
118+
name: Build
119+
steps:
120+
- uses: actions/checkout@v2
121+
- name: Set up Python ${{ matrix.python-version }}
122+
uses: actions/setup-python@v1
123+
with:
124+
python-version: ${{ matrix.python-version }}
125+
- name: Build
126+
run: |
127+
docker build . -t forms-flow-api
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#Workflow name
2+
name: Forms Flow BPM CI
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
- master
9+
pull_request:
10+
branches:
11+
- develop
12+
- master
13+
paths:
14+
- "forms-flow-api/**"
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
working-directory: ./forms-flow-bpm
20+
21+
jobs:
22+
setup-job:
23+
runs-on: ubuntu-20.04
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- run: "true"
28+
tests:
29+
needs: setup-job
30+
runs-on: ubuntu-20.04
31+
name: Unit tests
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up JDK
35+
uses: actions/setup-java@v1
36+
with:
37+
java-version: '11'
38+
- name: Cache Maven packages
39+
uses: actions/cache@v1
40+
with:
41+
path: ~/.m2
42+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom-docker.xml') }}
43+
restore-keys: ${{ runner.os }}-m2
44+
- name: Run Tests
45+
run: mvn -B test --file pom-docker.xml
46+
build:
47+
needs: tests
48+
runs-on: ubuntu-20.04
49+
name: Build
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Set up JDK
53+
uses: actions/setup-java@v1
54+
with:
55+
java-version: '11'
56+
- name: Cache Maven packages
57+
uses: actions/cache@v1
58+
with:
59+
path: ~/.m2
60+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom-docker.xml') }}
61+
restore-keys: ${{ runner.os }}-m2
62+
- name: Build with Maven
63+
run: mvn -B package -DskipTests --file pom-docker.xml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Forms Flow Data Analysis API CI
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- develop
8+
- master
9+
paths:
10+
- "forms-flow-data-analysis-api/**"
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
working-directory: ./forms-flow-data-analysis-api
16+
17+
jobs:
18+
setup-job:
19+
runs-on: ubuntu-20.04
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- run: "true"
24+
25+
linting:
26+
needs: setup-job
27+
runs-on: ubuntu-20.04
28+
29+
strategy:
30+
matrix:
31+
python-version: [3.8]
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v1
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
- name: Install dependencies
40+
run: |
41+
pip install -r requirements/dev.txt
42+
- name: Pylint
43+
id: pylint
44+
run: |
45+
pylint --rcfile=setup.cfg src/api
46+
47+
PyTest:
48+
needs: setup-job
49+
env:
50+
FLASK_ENV: "testing"
51+
DATABASE_URL_TEST: "postgresql://postgres:postgres@localhost:6432/postgres"
52+
DATA_ANALYSIS_API_BASE_URL: "http://localhost:5001"
53+
KEYCLOAK_URL: ${{ secrets.KEYCLOAK_URL }}
54+
KEYCLOAK_URL_REALM: ${{ secrets.KEYCLOAK_URL_REALM }}
55+
JWT_OIDC_WELL_KNOWN_CONFIG: ${{ secrets.JWT_OIDC_WELL_KNOWN_CONFIG }}
56+
JWT_OIDC_ALGORITHMS: "RS256"
57+
JWT_OIDC_JWKS_URI: ${{ secrets.JWT_OIDC_JWKS_URI }}
58+
JWT_OIDC_ISSUER: ${{ secrets.JWT_OIDC_ISSUER }}
59+
JWT_OIDC_AUDIENCE: ${{ secrets.JWT_OIDC_AUDIENCE }}
60+
JWT_OIDC_CACHING_ENABLED: "True"
61+
BPM_API_BASE: ${{ secrets.BPM_API_BASE }}
62+
BPM_CLIENT_SECRET: ${{ secrets.BPM_CLIENT_SECRET }}
63+
BPM_CLIENT_ID: ${{ secrets.BPM_CLIENT_ID }}
64+
BPM_TOKEN_API: ${{ secrets.BPM_TOKEN_API }}
65+
TEST_REVIEWER_USERID: ${{ secrets.TEST_REVIEWER_USERID }}
66+
TEST_REVIEWER_PASSWORD: ${{ secrets.TEST_REVIEWER_PASSWORD }}
67+
MODEL_ID: ${{ secrets.MODEL_ID }}
68+
SKIP_IN_CI: "True"
69+
70+
runs-on: ubuntu-20.04
71+
72+
services:
73+
postgres:
74+
image: postgres:13
75+
env:
76+
POSTGRES_USER: postgres
77+
POSTGRES_PASSWORD: postgres
78+
POSTGRES_DB: postgres
79+
ports:
80+
- 6432:5432
81+
# needed because the postgres container does not provide a healthcheck
82+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
83+
84+
steps:
85+
- uses: actions/checkout@v2
86+
- name: Set up Python ${{ matrix.python-version }}
87+
uses: actions/setup-python@v1
88+
with:
89+
python-version: ${{ matrix.python-version }}
90+
- name: Install dependencies
91+
run: |
92+
make setup
93+
- name: Download Sentiment Analysis Model
94+
run: |
95+
make download-models
96+
- name: Test
97+
id: test
98+
run: |
99+
make test
100+
101+
build:
102+
runs-on: ubuntu-20.04
103+
name: Build
104+
steps:
105+
- uses: actions/checkout@v2
106+
- name: Set up Python ${{ matrix.python-version }}
107+
uses: actions/setup-python@v1
108+
with:
109+
python-version: ${{ matrix.python-version }}
110+
- name: Build
111+
run: |
112+
docker build . -t forms-flow-data-analysis-api
+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Forms Flow Web CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
- master
9+
pull_request:
10+
branches:
11+
- develop
12+
- master
13+
paths:
14+
- "forms-flow-web/**"
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
working-directory: ./forms-flow-web
20+
21+
jobs:
22+
setup-job:
23+
runs-on: ubuntu-20.04
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- run: "true"
28+
29+
linting:
30+
needs: setup-job
31+
runs-on: ubuntu-20.04
32+
33+
strategy:
34+
matrix:
35+
node-version: [14]
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Use Node.js ${{ matrix.node-version }}
40+
uses: actions/setup-node@v1
41+
with:
42+
node-version: ${{ matrix.node-version }}
43+
- name: Install dependencies
44+
run: |
45+
npm ci
46+
# - name: Linting
47+
# run: |
48+
# npm run lint
49+
unit-tests:
50+
needs: setup-job
51+
runs-on: ubuntu-20.04
52+
53+
strategy:
54+
matrix:
55+
node-version: [14]
56+
57+
steps:
58+
- uses: actions/checkout@v2
59+
- name: Use Node.js ${{ matrix.node-version }}
60+
uses: actions/setup-node@v1
61+
with:
62+
node-version: ${{ matrix.node-version }}
63+
- name: Install dependencies
64+
run: |
65+
npm ci
66+
- name: Unit Test
67+
id: test
68+
run: |
69+
npm test a
70+
71+
build-check:
72+
needs: setup-job
73+
runs-on: ubuntu-20.04
74+
75+
steps:
76+
- uses: actions/checkout@v2
77+
- name: build to check strictness
78+
id: build
79+
run: |
80+
docker build . -t forms-flow-web

0 commit comments

Comments
 (0)