Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
868a812
Include the performance testing
codejamtc Mar 17, 2021
f28feaf
Update config.yml
codejamtc Mar 17, 2021
0d42af6
Update config.yml
codejamtc Mar 17, 2021
63dfae5
Create pom.xml
codejamtc Mar 17, 2021
09e0a10
Update config.yml
codejamtc Mar 17, 2021
219e3d0
ci: Added context : org-global to smoke testing
luizrrodrigues Mar 24, 2021
52d8db9
ci: Deploy performance-testing-1 on Stag env
luizrrodrigues Mar 24, 2021
7ef8461
ci: Run Performance Testing in Dev and Smoke Testing in Stag
luizrrodrigues Mar 24, 2021
426c9ad
ci: Increase Smoke Testing no_output_timeout to 20m
luizrrodrigues Mar 24, 2021
7444191
Merge branch 'develop' into performance-testing-1
codejamtc Mar 24, 2021
07b96d0
New performance test code
codejamtc Mar 24, 2021
0c2f6f4
Update config.yml
codejamtc Mar 24, 2021
66234d8
Update config.yml
codejamtc Mar 24, 2021
e18cd43
Update jmeter config
codejamtc Mar 24, 2021
f639e95
Update Community-25UV.jmx
codejamtc Mar 24, 2021
a4b0749
Update pom.xml
codejamtc Mar 24, 2021
343ecce
update pom
codejamtc Mar 24, 2021
efde2ad
Update config.yml
codejamtc Mar 24, 2021
014eea8
Update Community-25UV.jmx
codejamtc Mar 24, 2021
f83e918
updated
codejamtc Mar 24, 2021
6c75656
Update Community-25UV.jmx
codejamtc Mar 24, 2021
8903cf3
Update Community-25UV.jmx
codejamtc Mar 24, 2021
847999c
Update Community-25UV.jmx
codejamtc Mar 24, 2021
1f79031
Update Community-25UV.jmx
codejamtc Mar 24, 2021
21cdd07
Update Community-25UV.jmx
codejamtc Mar 24, 2021
b6857c7
Update Community-25UV.jmx
codejamtc Mar 24, 2021
1008735
Update Community-25UV.jmx
codejamtc Mar 24, 2021
2f05558
Update Community-25UV.jmx
codejamtc Mar 24, 2021
37ebcbc
Update Community-25UV.jmx
codejamtc Mar 25, 2021
23e3788
Update Community-25UV.jmx
codejamtc Mar 25, 2021
3555202
Update Community-25UV.jmx
codejamtc Mar 25, 2021
b1c76c4
Update Community-25UV.jmx
codejamtc Mar 25, 2021
aebd145
Update Community-25UV.jmx
codejamtc Mar 25, 2021
5771264
Update Community-25UV.jmx
codejamtc Mar 25, 2021
9f0d8b4
Update Community-25UV.jmx
codejamtc Mar 25, 2021
26445e2
Update Community-25UV.jmx
codejamtc Mar 26, 2021
5956a87
Update Community-25UV.jmx
codejamtc Mar 26, 2021
e7ce09b
Update Community-25UV.jmx
codejamtc Mar 26, 2021
5f57e99
Update Community-25UV.jmx
codejamtc Mar 26, 2021
9c20f87
Update Community-25UV.jmx
codejamtc Mar 28, 2021
8c71cbb
Update Community-25UV.jmx
codejamtc Mar 29, 2021
fe1024c
Update Community-25UV.jmx
codejamtc Mar 29, 2021
f265bc1
fix test TC_020
Apr 4, 2021
13f2298
fix test TC_010
nursoltan-s Apr 4, 2021
0b16221
fix test TC_009
nursoltan-s Apr 4, 2021
e85bac2
deleted TC_015, TC_016, TC_017
nursoltan-s Apr 4, 2021
20c87df
fix TC_007, TC_008, TC_013, TC_014
nursoltan-s Apr 4, 2021
6e03052
fix TC_012
Apr 5, 2021
cfc9632
fix test TC_011
Apr 6, 2021
18e204a
Merge pull request #5465 from nursoltan-s/nursoltan-s-smoke-test
luizrrodrigues Apr 7, 2021
2e6bd42
ci: Deploycircleci-automation-testing to Stag env
luizrrodrigues Apr 7, 2021
33ed041
ci: Deploy circleci-automation-testing to Dev env
luizrrodrigues Apr 8, 2021
f77278f
ci: Smoke Testing in Stag and Prod env
luizrrodrigues Apr 8, 2021
aee8200
fix failing tests
Apr 11, 2021
9fb7ad7
fix failed tests
Apr 24, 2021
102a7a9
Update config.yml
luizrrodrigues May 6, 2021
792b3e0
Merge pull request #5475 from nursoltan-s/fix-failing-tests-nursoltan-s
luizrrodrigues May 6, 2021
148a137
ci: deploy circleci-automation-testing to Test env
luizrrodrigues May 6, 2021
d96eb6c
ci: Deploy circleci-automation-testing to Stag env
luizrrodrigues May 13, 2021
20f7a9c
Automated Smoke Testing - Store Artifacts
luizrrodrigues May 20, 2021
cb2fe51
store_artifacts - Fix results folder
luizrrodrigues May 20, 2021
dc74c35
Merge branch 'develop' into circleci-automation-testing
luizrrodrigues May 28, 2021
d89e8db
ci: Remove old automated smoke testing
luizrrodrigues May 28, 2021
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
155 changes: 116 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
version: 2.1
parameters:
run_basedeployment:
default: true
type: boolean
run_smoketesting:
default: false
type: boolean
run_performancetesting:
default: false
type: boolean

