Skip to content

Commit f764295

Browse files
authored
Merge pull request #11 from cryptomator/prepare-1.44.2-dev.0001
Prepare 1.44.2-dev.0001
2 parents 788d444 + 95aa6d9 commit f764295

File tree

64 files changed

+2606
-457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2606
-457
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2024 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,4 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
16-
digest: sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726
16+
digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc
17+
# created: 2024-01-22T14:14:20.913785597Z

.github/dependabot.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ updates:
55
schedule:
66
interval: "daily"
77
# Disable version updates for Maven dependencies
8-
open-pull-requests-limit: 0
8+
# we use renovate-bot as well as shared-dependencies BOM to update maven dependencies.
9+
ignore:
10+
- dependency-name: "*"
911
- package-ecosystem: "pip"
1012
directory: "/"
1113
schedule:
1214
interval: "daily"
1315
# Disable version updates for pip dependencies
14-
open-pull-requests-limit: 0
16+
# If a security vulnerability comes in, we will be notified about
17+
# it via template in the synthtool repository.
18+
ignore:
19+
- dependency-name: "*"

.github/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ branches:
1818
handleGHRelease: true
1919
releaseType: java-backport
2020
branch: 1.42.x
21+
- bumpMinorPreMajor: true
22+
handleGHRelease: true
23+
releaseType: java-backport
24+
branch: 1.43.x

.github/release-trigger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
enabled: true
2+
multiScmName: google-http-java-client

.github/sync-repo-settings.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ branchProtectionRules:
88
requiresCodeOwnerReviews: true
99
requiresStrictStatusChecks: false
1010
requiredStatusCheckContexts:
11+
- units (7)
1112
- units (8)
1213
- units (11)
1314
- windows
@@ -69,6 +70,20 @@ branchProtectionRules:
6970
- dependencies (11)
7071
- clirr
7172
- cla/google
73+
- pattern: 1.43.x
74+
isAdminEnforced: true
75+
requiredApprovingReviewCount: 1
76+
requiresCodeOwnerReviews: true
77+
requiresStrictStatusChecks: false
78+
requiredStatusCheckContexts:
79+
- units (7)
80+
- units (8)
81+
- units (11)
82+
- windows
83+
- dependencies (8)
84+
- dependencies (11)
85+
- clirr
86+
- cla/google
7287
permissionRules:
7388
- team: yoshi-admins
7489
permission: admin

.github/workflows/ci-java7.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Github action job to test core java library features on
15+
# downstream client libraries before they are released.
16+
on:
17+
push:
18+
branches:
19+
- main
20+
pull_request:
21+
name: ci-java7
22+
jobs:
23+
units:
24+
name: "units (7)"
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-java@v1
29+
# setup-java v2 or higher does not have version 1.7
30+
with:
31+
version: 1.7
32+
architecture: x64
33+
- run: |
34+
java -version
35+
# This value is used in "-Djvm=" later
36+
echo "JAVA7_HOME=${JAVA_HOME}" >> $GITHUB_ENV
37+
- uses: actions/setup-java@v3
38+
with:
39+
java-version: 17
40+
distribution: temurin
41+
- name: Set up Maven
42+
uses: stCarolas/[email protected]
43+
with:
44+
maven-version: 3.8.8
45+
- name: Build
46+
shell: bash
47+
run: |
48+
# Leveraging surefire's jvm option, running the test on Java 7.
49+
# Surefire plugin 2.22.2 is the last version for Java 7. Newer version would fail with
50+
# "UnsupportedClassVersionError: org/apache/maven/surefire/booter/ForkedBooter" error.
51+
52+
# Why are these modules are skipped?
53+
# google-http-client-jackson2 and google-http-client-appengine do not work with Java 7
54+
# any more because of Jackson and appengine library are compiled for Java 8.
55+
# dailymotion-simple-cmdline-sample and google-http-client-assembly depend on
56+
# google-http-client-jackson2
57+
mvn --batch-mode --show-version -ntp test \
58+
--projects '!google-http-client-jackson2,!google-http-client-appengine,!samples/dailymotion-simple-cmdline-sample,!google-http-client-assembly' \
59+
-Dclirr.skip=true -Denforcer.skip=true -Dmaven.javadoc.skip=true \
60+
-Dgcloud.download.skip=true -T 1C \
61+
-Dproject.surefire.version=2.22.2 \
62+
-Djvm=${JAVA7_HOME}/bin/java

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,27 @@ jobs:
8787
- run: .kokoro/build.sh
8888
env:
8989
JOB_TYPE: clirr
90+
# compilation failure for sub-modules using source and target options 7 (this setting cannot be upgraded to Java 21 because some modules support max of Java 8)
91+
# Hence compile in Java 8 and test in Java 21.
92+
units-java21:
93+
# Building using Java 8 and run the tests with Java 21 runtime
94+
name: "units (21)"
95+
runs-on: ubuntu-latest
96+
steps:
97+
- uses: actions/checkout@v3
98+
- uses: actions/setup-java@v3
99+
with:
100+
java-version: 21
101+
distribution: temurin
102+
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
103+
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
104+
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
105+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV
106+
shell: bash
107+
- uses: actions/setup-java@v3
108+
with:
109+
java-version: 8
110+
distribution: temurin
111+
- run: .kokoro/build.sh
112+
env:
113+
JOB_TYPE: test
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Renovate Bot Config Validation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'renovate.json'
7+
8+
jobs:
9+
renovate_bot_config_validation:
10+
runs-on: ubuntu-22.04
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '20'
20+
21+
- name: Install Renovate and Config Validator
22+
run: |
23+
npm install -g npm@latest
24+
npm install --global renovate
25+
renovate-config-validator

.kokoro/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ graalvm17)
7979
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
8080
RETURN_CODE=$?
8181
;;
82+
graalvmA)
83+
# Run Unit and Integration Tests with Native Image
84+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative,native-tests,native-deps test -pl '!google-http-client-appengine'
85+
RETURN_CODE=$?
86+
;;
87+
graalvmB)
88+
# Run Unit and Integration Tests with Native Image
89+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative,native-tests,native-deps test -pl '!google-http-client-appengine'
90+
RETURN_CODE=$?
91+
;;
8292
samples)
8393
SAMPLES_DIR=samples
8494
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.

.kokoro/nightly/integration.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ env_vars: {
3535
key: "SECRET_MANAGER_KEYS"
3636
value: "java-it-service-account"
3737
}
38+

0 commit comments

Comments
 (0)