Skip to content
Permalink
Browse files
feat: initial code generation
  • Loading branch information
chingor13 committed Sep 15, 2020
0 parents commit 5d1cd67393eeb162eec8c24a76325a9cc7fffc6d
Showing with 78,418 additions and 0 deletions.
  1. +8 −0 .github/CODEOWNERS
  2. +51 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +21 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  5. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  6. +2 −0 .github/release-please.yml
  7. +2 −0 .github/trusted-contribution.yml
  8. +79 −0 .github/workflows/ci.yaml
  9. +14 −0 .github/workflows/samples.yaml
  10. +17 −0 .gitignore
  11. +3 −0 .kokoro/build.bat
  12. +111 −0 .kokoro/build.sh
  13. +38 −0 .kokoro/coerce_logs.sh
  14. +13 −0 .kokoro/common.cfg
  15. +59 −0 .kokoro/common.sh
  16. +25 −0 .kokoro/continuous/common.cfg
  17. +12 −0 .kokoro/continuous/java8.cfg
  18. +89 −0 .kokoro/dependencies.sh
  19. +46 −0 .kokoro/linkage-monitor.sh
  20. +25 −0 .kokoro/nightly/common.cfg
  21. +37 −0 .kokoro/nightly/integration.cfg
  22. +7 −0 .kokoro/nightly/java11.cfg
  23. +7 −0 .kokoro/nightly/java7.cfg
  24. +3 −0 .kokoro/nightly/java8-osx.cfg
  25. +3 −0 .kokoro/nightly/java8-win.cfg
  26. +12 −0 .kokoro/nightly/java8.cfg
  27. +38 −0 .kokoro/nightly/samples.cfg
  28. +43 −0 .kokoro/populate-secrets.sh
  29. +13 −0 .kokoro/presubmit/clirr.cfg
  30. +34 −0 .kokoro/presubmit/common.cfg
  31. +12 −0 .kokoro/presubmit/dependencies.cfg
  32. +33 −0 .kokoro/presubmit/integration.cfg
  33. +7 −0 .kokoro/presubmit/java11.cfg
  34. +7 −0 .kokoro/presubmit/java7.cfg
  35. +3 −0 .kokoro/presubmit/java8-osx.cfg
  36. +3 −0 .kokoro/presubmit/java8-win.cfg
  37. +12 −0 .kokoro/presubmit/java8.cfg
  38. +12 −0 .kokoro/presubmit/linkage-monitor.cfg
  39. +13 −0 .kokoro/presubmit/lint.cfg
  40. +33 −0 .kokoro/presubmit/samples.cfg
  41. +53 −0 .kokoro/release/bump_snapshot.cfg
  42. +49 −0 .kokoro/release/common.cfg
  43. +50 −0 .kokoro/release/common.sh
  44. +6 −0 .kokoro/release/drop.cfg
  45. +32 −0 .kokoro/release/drop.sh
  46. +6 −0 .kokoro/release/promote.cfg
  47. +34 −0 .kokoro/release/promote.sh
  48. +29 −0 .kokoro/release/publish_javadoc.cfg
  49. +76 −0 .kokoro/release/publish_javadoc.sh
  50. +6 −0 .kokoro/release/snapshot.cfg
  51. +33 −0 .kokoro/release/snapshot.sh
  52. +19 −0 .kokoro/release/stage.cfg
  53. +42 −0 .kokoro/release/stage.sh
  54. +26 −0 .kokoro/trampoline.sh
  55. +15 −0 .repo-metadata.json
  56. +93 −0 CODE_OF_CONDUCT.md
  57. +139 −0 CONTRIBUTING.md
  58. +202 −0 LICENSE
  59. +143 −0 README.md
  60. +4 −0 codecov.yaml
  61. +97 −0 google-cloud-video-transcoder-bom/pom.xml
  62. +111 −0 google-cloud-video-transcoder/pom.xml
  63. +1,189 −0 ...o-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java
  64. +261 −0 ...transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java
  65. +45 −0 ...-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/package-info.java
  66. +115 −0 ...ain/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java
  67. +402 −0 ...coder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java
  68. +93 −0 ...ranscoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java
  69. +578 −0 ...r/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java
  70. +57 −0 ...deo-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/MockTranscoderService.java
  71. +175 −0 ...transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/MockTranscoderServiceImpl.java
  72. +439 −0 ...anscoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java
  73. +65 −0 grpc-google-cloud-video-transcoder-v1beta1/pom.xml
  74. +1,206 −0 ...scoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java
  75. +15 −0 java.header
  76. +10 −0 license-checks.xml
  77. +189 −0 pom.xml
  78. +42 −0 proto-google-cloud-video-transcoder-v1beta1/pom.xml
  79. +744 −0 ...oud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/AdBreak.java
  80. +63 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/AdBreakOrBuilder.java
  81. +5,458 −0 ...video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/AudioStream.java
  82. +243 −0 ...nscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/AudioStreamOrBuilder.java
  83. +957 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/CreateJobRequest.java
  84. +97 −0 ...er-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/CreateJobRequestOrBuilder.java
  85. +1,173 −0 ...der-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/CreateJobTemplateRequest.java
  86. +128 −0 ...a1/src/main/java/com/google/cloud/video/transcoder/v1beta1/CreateJobTemplateRequestOrBuilder.java
  87. +658 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/DeleteJobRequest.java
  88. +56 −0 ...er-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/DeleteJobRequestOrBuilder.java
  89. +669 −0 ...der-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/DeleteJobTemplateRequest.java
  90. +56 −0 ...a1/src/main/java/com/google/cloud/video/transcoder/v1beta1/DeleteJobTemplateRequestOrBuilder.java
  91. +1,524 −0 ...ud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/EditAtom.java
  92. +186 −0 ...transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/EditAtomOrBuilder.java
  93. +1,655 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ElementaryStream.java
  94. +158 −0 ...er-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ElementaryStreamOrBuilder.java
  95. +4,218 −0 ...-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Encryption.java
  96. +194 −0 ...anscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/EncryptionOrBuilder.java
  97. +637 −0 ...deo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/FailureDetail.java
  98. +50 −0 ...coder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/FailureDetailOrBuilder.java
  99. +658 −0 ...deo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/GetJobRequest.java
  100. +56 −0 ...coder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/GetJobRequestOrBuilder.java
  101. +672 −0 ...scoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/GetJobTemplateRequest.java
  102. +58 −0 ...beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/GetJobTemplateRequestOrBuilder.java
  103. +1,133 −0 ...cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java
  104. +120 −0 ...eo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java
  105. +4,398 −0 ...e-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Job.java
  106. +5,105 −0 ...d-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobConfig.java
  107. +530 −0 ...ranscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobConfigOrBuilder.java
  108. +204 −0 ...oud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobName.java
  109. +407 −0 ...ideo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobOrBuilder.java
  110. +930 −0 ...video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobTemplate.java
  111. +215 −0 ...o-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobTemplateName.java
  112. +89 −0 ...nscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobTemplateOrBuilder.java
  113. +943 −0 ...oder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobTemplatesRequest.java
  114. +96 −0 ...ta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobTemplatesRequestOrBuilder.java
  115. +1,156 −0 ...der-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobTemplatesResponse.java
  116. +103 −0 ...a1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobTemplatesResponseOrBuilder.java
  117. +929 −0 ...o-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobsRequest.java
  118. +94 −0 ...der-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobsRequestOrBuilder.java
  119. +1,129 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobsResponse.java
  120. +102 −0 ...er-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ListJobsResponseOrBuilder.java
  121. +182 −0 ...ideo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/LocationName.java
  122. +1,293 −0 ...ud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Manifest.java
  123. +144 −0 ...transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ManifestOrBuilder.java
  124. +1,900 −0 ...d-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/MuxStream.java
  125. +239 −0 ...ranscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/MuxStreamOrBuilder.java
  126. +642 −0 ...loud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Output.java
  127. +52 −0 ...o-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/OutputOrBuilder.java
  128. +8,487 −0 ...oud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Overlay.java
  129. +118 −0 ...-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/OverlayOrBuilder.java
  130. +4,718 −0 ...anscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfig.java
  131. +167 −0 ...v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfigOrBuilder.java
  132. +832 −0 ...ud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Progress.java
  133. +77 −0 ...transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ProgressOrBuilder.java
  134. +644 −0 ...transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PubsubDestination.java
  135. +52 −0 ...r-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PubsubDestinationOrBuilder.java
  136. +816 −0 ...eo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ResourcesProto.java
  137. +823 −0 ...o-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/SegmentSettings.java
  138. +73 −0 ...der-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/SegmentSettingsOrBuilder.java
  139. +272 −0 ...deo-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/ServicesProto.java
  140. +2,308 −0 ...video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/SpriteSheet.java
  141. +273 −0 ...nscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/SpriteSheetOrBuilder.java
  142. +3,511 −0 ...-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TextStream.java
  143. +144 −0 ...anscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TextStreamOrBuilder.java
  144. +3,511 −0 ...video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStream.java
  145. +470 −0 ...nscoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStreamOrBuilder.java
  146. +838 −0 ...oud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/resources.proto
  147. +248 −0 ...loud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/services.proto
  148. +81 −0 renovate.json
  149. +84 −0 samples/install-without-bom/pom.xml
  150. +56 −0 samples/pom.xml
  151. +83 −0 samples/snapshot/pom.xml
  152. +47 −0 samples/snippets/pom.xml
  153. +37 −0 synth.metadata
  154. +32 −0 synth.py
  155. +6 −0 versions.txt
