Skip to content

Commit 2cd328e

Browse files
Merge branch 'veterans-http-headers' into veterans-http-headers
2 parents cbd1ca8 + cb4709c commit 2cd328e

File tree

259 files changed

+17435
-11167
lines changed

Some content is hidden

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

259 files changed

+17435
-11167
lines changed

.circleci/config.yml

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ install_dependency: &install_dependency
2424
apk upgrade
2525
apk add --no-cache jq py-pip sudo
2626
sudo pip install awscli --upgrade
27-
27+
2828
install_deploysuite: &install_deploysuite
2929
name: Installation of install_deploysuite.
3030
command: |
@@ -35,16 +35,17 @@ install_deploysuite: &install_deploysuite
3535
restore_cache_settings_for_build: &restore_cache_settings_for_build
3636
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
3737

38-
save_cache_settings: &save_cache_settings
39-
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
38+
save_cache_settings: &save_cache_settings
39+
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
4040
paths:
41-
- node_modules
41+
- node_modules
4242

4343
build_docker_image: &build_docker_image
4444
name: Build of Docker image
4545
command: |
4646
source buildenvvar
4747
./build.sh
48+
no_output_timeout: 20m
4849
jobs:
4950
# Build & Deploy against development backend
5051
"build-dev":
@@ -58,11 +59,11 @@ jobs:
5859
# Restoration of node_modules from cache.
5960
- restore_cache: *restore_cache_settings_for_build
6061
# Build of Docker image.
61-
- run:
62+
- run:
6263
name: "configuring environment"
6364
command: |
6465
./awsconfiguration.sh DEV
65-
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
66+
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
6667
- run: *build_docker_image
6768
# Caching node modules.
6869
- save_cache: *save_cache_settings
@@ -85,11 +86,11 @@ jobs:
8586
- run: *install_deploysuite
8687
# Restoration of node_modules from cache.
8788
- restore_cache: *restore_cache_settings_for_build
88-
- run:
89+
- run:
8990
name: "configuring environment"
9091
command: |
9192
./awsconfiguration.sh DEV
92-
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
93+
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
9394
# Build of Docker image.
9495
- run: *build_docker_image
9596
# Caching node modules.
@@ -113,11 +114,11 @@ jobs:
113114
- run: *install_deploysuite
114115
# Restoration of node_modules from cache.
115116
- restore_cache: *restore_cache_settings_for_build
116-
- run:
117+
- run:
117118
name: "configuring environment"
118119
command: |
119120
./awsconfiguration.sh DEV
120-
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121+
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121122
# Build of Docker image.
122123
- run: *build_docker_image
123124
# Caching node modules.
@@ -141,7 +142,7 @@ jobs:
141142
- run: *install_deploysuite
142143
# Restoration of node_modules from cache.
143144
- restore_cache: *restore_cache_settings_for_build
144-
- run:
145+
- run:
145146
name: "configuring environment"
146147
command: |
147148
./awsconfiguration.sh PROD
@@ -157,7 +158,7 @@ jobs:
157158
source awsenvconf
158159
source buildenvvar
159160
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
160-
161+
161162
# Build & Deploy against prod api backend
162163
"build-prod-staging":
163164
<<: *defaults
@@ -169,7 +170,7 @@ jobs:
169170
- run: *install_deploysuite
170171
# Restoration of node_modules from cache.
171172
- restore_cache: *restore_cache_settings_for_build
172-
- run:
173+
- run:
173174
name: "configuring environment"
174175
command: |
175176
./awsconfiguration.sh PROD
@@ -190,7 +191,7 @@ jobs:
190191
--header "Circle-Token: ${CIRCLE_TOKEN}" \
191192
--header 'content-type: application/json' \
192193
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
193-
194+
194195
# Build & Deploy against production backend
195196
"build-prod":
196197
<<: *defaults
@@ -202,15 +203,15 @@ jobs:
202203
- run: *install_deploysuite
203204
# Restoration of node_modules from cache.
204205
- restore_cache: *restore_cache_settings_for_build
205-
- run:
206+
- run:
206207
name: "configuring environment"
207208
command: |
208209
./awsconfiguration.sh PROD
209210
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
210211
# Build of Docker image.
211212
- run: *build_docker_image
212213
# Caching node modules.
213-
- save_cache: *save_cache_settings
214+
- save_cache: *save_cache_settings
214215
# Deployment.
215216
- deploy:
216217
name: Running MasterScript
@@ -223,19 +224,19 @@ jobs:
223224
--header "Circle-Token: ${CIRCLE_TOKEN}" \
224225
--header 'content-type: application/json' \
225226
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
226-
227+
227228
# Automated Smoke Testing against Staging
228229
Smoke-Testing-On-Staging:
229230
<<: *defaults
230-
steps:
231+
steps:
231232
# Initialization.
232233
- checkout
233234
- setup_remote_docker
234235
- run: *install_dependency
235236
- run: *install_deploysuite
236237
# Restoration of node_modules from cache.
237238
- restore_cache: *restore_cache_settings_for_build
238-
- run:
239+
- run:
239240
name: "configuring environment"
240241
command: |
241242
./awsconfiguration.sh PROD
@@ -249,19 +250,19 @@ jobs:
249250
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
250251
- store_artifacts:
251252
path: ./automated-smoke-test/test-results
252-
253+
253254
# Automated Smoke Testing against Production
254255
Smoke-Testing-On-Production:
255256
<<: *defaults
256-
steps:
257+
steps:
257258
# Initialization.
258259
- checkout
259260
- setup_remote_docker
260261
- run: *install_dependency
261262
- run: *install_deploysuite
262263
# Restoration of node_modules from cache.
263264
- restore_cache: *restore_cache_settings_for_build
264-
- run:
265+
- run:
265266
name: "configuring environment"
266267
command: |
267268
./awsconfiguration.sh PROD
@@ -286,13 +287,19 @@ jobs:
286287
- checkout
287288
- restore_cache:
288289
key: test-node-modules-{{ checksum "package-lock.json" }}
289-
- run: npm install
290+
- run:
291+
name: Config Git
292+
command: git config --global url."https://git@".insteadOf git://
293+
- run:
294+
name: App npm install
295+
command: npm install
296+
no_output_timeout: 20m
290297
- save_cache:
291298
key: test-node-modules-{{ checksum "package-lock.json" }}
292299
paths:
293300
- node_modules
294301
- run: npm test
295-
302+
296303
Performance-Testing:
297304
docker:
298305
# specify the version you desire here
@@ -330,7 +337,7 @@ jobs:
330337

