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

Reduce log size and free up disk space on Linux #1717

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Free disk space ubuntu
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false
- name: Checkout ci.common
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -67,7 +72,7 @@ jobs:
./mvnw -V clean install -f ci.common --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false
# Run tests
- name: Run tests
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: ./mvnw -V verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"

# WINDOWS BUILD
build-windows:
Expand Down Expand Up @@ -122,4 +127,4 @@ jobs:
# Run tests
- name: Run tests
working-directory: C:/ci.maven
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogs"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
run: .\mvnw.cmd -V verify -Ponline-its --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -D"invoker.streamLogsOnFailures"=true -Druntime=${{ matrix.RUNTIME }} -DruntimeVersion="${{ matrix.RUNTIME_VERSION }}"
5 changes: 2 additions & 3 deletions liberty-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<profiles>
<profile>offline-its</profile>
</profiles>
<streamLogs>true</streamLogs>
<streamLogsOnFailures>true</streamLogsOnFailures>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -177,11 +177,10 @@
<runtimeKernelId>${runtimeKernelId}</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<streamLogs>true</streamLogs>
<profiles>
<profile>online-its</profile>
</profiles>
<streamLogs>true</streamLogs>
<streamLogsOnFailures>true</streamLogsOnFailures>
<mavenOpts>-Dfile.encoding=UTF-8</mavenOpts>
</configuration>
<executions>
Expand Down