Validating CODEOWNERS rules …
@@ -0,0 +1,8 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.

# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
@@ -0,0 +1,51 @@
---
name: Bug report
about: Create a report to help us improve

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/java-video-transcoder/issues
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform

If you are still having issues, please include as much information as possible:

#### Environment details

1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
2. OS type and version:
3. Java version:
4. video-transcoder version(s):

#### Steps to reproduce

1. ?
2. ?

#### Code example

```java
// example
```

#### Stack trace
```
Any relevant stacktrace here.
```

#### External references such as API reference guides

- ?

#### Any additional information below


Following these steps guarantees the quickest resolution possible.

Thanks!
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for this library

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
What the problem is. Example: I'm always frustrated when [...]

**Describe the solution you'd like**
What you want to happen.

**Describe alternatives you've considered**
Any alternative solutions or features you've considered.

**Additional context**
Any other context or screenshots about the feature request.
@@ -0,0 +1,7 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.

---

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
@@ -0,0 +1,7 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-video-transcoder/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
@@ -0,0 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
@@ -0,0 +1,2 @@
trustedContributors:
- renovate-bot
@@ -0,0 +1,79 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{matrix.java}}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.bat
env:
JOB_TYPE: test
dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/dependencies.sh
linkage-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/linkage-monitor.sh
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: lint
clirr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
@@ -0,0 +1,14 @@
on:
pull_request:
name: samples
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Run checkstyle
run: mvn -P lint --quiet --batch-mode checkstyle:check
working-directory: samples/snippets
@@ -0,0 +1,17 @@
# Maven
target/

