Skip to content
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
16 changes: 16 additions & 0 deletions .github/changes-filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# contains pattern definitions used in workflows "changes" step
# pattern syntax: https://github.com/micromatch/picomatch
all:
- '**'
docs:
- 'site3/**'
- '.asf.yaml'
- '*.md'
- '**/*.md'
- '.github/changes-filter.yaml'
- '.github/ISSUE_TEMPLATE/**'
need_owasp:
- 'pom.xml'
- '**/pom.xml'
- 'src/owasp-dependency-check-false-positives.xml'
- 'src/owasp-dependency-check-suppressions.xml'
22 changes: 13 additions & 9 deletions .github/workflows/backward-compat-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,20 +66,20 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 1.8
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Module
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu clean install -DskipTests
- name: Test current server with old clients
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -DintegrationTests -pl :backward-compat-current-server-old-clients test
- name: Test progressive upgrade
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -DintegrationTests -pl :upgrade test
- name: Other tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: |
mvn -B -nsu -DintegrationTests -pl :bc-non-fips,:hierarchical-ledger-manager,:hostname-bookieid,:old-cookie-new-cluster,:recovery-no-password,:upgrade-direct,:yahoo-custom-version test
20 changes: 12 additions & 8 deletions .github/workflows/bookie-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,22 +66,22 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11

- name: Maven build bookkeeper-server
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -am -pl bookkeeper-server clean install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Run bookie tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -pl bookkeeper-server test -Dtest="org.apache.bookkeeper.bookie.**" -DfailIfNoTests=false -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Run shell tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -pl tests/scripts install -DfailIfNoTests=false -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Aggregates all test reports to ./test-reports and ./surefire-reports directories If failure
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,13 +66,13 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Run client tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -am -nsu -pl bookkeeper-server clean install test -Dtest="org.apache.bookkeeper.client.**" -DfailIfNoTests=false -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Aggregates all test reports to ./test-reports and ./surefire-reports directories If failure
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/compatibility-check-java11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,13 +66,13 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn clean package -B -nsu -DskipBookKeeperServerTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO
- name: print JVM thread dumps when cancelled
if: cancelled()
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/compatibility-check-java17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -61,13 +65,13 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
- name: Build with Maven
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn clean package -B -nsu -DskipBookKeeperServerTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO
- name: print JVM thread dumps when cancelled
if: cancelled()
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/compatibility-check-java8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,12 +66,12 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 1.8
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn clean package spotbugs:check -B -nsu -DskipBookKeeperServerTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: print JVM thread dumps when cancelled
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -62,22 +66,22 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11

- name: Build with Maven
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu clean install -Pdocker -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Run metadata driver tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -f metadata-drivers/pom.xml test -DintegrationTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: Run all integration tests
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu -f tests/pom.xml test -DintegrationTests -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO

- name: print JVM thread dumps when cancelled
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ jobs:
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
site3:
- 'site3/**'
filters: .github/changes-filter.yaml
list-files: csv

- name: Check changed files
id: check_changes
run: |
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT

- name: Cache local Maven repository
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
id: cache
uses: actions/cache@v2
with:
Expand All @@ -58,12 +62,12 @@ jobs:
key: ${{ runner.os }}-bookkeeper-all-${{ hashFiles('**/pom.xml') }}

- name: Set up JDK 11
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11

- name: mvn package
if: steps.changes.outputs.site3 != 'true'
if: steps.check_changes.outputs.docs_only != 'true'
run: mvn -B -nsu clean package -DskipTests
14 changes: 6 additions & 8 deletions .github/workflows/owasp-dep-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,15 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Detect changed pom files
- name: Detect changed files
id: changes
uses: apache/pulsar-test-infra/paths-filter@master
with:
filters: |
poms:
- 'pom.xml'
- '**/pom.xml'
filters: .github/changes-filter.yaml
list-files: csv

- name: Cache local Maven repository
if: ${{ steps.changes.outputs.poms == 'true' }}
if: ${{ steps.changes.outputs.need_owasp == 'true' }}
id: cache
uses: actions/cache@v2
with:
Expand All @@ -66,12 +64,12 @@ jobs:

- name: Set up JDK 1.8
uses: actions/setup-java@v1
if: ${{ steps.changes.outputs.poms == 'true' }}
if: ${{ steps.changes.outputs.need_owasp == 'true' }}
with:
java-version: 1.8

- name: run "clean install verify" to trigger dependency check
if: ${{ steps.changes.outputs.poms == 'true' }}
if: ${{ steps.changes.outputs.need_owasp == 'true' }}
# excluding dlfs because it includes hadoop lib with
# CVEs that we cannot patch up anyways
run: mvn -q -B -ntp clean install verify -Powasp-dependency-check -DskipTests -pl '!stream/distributedlog/io/dlfs'
Expand Down
Loading