Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/integration test backwards compatibility failed4 #19

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 44 additions & 8 deletions .github/workflows/ci-integration-backwards-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

backwards-compatibility:
name:
runs-on: ubuntu-latest
runs-on: ubuntu-16.04
timeout-minutes: 120

steps:
Expand All @@ -44,31 +44,67 @@ jobs:
args: site2 .github deployment .asf.yaml

- name: Set up JDK 1.8
if: steps.docs.outputs.changed_only == 'no'
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: get space size
run: df -h

- name: get file size
run: du -sh

- name: clean disk
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
df -h

- name: get space size
run: df -h

- name: run install by skip tests
if: steps.docs.outputs.changed_only == 'no'
run: mvn clean install -DskipTests

- name: get space size
run: df -h

- name: get file size
run: du -sh

- name: get directory size
run: ls /

- name: get file size
run: sudo du -sh /

- name: build artifacts and docker image
if: steps.docs.outputs.changed_only == 'no'
run: mvn -B -f tests/docker-images/pom.xml install -am -Pdocker -DskipTests

- name: get docker size
run: df -h

- name: get docker size
run: docker images

- name: get file size
run: du -sh /

- name: clean docker container
if: steps.docs.outputs.changed_only == 'no'
run: docker system prune -f

- name: remove docker node image
if: steps.docs.outputs.changed_only == 'no'
run: docker rmi -f node:10 && docker rmi -f node:12 && docker rmi -f buildpack-deps:stretch

- name: remove docker builder and microsoft image
if: steps.docs.outputs.changed_only == 'no'
run: docker rmi -f jekyll/builder:latest && docker rmi -f mcr.microsoft.com/azure-pipelines/node8-typescript:latest

- name: get docker size
run: df -h

- name: get docker size
run: docker images

- name: run integration tests
if: steps.docs.outputs.changed_only == 'no'
run: mvn -B -f tests/pom.xml test -DintegrationTestSuiteFile=pulsar-backwards-compatibility.xml -DintegrationTests -DredirectTestOutputToFile=false