# Eclipse
.classpath
.project
.settings

# Intellij
*.iml
.idea/

# python utilities
*.pyc
__pycache__

.flattened-pom.xml
@@ -0,0 +1,3 @@
:: See documentation in type-shell-output.bat

"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh
@@ -0,0 +1,111 @@
#!/bin/bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -eo pipefail

## Get the directory of the build script
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..

# include common functions
source ${scriptDir}/common.sh

# Print out Java version
java -version
echo ${JOB_TYPE}

# attempt to install 3 times with exponential backoff (starting with 10 seconds)
retry_with_backoff 3 10 \
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true \
-T 1C

# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
fi

RETURN_CODE=0
set +e

case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
RETURN_CODE=$?
;;
lint)
mvn com.coveo:fmt-maven-plugin:check
RETURN_CODE=$?
;;
javadoc)
mvn javadoc:javadoc javadoc:test-javadoc
RETURN_CODE=$?
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
RETURN_CODE=$?
;;
samples)
if [[ -f samples/pom.xml ]]
then
pushd samples
mvn -B \
-Penable-samples \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
RETURN_CODE=$?
popd
else
echo "no sample pom.xml found - skipping sample tests"
fi
;;
clirr)
mvn -B -Denforcer.skip=true clirr:check
RETURN_CODE=$?
;;
*)
;;
esac

if [ "${REPORT_COVERAGE}" == "true" ]
then
bash ${KOKORO_GFILE_DIR}/codecov.sh
fi

# fix output location of logs
bash .kokoro/coerce_logs.sh

if [[ "${ENABLE_BUILD_COP}" == "true" ]]
then
chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop
${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-video-transcoder
fi

echo "exiting with ${RETURN_CODE}"
exit ${RETURN_CODE}
@@ -0,0 +1,38 @@
#!/bin/bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script finds and moves sponge logs so that they can be found by placer
# and are not flagged as flaky by sponge.

set -eo pipefail

## Get the directory of the build script
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..

job=$(basename ${KOKORO_JOB_NAME})

echo "coercing sponge logs..."
for xml in `find . -name *-sponge_log.xml`
do
echo "processing ${xml}"
class=$(basename ${xml} | cut -d- -f2)
dir=$(dirname ${xml})/${job}/${class}
text=$(dirname ${xml})/${class}-sponge_log.txt
mkdir -p ${dir}
mv ${xml} ${dir}/sponge_log.xml
mv ${text} ${dir}/sponge_log.txt
done
@@ -0,0 +1,13 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR}
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# All builds use the trampoline script to run in docker.
build_file: "java-video-transcoder/.kokoro/trampoline.sh"

# Tell the trampoline which build file to use.
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-video-transcoder/.kokoro/build.sh"
}

0 comments on commit 5d1cd67

Please sign in to comment.