Also include one PR job that uses boringssl (#10886)

Motivation:

When validating PRs we should also at least run one job that uses boringssl

Modifications:

- Add job that uses boringssl
- Cleanup docker compose files
- Fix buffer leak in test

Result:

Also run with boringssl when PRs are validated
This commit is contained in:
Norman Maurer 2020-12-23 19:11:04 +01:00 committed by GitHub
parent 9145f28586
commit 1a708ac172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 73 additions and 56 deletions

View File

@ -152,3 +152,43 @@ jobs:
with:
name: target
path: "**/target/"
build-linux-x86_64-java11-boringssl:
runs-on: ubuntu-latest
needs: verify
steps:
- uses: actions/checkout@v2
# Cache .m2/repository
- uses: actions/cache@v2
env:
cache-name: build-linux-x86_64-java11-boringssl-cache-m2-repository
with:
path: ~/.m2/repository
key: ${{ runner.os }}-pr-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-pr-${{ env.cache-name }}-
${{ runner.os }}-pr-
# Enable caching of Docker layers
- uses: satackey/action-docker-layer-caching@v0.0.8
continue-on-error: true
with:
key: build-linux-x86_64-java11-boringssl-docker-cache-{hash}
restore-keys: |
build-linux-x86_64-java11-boringssl-docker-cache-
- name: Build docker image
run: docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-6.111.yaml build
- name: Build project with leak detection
run: docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-6.111.yaml run build-leak-boringssl-static | tee build-leak.output
- name: Checking for detected leak
run: ./.github/scripts/check_leak.sh build-leak.output
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: target
path: "**/target/"

View File

@ -1,20 +0,0 @@
version: "3"
services:
runtime-setup:
image: netty:centos-6-1.10
build:
args:
java_version : "zulu@1.10.0-2"
test:
image: netty:centos-6-1.10
test-leak:
image: netty:centos-6-1.10
test-boringssl-static:
image: netty:centos-6-1.10
shell:
image: netty:centos-6-1.10

View File

@ -14,13 +14,10 @@ services:
build-leak:
image: netty:centos-6-1.11
test:
build-boringssl-static:
image: netty:centos-6-1.11
test-leak:
image: netty:centos-6-1.11
test-boringssl-static:
build-leak-boringssl-static:
image: netty:centos-6-1.11
shell:

View File

@ -16,13 +16,10 @@ services:
build-leak:
image: netty:centos-6-1.15
test:
build-boringssl-static:
image: netty:centos-6-1.15
test-leak:
image: netty:centos-6-1.15
test-boringssl-static:
build-leak-boringssl-static:
image: netty:centos-6-1.15
shell:

View File

@ -14,17 +14,14 @@ services:
build-leak:
image: netty:centos-6-1.8
build-boringssl-static:
image: netty:centos-6-1.8
build-leak-boringssl-static:
image: netty:centos-6-1.8
deploy:
image: netty:centos-6-1.8
test:
image: netty:centos-6-1.8
test-leak:
image: netty:centos-6-1.8
test-boringssl-static:
image: netty:centos-6-1.8
shell:
image: netty:centos-6-1.8

View File

@ -8,13 +8,16 @@ services:
args:
java_version : "graalvm-ce-java11@20.1.0"
test:
build:
image: netty:centos-6-1.11
test-leak:
build-leak:
image: netty:centos-6-1.11
test-boringssl-static:
build-boringssl-static:
image: netty:centos-6-1.11
build-leak-boringssl-static:
image: netty:centos-6-1.11
shell:

View File

@ -8,13 +8,16 @@ services:
args:
java_version : "graalvm-ce-java8@20.1.0"
test:
build:
image: netty:centos-6-1.8
test-leak:
build-leak:
image: netty:centos-6-1.8
test-boringssl-static:
build-boringssl-static:
image: netty:centos-6-1.8
build-leak-boringssl-static:
image: netty:centos-6-1.8
shell:

View File

@ -8,13 +8,16 @@ services:
args:
java_version : "adopt-openj9@1.11.0-9"
test:
build:
image: netty:centos-6-openj9-1.11
test-leak:
build-leak:
image: netty:centos-6-openj9-1.11
test-boringssl-static:
build-boringssl-static:
image: netty:centos-6-openj9-1.11
build-leak-boringssl-static:
image: netty:centos-6-openj9-1.11
shell:

View File

@ -30,17 +30,13 @@ services:
<<: *common
command: /bin/bash -cl "./mvnw clean deploy -DskipTests=true"
test-leak:
build-boringssl-static:
<<: *common
command: /bin/bash -cl "./mvnw -Pleak clean install -Dio.netty.testsuite.badHost=netty.io -Dmaven.wagon.http.pool=false"
command: /bin/bash -cl "./mvnw -P boringssl clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true"
test:
build-leak-boringssl-static:
<<: *common
command: /bin/bash -cl "./mvnw clean install -Dio.netty.testsuite.badHost=netty.io -Dmaven.wagon.http.pool=false"
test-boringssl-static:
<<: *common
command: /bin/bash -cl "./mvnw -P boringssl clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true -Dmaven.wagon.http.pool=false"
command: /bin/bash -cl "./mvnw -Pboringssl,leak clean install -Dio.netty.testsuite.badHost=netty.io -Dxml.skip=true"
shell:
<<: *common

View File

@ -1223,6 +1223,7 @@ public class SslHandlerTest {
assertEquals(expected, buffer);
} finally {
expected.release();
buffer.release();
}
} else {
throw (Throwable) obj;