defaults: &defaults
docker:
Expand Down Expand Up @@ -37,7 +47,7 @@ build_docker_image: &build_docker_image
./build.sh
jobs:
# Build & Deploy against development backend
"build-dev":
deployDev:
<<: *defaults
steps:
# Initialization.
Expand All @@ -63,9 +73,8 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s dev_communityapp_taskvar -i communityapp

# Build & Deploy against testing backend
"build-test":
deployTest:
<<: *defaults
steps:
# Initialization.
Expand All @@ -91,9 +100,8 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s test_communityapp_taskvar -i communityapp

# Build & Deploy against testing backend
"build-qa":
deployQA:
<<: *defaults
steps:
# Initialization.
Expand All @@ -119,9 +127,8 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s qa_communityapp_taskvar -i communityapp

# Build & Deploy against prod api backend
"build-prod-beta":
deployBeta:
<<: *defaults
steps:
# Initialization.
Expand Down Expand Up @@ -149,7 +156,7 @@ jobs:
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp

# Build & Deploy against prod api backend
"build-prod-staging":
deployStag:
<<: *defaults
steps:
# Initialization.
Expand All @@ -174,10 +181,15 @@ jobs:
command: |
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp

./master_deploy.sh -d ECS -e PROD -t latest -s staging_communityapp_taskvar, -i communityapp
curl --request POST \
--url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
--header "Circle-Token: ${CIRCLE_TOKEN}" \
--header 'content-type: application/json' \
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'

# Build & Deploy against production backend
"build-prod":
deployProd:
<<: *defaults
steps:
# Initialization.
Expand All @@ -203,8 +215,12 @@ jobs:
source awsenvconf
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s prod_communityapp_taskvar -i communityapp

"smoke-test-on-staging":
curl --request POST \
--url https://circleci.com/api/v2/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pipeline \
--header "Circle-Token: ${CIRCLE_TOKEN}" \
--header 'content-type: application/json' \
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
Smoke-Testing-On-Staging:
<<: *defaults
steps:
# Initialization.
Expand All @@ -221,12 +237,14 @@ jobs:
./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar
- run:
name: "Run automation"
no_output_timeout: 20m
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-staging.json prod

"smoke-test-on-production":
- store_artifacts:
path: /automated-smoke-test/test-results
Smoke-Testing-On-Production:
<<: *defaults
steps:
# Initialization.
Expand All @@ -243,11 +261,11 @@ jobs:
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
- run:
name: "Run automation"
no_output_timeout: 20m
command: |
source awsenvconf
source buildenvvar
./automated-smoke-test/smoketest.sh automation-config-prod.json prod

# Test job for the cases when we do not need deployment. It just rapidly
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
# Jest unit-tests).
Expand All @@ -264,78 +282,137 @@ jobs:
paths:
- node_modules
- run: npm test

Performance-Testing:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/repo

environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: mvn dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}

- run: mvn verify

- store_artifacts:
path: target/jmeter/reports

workflows:
version: 2
build:
Build:
when: << pipeline.parameters.run_basedeployment >>
jobs:
# Development builds are executed on "new-develop" branch only.
- "build-dev":
- deployDev:
context : org-global
filters:
branches:
only:
- develop
# This is alternate dev env for parallel testing
- "build-test":
- deployTest:
context : org-global
filters:
branches:
only:
- free
# This is alternate dev env for parallel testing
- "build-qa":
- deployQA:
context : org-global
filters:
branches:
only:
- free
# This is beta env for production soft releases
- "build-prod-beta":
- deployBeta:
context : org-global
filters:
branches:
only:
- free
# This is stage env for production QA releases
- "build-prod-staging":
- deployStag:
context : org-global
filters:
branches:
only:
- develop
- "approve-smoke-test-on-staging":
type: approval
requires:
- build-prod-staging
- "smoke-test-on-staging":
context : org-global
requires:
- approve-smoke-test-on-staging
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
# That might trigger wrong branch to be
# deployed on the production
# master branch.
- "build-prod":
- deployProd:
context : org-global
filters:
branches:
only:
- master
- "approve-smoke-test-on-production":
type: approval
requires:
- build-prod
- "smoke-test-on-production":
context : org-global
requires:
- approve-smoke-test-on-production
# Simple testing is executed for any branch other than "develop" and
# "master".
- test:
filters:
branches:
ignore:
- develop

Smoke Testing:
when: << pipeline.parameters.run_smoketesting >>
jobs:
- Hold [Smoke-Testing]:
type: approval
- Smoke-Testing-On-Staging:
context : org-global
requires:
- Hold [Smoke-Testing]
filters:
branches:
only:
- develop
- Smoke-Testing-On-Production:
context : org-global
requires:
- Hold [Smoke-Testing]
filters:
branches:
only:
- master

Performance Testing:
when: << pipeline.parameters.run_performancetesting >>
jobs:
- Hold [Performance-Testing]:
type: approval
- Performance-Testing:
requires:
- Hold [Performance-Testing]
filters:
branches:
only:
- master
- develop
Loading