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

[improve][broker] PIP-192: Implement broker registry #7

Open
wants to merge 152 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
62a2058
[improve][sec] Suppress false positive OWASP reports (#19105)
tisonkun Dec 29, 2022
c13f389
[refactor] Remove docs from the main repo (#19100)
tisonkun Dec 29, 2022
c611a1a
[fix][broker] Fix estimateBacklogFromPosition if position is greater …
AnonHxy Dec 30, 2022
ed33fb3
[fix][ci] Fix pulsar shell license issue (#19101)
Technoboy- Dec 30, 2022
36cff70
[fix][cli] Fix wrong description of pulsar-admin flags (#19108)
maxsxu Dec 30, 2022
e194c01
[improve][admin,broker] Add option to unloadNamespaceBundle with bund…
vineeth1995 Dec 31, 2022
b3f3e0b
[fix][admin] Keep new inputSpecs when updating sink configs (#19082)
aymkhalil Jan 2, 2023
1736396
[fix][sec] Upgrade jettison to 1.5.3 (#19038)
nicoloboschi Jan 2, 2023
f912fb3
[fix][build] Resolve OWASP Dependency Check false positives (#19120)
lhotari Jan 2, 2023
9ec1d07
[feat][broker][PIP-195]Implement Filter out all delayed messages and …
coderzc Jan 3, 2023
a2ec02d
[cleanup][broker] Fix ClusterDataImpl#clone and add test (#19126)
michaeljmarshall Jan 4, 2023
3bb93cb
[fix][broker][PIP-195] fix cursor skip read (#19124)
coderzc Jan 4, 2023
8790ed1
[fix][monitor] Fix the partitioned publisher topic stat aggregation b…
heesung-sn Jan 4, 2023
a6516a8
[fix][broker] Topic could be in fenced state forever if deletion fail…
nicoloboschi Jan 4, 2023
3afc291
[improve][schema] Do not print error log with stacktrace for 404 (#19…
codelipenghui Jan 5, 2023
4b8f447
[feat][broker][PIP-195] Implement BucketDelayedDeliveryTrackerFactory…
coderzc Jan 5, 2023
593fcb8
[improve][io] Elasticsearch sink: Support loading config from secrets…
Jan 5, 2023
4028ad3
[improve][ci] Improve CI ssh access in forks, don't fail build if set…
lhotari Jan 5, 2023
c862356
[revert] "[fix][broker] change name limitTime to limitTimeInSec (#190…
michaeljmarshall Jan 8, 2023
badd69b
[fix][broker] fix ttl expiration block due to no-recoverable exceptio…
aloyszhang Jan 8, 2023
96f8262
[improve][broker] Add oshi library to help control OS resources. (#18…
mattisonchao Jan 9, 2023
56a7b89
[fix][broker] Reject create non existent persistent partitions. (#19086)
mattisonchao Jan 9, 2023
b05fddb
[improve][admin]internalGetMessageById shouldn't be allowed on partit…
gaozhangmin Jan 9, 2023
6335fa1
[cleanup][txn] Use MLTransactionMetadataStore in integration tests (#…
nicoloboschi Jan 9, 2023
e829672
[improve][broker] Add parameter check for create/update cluster. (#19…
mattisonchao Jan 9, 2023
90764e7
[fix][txn] Always send correct transaction id in end txn response (#1…
nicoloboschi Jan 10, 2023
9ef54fd
[improve][cli] Expose updateLocalTopicOnly to UpdatePartitionedCmd (#…
aloyszhang Jan 10, 2023
d6fcdb8
[improve][broker,proxy] Use ChannelVoidPromise to avoid useless promi…
nicoloboschi Jan 10, 2023
5171d81
[feat][ci] Add integration to ge.apache.org Gradle Enterprise server …
lhotari Jan 10, 2023
82b1357
[fix][build] Upgrade dependency-check-maven plugin to fix broken OWAS…
lhotari Jan 10, 2023
dda1437
[fix][io] Fix Alluxio sink to respect the alluxioMasterHost property …
sekikn Jan 11, 2023
7431381
[improve][broker] Add ref count for sticky hash to optimize the perfo…
codelipenghui Jan 11, 2023
932023d
[cleanup][broker] Pass subName to authz provider on unsubscribe (#19176)
michaeljmarshall Jan 11, 2023
0feaa45
[improve][broker]add NamespacePolicies and AntiAffinity check before …
Nicklee007 Jan 11, 2023
78ea7f0
[improve][broker]Use cursor.isActive instead to judge if cursor is ac…
gaozhangmin Jan 11, 2023
4b0dc9a
[fix][cli] Shell syntax (#19188)
tisonkun Jan 11, 2023
d96af0a
[fix][broker] Pass subName for subscription operations in ServerCnx (…
michaeljmarshall Jan 11, 2023
89b1ff1
[fix] Some typos in Cmd classes (#19190)
Nicklee007 Jan 12, 2023
364c3c3
[cleanup][broker] Deprecate blocking AuthorizationService, Authorizat…
michaeljmarshall Jan 12, 2023
a93f30f
[fix][broker] Allow user lookup topic name with `-partition-` but no …
mattisonchao Jan 12, 2023
4d57828
[fix][broker] Fix race condition while updating partition number (#19…
mattisonchao Jan 12, 2023
d7f8f56
[fix][doc] Remove lombok plugin and define FunctionRecordBuilder expl…
tisonkun Jan 12, 2023
0c4db3a
[fix][client] Fix producer could send timeout when enable batching (#…
AnonHxy Jan 12, 2023
3c22f1b
[improve][ci] Gradle Enterprise Configuration Tweaks (#19194)
clayburn Jan 12, 2023
7f75993
[fix][ci] Fix PulsarFunctionLocalRunTest that broke after ClusterData…
lhotari Jan 12, 2023
3c58491
[improve][test] Prevent "Failed to register Collector of type Counter…
lhotari Jan 12, 2023
a56bd87
[improve][client] Use Jackson's ObjectReader in Client's JSON readers…
lhotari Jan 12, 2023
e9b9ce3
[improve][ci] Limit cache step to 5 minutes to fail faster when it ge…
lhotari Jan 13, 2023
a62ba19
[improve][test] Run cleanup methods even when failfast mode is enable…
lhotari Jan 13, 2023
253e3e4
[improve][broker] Copy subscription properties during updating the to…
mattisonchao Jan 13, 2023
fb6e0b8
[fix][txn] Fix transactions disabled error message (#19209)
nicoloboschi Jan 13, 2023
ec102fb
[improve][misc] Use shared Jackson ObjectMapper to reduce overhead an…
lhotari Jan 13, 2023
3fae7c9
[fix][test] Fix ProxyPrometheusMetricsTest flakiness and consistently…
lhotari Jan 13, 2023
d4cab6a
[fix][ci] Fix CI issue where ubuntu apt repository azure.archive.ubun…
lhotari Jan 13, 2023
ecd9fec
[improve][ci] Revisit the TestNG FailFastNotifier changes to fix NPEs…
lhotari Jan 13, 2023
4ea0d11
[fix][build] Fix "An error has occurred in JaCoCo report generation" …
lhotari Jan 13, 2023
6832732
[fix][test] Fix flaky test CompactionReaderImplTest (#19222)
heesung-sn Jan 13, 2023
fc4bca6
[fix][broker] Support deleting partitioned topics with the keyword `-…
mattisonchao Jan 14, 2023
accae9f
[fix][broker] Support zookeeper read-only config. (#19156)
horizonzy Jan 14, 2023
fd40eae
[fix][ci] Pick ubuntu mirror that uses http:// (#19233)
lhotari Jan 14, 2023
efb251c
[cleanup][broker] Remove AuthorizationProvider methods deprecated in …
michaeljmarshall Jan 15, 2023
246c270
[improve][broker] Follow up #19230 to tighten the validation scope (#…
mattisonchao Jan 15, 2023
f23363c
Fix flaky test CompactionReaderImplTest(wait until the consumerFutur…
heesung-sn Jan 16, 2023
334c3a5
[improve][misc] Follow up on ObjectMapper sharing changes (#19228)
lhotari Jan 16, 2023
13386b7
[fix][ci] Fix codecov reporting by configuring to wait for all builds…
lhotari Jan 16, 2023
9dc490f
[feat][broker][PIP-195] Implement delayed message index bucket snapsh…
coderzc Jan 17, 2023
21d384c
[improve][websocket] Add ping support (#19203)
nodece Jan 17, 2023
d25cf8e
[fix][broker] Close transactionBuffer after MessageDeduplication#chec…
tjiuming Jan 17, 2023
3ba6fa8
[fix] [broker] Counter of pending send messages in Replicator incorre…
poorbarcode Jan 17, 2023
1bb7b31
[improve][ci] Upload native crash dump files hs_err_*.log & core.* in…
lhotari Jan 17, 2023
b4d5857
[improve][client] Add unified newTableView method in PulsarClient (#1…
yuruguo Jan 17, 2023
299bd70
[fix][broker] Avoid bundle unload destination broker be set as an ina…
Nicklee007 Jan 17, 2023
1d7f5e5
[fix][test] Fix pulsar-proxy test flakiness related to metrics (#19257)
lhotari Jan 17, 2023
69866a6
[improve][ci] Improve test fail fast: disable for non-PR builds, fail…
lhotari Jan 17, 2023
9e7a5c7
[improve][broker] PIP-192 Moved the common broker load data feature(w…
heesung-sn Jan 18, 2023
9825b59
[feat][ci] Collect code coverage for integration tests from docker co…
lhotari Jan 18, 2023
ddf3c02
[fix][sec] upgrade org.postgresql:postgresql to 42.5.1 (#19259)
chncaption Jan 18, 2023
4d7c7d0
[improve][broker] Refactor update topic partitions endpoint. (#19166)
mattisonchao Jan 18, 2023
a2b707b
[improve][io] Upgrade HBase to 2.4.15 (#19249)
sekikn Jan 18, 2023
9bb3a21
[improve] [broker] Introduce `metadataStoreAllowReadOnlyOperations` t…
horizonzy Jan 18, 2023
32cdf38
[fix][sec] Exclude log4j from openmldb (#19266)
nodece Jan 18, 2023
cfd7e60
[fix][txn] Catch and log runtime exceptions in async operations (#19258)
nicoloboschi Jan 18, 2023
ea4f7eb
[fix][io] Fix the Alluxio sink to write messages successfully after t…
sekikn Jan 18, 2023
3c38ed5
[feat][broker] Update AuthenticationProvider to simplify HTTP Authn (…
michaeljmarshall Jan 19, 2023
a9b6519
[cleanup][proxy] Remove unused AuthenticationDataSource variable (#19…
michaeljmarshall Jan 19, 2023
29c244a
[feat][admin] PIP-219 Part-1 Add admin API for trimming topic (#19094)
315157973 Jan 19, 2023
d3e112e
[fix][broker] AbstractBatchedMetadataStore - use AlreadyClosedExcepti…
eolivelli Jan 19, 2023
86205a9
[improve][broker]Enable custom metadata stores (#19208)
Jan 19, 2023
4139fef
[fix] [ml] Topics stats shows msgBacklog but there reality no backlog…
poorbarcode Jan 19, 2023
e3b76d4
[fix][ci] Fix Jacoco code coverage to report classes in dependent pro…
lhotari Jan 20, 2023
516437e
[fix][websocket] Fix webSocketPingDurationSeconds config (#19256)
nodece Jan 20, 2023
de3b855
[improve][broker] Documentation for AuthenticationState contract (#19…
michaeljmarshall Jan 20, 2023
c875365
[fix][broker] Let TokenAuthState update authenticationDataSource (#19…
michaeljmarshall Jan 20, 2023
457a0d5
[improve][ci] Improve code coverage reporting (#19296)
lhotari Jan 20, 2023
e0f79bf
[improve][ci] CI code coverage collecting improvements (#19303)
lhotari Jan 23, 2023
7989801
[improve][misc] Register Jackson Java 8 support modules by default (#…
lhotari Jan 23, 2023
9e698b6
[improve][build] Upgrade ASF Maven parent pom version to 29 (#19165)
lhotari Jan 23, 2023
d1e22a6
[fix][ci] Require coverage upload jobs to succeed before deleting int…
lhotari Jan 23, 2023
8d81392
[improve][ci] Ignore docs_only logic for scheduled builds (#19306)
lhotari Jan 23, 2023
e8695bf
[feat][broker] OneStageAuth State: move authn out of constructor (#19…
michaeljmarshall Jan 23, 2023
02e64d8
[improve][broker] Replace authenticate with authenticateAsync (#19313)
michaeljmarshall Jan 24, 2023
6c014ee
[fix][ci] Fix "CI - OWASP Dependency Check" for other than master bra…
lhotari Jan 24, 2023
c17535b
[improve][ci] Disable coverage collection on other than master branch…
lhotari Jan 24, 2023
b880b1d
[improve][build] Upgrade Spotbugs to a version with JDK 17 compatibil…
lhotari Jan 24, 2023
689a33f
[fix][test] Fix flaky test ReplicatorTest.testDoNotReplicateSystemTop…
lhotari Jan 24, 2023
8049690
[improve][broker] ServerCnx: go to Failed state when auth fails (#19312)
michaeljmarshall Jan 25, 2023
b3432f4
[fix][test] Replace PulsarService Mockito spy solution for overriding…
lhotari Jan 25, 2023
52bd9da
[fix][fn] Fix TLS configuration for fn worker to broker if auth disab…
nicoloboschi Jan 25, 2023
c3975e0
[improve][build] Increase thread stack size to 1500k for Maven JVM to…
lhotari Jan 25, 2023
d03d28e
[fix][ci] Fix coverage condition for master branch (#19325)
lhotari Jan 25, 2023
6112b65
[improve][test] Reduce the use of Mockito spies/mocks in tests (#19326)
lhotari Jan 25, 2023
87b1dd6
[improve][ml] Use correct isActive method for cursor (#19322)
michaeljmarshall Jan 26, 2023
e2a056d
[fix][test] Add cleanup for NonClosableMockBookKeeper in TestPulsarSe…
lhotari Jan 26, 2023
f047de2
[fix][test] Fix flaky MetadataStoreStatsTest and prevent certain flak…
lhotari Jan 26, 2023
644be5f
[improve][txn] Handle changeToReadyState failure correctly in TC clie…
BewareMyPower Jan 27, 2023
3391171
[fix][test] testSingleTopicConsumerBatchShortName (#19253)
labuladong Jan 28, 2023
4cae20c
[fix][admin] Fix `validatePersistencePolicies` that Namespace/Topic p…
tjiuming Jan 28, 2023
f410c6b
[fix] fix window function example yaml (#19340)
nlu90 Jan 28, 2023
ccb7d82
[fix][cli] The format of the example in the auth-params description i…
zzccctv Jan 28, 2023
fcecca4
[fix][test] fix testEndTxnWhenCommittingOrAborting flaky test (#18318)
congbobo184 Jan 28, 2023
e417fe7
[improve] [admin] Make the default value of param --get-subscription-…
poorbarcode Jan 28, 2023
ad8d2df
[improve][broker]Fix recycling OpReadEntry without resetting count (#…
gaozhangmin Jan 28, 2023
96fb7da
[improve][broker] Added isActive in ManagedCursorImpl (#19341)
heesung-sn Jan 28, 2023
ea6641e
[improve][broker] Replaced checkBackloggedCursors with checkBacklogge…
heesung-sn Jan 29, 2023
d8c336f
[fix][test] broker.admin.PersistentTopicsTest#testUnloadTopic (#19347)
labuladong Jan 29, 2023
c17f355
[improve][txn]Clean up redundant logic in transaction client (#19345)
liangyepianzhou Jan 29, 2023
8ea41f1
[improve][broker] Optimize the logic of internalCreatePartitionedTopi…
Pomelongan Jan 29, 2023
e2851da
[fix] [ml] The atomicity of multiple fields of ml is broken (#19346)
poorbarcode Jan 29, 2023
1b2fa1f
[fix][client] Fix reader listener can't auto ack with pooled message.…
mattisonchao Jan 30, 2023
3bab099
[improve][admin] Improve partitioned-topic condition evaluation (#19015)
gaozhangmin Jan 30, 2023
3d8b52a
[fix][client] Set fields earlier for correct ClientCnx initialization…
michaeljmarshall Jan 30, 2023
d9a71d7
[improve][test] Refactor TestPulsarService to PulsarTestContext and a…
lhotari Jan 30, 2023
4165090
[improve][txn] Move checked exception into builder when newTransactio…
mattisonchao Jan 30, 2023
fc9e8bf
[fix] [ml] messagesConsumedCounter of NonDurableCursor was initialize…
poorbarcode Jan 31, 2023
785fb82
[improve][broker] Add lowerBoundarySheddingEnabled conf (#19351)
crossoverJie Jan 31, 2023
72b2e7e
[fix] [broker] print warn log if compaction task skipped cause by ex …
poorbarcode Jan 31, 2023
1cd1aef
[improve][broker] PIP-192 Added ServiceUnitStateCompactionStrategy (#…
heesung-sn Jan 31, 2023
66b0d7c
Implement broker registry for new load manager
Demogorgon314 Dec 7, 2022
723f154
Refactor
Demogorgon314 Dec 12, 2022
3fe33e1
Cleanup the listeners first when close
Demogorgon314 Dec 12, 2022
c6f8f13
Add more unit tests
Demogorgon314 Dec 12, 2022
ec723fb
Add more unit tests
Demogorgon314 Dec 13, 2022
01335ab
Add test group
Demogorgon314 Dec 13, 2022
582925b
Change the lookup address to broker id
Demogorgon314 Dec 15, 2022
b66cd7f
Remove cache and add more tests
Demogorgon314 Dec 15, 2022
48c1cbc
Address reviewer's comments
Demogorgon314 Dec 16, 2022
1d20a5f
Add new available broker lookup data method
Demogorgon314 Dec 22, 2022
99ba81b
Add log to warn empty lookup data
Demogorgon314 Dec 30, 2022
0fa3392
Use state field to store states.
Demogorgon314 Jan 3, 2023
d4c2326
Use try finally when close
Demogorgon314 Jan 4, 2023
fdb9ebd
Merge master into current branch
Demogorgon314 Feb 1, 2023
9c6d715
Address review comments
Demogorgon314 Feb 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 36 additions & 0 deletions .github/actions/gradle-enterprise/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# 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: Configure Gradle Enterprise integration
description: Configure Gradle Enterprise when secret GE_ACCESS_TOKEN is available
inputs:
token:
description: 'The token for accessing Gradle Enterprise'
required: true
runs:
using: composite
steps:
- run: |
if [[ -n "${{ inputs.token }}" ]]; then
echo "::group::Configuring Gradle Enterprise for build"
cp .mvn/ge-extensions.xml .mvn/extensions.xml
echo "GRADLE_ENTERPRISE_ACCESS_KEY=${{ inputs.token }}" >> $GITHUB_ENV
echo "::endgroup::"
fi
shell: bash
16 changes: 15 additions & 1 deletion .github/actions/ssh-access/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,22 @@ runs:
tmux set -t upterm window-size largest
echo '::endgroup::'
echo -e "\nSSH connection information"
# wait up to 10 seconds for upterm admin socket to appear
for i in {1..10}; do
ADMIN_SOCKET=$(find $HOME/.upterm -name "*.sock")
if [ ! -S "$ADMIN_SOCKET" ]; then
echo "Waiting for upterm admin socket to appear in ~/.upterm/*.sock ..."
sleep 1
else
echo "upterm admin socket available in $ADMIN_SOCKET"
break
fi
done
shopt -s nullglob
upterm session current --admin-socket ~/.upterm/*.sock
upterm session current --admin-socket ~/.upterm/*.sock || {
echo "Starting upterm failed."
exit 0
}
elif [[ "${{ inputs.action }}" == "wait" ]]; then
# only wait if upterm was installed
if command -v upterm &>/dev/null; then
Expand Down
100 changes: 100 additions & 0 deletions .github/actions/upload-coverage/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#
# 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: Upload to Codecov with retries
description: |
Checks that the current repository is public and then
uploads to codecov with multiple retries as a workaround
for these issues
- https://github.com/codecov/codecov-action/issues/598
- https://github.com/codecov/codecov-action/issues/837
inputs:
flags:
# see https://github.com/codecov/codecov-action#arguments
description: 'Flag the upload to group coverage metrics. Multiple flags are separated by a comma.'
runs:
using: composite
steps:
- name: "Check that repository is public"
id: repo-check
shell: bash
run: |
if [[ "${{ github.server_url }}" != "https://github.com" ]]; then
echo "Not using github.com server ('${{ github.server_url }}'). Skipping uploading of coverage metrics."
echo "passed=false" >> $GITHUB_OUTPUT
exit 0
fi
REPO_URL="${{ github.server_url }}/${{ github.repository }}"
{
# public repository url will respond to http HEAD request
curl -X HEAD -fs "$REPO_URL" && echo "passed=true" >> $GITHUB_OUTPUT
} || {
echo "$REPO_URL isn't a public repository. Skipping uploading of coverage metrics."
echo "passed=false" >> $GITHUB_OUTPUT
}
- name: "Upload to Codecov (attempt #1)"
id: codecov-upload-1
if: steps.repo-check.outputs.passed == 'true'
uses: codecov/codecov-action@v3
continue-on-error: true
with:
flags: ${{ inputs.flags }}
fail_ci_if_error: true
verbose: true
- name: "Wait 15 seconds before next attempt"
if: steps.codecov-upload-1.outcome == 'failure'
shell: bash
run: sleep 15
- name: "Upload to Codecov (attempt #2)"
id: codecov-upload-2
if: steps.codecov-upload-1.outcome == 'failure'
uses: codecov/codecov-action@v3
continue-on-error: true
with:
flags: ${{ inputs.flags }}
fail_ci_if_error: true
verbose: true
- name: "Wait 60 seconds before next attempt"
if: steps.codecov-upload-2.outcome == 'failure'
shell: bash
run: sleep 60
- name: "Upload to Codecov (attempt #3)"
id: codecov-upload-3
if: steps.codecov-upload-2.outcome == 'failure'
uses: codecov/codecov-action@v3
# fail on last attempt
continue-on-error: false
with:
flags: ${{ inputs.flags }}
fail_ci_if_error: true
verbose: true
- name: "Show link to Codecov report"
shell: bash
run: |
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
head_sha=$(jq -r '.pull_request.head.sha' "${GITHUB_EVENT_PATH}")
else
head_sha=$(git rev-parse HEAD)
fi
tee -a "$GITHUB_STEP_SUMMARY" <<EOF
## Code Coverage report in Codecov

[Code coverage report](https://app.codecov.io/github/$GITHUB_REPOSITORY/commit/${head_sha}/tree)

EOF
6 changes: 5 additions & 1 deletion .github/workflows/ci-go-functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ jobs:
- 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
if [[ "${GITHUB_EVENT_NAME}" != "schedule" ]]; then
echo "docs_only=${{ fromJSON(steps.changes.outputs.all_count) == fromJSON(steps.changes.outputs.docs_count) && fromJSON(steps.changes.outputs.docs_count) > 0 }}" >> $GITHUB_OUTPUT
else
echo docs_only=false >> $GITHUB_OUTPUT
fi

- name: Check if the PR has been approved for testing
if: ${{ steps.check_changes.outputs.docs_only != 'true' && github.repository == 'apache/pulsar' && github.event_name == 'pull_request' }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci-maven-cache-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ env:
jobs:
update-maven-dependencies-cache:
name: Update Maven dependency cache for ${{ matrix.name }}
env:
JOB_NAME: Update Maven dependency cache for ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 45

Expand Down Expand Up @@ -75,6 +77,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Configure Gradle Enterprise
uses: ./.github/actions/gradle-enterprise
with:
token: ${{ secrets.GE_ACCESS_TOKEN }}

- name: Detect changed files
if: ${{ github.event_name != 'schedule' }}
id: changes
Expand All @@ -89,6 +96,7 @@ jobs:
if: ${{ github.event_name == 'schedule' || steps.changes.outputs.poms == 'true' }}
id: cache
uses: actions/cache@v3
timeout-minutes: 5
with:
path: |
~/.m2/repository/*/*/*
Expand Down
50 changes: 25 additions & 25 deletions .github/workflows/ci-owasp-dependency-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,50 @@ name: CI - OWASP Dependency Check
on:
schedule:
- cron: '15 0 * * *'
workflow_dispatch:

env:
MAVEN_OPTS: -Xss1500k -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
run-owasp-dependency-check:
if: ${{ github.repository == 'apache/pulsar' }}
name: Run OWASP Dependency Check
if: ${{ github.repository == 'apache/pulsar' || github.event_name == 'workflow_dispatch' }}
name: Check ${{ matrix.branch }}
env:
JOB_NAME: Check ${{ matrix.branch }}
runs-on: ubuntu-20.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- name: master
checkout_branch: 'master'
- name: branch-2.11
checkout_branch: 'branch-2.11'
- name: branch-2.10
checkout_branch: 'branch-2.10'
- name: branch-2.9
checkout_branch: 'branch-2.9'
- name: branch-2.8
checkout_branch: 'branch-2.8'
- branch: master
- branch: branch-2.11
- branch: branch-2.10
jdk: 11
- branch: branch-2.9
jdk: 11
- branch: branch-2.8
jdk: 11

steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ matrix.checkout_branch }}
ref: ${{ matrix.branch }}

- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Configure Gradle Enterprise
if: ${{ matrix.branch == 'master' }}
uses: ./.github/actions/gradle-enterprise
with:
token: ${{ secrets.GE_ACCESS_TOKEN }}

- name: Cache local Maven repository
uses: actions/cache@v3
timeout-minutes: 5
with:
path: |
~/.m2/repository/*/*/*
Expand All @@ -67,22 +75,14 @@ jobs:
${{ runner.os }}-m2-dependencies-core-modules-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-m2-dependencies-core-modules-

- name: Set up JDK 17
if: ${{ matrix.name != 'branch-2.8' && matrix.name != 'branch-2.9' && matrix.name != 'branch-2.10' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: Set up JDK 11
if: ${{ matrix.name == 'branch-2.8' || matrix.name == 'branch-2.9' || matrix.name == 'branch-2.10' }}
- name: Set up JDK ${{ matrix.jdk || '17' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
java-version: ${{ matrix.jdk || '17' }}

- name: run install by skip tests
run: mvn -q -B -ntp clean install -DskipTests
run: mvn -B -ntp clean install -DskipTests -Dspotbugs.skip=true -Dlicense.skip=true -Dcheckstyle.skip=true -Drat.skip=true -DskipDocker=true

- name: run OWASP Dependency Check for distribution/server (-DfailBuildOnAnyVulnerability=true)
run: mvn -B -ntp -Pmain,skip-all,skipDocker,owasp-dependency-check initialize verify -pl distribution/server -DfailBuildOnAnyVulnerability=true
Expand All @@ -94,7 +94,7 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: owasp-dependency-check-reports-${{ matrix.checkout_branch }}
name: owasp-dependency-check-reports-${{ matrix.branch }}
path: |
distribution/server/target/dependency-check-report.html
distribution/offloaders/target/dependency-check-report.html
Expand Down
Loading