You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/10/02 14:53:45 UTC
[httpcomponents-client] branch 5.1.x updated (956c00189 -> 2d6a1566d)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a change to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
omit 956c00189 Temporarily removed windows-latest from the Github CI OS matrix due to intermittent network failures (java.io.IOException: An established connection was aborted by the software in your host machine). It is unclear whether this is a bug in the library or in the Windows JRE.
omit 12296a4d3 Be more lenient on slower build machines
omit a2d9bdca4 Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct
omit cfeb2c91d Add GitHub Actions build and remove Travis-CI
new fd17d2ea6 Add GitHub Actions build and remove Travis-CI
new 68d43fefe Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct
new 47da24855 Be more lenient on slower build machines
new 2d6a1566d Temporarily removed windows-latest from the Github CI OS matrix due to intermittent network failures (java.io.IOException: An established connection was aborted by the software in your host machine). It is unclear whether this is a bug in the library or in the Windows JRE.
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (956c00189)
\
N -- N -- N refs/heads/5.1.x (2d6a1566d)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/maven.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[httpcomponents-client] 03/04: Be more lenient on slower build machines
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 47da24855ce90510af4bb1b5d74e8f0bdbb6cbe0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 28 10:36:05 2022 -0400
Be more lenient on slower build machines
---
.../org/apache/hc/client5/testing/async/AbstractServerTestBase.java | 4 ++--
.../org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java | 2 +-
.../java/org/apache/hc/client5/testing/sync/LocalServerTestBase.java | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractServerTestBase.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractServerTestBase.java
index f281db2fe..9c7069360 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractServerTestBase.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/AbstractServerTestBase.java
@@ -43,8 +43,8 @@ import org.junit.rules.ExternalResource;
public abstract class AbstractServerTestBase {
- public static final Timeout TIMEOUT = Timeout.ofSeconds(30);
- public static final Timeout LONG_TIMEOUT = Timeout.ofSeconds(60);
+ public static final Timeout TIMEOUT = Timeout.ofMinutes(1);
+ public static final Timeout LONG_TIMEOUT = Timeout.ofMinutes(3);
protected final URIScheme scheme;
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
index 751349682..56c7aeefb 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/async/TestHttpMinimalReactive.java
@@ -89,7 +89,7 @@ public class TestHttpMinimalReactive extends AbstractHttpReactiveFundamentalsTes
.setTlsStrategy(new DefaultClientTlsStrategy(SSLTestContexts.createClientSSLContext()))
.build();
final IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
- .setSoTimeout(TIMEOUT)
+ .setSoTimeout(LONG_TIMEOUT)
.build();
if (version.greaterEquals(HttpVersion.HTTP_2)) {
return HttpAsyncClients.createMinimal(
diff --git a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/LocalServerTestBase.java b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/LocalServerTestBase.java
index 07a98b553..07af328fd 100644
--- a/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/LocalServerTestBase.java
+++ b/httpclient5-testing/src/test/java/org/apache/hc/client5/testing/sync/LocalServerTestBase.java
@@ -55,8 +55,8 @@ import org.junit.rules.ExternalResource;
*/
public abstract class LocalServerTestBase {
- public static final Timeout TIMEOUT = Timeout.ofSeconds(30);
- public static final Timeout LONG_TIMEOUT = Timeout.ofSeconds(60);
+ public static final Timeout TIMEOUT = Timeout.ofMinutes(1);
+ public static final Timeout LONG_TIMEOUT = Timeout.ofMinutes(3);
public LocalServerTestBase(final URIScheme scheme) {
this.scheme = scheme;
[httpcomponents-client] 04/04: Temporarily removed windows-latest from the Github CI OS matrix due to intermittent network failures (java.io.IOException: An established connection was aborted by the software in your host machine). It is unclear whether this is a bug in the library or in the Windows JRE.
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 2d6a1566d338f01e3c97e246517812a56408a3cb
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Oct 1 18:44:17 2022 +0200
Temporarily removed windows-latest from the Github CI OS matrix due to intermittent network failures (java.io.IOException: An established connection was aborted by the software in your host machine). It is unclear whether this is a bug in the library or in the Windows JRE.
---
.github/workflows/maven.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c25f9404c..c5bafe4b8 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -27,7 +27,8 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
- os: [ubuntu-latest, windows-latest, macos-latest]
+ # windows-latest is not used due to intermittent network failures
+ os: [ubuntu-latest, macos-latest]
# All LTS versions plus the current version. Java 17 cannot be tested with due to
# EasyMock incompatibility (removed in 5.2)
java: [ 8, 11 ]
[httpcomponents-client] 01/04: Add GitHub Actions build and remove Travis-CI
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit fd17d2ea64dcf8cefb8e8d43d4e689d3c5db9931
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Sep 26 09:30:04 2022 -0400
Add GitHub Actions build and remove Travis-CI
---
.github/workflows/maven.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++
.travis.yml | 40 -----------------------------
README.md | 4 +--
pom.xml | 1 +
4 files changed, 64 insertions(+), 42 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 000000000..c25f9404c
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,61 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You 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.
+
+name: Java CI
+
+on: [push, pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+
+ runs-on: ${{ matrix.os }}
+ continue-on-error: ${{ matrix.experimental }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ # All LTS versions plus the current version. Java 17 cannot be tested with due to
+ # EasyMock incompatibility (removed in 5.2)
+ java: [ 8, 11 ]
+ experimental: [false]
+# include:
+# - java: 20-ea
+# os: ubuntu-latest
+# experimental: true
+# - java: 20-ea
+# os: windows-latest
+# experimental: true
+# - java: 20-ea
+# os: macos-latest
+# experimental: true
+ fail-fast: false
+
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/cache@v3
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
+ - name: Build with Maven
+ run: mvn -V --file pom.xml --no-transfer-progress -DtrimStackTrace=false -P-use-toolchains
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 79392d417..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You 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.
-
-language: java
-dist: trusty
-sudo: false
-
-arch:
- - amd64
- - arm64
-
-addons:
- apt:
- packages:
- - maven
-
-jdk:
- - oraclejdk8
- - openjdk12
- - oraclejdk12
- - openjdk-ea
-
-matrix:
- allow_failures:
- - jdk: openjdk-ea
-
-after_success:
- - mvn clean cobertura:cobertura coveralls:report
diff --git a/README.md b/README.md
index 8cf1360e9..042b94aae 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ Apache HttpComponents Client
Welcome to the HttpClient component of the Apache HttpComponents project.
-[](https://travis-ci.com/apache/httpcomponents-client)
+[](https://github.com/apache/httpcomponents-client/actions)
[](https://maven-badges.herokuapp.com/maven-central/org.apache.httpcomponents.client5/httpclient5)
[](https://opensource.org/licenses/Apache-2.0)
@@ -37,7 +37,7 @@ For building from source instructions please refer to [BUILDING.txt](./BUILDING.
Dependencies
------------
-HttpClient main module requires Java 7 compatible runtime and
+HttpClient main module requires Java 8 compatible runtime and
depends on the following external libraries:
* [Apache HttpComponents HttpCore](https://github.com/apache/httpcomponents-core)
diff --git a/pom.xml b/pom.xml
index 983cf2aa3..a92d5e49c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -207,6 +207,7 @@
</modules>
<build>
+ <defaultGoal>clean verify</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
[httpcomponents-client] 02/04: Register the standard GitHub page for a Code of Conduct with a link to the Apache Code of Conduct
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
commit 68d43fefe2732b8df90ce6d71e9f84eb6f5c7292
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Sep 27 10:09:08 2022 -0400
Register the standard GitHub page for a Code of Conduct with a link to
the Apache Code of Conduct
---
CODE_OF_CONDUCT.md | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000..3ed501501
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,17 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You 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.
+-->
+The Apache code of conduct page is [https://www.apache.org/foundation/policies/conduct.html](https://www.apache.org/foundation/policies/conduct.html).