Skip to content

Commit 07393ca

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 6f14026 + a53c059 commit 07393ca

File tree

5 files changed

+64
-17
lines changed

5 files changed

+64
-17
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
8+
- package-ecosystem: "maven"
9+
directory: "/"
10+
open-pull-requests-limit: 4
11+
schedule:
12+
interval: "daily"

.github/workflows/privileged-run.yml

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+
# This workflow will trigger on pushes, pull requests (to master branch), and manually from the GitHub Actions tab (when requested)
2+
# sample_run uses matrix to create 12 unique combinations of operating systems and python versions
3+
# each of the 12 runs download the jars needed to run the KCL, run the sample_kinesis_wordputter.py, and use a timeout command to run the sample_kclpy_app.py
4+
# auto_merge uses GitHub events to check if dependabot is the pull requester, and if the request fits the criteria the PR is automatically merged
35

4-
name: Build Intensive
6+
name: Sample Run and Dependabot Auto-merge
57
on:
68
push:
79
branches: [ master ]
8-
pull_request_target:
9-
branches: [ master ]
1010

1111
permissions:
1212
id-token: write
13-
contents: read
13+
contents: write
14+
pull-requests: write
15+
statuses: write
1416

1517
jobs:
16-
build-intensive:
18+
sample-run:
1719
timeout-minutes: 8
1820
runs-on: ${{ matrix.os }}
1921
defaults:
@@ -23,7 +25,8 @@ jobs:
2325
strategy:
2426
fail-fast: false
2527
matrix:
26-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
28+
python-version: [ "3.9", "3.10", "3.11" ]
29+
jdk-version: [ "8", "11", "17", "21", "24" ]
2730
os: [ ubuntu-latest, macOS-latest, windows-latest ]
2831

2932
steps:
@@ -34,13 +37,13 @@ jobs:
3437
uses: aws-actions/configure-aws-credentials@v4
3538
with:
3639
aws-region: us-east-1
37-
role-to-assume: arn:aws:iam::751999266872:role/GitHubWorkflows
38-
role-session-name: myGitHubActions
40+
role-to-assume: arn:aws:iam::751999266872:role/GitHubPython
41+
role-session-name: myGitHubActionsPython
3942

40-
- name: Set up JDK 8
43+
- name: Set up JDK ${{ matrix.jdk-version }}
4144
uses: actions/setup-java@v4
4245
with:
43-
java-version: '8'
46+
java-version: ${{ matrix.jdk-version }}
4447
distribution: 'corretto'
4548

4649
- name: Set up Python ${{ matrix.python-version }}
@@ -64,6 +67,8 @@ jobs:
6467
python -m build
6568
python setup.py download_jars
6669
python setup.py install
70+
env:
71+
KCL_MVN_REPO_SEARCH_URL: https://repo1.maven.org/maven2/
6772

6873
- name: Put words to sample stream
6974
run: |
@@ -79,3 +84,29 @@ jobs:
7984
run: |
8085
brew install coreutils
8186
gtimeout 45 $(amazon_kclpy_helper.py --print_command --java $(which java) --properties samples/sample.properties) || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi
87+
88+
auto-merge-dependabot:
89+
needs: [sample-run]
90+
runs-on: ubuntu-latest
91+
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]'
92+
steps:
93+
- name: Fetch Dependabot metadata
94+
id: metadata
95+
uses: dependabot/fetch-metadata@v2
96+
with:
97+
alert-lookup: true
98+
github-token: "${{ secrets.GITHUB_TOKEN }}"
99+
100+
# - name: Approve PR
101+
# if: steps.metadata.outputs.update-type != 'version-update:semver-major'
102+
# run: gh pr review --approve "$PR_URL"
103+
# env:
104+
# PR_URL: ${{github.event.pull_request.html_url}}
105+
# GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
106+
107+
# - name: Enable auto-merge for Dependabot PRs
108+
# if: steps.metadata.outputs.update-type != 'version-update:semver-major'
109+
# run: gh pr merge --auto --merge "$PR_URL"
110+
# env:
111+
# PR_URL: ${{github.event.pull_request.html_url}}
112+
# GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ all languages.
155155
* The [Amazon Kinesis Forum][kinesis-forum]
156156