331338
- store_artifacts:
332339
path: target/jmeter/reports
333-
340+
334341
workflows:
335342
version: 2
336343
Build:
@@ -343,16 +350,17 @@ workflows:
343350
branches:
344351
only:
345352
- develop
353+
- reskin-profile
346354
# This is alternate dev env for parallel testing
347355
- "build-test":
348-
context : org-global
356+
context : org-global
349357
filters:
350358
branches:
351359
only:
352-
- nursoltan-s:veterans-http-headers
360+
- veterans-http-headers
353361
# This is alternate dev env for parallel testing
354362
- "build-qa":
355-
context : org-global
363+
context : org-global
356364
filters:
357365
branches:
358366
only:
@@ -363,22 +371,23 @@ workflows:
363371
filters:
364372
branches:
365373
only:
366-
- free
374+
- reskin-profile
367375
# This is stage env for production QA releases
368376
- "build-prod-staging":
369-
context : org-global
377+
context : org-global
370378
filters: &filters-staging
371379
branches:
372380
only:
373-
- develop
374-
# Production builds are exectuted
381+
- fix-security-headers
382+
- tco23-BS-comps
383+
# Production builds are exectuted
375384
# when PR is merged to the master
376385
# Don't change anything in this configuration
377-
# That might trigger wrong branch to be
386+
# That might trigger wrong branch to be
378387
# deployed on the production
379388
# master branch.
380389
- "build-prod":
381-
context : org-global
390+
context : org-global
382391
filters: &filters-prod
383392
branches:
384393
only:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ ENV OPTIMIZELY_SDK_KEY=$OPTIMIZELY_SDK_KEY
147147
# Testing and build of the application inside the container.
148148

