-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ddixit14
committed
Aug 26, 2022
1 parent
7699e02
commit 2424aeb
Showing
91 changed files
with
4,819 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2022 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. | ||
docker: | ||
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest | ||
digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 | ||
# created: 2022-07-26T00:00:00.000000000Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2021 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. | ||
|
||
docker: | ||
image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
primaryBranch: monorepo_script_output | ||
releaseType: java-yoshi | ||
manifest: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Googleapis Sync (Hermetic Build) | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-pull-request: | ||
name: Create pull request for recent googleapis changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: 'googleapis/google-cloud-java' | ||
- name: Setup workspace | ||
run: | | ||
mkdir -p "${WORKSPACE}" | ||
git config user.email "yoshi-code-bot[bot]@users.noreply.github.com" | ||
git config user.name "yoshi-code-bot" | ||
git clone --quiet --branch "${BASE_BRANCH}" --depth 1 \ | ||
https://github.com/googleapis/google-cloud-java \ | ||
"${WORKSPACE}/google-cloud-java" | ||
cd "${WORKSPACE}/google-cloud-java" | ||
# This should match the branch name we push to remote in the following steps | ||
git checkout -b monorepo_googleapis_change | ||
env: | ||
WORKSPACE: /tmp/googleapis-sync | ||
# Note for cutover to main: update this to main | ||
BASE_BRANCH: monorepo_script_output | ||
- name: Propagate googleapis commits to google-cloud-java | ||
run: | | ||
.kokoro/sync_with_googleapis.sh | ||
env: | ||
WORKSPACE: /tmp/googleapis-sync | ||
GOOGLE_CLOUD_JAVA_DIR: /tmp/googleapis-sync/google-cloud-java | ||
- name: Push changes to remote repository | ||
run: | | ||
git remote add origin_with_auth \ | ||
https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git | ||
git push -f --set-upstream origin_with_auth monorepo_googleapis_change | ||
working-directory: /tmp/googleapis-sync/google-cloud-java | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} | ||
- name: Create pull request | ||
run: | | ||
gh pr create --title='chore: googleapis change propagation via hermetic build' \ | ||
--body='googleapis change propagation via hermetic build' \ | ||
--base="${BASE_BRANCH}" \ | ||
--head=monorepo_googleapis_change | ||
working-directory: /tmp/googleapis-sync/google-cloud-java | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} | ||
# Note for cutover to main: update this to main | ||
BASE_BRANCH: monorepo_script_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright 2021 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. | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# every morning | ||
- cron: '0 1 * * *' | ||
name: readme | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
architecture: 'x64' | ||
- run: python3 -m pip install requests | ||
- run: python3 generate-readme.py | ||
- uses: googleapis/code-suggester@v3 | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
command: pr | ||
upstream_owner: googleapis | ||
upstream_repo: google-cloud-java | ||
description: 'ran python3 generate-readme.py' | ||
title: 'chore: regenerate client table in README' | ||
message: 'chore: regenerate client table in README' | ||
branch: update-readme | ||
primary: main | ||
force: true | ||
git_dir: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Whether or not rebase-merging is enabled on this repository. | ||
# Defaults to `true` | ||
rebaseMergeAllowed: false | ||
|
||
# Whether or not squash-merging is enabled on this repository. | ||
# Defaults to `true` | ||
squashMergeAllowed: true | ||
|
||
# Whether or not PRs are merged with a merge commit on this repository. | ||
# Defaults to `false` | ||
mergeCommitAllowed: false | ||
|
||
# Rules for main branch protection | ||
branchProtectionRules: | ||
# Identifies the protection rule pattern. Name of the branch to be protected. | ||
# Defaults to `main` | ||
- pattern: main | ||
# Can admins overwrite branch protection. | ||
# Defaults to `true` | ||
isAdminEnforced: true | ||
# Number of approving reviews required to update matching branches. | ||
# Defaults to `1` | ||
requiredApprovingReviewCount: 1 | ||
# Are reviews from code owners required to update matching branches. | ||
# Defaults to `false` | ||
requiresCodeOwnerReviews: true | ||
# Require up to date branches | ||
requiresStrictStatusChecks: false | ||
# List of required status check contexts that must pass for commits to be accepted to matching branches. | ||
requiredStatusCheckContexts: | ||
- "cla/google" | ||
# List of explicit permissions to add (additive only) | ||
permissionRules: | ||
- team: yoshi-admins | ||
permission: admin | ||
- team: yoshi-java-admins | ||
permission: admin | ||
- team: yoshi-java | ||
permission: push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Copyright 2022 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. | ||
# Github action job to test core java library features on | ||
# downstream client libraries before they are released. | ||
on: | ||
push: | ||
branches: | ||
# TODO: Update to main | ||
- monorepo_script_output | ||
pull_request: | ||
name: ci | ||
jobs: | ||
units: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [8, 11, 17] | ||
steps: | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d' --utc)" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- uses: actions/cache@v3 | ||
id: mvn-cache | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-unified-${{ steps.date.outputs.date }} | ||
- run: | | ||
mvn -B -ntp \ | ||
-Dclirr.skip=true \ | ||
-Denforcer.skip=true \ | ||
-Dcheckstyle.skip=true \ | ||
-Dflatten.skip=true \ | ||
-Danimal.sniffer.skip=true \ | ||
-T 1C \ | ||
test | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Support longpaths | ||
run: git config --system core.longpaths true | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 11 | ||
- run: java -version | ||
- run: .kokoro/build.bat | ||
env: | ||
JOB_TYPE: test | ||
# TODO: Uncomment the needed Github Actions | ||
# dependencies: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# java: [8, 11, 17] | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: zulu | ||
# java-version: ${{matrix.java}} | ||
# - run: java -version | ||
# - run: .kokoro/dependencies.sh | ||
# lint: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: zulu | ||
# java-version: 11 | ||
# - run: java -version | ||
# - run: .kokoro/build.sh | ||
# env: | ||
# JOB_TYPE: lint | ||
# clirr: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: zulu | ||
# java-version: 8 | ||
# - run: java -version | ||
# - run: .kokoro/build.sh | ||
# env: | ||
# JOB_TYPE: clirr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Packages | ||
dist | ||
bin | ||
var | ||
sdist | ||
target | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
nosetests.xml | ||
|
||
# Translations | ||
*.mo | ||
|
||
.metadata | ||
.project | ||
.pydevproject | ||
*.iml | ||
.idea | ||
.settings | ||
.DS_Store | ||
.classpath | ||
|
||
# Built documentation | ||
docs/ | ||
|
||
# API key file containing value of GOOGLE_API_KEY for integration tests | ||
api_key | ||
|
||
# Python utilities | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
:: Copyright 2022 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. | ||
:: Github action job to test core java library features on | ||
:: downstream client libraries before they are released. | ||
:: See documentation in type-shell-output.bat | ||
|
||
"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh |
Oops, something went wrong.