Skip to content

Commit

Permalink
Merge pull request #6357 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.17.0
  • Loading branch information
luizrrodrigues authored May 26, 2022
2 parents ab49338 + 5f8a965 commit 40f5b9d
Show file tree
Hide file tree
Showing 176 changed files with 6,815 additions and 3,496 deletions.
67 changes: 34 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ install_dependency: &install_dependency
apk upgrade
apk add --no-cache jq py-pip sudo
sudo pip install awscli --upgrade
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
Expand All @@ -35,10 +35,10 @@ install_deploysuite: &install_deploysuite
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}

save_cache_settings: &save_cache_settings
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
save_cache_settings: &save_cache_settings
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
paths:
- node_modules
- node_modules

build_docker_image: &build_docker_image
name: Build of Docker image
Expand All @@ -59,11 +59,11 @@ jobs:
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
# Build of Docker image.
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh DEV
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
- run: *build_docker_image
# Caching node modules.
- save_cache: *save_cache_settings
Expand All @@ -86,11 +86,11 @@ jobs:
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh DEV
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
Expand All @@ -114,11 +114,11 @@ jobs:
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh DEV
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
Expand All @@ -142,7 +142,7 @@ jobs:
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
Expand All @@ -158,7 +158,7 @@ jobs:
source awsenvconf
source buildenvvar
./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
Expand All @@ -170,7 +170,7 @@ jobs:
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
Expand All @@ -191,7 +191,7 @@ jobs:
--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":
<<: *defaults
Expand All @@ -203,15 +203,15 @@ jobs:
- run: *install_deploysuite
# Restoration of node_modules from cache.
- restore_cache: *restore_cache_settings_for_build
- run:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
# Build of Docker image.
- run: *build_docker_image
# Caching node modules.
- save_cache: *save_cache_settings
- save_cache: *save_cache_settings
# Deployment.
- deploy:
name: Running MasterScript
Expand All @@ -224,19 +224,19 @@ jobs:
--header "Circle-Token: ${CIRCLE_TOKEN}" \
--header 'content-type: application/json' \
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
# Automated Smoke Testing against Staging
Smoke-Testing-On-Staging:
<<: *defaults
steps:
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:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
Expand All @@ -250,19 +250,19 @@ jobs:
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
- store_artifacts:
path: ./automated-smoke-test/test-results

# Automated Smoke Testing against Production
Smoke-Testing-On-Production:
<<: *defaults
steps:
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:
- run:
name: "configuring environment"
command: |
./awsconfiguration.sh PROD
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
- run:
name: Config Git
command: git config --global url."https://git@".insteadOf git://
- run:
- run:
name: App npm install
command: npm install
no_output_timeout: 20m
Expand All @@ -299,7 +299,7 @@ jobs:
paths:
- node_modules
- run: npm test

Performance-Testing:
docker:
# specify the version you desire here
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:

- store_artifacts:
path: target/jmeter/reports

workflows:
version: 2
Build:
Expand All @@ -349,17 +349,18 @@ workflows:
filters:
branches:
only:
- free
- develop
- reskin
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
context : org-global
filters:
branches:
only:
only:
- circleci-fix
# This is alternate dev env for parallel testing
- "build-qa":
context : org-global
context : org-global
filters:
branches:
only:
Expand All @@ -373,20 +374,20 @@ workflows:
- footer-update
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
context : org-global
filters: &filters-staging
branches:
only:
- develop
- stat_marathon_match_link
# Production builds are exectuted
# 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
# That might trigger wrong branch to be
# deployed on the production
# master branch.
- "build-prod":
context : org-global
context : org-global
filters: &filters-prod
branches:
only:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`renders a full Profile correctly 1`] = `
<ProfileHeader
copilot={true}
country=""
hasMM={null}
info={
Object {
"competitionCountryCode": "USA",
Expand Down Expand Up @@ -198,6 +199,7 @@ exports[`renders a full Profile correctly 1`] = `
<StatsCategory
className=""
handle="testHandle"
hasMM={null}
inModal={false}
stats={
Object {
Expand Down Expand Up @@ -644,6 +646,7 @@ exports[`renders an empty Profile correctly 1`] = `
<ProfileHeader
copilot={false}
country=""
hasMM={null}
info={
Object {
"competitionCountryCode": "USA",
Expand Down Expand Up @@ -698,6 +701,7 @@ exports[`renders an empty Profile correctly 1`] = `
<StatsCategory
className=""
handle="testHandle"
hasMM={null}
inModal={false}
stats={
Object {
Expand Down
19 changes: 0 additions & 19 deletions __tests__/shared/components/SortingSelectBar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import Renderer from 'react-test-renderer/shallow';
import TU from 'react-dom/test-utils';
import SortingSelectBar from 'components/SortingSelectBar';

const mockData = {
Expand Down Expand Up @@ -30,21 +29,3 @@ test('Matches shallow shapshot', () => {
));
expect(renderer.getRenderOutput()).toMatchSnapshot();
});

class Wrapper extends React.Component {
componentDidMount() {}

render() {
return <SortingSelectBar {...this.props} />;
}
}

const instance = TU.renderIntoDocument((<Wrapper {...mockData} />));

test('Render properly', () => {
const dropdown = TU.findAllInRenderedTree(instance, item => item && item.className && item.className.match('Select-control'));
TU.Simulate.touchEnd(dropdown[0]);
const options = TU.findAllInRenderedTree(instance, item => item && item.className && item.className.match('Select-option'));
expect(options).toHaveLength(1);
TU.Simulate.click(options[0]);
});
Loading

0 comments on commit 40f5b9d

Please sign in to comment.