| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
0 parents commit 6a2e2ff
128 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,51 @@ | |||
| 1 | + --- | ||
| 2 | + name: Bug report | ||
| 3 | + about: Create a report to help us improve | ||
| 4 | + | ||
| 5 | + --- | ||
| 6 | + | ||
| 7 | + Thanks for stopping by to let us know something could be better! | ||
| 8 | + | ||
| 9 | + **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. | ||
| 10 | + | ||
| 11 | + Please run down the following list and make sure you've tried the usual "quick fixes": | ||
| 12 | + | ||
| 13 | + - Search the issues already opened: https://github.com/googleapis/java-document-ai/issues | ||
| 14 | + - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform | ||
| 15 | + | ||
| 16 | + If you are still having issues, please include as much information as possible: | ||
| 17 | + | ||
| 18 | + #### Environment details | ||
| 19 | + | ||
| 20 | + 1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). | ||
| 21 | + General, Core, and Other are also allowed as types | ||
| 22 | + 2. OS type and version: | ||
| 23 | + 3. Java version: | ||
| 24 | + 4. documentai version(s): | ||
| 25 | + | ||
| 26 | + #### Steps to reproduce | ||
| 27 | + | ||
| 28 | + 1. ? | ||
| 29 | + 2. ? | ||
| 30 | + | ||
| 31 | + #### Code example | ||
| 32 | + | ||
| 33 | + ```java | ||
| 34 | + // example | ||
| 35 | + ``` | ||
| 36 | + | ||
| 37 | + #### Stack trace | ||
| 38 | + ``` | ||
| 39 | + Any relevant stacktrace here. | ||
| 40 | + ``` | ||
| 41 | + | ||
| 42 | + #### External references such as API reference guides | ||
| 43 | + | ||
| 44 | + - ? | ||
| 45 | + | ||
| 46 | + #### Any additional information below | ||
| 47 | + | ||
| 48 | + | ||
| 49 | + Following these steps guarantees the quickest resolution possible. | ||
| 50 | + | ||
| 51 | + Thanks! | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,21 @@ | |||
| 1 | + --- | ||
| 2 | + name: Feature request | ||
| 3 | + about: Suggest an idea for this library | ||
| 4 | + | ||
| 5 | + --- | ||
| 6 | + | ||
| 7 | + Thanks for stopping by to let us know something could be better! | ||
| 8 | + | ||
| 9 | + **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. | ||
| 10 | + | ||
| 11 | + **Is your feature request related to a problem? Please describe.** | ||
| 12 | + What the problem is. Example: I'm always frustrated when [...] | ||
| 13 | + | ||
| 14 | + **Describe the solution you'd like** | ||
| 15 | + What you want to happen. | ||
| 16 | + | ||
| 17 | + **Describe alternatives you've considered** | ||
| 18 | + Any alternative solutions or features you've considered. | ||
| 19 | + | ||
| 20 | + **Additional context** | ||
| 21 | + Any other context or screenshots about the feature request. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + --- | ||
| 2 | + name: Support request | ||
| 3 | + about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. | ||
| 4 | + | ||
| 5 | + --- | ||
| 6 | + | ||
| 7 | + **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. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for context and/or discussion) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + releaseType: java-yoshi | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,46 @@ | |||
| 1 | + .gitignore | ||
| 2 | + | ||
| 3 | + # Packages | ||
| 4 | + dist | ||
| 5 | + bin | ||
| 6 | + var | ||
| 7 | + sdist | ||
| 8 | + target | ||
| 9 | + | ||
| 10 | + # Unit test / coverage reports | ||
| 11 | + .coverage | ||
| 12 | + .tox | ||
| 13 | + nosetests.xml | ||
| 14 | + | ||
| 15 | + # Translations | ||
| 16 | + *.mo | ||
| 17 | + | ||
| 18 | + # Mr Developer | ||
| 19 | + .mr.developer.cfg | ||
| 20 | + | ||
| 21 | + .metadata | ||
| 22 | + .project | ||
| 23 | + .pydevproject | ||
| 24 | + *.iml | ||
| 25 | + .idea | ||
| 26 | + .settings | ||
| 27 | + .DS_Store | ||
| 28 | + .classpath | ||
| 29 | + .vscode | ||
| 30 | + | ||
| 31 | + # Built documentation | ||
| 32 | + docs/ | ||
| 33 | + | ||
| 34 | + | ||
| 35 | + # Wheel directory used in Travis builds. | ||
| 36 | + gcloud-java-wheels/ | ||
| 37 | + src/test/resources/gcd-head.zip | ||
| 38 | + src/test/resources/gcd-v1beta2-rev1-2.1.1.zip | ||
| 39 | + | ||
| 40 | + # API key file containing value of GOOGLE_API_KEY for integration tests | ||
| 41 | + api_key | ||
| 42 | + | ||
| 43 | + # Python utilities | ||
| 44 | + *.pyc | ||
| 45 | + artman-genfiles | ||
| 46 | + venv | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + :: See documentation in type-shell-output.bat | ||
| 2 | + | ||
| 3 | + "C:\Program Files\Git\bin\bash.exe" github/java-document-ai/.kokoro/build.sh | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,60 @@ | |||
| 1 | + #!/bin/bash | ||
| 2 | + # Copyright 2019 Google LLC | ||
| 3 | + # | ||
| 4 | + # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + # you may not use this file except in compliance with the License. | ||
| 6 | + # You may obtain a copy of the License at | ||
| 7 | + # | ||
| 8 | + # http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + # | ||
| 10 | + # Unless required by applicable law or agreed to in writing, software | ||
| 11 | + # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + # See the License for the specific language governing permissions and | ||
| 14 | + # limitations under the License. | ||
| 15 | + | ||
| 16 | + set -eo pipefail | ||
| 17 | + | ||
| 18 | + ## Get the directory of the build script | ||
| 19 | + scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) | ||
| 20 | + ## cd to the parent directory, i.e. the root of the git repo | ||
| 21 | + cd ${scriptDir}/.. | ||
| 22 | + | ||
| 23 | + # Print out Java version | ||
| 24 | + java -version | ||
| 25 | + echo ${JOB_TYPE} | ||
| 26 | + | ||
| 27 | + mvn install -B -V \ | ||
| 28 | + -DskipTests=true \ | ||
| 29 | + -Dclirr.skip=true \ | ||
| 30 | + -Dmaven.javadoc.skip=true \ | ||
| 31 | + -Dgcloud.download.skip=true \ | ||
| 32 | + -T 1C | ||
| 33 | + | ||
| 34 | + # if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it | ||
| 35 | + if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then | ||
| 36 | + export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) | ||
| 37 | + fi | ||
| 38 | + | ||
| 39 | + case ${JOB_TYPE} in | ||
| 40 | + test) | ||
| 41 | + mvn test -B -Dclirr.skip=true | ||
| 42 | + bash ${KOKORO_GFILE_DIR}/codecov.sh | ||
| 43 | + bash .kokoro/coerce_logs.sh | ||
| 44 | + ;; | ||
| 45 | + lint) | ||
| 46 | + mvn com.coveo:fmt-maven-plugin:check | ||
| 47 | + ;; | ||
| 48 | + javadoc) | ||
| 49 | + mvn javadoc:javadoc javadoc:test-javadoc | ||
| 50 | + ;; | ||
| 51 | + integration) | ||
| 52 | + mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify | ||
| 53 | + bash .kokoro/coerce_logs.sh | ||
| 54 | + ;; | ||
| 55 | + clirr) | ||
| 56 | + mvn -B clirr:check | ||
| 57 | + ;; | ||
| 58 | + *) | ||
| 59 | + ;; | ||
| 60 | + esac | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,38 @@ | |||
| 1 | + #!/bin/bash | ||
| 2 | + # Copyright 2019 Google LLC | ||
| 3 | + # | ||
| 4 | + # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + # you may not use this file except in compliance with the License. | ||
| 6 | + # You may obtain a copy of the License at | ||
| 7 | + # | ||
| 8 | + # http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + # | ||
| 10 | + # Unless required by applicable law or agreed to in writing, software | ||
| 11 | + # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + # See the License for the specific language governing permissions and | ||
| 14 | + # limitations under the License. | ||
| 15 | + | ||
| 16 | + # This script finds and moves sponge logs so that they can be found by placer | ||
| 17 | + # and are not flagged as flaky by sponge. | ||
| 18 | + | ||
| 19 | + set -eo pipefail | ||
| 20 | + | ||
| 21 | + ## Get the directory of the build script | ||
| 22 | + scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) | ||
| 23 | + ## cd to the parent directory, i.e. the root of the git repo | ||
| 24 | + cd ${scriptDir}/.. | ||
| 25 | + | ||
| 26 | + job=$(basename ${KOKORO_JOB_NAME}) | ||
| 27 | + | ||
| 28 | + echo "coercing sponge logs..." | ||
| 29 | + for xml in `find . -name *-sponge_log.xml` | ||
| 30 | + do | ||
| 31 | + echo "processing ${xml}" | ||
| 32 | + class=$(basename ${xml} | cut -d- -f2) | ||
| 33 | + dir=$(dirname ${xml})/${job}/${class} | ||
| 34 | + text=$(dirname ${xml})/${class}-sponge_log.txt | ||
| 35 | + mkdir -p ${dir} | ||
| 36 | + mv ${xml} ${dir}/sponge_log.xml | ||
| 37 | + mv ${text} ${dir}/sponge_log.txt | ||
| 38 | + done | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,13 @@ | |||
| 1 | + # Format: //devtools/kokoro/config/proto/build.proto | ||
| 2 | + | ||
| 3 | + # Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} | ||
| 4 | + gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" | ||
| 5 | + | ||
| 6 | + # All builds use the trampoline script to run in docker. | ||
| 7 | + build_file: "java-document-ai/.kokoro/trampoline.sh" | ||
| 8 | + | ||
| 9 | + # Tell the trampoline which build file to use. | ||
| 10 | + env_vars: { | ||
| 11 | + key: "TRAMPOLINE_BUILD_FILE" | ||
| 12 | + value: "github/java-document-ai/.kokoro/build.sh" | ||
| 13 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments