From 9e353290a5c8b286cdd12aa9bf39b735d488aef2 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 12:57:04 -0300 Subject: [PATCH 01/11] ast: Fix store_artifacts --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a2e1c3acba..eb8e7c3e77 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -248,7 +248,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod - store_artifacts: - path: ./automated-smoke-test/test-results + path: ./test-results # Automated Smoke Testing against Production Smoke-Testing-On-Production: @@ -274,7 +274,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - store_artifacts: - path: ./automated-smoke-test/test-results + path: ./test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, From 8dcb53d53830f272469302fced15e82f3d892016 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 12:57:37 -0300 Subject: [PATCH 02/11] ci: Deploy ast-store-artifacts to Stag env --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb8e7c3e77..d32a79f85b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -372,7 +372,7 @@ workflows: branches: only: - develop - - ast-member-profile + - ast-store-artifacts # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration From 96ee4a00b45d87567734770c722ffba40ff256cf Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 13:14:52 -0300 Subject: [PATCH 03/11] Run smoke testing only --- .circleci/config.yml | 7 +++---- automated-smoke-test/conf.ts | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d32a79f85b..dcbddde545 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,10 @@ version: 2.1 parameters: run_basedeployment: - default: true + default: false type: boolean run_smoketesting: - default: false + default: true type: boolean run_performancetesting: default: false @@ -350,7 +350,6 @@ workflows: branches: only: - free - - fix-country-setting-page # This is alternate dev env for parallel testing - "build-qa": context : org-global @@ -364,7 +363,7 @@ workflows: filters: branches: only: - - new-tabs-theme + - free # This is stage env for production QA releases - "build-prod-staging": context : org-global diff --git a/automated-smoke-test/conf.ts b/automated-smoke-test/conf.ts index cef10377c4..662e2da728 100644 --- a/automated-smoke-test/conf.ts +++ b/automated-smoke-test/conf.ts @@ -41,10 +41,10 @@ exports.config = { // '../temp/test-suites/tc-header.spec.js', // '../temp/test-suites/tc-footer.spec.js', // '../temp/test-suites/tc-preferences.spec.js', - '../temp/test-suites/tc-challenge-listing.spec.js', - '../temp/test-suites/tc-challenge-detail.spec.js', + // '../temp/test-suites/tc-challenge-listing.spec.js', + // '../temp/test-suites/tc-challenge-detail.spec.js', // '../temp/test-suites/tc-my-dashboard.spec.js', - '../temp/test-suites/tc-member-profile.spec.js', + // '../temp/test-suites/tc-member-profile.spec.js', ], // Options to be passed to Jasmine. From 9568c3f52522c158ed722476ca80159645e4ebba Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 13:20:48 -0300 Subject: [PATCH 04/11] ast: fix store_artifacts --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dcbddde545..f461119512 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -248,7 +248,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod - store_artifacts: - path: ./test-results + path: ./automated-smoke-test # Automated Smoke Testing against Production Smoke-Testing-On-Production: @@ -274,7 +274,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - store_artifacts: - path: ./test-results + path: ./automated-smoke-test # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, From 22115c9e21168f2cfec372ba031379f85e7f1f9b Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 13:38:49 -0300 Subject: [PATCH 05/11] ast: store_artifacts absolute path --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f461119512..76cd2b2397 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -248,7 +248,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod - store_artifacts: - path: ./automated-smoke-test + path: /test-results # Automated Smoke Testing against Production Smoke-Testing-On-Production: @@ -274,7 +274,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - store_artifacts: - path: ./automated-smoke-test + path: /test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, From 04e5395b892f6cc0d54dc0aab0c3c8772c2a8b78 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 17:09:21 -0300 Subject: [PATCH 06/11] ast: store_artifacts - use /tmp folder --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 76cd2b2397..b3469dce6b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -248,7 +248,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod - store_artifacts: - path: /test-results + path: /tmp/_circleci_local_build_repo/automated-smoke-test/test-results # Automated Smoke Testing against Production Smoke-Testing-On-Production: @@ -274,7 +274,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - store_artifacts: - path: /test-results + path: /tmp/_circleci_local_build_repo/automated-smoke-test/test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, From 02cb9d4070bce890e292bb270c60d3b3ed2f8b60 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 17:31:25 -0300 Subject: [PATCH 07/11] ast: /tmp check --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b3469dce6b..c7a554ba11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -247,6 +247,7 @@ jobs: source awsenvconf source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod + ls /tmp - store_artifacts: path: /tmp/_circleci_local_build_repo/automated-smoke-test/test-results From 299b5d59e15bf0d72b4e2a51848c8be43c383db2 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 18:44:06 -0300 Subject: [PATCH 08/11] ast: store_artifacts - copy results from container --- .circleci/config.yml | 4 ++-- automated-smoke-test/smoketest.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c7a554ba11..c5b32d372a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -249,7 +249,7 @@ jobs: ./automated-smoke-test/smoketest.sh automation-config-staging.json prod ls /tmp - store_artifacts: - path: /tmp/_circleci_local_build_repo/automated-smoke-test/test-results + path: ./automated-smoke-test/test-results # Automated Smoke Testing against Production Smoke-Testing-On-Production: @@ -275,7 +275,7 @@ jobs: source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - store_artifacts: - path: /tmp/_circleci_local_build_repo/automated-smoke-test/test-results + path: ./automated-smoke-test/test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, diff --git a/automated-smoke-test/smoketest.sh b/automated-smoke-test/smoketest.sh index 7cfdc69084..b98c91343c 100755 --- a/automated-smoke-test/smoketest.sh +++ b/automated-smoke-test/smoketest.sh @@ -23,5 +23,6 @@ track_error $? "Environment setting" cp ${APPCONFIGFILENAME} config/config.json docker build -t comm-smoke:latest . -docker run --shm-size=2g comm-smoke:latest ./testrun.sh -d -p 4444:4444 +docker run --name comm-smoke --shm-size=2g comm-smoke:latest ./testrun.sh -d -p 4444:4444 +docker cp comm-smoke:./automated-smoke-test/test-results . track_error $? "Test case Failed" From 2af0e64cfc2e8cd2502233af48b6b2b92d9b7b0c Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 18:46:00 -0300 Subject: [PATCH 09/11] Remove debug code --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c5b32d372a..3ed5742c9d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -247,7 +247,6 @@ jobs: source awsenvconf source buildenvvar ./automated-smoke-test/smoketest.sh automation-config-staging.json prod - ls /tmp - store_artifacts: path: ./automated-smoke-test/test-results From acdd0e3829bb8090c7217e080b272938289c8660 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 19:31:23 -0300 Subject: [PATCH 10/11] ast: revert to use all test cases --- automated-smoke-test/conf.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automated-smoke-test/conf.ts b/automated-smoke-test/conf.ts index 662e2da728..cef10377c4 100644 --- a/automated-smoke-test/conf.ts +++ b/automated-smoke-test/conf.ts @@ -41,10 +41,10 @@ exports.config = { // '../temp/test-suites/tc-header.spec.js', // '../temp/test-suites/tc-footer.spec.js', // '../temp/test-suites/tc-preferences.spec.js', - // '../temp/test-suites/tc-challenge-listing.spec.js', - // '../temp/test-suites/tc-challenge-detail.spec.js', + '../temp/test-suites/tc-challenge-listing.spec.js', + '../temp/test-suites/tc-challenge-detail.spec.js', // '../temp/test-suites/tc-my-dashboard.spec.js', - // '../temp/test-suites/tc-member-profile.spec.js', + '../temp/test-suites/tc-member-profile.spec.js', ], // Options to be passed to Jasmine. From 9221b136687a4250de45df2df0e86dce43a873fa Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Tue, 6 Jul 2021 20:05:19 -0300 Subject: [PATCH 11/11] ast: Revert circleci to run deployment first --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ed5742c9d..6a576cb529 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,10 @@ version: 2.1 parameters: run_basedeployment: - default: false + default: true type: boolean run_smoketesting: - default: true + default: false type: boolean run_performancetesting: default: false