Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix dependency problem in pom.xml: define used undeclared dependencies. remove unused declared dependencies. except for org.junit.jupiter:junit-jupiter-engine since it is used implicitly as a default test engine. override surefire-junit-* declaration to support JUnit5. rollback from JUnit5 to Junit4: due to multiple validation problems as well as problems with executing IT tests return to using JUnit4. remove redundant dependencies and add junit4 dependency. change unit tests to work with Junit4 classes and attributes. convert ITContainersTest to parameterized class. * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: remove region tag from autogen file Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
48e35a8
commit b9f6ac0
Showing
21 changed files
with
523 additions
and
133 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
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
Empty file.
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,54 @@ | ||
on: | ||
pull_request: | ||
name: auto-merge-readme | ||
jobs: | ||
approve: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' | ||
steps: | ||
- uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} | ||
script: | | ||
// only approve PRs from yoshi-automation | ||
if (context.payload.pull_request.user.login !== "yoshi-automation") { | ||
return; | ||
} | ||
// only approve PRs like "chore: release <release version>" | ||
if (!context.payload.pull_request.title === "chore: regenerate README") { | ||
return; | ||
} | ||
// only approve PRs with README.md and synth.metadata changes | ||
const files = new Set( | ||
( | ||
await github.paginate( | ||
github.pulls.listFiles.endpoint({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.payload.pull_request.number, | ||
}) | ||
) | ||
).map(file => file.filename) | ||
); | ||
if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { | ||
return; | ||
} | ||
// approve README regeneration PR | ||
await github.pulls.createReview({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Rubber stamped PR!', | ||
pull_number: context.payload.pull_request.number, | ||
event: 'APPROVE' | ||
}); | ||
// attach automerge label | ||
await github.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.payload.pull_request.number, | ||
labels: ['automerge'] | ||
}); |
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,14 @@ | ||
on: | ||
pull_request: | ||
name: samples | ||
jobs: | ||
checkstyle: | ||
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 |
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 @@ | ||
#!/bin/bash | ||
# Copyright 2020 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 | ||
|
||
cd ${KOKORO_ARTIFACTS_DIR}/github/java-logging-servlet-initializer | ||
|
||
# Disable buffering, so that the logs stream through. | ||
export PYTHONUNBUFFERED=1 | ||
|
||
# Kokoro exposes this as a file, but the scripts expect just a plain variable. | ||
export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) | ||
|
||
# Setup git credentials | ||
echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials | ||
git config --global credential.helper 'store --file ~/.git-credentials' | ||
|
||
python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool | ||
|
||
set +e | ||
python3.6 -m autosynth.synth \ | ||
--repository=googleapis/java-logging-servlet-initializer \ | ||
--synth-file-name=.github/readme/synth.py \ | ||
--metadata-path=.github/readme/synth.metadata \ | ||
--pr-title="chore: regenerate README" \ | ||
--branch-suffix="readme" | ||
|
||
# autosynth returns 28 to signal there are no changes | ||
RETURN_CODE=$? | ||
if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] | ||
then | ||
exit ${RETURN_CODE} | ||
fi |
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
codecov: | ||
ci: | ||
- source.cloud.google.com | ||
- source.cloud.google.com |
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
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
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
Oops, something went wrong.