149149
RUN npm config set unsafe-perm true
150+
RUN git config --global url."https://git@".insteadOf git://
150151
RUN npm install
151152
RUN npm test
152153
RUN npm run build

__tests__/shared/components/Leaderboard/__snapshots__/LeaderboardTable.jsx.snap

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ exports[`Matches shallow shapshot 1`] = `
3636
<td
3737
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-rank___3kfOx"
3838
>
39-
1
39+
<span>
40+
1
41+
</span>
4042
</td>
4143
<td
4244
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-avatar___3VhCz"
@@ -55,7 +57,8 @@ exports[`Matches shallow shapshot 1`] = `
5557
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-handle___1wDhG"
5658
>
5759
<a
58-
href="undefined/members/undefined/"
60+
href="https://www.topcoder-dev.com/members/undefined/"
61+
rel="noreferrer"
5962
style={
6063
Object {
6164
"color": null,
@@ -71,7 +74,7 @@ exports[`Matches shallow shapshot 1`] = `
7174
points
7275
</span>
7376
<span>
74-
challenges
77+
undefined challenges
7578
</span>
7679
</div>
7780
</td>
@@ -88,7 +91,9 @@ exports[`Matches shallow shapshot 1`] = `
8891
<td
8992
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-rank___3kfOx"
9093
>
91-
1
94+
<span>
95+
1
96+
</span>
9297
</td>
9398
<td
9499
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-avatar___3VhCz"
@@ -107,7 +112,8 @@ exports[`Matches shallow shapshot 1`] = `
107112
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-handle___1wDhG"
108113
>
109114
<a
110-
href="undefined/members/undefined/"
115+
href="https://www.topcoder-dev.com/members/undefined/"
116+
rel="noreferrer"
111117
style={
112118
Object {
113119
"color": null,
@@ -123,7 +129,7 @@ exports[`Matches shallow shapshot 1`] = `
123129
points
124130
</span>
125131
<span>
126-
challenges
132+
undefined challenges
127133
</span>
128134
</div>
129135
</td>
@@ -140,7 +146,9 @@ exports[`Matches shallow shapshot 1`] = `
140146
<td
141147
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-rank___3kfOx"
142148
>
143-
1
149+
<span>
150+
1
151+
</span>
144152
</td>
145153
<td
146154
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-avatar___3VhCz"
@@ -159,7 +167,8 @@ exports[`Matches shallow shapshot 1`] = `
159167
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-handle___1wDhG"
160168
>
161169
<a
162-
href="undefined/members/undefined/"
170+
href="https://www.topcoder-dev.com/members/undefined/"
171+
rel="noreferrer"
163172
style={
164173
Object {
165174
"color": null,
@@ -175,7 +184,7 @@ exports[`Matches shallow shapshot 1`] = `
175184
points
176185
</span>
177186
<span>
178-
challenges
187+
undefined challenges
179188
</span>
180189
</div>
181190
</td>
@@ -192,7 +201,9 @@ exports[`Matches shallow shapshot 1`] = `
192201
<td
193202
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-rank___3kfOx"
194203
>
195-
1
204+
<span>
205+
1
206+
</span>
196207
</td>
197208
<td
198209
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-avatar___3VhCz"
@@ -211,7 +222,8 @@ exports[`Matches shallow shapshot 1`] = `
211222
className="src-shared-components-Leaderboard-LeaderboardTable-themes-___styles__col-handle___1wDhG"
212223
>
213224
<a
214-
href="undefined/members/undefined/"
225+
href="https://www.topcoder-dev.com/members/undefined/"
226+
rel="noreferrer"
215227
style={
216228
Object {
217229
"color": null,
@@ -227,7 +239,7 @@ exports[`Matches shallow shapshot 1`] = `
227239
points
228240
</span>
229241
<span>
230-
challenges
242+
undefined challenges
231243
</span>
232244
</div>
233245
</td>

0 commit comments

Comments
 (0)