Skip to content

Commit

Permalink
docs: synth updates to javadoc and kokoro build configs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and kolea2 committed Jan 13, 2020
1 parent f92da32 commit d6275a7
Show file tree
Hide file tree
Showing 171 changed files with 5,757 additions and 981 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
@@ -1 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
29 changes: 24 additions & 5 deletions .kokoro/build.sh
Expand Up @@ -27,6 +27,7 @@ echo ${JOB_TYPE}
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true \
-T 1C
Expand All @@ -38,23 +39,41 @@ fi

case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
bash ${KOKORO_GFILE_DIR}/codecov.sh
bash .kokoro/coerce_logs.sh
;;
lint)
mvn com.coveo:fmt-maven-plugin:check
mvn \
-Penable-samples \
com.coveo:fmt-maven-plugin:check
;;
javadoc)
mvn javadoc:javadoc javadoc:test-javadoc
;;
integration)
mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify
mvn -B ${INTEGRATION_TEST_ARGS} \
-Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
bash .kokoro/coerce_logs.sh
;;
samples)
mvn -B \
-Penable-samples \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-fae \
verify
bash .kokoro/coerce_logs.sh
;;
clirr)
mvn -B clirr:check
mvn -B -Denforcer.skip=true clirr:check
;;
*)
;;
esac
esac
31 changes: 31 additions & 0 deletions .kokoro/continuous/samples.cfg
@@ -0,0 +1,31 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "samples"
}

env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_it_service_account"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "java_it_service_account"
}
}
}
6 changes: 5 additions & 1 deletion .kokoro/dependencies.sh
Expand Up @@ -23,5 +23,9 @@ echo $JOB_TYPE

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"

mvn install -DskipTests=true -B -V
# this should run maven enforcer
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true

mvn -B dependency:analyze -DfailOnWarning=true
31 changes: 31 additions & 0 deletions .kokoro/nightly/samples.cfg
@@ -0,0 +1,31 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "samples"
}

env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_it_service_account"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "java_it_service_account"
}
}
}
31 changes: 31 additions & 0 deletions .kokoro/presubmit/samples.cfg
@@ -0,0 +1,31 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
}

env_vars: {
key: "JOB_TYPE"
value: "samples"
}

env_vars: {
key: "GCLOUD_PROJECT"
value: "gcloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "keystore/73713_java_it_service_account"
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "java_it_service_account"
}
}
}
Expand Up @@ -1154,8 +1154,8 @@ public final CheckConsistencyResponse checkConsistency(CheckConsistencyRequest r

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for an instance resource. Returns an empty policy if an table
* exists but does not have a policy set.
* Gets the access control policy for a table resource. Returns an empty policy if an table exists
* but does not have a policy set.
*
* <p>Sample code:
*
Expand All @@ -1178,8 +1178,8 @@ public final Policy getIamPolicy(String resource) {

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for an instance resource. Returns an empty policy if an table
* exists but does not have a policy set.
* Gets the access control policy for a table resource. Returns an empty policy if an table exists
* but does not have a policy set.
*
* <p>Sample code:
*
Expand All @@ -1202,8 +1202,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for an instance resource. Returns an empty policy if an table
* exists but does not have a policy set.
* Gets the access control policy for a table resource. Returns an empty policy if an table exists
* but does not have a policy set.
*
* <p>Sample code:
*
Expand Down
Expand Up @@ -70,6 +70,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import org.junit.After;
import org.junit.AfterClass;
Expand All @@ -92,7 +93,7 @@ public static void startStaticServer() {
mockBigtableTableAdmin = new MockBigtableTableAdmin();
serviceHelper =
new MockServiceHelper(
"in-process-1",
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(mockBigtableInstanceAdmin, mockBigtableTableAdmin));
serviceHelper.start();
}
Expand Down
Expand Up @@ -65,6 +65,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import org.junit.After;
import org.junit.AfterClass;
Expand All @@ -87,7 +88,7 @@ public static void startStaticServer() {
mockBigtableTableAdmin = new MockBigtableTableAdmin();
serviceHelper =
new MockServiceHelper(
"in-process-1",
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(mockBigtableInstanceAdmin, mockBigtableTableAdmin));
serviceHelper.start();
}
Expand Down
Expand Up @@ -1167,7 +1167,7 @@ public void deleteSnapshot(
*
*
* <pre>
* Gets the access control policy for an instance resource. Returns an empty
* Gets the access control policy for a table resource. Returns an empty
* policy if an table exists but does not have a policy set.
* </pre>
*/
Expand Down Expand Up @@ -1592,7 +1592,7 @@ public void deleteSnapshot(
*
*
* <pre>
* Gets the access control policy for an instance resource. Returns an empty
* Gets the access control policy for a table resource. Returns an empty
* policy if an table exists but does not have a policy set.
* </pre>
*/
Expand Down Expand Up @@ -1877,7 +1877,7 @@ public com.google.protobuf.Empty deleteSnapshot(
*
*
* <pre>
* Gets the access control policy for an instance resource. Returns an empty
* Gets the access control policy for a table resource. Returns an empty
* policy if an table exists but does not have a policy set.
* </pre>
*/
Expand Down Expand Up @@ -2158,7 +2158,7 @@ protected BigtableTableAdminFutureStub build(
*
*
* <pre>
* Gets the access control policy for an instance resource. Returns an empty
* Gets the access control policy for a table resource. Returns an empty
* policy if an table exists but does not have a policy set.
* </pre>
*/
Expand Down

0 comments on commit d6275a7

Please sign in to comment.