Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 713cae1

Browse files
authored
Version 2.0.0 Automated Release PR (#323)
2 parents 37cdf66 + 34a06ae commit 713cae1

32 files changed

+1138
-347
lines changed
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
name: nightswatch-workflow
2+
3+
on:
4+
schedule:
5+
- cron: '10 1 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
deploy-latest-clo-us-west-2:
11+
runs-on: ubuntu-latest
12+
env:
13+
REGION: 'us-west-2'
14+
steps:
15+
- name: Initialize build AWS credentials
16+
uses: aws-actions/configure-aws-credentials@v1
17+
with:
18+
aws-access-key-id: ${{ secrets.BUILD_AWS_ACCESS_KEY_ID }}
19+
aws-secret-access-key: ${{ secrets.BUILD_AWS_SECRET_ACCESS_KEY }}
20+
aws-region: us-west-2
21+
- name: Generate short sha
22+
run: |
23+
echo "CONTENT_LOCALIZATION_STACK_NAME=clsol" >> $GITHUB_ENV
24+
echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
25+
- name: Download all workflow run artifacts
26+
uses: actions/download-artifact@v2
27+
- name: Deploy
28+
run: |
29+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
30+
REGION=us-west-2
31+
VERSION={SHORT_SHA}
32+
TEMPLATE=https://solutions-reference.s3.amazonaws.com/content-localization-on-aws/latest/content-localization-on-aws.template
33+
34+
# Delete $CONTENT_LOCALIZATION_STACK_NAME if it already exists.
35+
# This is necessary in order to rerun github action workflows.
36+
# If $CONTENT_LOCALIZATION_STACK_NAME exists...
37+
if [ $(echo $(aws cloudformation list-stacks --query 'StackSummaries[?StackName==`$CONTENT_LOCALIZATION_STACK_NAME`]' --output text) | tr -d '\n' | wc -c) > 0 ]; then
38+
echo "Removing stack, $CONTENT_LOCALIZATION_STACK_NAME"
39+
aws cloudformation delete-stack --stack-name $CONTENT_LOCALIZATION_STACK_NAME --region $REGION
40+
aws cloudformation wait stack-delete-complete --stack-name $CONTENT_LOCALIZATION_STACK_NAME
41+
fi
42+
43+
echo "deploy cloudformation: 'aws cloudformation create-stack --stack-name $CONTENT_LOCALIZATION_STACK_NAME --template-url $TEMPLATE --region $REGION --parameters ParameterKey=AdminEmail,ParameterValue=$EMAIL ParameterKey=OpensearchNodeSize,ParameterValue=t3.small.search --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --disable-rollback'"
44+
45+
aws cloudformation create-stack --stack-name $CONTENT_LOCALIZATION_STACK_NAME --template-url $TEMPLATE --region $REGION --parameters ParameterKey=AdminEmail,ParameterValue=$EMAIL ParameterKey=OpensearchNodeSize,ParameterValue=t3.small.search --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --disable-rollback
46+
aws cloudformation wait stack-create-complete --stack-name $CONTENT_LOCALIZATION_STACK_NAME
47+
status=$(aws cloudformation describe-stacks --stack-name $CONTENT_LOCALIZATION_STACK_NAME --query 'Stacks[0].StackStatus')
48+
while [ "$status" == "CREATE_IN_PROGRESS" ]; do aws cloudformation wait stack-create-complete --stack-name $CONTENT_LOCALIZATION_STACK_NAME; status=$(aws cloudformation describe-stacks --stack-name $CONTENT_LOCALIZATION_STACK_NAME --query 'Stacks[0].StackStatus'); done
49+
echo "Create stack $CONTENT_LOCALIZATION_STACK_NAME status: $status"
50+
exit 0
51+
52+
- name: Build Failed
53+
if: ${{ failure() }}
54+
uses: nashmaniac/create-issue-action@v1.1
55+
with:
56+
title: Nightswatch deploy for Content Localization failed
57+
token: ${{secrets.GITHUB_TOKEN}}
58+
assignees: ianwow
59+
labels: bug
60+
body: Nightswatch deploy for Content Localization failed
61+
62+
test-content-localization-us-west-2:
63+
needs: deploy-latest-clo-us-west-2
64+
runs-on: ubuntu-latest
65+
env:
66+
MIE_REGION: 'us-west-2'
67+
steps:
68+
- name: Check out release branch
69+
uses: actions/checkout@v2.3.4
70+
with:
71+
ref: main
72+
73+
- name: Initialize test AWS credentials
74+
uses: aws-actions/configure-aws-credentials@v1
75+
with:
76+
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
77+
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
78+
aws-region: us-west-2
79+
80+
- name: Generate short sha
81+
run: |
82+
echo "CONTENT_LOCALIZATION_STACK_NAME=clsol" >> $GITHUB_ENV
83+
- name: Run cfn_nag
84+
uses: stelligent/cfn_nag@master
85+
continue-on-error: true
86+
with:
87+
input_path: deployment
88+
- name: Initialize build AWS credentials
89+
uses: aws-actions/configure-aws-credentials@v1
90+
with:
91+
aws-access-key-id: ${{ secrets.BUILD_AWS_ACCESS_KEY_ID }}
92+
aws-secret-access-key: ${{ secrets.BUILD_AWS_SECRET_ACCESS_KEY }}
93+
aws-region: us-west-2
94+
- name: Setup Chromedriver
95+
uses: nanasess/setup-chromedriver@master
96+
- name: Get user pool id
97+
run: |
98+
aws cloudformation describe-stacks --query 'Stacks[?starts_with(StackName, `clsol-AuthStack`)].Outputs[1].OutputValue' --output text --region us-west-2
99+
echo "USER_POOL_ID=`aws cloudformation describe-stacks --query 'Stacks[?starts_with(StackName, \`clsol-AuthStack\`)].Outputs[1].OutputValue' --output text --region us-west-2`" >> $GITHUB_ENV
100+
- name: Reset CL user password
101+
run: |
102+
aws cognito-idp admin-set-user-password --user-pool-id $USER_POOL_ID --username ${{ secrets.TEST_ADMIN_EMAIL }} --password ${{ secrets.TEST_ADMIN_PASSWORD }} --permanent --region us-west-2
103+
- name: Get MIE stack name
104+
run: |
105+
echo "MIE_STACK_NAME=`aws cloudformation describe-stacks --region us-west-2 --query 'sort_by(Stacks[?starts_with(StackName, \`clsol-MieStack\`)].{StackName: StackName, CreationTime: CreationTime}, &CreationTime)[0].StackName' --output text`" >> $GITHUB_ENV
106+
- name: Get Content Localization endpoint
107+
run: |
108+
echo "APP_ENDPOINT=`aws cloudformation describe-stacks --query 'Stacks[?starts_with(StackName, \`clsol-WebStack\`)].Outputs[0].OutputValue' --output text`" >> $GITHUB_ENV
109+
- name: Set admin creds
110+
run: |
111+
echo APP_USERNAME=${{ secrets.TEST_ADMIN_EMAIL }} >> $GITHUB_ENV
112+
echo APP_PASSWORD=${{ secrets.TEST_ADMIN_PASSWORD }} >> $GITHUB_ENV
113+
- name: Set media path and file name
114+
run: |
115+
echo TEST_MEDIA_PATH=$GITHUB_WORKSPACE/test/e2e/ >> $GITHUB_ENV
116+
echo TEST_FILE_NAME=run_e2e.sh >> $GITHUB_ENV
117+
- name: Initialize test AWS credentials
118+
uses: aws-actions/configure-aws-credentials@v1
119+
with:
120+
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
121+
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
122+
aws-region: us-west-2
123+
- name: Run e2e tests
124+
run: |
125+
cd $GITHUB_WORKSPACE
126+
cd test/e2e
127+
./run_e2e.sh
128+
- name: Test Failed
129+
if: ${{ failure() }}
130+
uses: nashmaniac/create-issue-action@v1.1
131+
with:
132+
title: Nightswatch test for Content Localization failed
133+
token: ${{secrets.GITHUB_TOKEN}}
134+
assignees: ianwow
135+
labels: bug
136+
body: Nightswatch test for Content Localization failed
137+
- name: Initialize build AWS credentials
138+
uses: aws-actions/configure-aws-credentials@v1
139+
with:
140+
aws-access-key-id: ${{ secrets.BUILD_AWS_ACCESS_KEY_ID }}
141+
aws-secret-access-key: ${{ secrets.BUILD_AWS_SECRET_ACCESS_KEY }}
142+
aws-region: us-west-2
143+
- name: Delete stacks
144+
run: |
145+
aws cloudformation delete-stack --stack-name $CONTENT_LOCALIZATION_STACK_NAME
146+
aws cloudformation wait stack-delete-complete --stack-name $CONTENT_LOCALIZATION_STACK_NAME

.github/workflows/pr-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
cd deployment
3737
CONTENT_LOCALIZATION_STACK_NAME="pr${SHORT_SHA}"
38-
EMAIL="micontentlocalization@gmail.com"
38+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
3939
REGION="us-west-2"
4040
VERSION="0.0.0"
4141
aws s3 mb s3://$DIST_OUTPUT_BUCKET-$REGION --region $REGION
@@ -186,7 +186,7 @@ jobs:
186186
uses: actions/download-artifact@v2
187187
- name: Deploy
188188
run: |
189-
EMAIL=sample@example.com
189+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
190190
REGION=us-west-2
191191
VERSION="pr-${SHORT_SHA}"
192192
DIST_OUTPUT_BUCKET=micl-dev
@@ -242,7 +242,7 @@ jobs:
242242
uses: actions/download-artifact@v2
243243
- name: Deploy
244244
run: |
245-
EMAIL=micontentlocalization@gmail.com
245+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
246246
REGION=us-west-2
247247
VERSION="pr-${SHORT_SHA}"
248248
DIST_OUTPUT_BUCKET=micl-dev

.github/workflows/release-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
uses: actions/download-artifact@v2
9393
- name: Deploy
9494
run: |
95-
EMAIL="sample@example.com"
95+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
9696
REGION=${{ env.REGION }}
9797
MIE_STACK_NAME=${{ env.MIE_STACK_NAME }}
9898
CONTENT_LOCALIZATION_STACK_NAME=${{ env.CONTENT_LOCALIZATION_STACK_NAME }}
@@ -183,7 +183,7 @@ jobs:
183183
uses: actions/download-artifact@v2
184184
- name: Deploy
185185
run: |
186-
EMAIL="sample@example.com"
186+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
187187
REGION=${{ env.REGION }}
188188
MIE_STACK_NAME=${{ env.MIE_STACK_NAME }}
189189
CONTENT_LOCALIZATION_STACK_NAME=${{ env.CONTENT_LOCALIZATION_STACK_NAME }}
@@ -434,7 +434,7 @@ jobs:
434434
uses: actions/download-artifact@v2
435435
- name: Deploy
436436
run: |
437-
EMAIL=micontentlocalization@gmail.com
437+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
438438
REGION=${{ env.REGION }}
439439
MIE_STACK_NAME=${{ env.MIE_STACK_NAME }}
440440
CONTENT_LOCALIZATION_STACK_NAME=${{ env.CONTENT_LOCALIZATION_STACK_NAME }}
@@ -495,7 +495,7 @@ jobs:
495495
uses: actions/download-artifact@v2
496496
- name: Deploy
497497
run: |
498-
EMAIL=micontentlocalization@gmail.com
498+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
499499
REGION=${{ env.REGION }}
500500
MIE_STACK_NAME=${{ env.MIE_STACK_NAME }}
501501
CONTENT_LOCALIZATION_STACK_NAME=${{ env.CONTENT_LOCALIZATION_STACK_NAME }}

.github/workflows/scheduled-workflow.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: scheduled-workflow
22

33
on:
4-
schedule:
5-
- cron: '0 4 * * *'
4+
#schedule:
5+
# - cron: '0 4 * * *'
66
workflow_dispatch:
77

88
jobs:
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
cd deployment
3535
CONTENT_LOCALIZATION_STACK_NAME="cl"
36-
EMAIL="micontentlocalization@gmail.com"
36+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
3737
REGION="us-west-2"
3838
VERSION=${SHORT_SHA}
3939
aws s3 mb s3://$DIST_OUTPUT_BUCKET-$REGION --region $REGION
@@ -52,11 +52,11 @@ jobs:
5252
build-mie-dev-us-west-2:
5353
runs-on: ubuntu-latest
5454
steps:
55-
- name: Checkout MIE development branch
55+
- name: Checkout MIE release branch
5656
uses: actions/checkout@v2
5757
with:
5858
repository: awslabs/aws-media-insights-engine
59-
ref: development
59+
ref: master
6060

6161
- name: Initialize AWS credentials
6262
uses: aws-actions/configure-aws-credentials@v1
@@ -184,7 +184,7 @@ jobs:
184184
uses: actions/download-artifact@v2
185185
- name: Deploy
186186
run: |
187-
EMAIL=micontentlocalization@gmail.com
187+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
188188
REGION=us-west-2
189189
VERSION={SHORT_SHA}
190190
DIST_OUTPUT_BUCKET=micl-dev
@@ -240,7 +240,7 @@ jobs:
240240
uses: actions/download-artifact@v2
241241
- name: Deploy
242242
run: |
243-
EMAIL=micontentlocalization@gmail.com
243+
EMAIL=${{ secrets.TEST_ADMIN_EMAIL }}
244244
REGION=us-west-2
245245
VERSION=${SHORT_SHA}
246246
DIST_OUTPUT_BUCKET=micl-dev

.viperlightignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
.github/workflows/release-workflow.yml:28
2+
.github/workflows/release-workflow.yml:657
3+
.github/workflows/release-workflow.yml:758
4+
.github/workflows/release-workflow.yml:773
15

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.0] - 03/01/2022
8+
9+
### New:
10+
11+
* Upgrade MIE dependency to v4.0.1
12+
* Add support for using custom language models with Transcribe (#297)
13+
* Document instructions for starting workflows from the command line and from an S3 trigger. (#266)
14+
* Record the state machine ARN for the VideoWorkflow in cloud formation outputs. This makes it easier to find the video workflow in AWS Step Functions. (#268)
15+
* Support the new languages and variants recently added to Transcribe and Translate (#263)
16+
* Add option to see API requests for computer vision results in the front-end (#303)
17+
* Save filenames to Opensearch so assets can be found by searching for their filename (#249)
18+
* Add an option to auto-detect source language (#209)
19+
20+
### Fixed:
21+
22+
* Fix missing data in line chart for computer vision results (#303)
23+
* Fix opensearch throttling (#303)
24+
* Remove unused subtitles checkbox from Upload view (#300)
25+
* Avoid showing empty operator configurations in media summary view (#299)
26+
* Fix miscellaneous bugs in the workflow configuration used to save subtitle edits (#286, #289)
27+
* Fix invalid table format that's used when saving custom vocabularies (#260)
28+
* Fix video load error that occurs with large caption data (#239)
29+
* Support filenames with multiple periods (#237)
30+
* Make language selection for Translate behave more intuitively (#228)
31+
* Fix forever spinner that occurs when there is no data (#225)
32+
* Fix the missing red video player position marker (#224)
33+
* Add missing option to download SRT formatted subtitles (#272)
34+
* Fix broken video player for S3 triggered workflows (#271)
35+
* Fix invalid table format that's used when saving custom vocabularies (#260)
36+
* Use the correct source language when saving a new or updated custom vocabulary (#258)
37+
* Fix bug in WebCaptions that occurs when using source language autodetection in Transcribe (#306)
38+
* Removed profanity checker due to insufficient support for non-english languages (#256)
39+
740
## [1.0.0] - 2021-11-3
841
### Added
9-
- CHANGELOG version 1.0.0 release
42+
- CHANGELOG version 1.0.0 release

0 commit comments

Comments
 (0)