Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deprecated] migrate code from googleapis/nodejs-media-translation #2803

Closed
wants to merge 60 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
69f3f8d
feat!: initial library generation (#1)
bcoe Mar 19, 2020
64e6f05
chore: release 1.0.0 (#4)
release-please[bot] Mar 24, 2020
335dffa
feat: adds media translation file, mic samples
telpirion Mar 24, 2020
f63a098
feat!: drop node8 support (#17)
alexander-fenster Apr 2, 2020
30737b0
chore: release 2.0.0 (#18)
release-please[bot] Apr 7, 2020
6105674
feat: adds 'single_utterance' to stream from file sample (#20)
telpirion Apr 13, 2020
44735a0
fix: streaming mic sample
telpirion May 27, 2020
42f65d9
docs: update product doc links
yoshi-automation Jun 4, 2020
aa35da3
chore: release 2.1.0 (#27)
release-please[bot] Jun 4, 2020
1834906
chore(deps): update dependency mocha to v8 (#49)
renovate-bot Jun 11, 2020
8919a11
feat(samples): demonstrate real-time conversation translation (#48)
telpirion Jun 16, 2020
00de739
chore: release 2.2.0 (#47)
release-please[bot] Jun 29, 2020
839ce1e
chore: release 2.2.1 (#95)
release-please[bot] Nov 12, 2020
8e1a4ae
chore: release 2.2.2 (#98)
release-please[bot] Dec 2, 2020
5bf13e2
fix: Added check to see if stream has been destroyed before writing r…
awoehler Feb 3, 2021
d8a640a
chore: release 2.2.3 (#109)
release-please[bot] Mar 2, 2021
b3ff86b
samples: fixes a typo (#154)
telpirion Jun 18, 2021
289c718
samples: another typo in comments (#155)
telpirion Jun 22, 2021
6eb239f
chore: release 2.3.0 (#159)
release-please[bot] Jun 25, 2021
1619b04
chore: release 2.3.1 (#163)
release-please[bot] Jun 30, 2021
5584347
chore: release 2.3.2 (#165)
release-please[bot] Jul 12, 2021
3ae815c
chore: release 2.3.3 (#167)
release-please[bot] Jul 21, 2021
c5e3942
chore: release 2.3.4 (#175)
release-please[bot] Aug 17, 2021
1a45e25
fix(build): update branch to main (#180)
bcoe Sep 8, 2021
22989cc
chore: release 2.4.0 (#177)
release-please[bot] Sep 8, 2021
ebad8ee
build!: update library to use Node 12 (#225)
sofisl May 18, 2022
6693369
chore(main): release 3.0.0 (#227)
release-please[bot] Jun 20, 2022
0fd886e
chore(main): release 3.0.1 (#234)
release-please[bot] Jun 30, 2022
b7854e0
chore(main): release 3.0.2 (#245)
release-please[bot] Aug 26, 2022
8504a3a
chore(main): release 3.0.3 (#250)
release-please[bot] Sep 7, 2022
9ca42ab
chore(main): release 3.0.4 (#252)
release-please[bot] Sep 22, 2022
e38ae31
Merge remote-tracking branch 'migration/main' into nodejs-media-trans…
kweinmeister Nov 7, 2022
6b2ac1e
add CI workflow
kweinmeister Nov 7, 2022
9d31fe5
test: update CI workflow
kweinmeister Nov 7, 2022
44892f8
switch order of checkout and auth workflow
sofisl Nov 7, 2022
a63de94
switch order of workflow
sofisl Nov 7, 2022
2fa150f
fix indent
kweinmeister Nov 7, 2022
e151e9e
Merge branch 'main' into nodejs-media-translation-migration
kweinmeister Nov 7, 2022
b3c8b08
update CODEOWNERS
kweinmeister Nov 7, 2022
56f1e0d
update README
kweinmeister Nov 7, 2022
64d1041
update README typo
kweinmeister Nov 7, 2022
cebe6ce
change to mediatranslation
kweinmeister Nov 7, 2022
6e5cba4
reconcile region tags
kweinmeister Nov 7, 2022
7da2096
Merge branch 'main' into nodejs-media-translation-migration
kweinmeister Nov 8, 2022
12a882a
Merge branch 'main' into nodejs-media-translation-migration
kweinmeister Nov 8, 2022
3ed8efe
fix indent
kweinmeister Nov 7, 2022
48d1e7e
update CODEOWNERS
kweinmeister Nov 7, 2022
1da745a
change to mediatranslation
kweinmeister Nov 7, 2022
b264b90
Merge branch 'main' into nodejs-media-translation-migration
kweinmeister Nov 8, 2022
63f9827
use existing region tags
kweinmeister Nov 8, 2022
61d3ae0
revert change due to snippetbot check
kweinmeister Nov 8, 2022
f5521db
test: update CI workflow
kweinmeister Nov 7, 2022
961d3b2
change to mediatranslation
kweinmeister Nov 7, 2022
96aed15
test: update CI workflow
kweinmeister Nov 7, 2022
7d30df7
fix indent
kweinmeister Nov 7, 2022
91026a8
change to mediatranslation
kweinmeister Nov 7, 2022
61c2ba4
fix indent
kweinmeister Nov 7, 2022
3aa2c94
update CODEOWNERS
kweinmeister Nov 7, 2022
a255942
test: update CI workflow
kweinmeister Nov 7, 2022
2bad7e3
change to mediatranslation
kweinmeister Nov 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 50 additions & 50 deletions .github/workflows/functions-log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,72 @@ name: functions-log
on:
push:
branches:
- main
- main
paths:
- 'functions/log/**'
- "functions/log/**"
pull_request:
paths:
- 'functions/log/**'
- "functions/log/**"
pull_request_target:
types: [labeled]
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"
jobs:
test:
strategy:
matrix:
# Each package in this list will be tested independently.
# New packages must be manually added to this list.
package:
- 'functions/log'
- 'functions/log/helloWorld'
- 'functions/log/processEntry'
- "functions/log"
- "functions/log/helloWorld"
- "functions/log/processEntry"
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: 'write'
pull-requests: 'write'
id-token: 'write'
contents: "write"
pull-requests: "write"
id-token: "write"
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: google-github-actions/auth@v0.8.0
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
working-directory: ${{ matrix.package }}
- run: npm test -- --reporter xunit --reporter-option output=sponge_log.xml --reporter-option suiteName="${{ matrix.package }}"
working-directory: ${{ matrix.package }}
env:
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: google-github-actions/auth@v0.8.0
with:
workload_identity_provider: "projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
service_account: "kokoro-system-test@long-door-651.iam.gserviceaccount.com"
create_credentials_file: "true"
access_token_lifetime: 600s
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
working-directory: ${{ matrix.package }}
- run: npm test -- --reporter xunit --reporter-option output=sponge_log.xml --reporter-option suiteName="${{ matrix.package }}"
working-directory: ${{ matrix.package }}
env:
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
}
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
- if: ${{ github.event_name == 'schedule' && always() }}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
104 changes: 52 additions & 52 deletions .github/workflows/functions-tips.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,75 @@ name: functions-tips
on:
push:
branches:
- main
- main
paths:
- 'functions/tips/**'
- "functions/tips/**"
pull_request:
paths:
- 'functions/tips/**'
- "functions/tips/**"
pull_request_target:
types: [labeled]
schedule:
- cron: '0 0 * * 0'
- cron: "0 0 * * 0"
jobs:
test:
strategy:
matrix:
# Each package in this list will be tested independently.
# New packages must be manually added to this list.
package:
- 'functions/tips/avoidInfiniteRetries'
- 'functions/tips/connectionPools'
- "functions/tips/avoidInfiniteRetries"
- "functions/tips/connectionPools"
# - 'functions/tips/gcpApiCall' # TODO(muncus): reenable once tests are suitable for CI/CD.
- 'functions/tips/lazyGlobals'
- 'functions/tips/retry'
- 'functions/tips/scopeDemo'
- "functions/tips/lazyGlobals"
- "functions/tips/retry"
- "functions/tips/scopeDemo"
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: 'write'
pull-requests: 'write'
id-token: 'write'
contents: "write"
pull-requests: "write"
id-token: "write"
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: google-github-actions/auth@v0.8.0
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
working-directory: ${{ matrix.package }}
- run: npm test -- --reporter xunit --reporter-option output=sponge_log.xml --reporter-option suiteName="${{ matrix.package }}"
working-directory: ${{ matrix.package }}
env:
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: google-github-actions/auth@v0.8.0
with:
workload_identity_provider: "projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
service_account: "kokoro-system-test@long-door-651.iam.gserviceaccount.com"
create_credentials_file: "true"
access_token_lifetime: 600s
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
working-directory: ${{ matrix.package }}
- run: npm test -- --reporter xunit --reporter-option output=sponge_log.xml --reporter-option suiteName="${{ matrix.package }}"
working-directory: ${{ matrix.package }}
env:
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
}
}
}
- if: ${{ github.event_name == 'schedule' && always() }}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
- if: ${{ github.event_name == 'schedule' && always() }}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
67 changes: 67 additions & 0 deletions .github/workflows/mediatranslation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: media-translation
on:
push:
branches:
- main
paths:
- "mediatranslation/**"
pull_request:
paths:
- "mediatranslation/**"
pull_request_target:
types: [labeled]
schedule:
- cron: "0 0 * * 0"
jobs:
test:
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'actions:force-run' }}
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: "write"
pull-requests: "write"
id-token: "write"
steps:
- uses: actions/checkout@v3.1.0
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: "google-github-actions/auth@v0.8.3"
with:
workload_identity_provider: "projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
service_account: "kokoro-system-test@long-door-651.iam.gserviceaccount.com"
create_credentials_file: "true"
access_token_lifetime: 600s
- uses: actions/setup-node@v3.5.1
with:
node-version: 16
- run: npm install
working-directory: mediatranslation
- run: npm test
working-directory: mediatranslation
env:
MOCHA_REPORTER_SUITENAME: mediatranslation
MOCHA_REPORTER_OUTPUT: mediatranslation_sponge_log.xml
MOCHA_REPORTER: xunit
- if: ${{ github.event.action == 'labeled' && github.event.label.name == 'actions:force-run' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'actions:force-run',
owner: 'GoogleCloudPlatform',
repo: 'nodejs-docs-samples',
issue_number: context.payload.pull_request.number
});
} catch (e) {
if (!e.message.includes('Label does not exist')) {
throw e;
}
}
- if: ${{ github.event_name == 'schedule'}}
run: |
curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L
chmod +x ./flakybot
./flakybot --repo GoogleCloudPlatform/nodejs-docs-samples --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
1 change: 1 addition & 0 deletions .github/workflows/workflows.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"healthcare/dicom",
"healthcare/fhir",
"healthcare/hl7v2",
"mediatranslation",
"monitoring/opencensus",
"monitoring/prometheus",
"datacatalog/cloud-client",
Expand Down
7 changes: 7 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ cloud-tasks @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/nodejs-samples-r
workflows @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/nodejs-samples-reviewers
eventarc @GoogleCloudPlatform/torus-dpe @GoogleCloudPlatform/nodejs-samples-reviewers

# Data & AI
<<<<<<< HEAD
mediatranslation @GoogleCloudPlatform/dee-data-ai @GoogleCloudPlatform/nodejs-samples-reviewers
=======
media-translation @GoogleCloudPlatform/dee-data-ai @GoogleCloudPlatform/nodejs-samples-reviewers
>>>>>>> b3c8b087 (update CODEOWNERS)

# Other functions samples
functions/scheduleinstance @askmeegs @GoogleCloudPlatform/nodejs-samples-reviewers
functions/speech-to-speech @ricalo @GoogleCloudPlatform/nodejs-samples-reviewers
Expand Down
Loading