From 65e5611c66c203a4ff853e49f51ea903f88697fa Mon Sep 17 00:00:00 2001 From: Kiril Kartunov Date: Wed, 17 Jan 2024 09:50:26 +0200 Subject: [PATCH 1/2] CORE-202 shut down staging env --- .circleci/config.yml | 80 ++++---- .../config/automation-config-staging.json | 185 ------------------ 2 files changed, 42 insertions(+), 223 deletions(-) delete mode 100644 automated-smoke-test/config/automation-config-staging.json diff --git a/.circleci/config.yml b/.circleci/config.yml index 8690db12b5..abf6948989 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -162,37 +162,39 @@ 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": - <<: *defaults - steps: - # Initialization. - - checkout - - setup_remote_docker - - run: *install_dependency - - run: *install_deploysuite - # Restoration of node_modules from cache. - - restore_cache: *restore_cache_settings_for_build - - run: - name: "configuring environment" - command: | - ./awsconfiguration.sh PROD - ./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar -l prod_communityapp_buildvar_ps - # Build of Docker image. - - run: *build_docker_image - # Caching node modules. - - save_cache: *save_cache_settings - # Deployment. - - deploy: - name: Running MasterScript - command: | - source awsenvconf - source buildenvvar - ./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}}' + # Deprecate this workflow due to beta env shutdown + # https://topcoder.atlassian.net/browse/CORE-202 + # "build-prod-staging": + # <<: *defaults + # steps: + # # Initialization. + # - checkout + # - setup_remote_docker + # - run: *install_dependency + # - run: *install_deploysuite + # # Restoration of node_modules from cache. + # - restore_cache: *restore_cache_settings_for_build + # - run: + # name: "configuring environment" + # command: | + # ./awsconfiguration.sh PROD + # ./buildenv.sh -e PROD -b staging_communityapp_buildvar,staging_communityapp_deployvar -l prod_communityapp_buildvar_ps + # # Build of Docker image. + # - run: *build_docker_image + # # Caching node modules. + # - save_cache: *save_cache_settings + # # Deployment. + # - deploy: + # name: Running MasterScript + # command: | + # source awsenvconf + # source buildenvvar + # ./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": @@ -377,13 +379,15 @@ workflows: # only: # - develop # This is stage env for production QA releases - - "build-prod-staging": - context : org-global - filters: &filters-staging - branches: - only: - - develop - - CORE-201 + # Deprecate this workflow due to beta env shutdown + # https://topcoder.atlassian.net/browse/CORE-202 + # - "build-prod-staging": + # context : org-global + # filters: &filters-staging + # branches: + # only: + # - develop + # - CORE-201 # Production builds are exectuted # when PR is merged to the master # Don't change anything in this configuration diff --git a/automated-smoke-test/config/automation-config-staging.json b/automated-smoke-test/config/automation-config-staging.json deleted file mode 100644 index 67d47f8f24..0000000000 --- a/automated-smoke-test/config/automation-config-staging.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "env": "staging", - "logoRedirectionUrl": "https://www.topcoder.com/", - "businessUrl": "https://www.topcoder.com/", - "switchToBusinessUrl": "https://www.topcoder.com/", - "loginUrl": "https://auth.topcoder.com/", - "redirectLoginUrl": "https://accounts-auth0.topcoder.com/?retUrl=http://www.topcoder.com/", - "homePageUrl": "https://www.topcoder.com/", - "splashPageUrl": "https://www.topcoder.com/splash/", - "logoutUrl": "https://www.topcoder.com/logout", - "toolsUrl": "https://staging-community-app.topcoder.com/settings/tools", - "accountUrl": "https://staging-community-app.topcoder.com/settings/account", - "profileUrl": "https://staging-community-app.topcoder.com/settings/profile", - "preferencesUrl": "https://staging-community-app.topcoder.com/settings/preferences", - "challengeListingUrl": "https://staging-community-app.topcoder.com/challenges", - "subMenuUrls": { - "overview": "https://staging-community-app.topcoder.com/community/learn", - "howItWorks": "https://staging-community-app.topcoder.com/thrive/tracks?track=Topcoder", - "allChallenges": "http://staging-community-app.topcoder.com/challenges", - "competitiveProgramming": "https://staging-community-app.topcoder.com/community/arena", - "taas": "https://staging-community-app.topcoder.com/gigs", - "practice": "https://staging-community-app.topcoder.com/community/practice", - "competitiveProgrammingThrive": "https://staging-community-app.topcoder.com/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "https://staging-community-app.topcoder.com/thrive/tracks?track=Data%20Science&tax=", - "designThrive": "https://staging-community-app.topcoder.com/thrive/tracks?track=Design&tax=", - "developmentThrive": "https://staging-community-app.topcoder.com/thrive/tracks?track=Development&tax=", - "qaThrive": "https://staging-community-app.topcoder.com/thrive/tracks?track=QA&tax=", - "tco": "https://staging-community-app.topcoder.com/community/member-programs/topcoder-open", - "programs": "https://staging-community-app.topcoder.com/community/member-programs", - "forums": "https://accounts.topcoder.com/member", - "statistics": "https://staging-community-app.topcoder.com/community/statistics", - "blog": "https://www.topcoder.com/blog/", - "thrive": "https://staging-community-app.topcoder.com/thrive" - }, - "subMenuUrlsAfterLogin": { - "dashboard": "https://staging-community-app.topcoder.com/my-dashboard", - "myProfile": "https://staging-community-app.topcoder.com/members/CustomerUser", - "payments": "https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false", - "competitiveProgramming": "https://staging-community-app.topcoder.com/community/arena", - "forums": "https://apps.topcoder.com/forums/" - }, - "footerLinks": { - "allChallenges": "https://www.topcoder.com/challenges", - "competitiveProgramming": "https://www.topcoder.com/community/arena", - "taas": "https://www.topcoder.com/gigs", - "competitiveProgrammingThrive": "https://www.topcoder.com/thrive/tracks?track=Competitive%20Programming", - "dataScienceThrive": "https://www.topcoder.com/thrive/tracks?track=Data%20Science", - "designThrive": "https://www.topcoder.com/thrive/tracks?track=Design", - "developmentThrive": "https://www.topcoder.com/thrive/tracks?track=Development", - "qaThrive": "https://www.topcoder.com/thrive/tracks?track=QA", - "tco": "https://www.topcoder.com/community/member-programs/topcoder-open", - "programs": "https://www.topcoder.com/community/member-programs", - "forums": "https://apps.topcoder.com/forums", - "statistics": "https://www.topcoder.com/community/statistics", - "blog": "https://www.topcoder.com/blog/", - "thrive": "https://www.topcoder.com/thrive", - "gettingPaid": "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Getting%20Paid", - "faq": "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=FAQ", - "generalInfo": "https://www.topcoder.com/thrive/tracks?track=Topcoder", - "websiteHelp": "mailto:support@topcoder.com", - "admins": "https://www.topcoder.com/community/admins", - "contactUs": "https://www.topcoder.com/community/contact", - "joinCommunity": "https://accounts.topcoder.com/member/registration?utm_source=community&utm_campaign=tc-footer&utm_medium=promotion", - "aboutCommunity": "https://www.topcoder.com/community/learn", - "changeLog": "https://www.topcoder.com/community/changelog", - "talkToSales": "https://go.topcoder.com/contact/", - "events": "https://www.topcoder.com/community/events", - "terms": "https://www.topcoder.com/community/terms", - "challengePipeline": "https://www.topcoder.com/community/pipeline", - "practice": "https://www.topcoder.com/community/practice" - }, - "footerLinksAfterLogin": { - "competitiveProgramming": "https://www.topcoder.com/community/arena" - }, - "socialLinks": { - "facebook": "https://www.facebook.com/topcoder/", - "youtube": "https://www.youtube.com/c/TopcoderOfficial", - "linkedin": "www.linkedin.com", - "twitter": "https://twitter.com/topcoder", - "instagram": "https://www.instagram.com/topcoder/" - }, - "forumSettingUrl": "https://apps.topcoder.com/forums/?module=Settings", - "paymentSettingUrl": "https://community.topcoder.com/PactsMemberServlet?module=PaymentHistory&full_list=false", - "helpUrl": "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "searchUrl": "https://staging-community-app.topcoder.com/search/members", - "allNotificationsUrl": "https://staging-community-app.topcoder.com/notifications", - "policiesUrl": "https://www.topcoder.com/policy", - "username": "CustomerUser", - "password": "appirio123", - "email": "topcoderconnect@gmail.com", - "challangesLinks": { - "rssFeedUrl": "http://feeds.topcoder.com/challenges/feed", - "aboutUrl": "https://www.topcoder.com/about-the-2018-topcoder-open/", - "contactUrl": "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles/hc/en-us/articles/219069687-Contact-Support", - "privacyUrl": "https://www.topcoder.com/privacy-policy/", - "helpUrl": "https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles", - "termsUrl": "https://www.topcoder.com/community/how-it-works/terms/" - }, - "challengeDetail": { - "url": "https://staging-community-app.topcoder.com/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023", - "termsLinkText": "Standard Terms for Topcoder Competitions v2.2", - "challengeName": "[Do not register] Sample challenge for Automation.", - "challengeTag": "QA", - "termUrl": "https://staging-community-app.topcoder.com/challenges/terms/detail/9ef9dec4-dddb-48c9-9cce-659db68bc5ac", - "forumUrl": "https://apps.topcoder.com/forums/?module=Category&categoryID=82117", - "submissionUrl": "https://staging-community-app.topcoder.com/challenges/4bd5cf15-41ee-4932-927d-fda5731ec023/submit", - "scorecardUrl": "https://software.topcoder.com/review/actions/ViewScorecard?scid=30002133", - "searchText": "KGuTnJmJ" - }, - "myDashboard": { - "url": "https://staging-community-app.topcoder.com/my-dashboard", - "challenge": { - "name": "Test challenge- Spec Preview", - "currentPhase": "Submission", - "linkToSubmit": "", - "userRole": "" - }, - "community": { - "name": "Blockchain Community", - "learnMoreUrl": "https://blockchain.topcoder.com/" - } - }, - "memberProfile": { - "url": "https://staging-community-app.topcoder.com/members", - "profileInfo": { - "handle": "oton", - "numberOfCollapsedSkills": 4, - "verifiedSkill": "Geometry", - "noneVerifiedSkill": "User Experience (Ux)", - "country": "INDONESIA", - "memberSince": "MEMBER SINCE MAY, 2006", - "tracks": ["COPILOT", "DEVELOP", "DESIGN", "DATA_SCIENCE"], - "quote": "Indonesian. Dad of two. IA. WordPress/WooCommerce. Rails.", - "forumLink": "https://apps.topcoder.com/forums/?module=History&userID=22076237" - }, - "memberHaveWebSectionInfo": { - "handle": "oton", - "webLink": "HTTPS://ARIFWIDIANTO.COM" - }, - "copilotProfile": { - "handle": "oton", - "trackName": "COPILOT", - "fullfillmentInfo": { - "name": "COPILOT", - "info": "92.31%", - "infoTitle": "FULFILLMENT", - "link": "https://staging-community-app.topcoder.com/members/oton/details/?track=COPILOT&subTrack=COPILOT" - } - }, - "designProfile": { - "handle": "oton", - "trackName": "DESIGN", - "numberOfSubtracks": 8, - "winInfo": { - "name": "WEB DESIGNS", - "info": "4", - "infoTitle": "WINS", - "link": "https://staging-community-app.topcoder.com/members/oton/details/?track=DESIGN&subTrack=WEB_DESIGNS" - } - }, - "developmentProfile": { - "handle": "oton", - "trackName": "DEVELOP", - "numberOfSubtracks": 2, - "winInfo": { - "name": "UI PROTOTYPE COMPETITION", - "info": "908", - "infoTitle": "RATING", - "link": "https://staging-community-app.topcoder.com/members/oton/details/?track=DEVELOP&subTrack=UI_PROTOTYPE_COMPETITION" - } - }, - "dataScienceProfile": { - "handle": "oton", - "trackName": "DATA_SCIENCE", - "numberOfSubtracks": 1, - "ratingInfo": { - "name": "SRM", - "info": "952", - "infoTitle": "RATING", - "link": "https://staging-community-app.topcoder.com/members/oton/details/?track=DATA_SCIENCE&subTrack=SRM" - } - } - } -} - From 5924b87712063673dc75363a49a1d12597592db9 Mon Sep 17 00:00:00 2001 From: Kiril Kartunov Date: Wed, 17 Jan 2024 09:54:38 +0200 Subject: [PATCH 2/2] CORE-202 fix circleci yml for smoke --- .circleci/config.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index abf6948989..ffbff9a26b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -414,12 +414,6 @@ workflows: jobs: - Hold [Smoke-Testing]: type: approval - - Smoke-Testing-On-Staging: - context : org-global - requires: - - Hold [Smoke-Testing] - filters: - <<: *filters-staging - Smoke-Testing-On-Production: context : org-global requires: