-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/trunk' into kafka-16372
- Loading branch information
Showing
5,240 changed files
with
376,712 additions
and
233,259 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,37 +16,22 @@ | |
# under the License. | ||
|
||
notifications: | ||
commits: [email protected] | ||
issues: [email protected] | ||
commits: [email protected] | ||
issues: [email protected] | ||
pullrequests: [email protected] | ||
jira_options: link label | ||
|
||
# This list allows you to trigger builds on pull requests. It can have a maximum of 10 people. | ||
# https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=Git+-+.asf.yaml+features#Git.asf.yamlfeatures-JenkinsPRwhitelisting | ||
jenkins: | ||
github_whitelist: | ||
- vcrfxia | ||
- clolov | ||
- fvaleri | ||
- philipnee | ||
- vamossagar12 | ||
- kamalcph | ||
- hudeqi | ||
- lihaosky | ||
- jeffkbkim | ||
- tinaselenge | ||
|
||
# This list allows you to triage pull requests. It can have a maximum of 10 people. | ||
# https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=Git+-+.asf.yaml+features#Git.asf.yamlfeatures-AssigningexternalcollaboratorswiththetriageroleonGitHub | ||
# This list allows you to triage pull requests and trigger workflow runs on GitHub Actions. It can have a maximum of 10 collaborators. | ||
# Read more here: https://github.com/apache/infrastructure-asfyaml | ||
github: | ||
collaborators: | ||
- vcrfxia | ||
- clolov | ||
- fvaleri | ||
- philipnee | ||
- vamossagar12 | ||
- kamalcph | ||
- hudeqi | ||
- lihaosky | ||
- jeffkbkim | ||
- tinaselenge | ||
- FrankYang0529 | ||
- kirktrue | ||
- brandboat | ||
- AndrewJSchofield | ||
- OmniaGM | ||
- nizhikov | ||
- dongnuo123 | ||
- gaurav-narula | ||
- apourchet | ||
- apoorvmittal10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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: "Approve Workflow Run" | ||
description: "Approve a Workflow run that has been submitted by a non-committer" | ||
inputs: | ||
gh-token: | ||
description: "The GitHub token for use with the CLI" | ||
required: true | ||
repository: | ||
description: "The GitHub repository" | ||
required: true | ||
default: "apache/kafka" | ||
run_id: | ||
description: "The Workflow Run ID" | ||
required: true | ||
pr_number: | ||
description: "The Pull Request number" | ||
required: true | ||
commit_sha: | ||
description: "The SHA of the commit the run is for" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Approve Workflow Run | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ inputs.gh-token }} | ||
REPO: ${{ inputs.repository }} | ||
RUN_ID: ${{ inputs.run_id }} | ||
PR_NUMBER: ${{ inputs.pr_number }} | ||
COMMIT_SHA: ${{ inputs.commit_sha }} | ||
run: | | ||
echo "Approving workflow run $RUN_ID for PR $PR_NUMBER at SHA $COMMIT_SHA"; | ||
gh api --method POST \ | ||
-H 'Accept: application/vnd.github+json' \ | ||
-H 'X-GitHub-Api-Version: 2022-11-28' \ | ||
/repos/$REPO/actions/runs/$RUN_ID/approve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 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: "Update Commit Status Check" | ||
description: "Update the status of a commit check using the GH CLI" | ||
inputs: | ||
# Composite actions do not support typed parameters. Everything is treated as a string | ||
# See: https://github.com/actions/runner/issues/2238 | ||
gh-token: | ||
description: "The GitHub token for use with the CLI" | ||
required: true | ||
repository: | ||
description: "The GitHub repository" | ||
required: true | ||
default: "apache/kafka" | ||
commit_sha: | ||
description: "The SHA of the commit we are updating" | ||
required: true | ||
url: | ||
description: "The URL of the status check" | ||
required: false | ||
default: "" | ||
description: | ||
description: "The text to display next to the check" | ||
default: "" | ||
required: false | ||
context: | ||
description: "The name of the status check" | ||
required: true | ||
state: | ||
description: "The state of the check. Can be one of: error, failure, pending, success" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Update Check | ||
shell: bash | ||
env: | ||
GH_TOKEN: ${{ inputs.gh-token }} | ||
REPO: ${{ inputs.repository }} | ||
COMMIT_SHA: ${{ inputs.commit_sha }} | ||
STATE: ${{ inputs.state }} | ||
URL: ${{ inputs.url }} | ||
DESCRIPTION: ${{ inputs.description }} | ||
CONTEXT: ${{ inputs.context }} | ||
run: | | ||
gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
/repos/$REPO/statuses/$COMMIT_SHA \ | ||
-f "state=$STATE" -f "target_url=$URL" \ | ||
-f "description=$DESCRIPTION" \ | ||
-f "context=$CONTEXT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# 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: "Run Tests with Gradle" | ||
description: "Run specified Gradle test tasks with configuration for timeout and test catalog." | ||
inputs: | ||
# Composite actions do not support typed parameters. Everything is treated as a string | ||
# See: https://github.com/actions/runner/issues/2238 | ||
test-task: | ||
description: "The test suite to run. Either 'test' or 'quarantinedTest'." | ||
required: true | ||
timeout-minutes: | ||
description: "The timeout for the tests, in minutes." | ||
required: true | ||
test-catalog-path: | ||
description: "The file path of the test catalog file." | ||
required: true | ||
build-scan-artifact-name: | ||
description: "The name to use for archiving the build scan." | ||
required: true | ||
outputs: | ||
gradle-exitcode: | ||
description: "The result of the Gradle test task." | ||
value: ${{ steps.run-tests.outputs.exitcode }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run JUnit Tests (${{ inputs.test-task }}) | ||
# Gradle flags | ||
# --build-cache: Let Gradle restore the build cache | ||
# --no-scan: Don't attempt to publish the scan yet. We want to archive it first. | ||
# --continue: Keep running even if a test fails | ||
# -PcommitId Prevent the Git SHA being written into the jar files (which breaks caching) | ||
shell: bash | ||
id: run-tests | ||
env: | ||
TIMEOUT_MINUTES: ${{ inputs.timeout-minutes}} | ||
TEST_CATALOG: ${{ inputs.test-catalog-path }} | ||
TEST_TASK: ${{ inputs.test-task }} | ||
run: | | ||
set +e | ||
./.github/scripts/thread-dump.sh & | ||
timeout ${TIMEOUT_MINUTES}m ./gradlew --build-cache --continue --no-scan \ | ||
-PtestLoggingEvents=started,passed,skipped,failed \ | ||
-PmaxParallelForks=2 \ | ||
-PmaxTestRetries=1 -PmaxTestRetryFailures=3 \ | ||
-PmaxQuarantineTestRetries=3 -PmaxQuarantineTestRetryFailures=0 \ | ||
-Pkafka.test.catalog.file=$TEST_CATALOG \ | ||
-PcommitId=xxxxxxxxxxxxxxxx \ | ||
$TEST_TASK | ||
exitcode="$?" | ||
echo "exitcode=$exitcode" >> $GITHUB_OUTPUT | ||
- name: Archive build scan (${{ inputs.test-task }}) | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.build-scan-artifact-name }} | ||
path: ~/.gradle/build-scan-data | ||
compression-level: 9 | ||
if-no-files-found: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# 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: "Gradle Setup" | ||
description: "Setup Java and Gradle" | ||
inputs: | ||
# Composite actions do not support typed parameters. Everything is treated as a string | ||
# See: https://github.com/actions/runner/issues/2238 | ||
java-version: | ||
description: "Java version to use" | ||
default: "17" | ||
gradle-cache-read-only: | ||
description: "Should the Gradle cache be read-only?" | ||
default: "true" | ||
gradle-cache-write-only: | ||
description: "Should the Gradle cache be write-only?" | ||
default: "false" | ||
develocity-access-key: | ||
description: "Optional access key for uploading build scans to Develocity" | ||
default: "" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ inputs.java-version }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0 | ||
env: | ||
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true | ||
with: | ||
gradle-version: wrapper | ||
develocity-access-key: ${{ inputs.develocity-access-key }} | ||
develocity-token-expiry: 4 | ||
cache-read-only: ${{ inputs.gradle-cache-read-only }} | ||
cache-write-only: ${{ inputs.gradle-cache-write-only }} | ||
# Cache downloaded JDKs in addition to the default directories. | ||
gradle-home-cache-includes: | | ||
caches | ||
notifications | ||
jdks | ||
cache-cleanup: on-success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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: "Python Setup" | ||
description: "Setup Python and install dependencies" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Pip install | ||
shell: bash | ||
run: pip install -r .github/scripts/requirements.txt |
Oops, something went wrong.