157157
## Release Notes
158+
### Release 3.0.5 (June 6, 2025)
159+
* [#274](https://github.com/awslabs/amazon-kinesis-client-python/pull/274) Add ability to set mvn repo search URL with a unique ENV Variable
160+
* [#279](https://github.com/awslabs/amazon-kinesis-client-python/pull/279) Create sample KCL build tests
161+
* [#280](https://github.com/awslabs/amazon-kinesis-client-python/pull/280) Add dependabot auto-merge and workflow dispatch
162+
* [#283](https://github.com/awslabs/amazon-kinesis-client-python/pull/283) Update AWS credentials used for running sample workflow
163+
* [#287](https://github.com/awslabs/amazon-kinesis-client-python/pull/287) Upgrade org.checkerframework:checker-qual from 2.5.2 to 3.49.4
164+
* [#285](https://github.com/awslabs/amazon-kinesis-client-python/pull/285) Upgrade netty.version from 4.1.118.Final to 4.2.1.Final
165+
* [#284](https://github.com/awslabs/amazon-kinesis-client-python/pull/284) Upgrade commons-beanutils:commons-beanutils from 1.9.4 to 1.11.0
166+
158167
### Release 3.0.3 (March 25, 2025)
159168
* Downgrade logback from 1.5.16 to 1.3.15 to maintain JDK 8 compatability
160169

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<properties>
55
<awssdk.version>2.25.64</awssdk.version>
6-
<kcl.version>3.0.2</kcl.version>
6+
<kcl.version>3.0.3</kcl.version>
77
<netty.version>4.1.118.Final</netty.version>
88
<netty-reactive.version>2.0.6</netty-reactive.version>
99
<fasterxml-jackson.version>2.13.5</fasterxml-jackson.version>
@@ -260,7 +260,7 @@
260260
<dependency>
261261
<groupId>org.checkerframework</groupId>
262262
<artifactId>checker-qual</artifactId>
263-
<version>2.5.2</version>
263+
<version>3.49.4</version>
264264
</dependency>
265265
<dependency>
266266
<groupId>com.google.errorprone</groupId>
@@ -391,7 +391,7 @@
391391
<dependency>
392392
<groupId>commons-beanutils</groupId>
393393
<artifactId>commons-beanutils</artifactId>
394-
<version>1.9.4</version>
394+
<version>1.11.0</version>
395395
</dependency>
396396
<dependency>
397397
<groupId>commons-collections</groupId>

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
PACKAGE_NAME = 'amazon_kclpy'
4444
JAR_DIRECTORY = os.path.join(PACKAGE_NAME, 'jars')
45-
PACKAGE_VERSION = '3.0.3'
45+
PACKAGE_VERSION = '3.0.5'
4646
PYTHON_REQUIREMENTS = [
4747
'boto3',
4848
# argparse is part of python2.7 but must be declared for python2.6
@@ -114,8 +114,9 @@ def package_url(self, group_id, artifact_id, version):
114114
#
115115
# Sample url:
116116
# https://search.maven.org/remotecontent?filepath=org/apache/httpcomponents/httpclient/4.2/httpclient-4.2.jar
117+
# https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2/httpclient-4.2.jar
117118
#
118-
prefix = os.getenv("KCL_MVN_REPO_SEARCH_URL", 'https://search.maven.org/remotecontent?filepath=')
119+
prefix = os.getenv("KCL_MVN_REPO_SEARCH_URL", 'https://repo1.maven.org/maven2/')
119120
return '{prefix}{path}/{artifact_id}/{version}/{dest}'.format(
120121
prefix=prefix,
121122
path='/'.join(group_id.split('.')),

0 commit comments

Comments
 (0)