Skip to content

Commit

Permalink
release 2.5.1 (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxday authored Jun 28, 2024
1 parent 5c53c44 commit 9a5450a
Show file tree
Hide file tree
Showing 39 changed files with 525 additions and 150 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
9 changes: 6 additions & 3 deletions .github/workflows/aws-lambda-java-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-core/**'
- 'aws-lambda-java-core/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-core/**'
- 'aws-lambda-java-core/**'
- '.github/workflows/aws-lambda-java-core.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand All @@ -38,3 +39,5 @@ jobs:
- name: Run 'pr' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make pr
env:
IS_JAVA_8: true
7 changes: 4 additions & 3 deletions .github/workflows/aws-lambda-java-events-sdk-transformer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-events-sdk-transformer/**'
- 'aws-lambda-java-events-sdk-transformer/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-events-sdk-transformer/**'
- 'aws-lambda-java-events-sdk-transformer/**'
- '.github/workflows/aws-lambda-java-events-sdk-transformer.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-lambda-java-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-events/**'
- 'aws-lambda-java-events/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-events/**'
- 'aws-lambda-java-events/**'
- '.github/workflows/aws-lambda-java-events.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-lambda-java-log4j2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-log4j2/**'
- 'aws-lambda-java-log4j2/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-log4j2/**'
- 'aws-lambda-java-log4j2/**'
- '.github/workflows/aws-lambda-java-log4j2.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-lambda-java-serialization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-serialization/**'
- 'aws-lambda-java-serialization/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-serialization/**'
- 'aws-lambda-java-serialization/**'
- '.github/workflows/aws-lambda-java-serialization.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/aws-lambda-java-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ on:
push:
branches: [ main ]
paths:
- 'aws-lambda-java-tests/**'
- 'aws-lambda-java-tests/**'
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-tests/**'
- 'aws-lambda-java-tests/**'
- '.github/workflows/aws-lambda-java-tests.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Repo Sync
on:
schedule:
- cron: "0 8 * * 1-5" # At 08:00 on every day-of-week from Monday through Friday
pull_request:
branches: [ '*' ]
paths:
- '.github/workflows/repo-sync.yml'
workflow_dispatch:

jobs:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/runtime-interface-client_merge_to_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
branches: [ main ]
paths:
- 'aws-lambda-java-runtime-interface-client/**'
workflow_dispatch:

jobs:

Expand All @@ -29,13 +30,13 @@ jobs:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -48,9 +49,11 @@ jobs:
- name: Test Runtime Interface Client xplatform build - Run 'build' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make build
env:
IS_JAVA_8: true

- name: Issue AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/runtime-interface-client_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
pull_request:
branches: [ '*' ]
paths:
- 'aws-lambda-java-runtime-interface-client/**'
- 'aws-lambda-java-runtime-interface-client/**'
- '.github/workflows/runtime-interface-client_pr.yml'

jobs:

Expand All @@ -17,28 +18,30 @@ jobs:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto

- name: Runtime Interface Client smoke tests - Run 'pr' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make pr
env:
IS_JAVA_8: true

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -51,9 +54,11 @@ jobs:
- name: Test Runtime Interface Client xplatform build - Run 'build' target
working-directory: ./aws-lambda-java-runtime-interface-client
run: make build
env:
IS_JAVA_8: true

- name: Save the built jar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: aws-lambda-java-runtime-interface-client
path: ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-*.jar
3 changes: 2 additions & 1 deletion .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
branches: [ '*' ]
paths:
- 'samples/kinesis-firehose-event-handler/**'
- '.github/workflows/samples.yml'

jobs:
build:
Expand All @@ -21,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 8
distribution: corretto
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ dependency-reduced-pom.xml
.project

# OSX
.DS_Store
.DS_Store

# snapshot process
aws-lambda-java-runtime-interface-client/pom.xml.versionsBackup
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ The purpose of this package is to allow developers to deploy their applications
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</dependency>
```

Expand Down
19 changes: 13 additions & 6 deletions aws-lambda-java-runtime-interface-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ ARCHITECTURE := $(shell arch)
ARCHITECTURE_ALIAS := $($(shell echo "$(ARCHITECTURE)_ALIAS"))
ARCHITECTURE_ALIAS := $(or $(ARCHITECTURE_ALIAS),amd64) # on any other archs defaulting to amd64

# Java 8 does not support passing some args (such add --add-opens) so we need to clear them
ifeq ($(IS_JAVA_8),true)
EXTRA_LOAD_ARG := -DargLineForReflectionTestOnly=""
else
EXTRA_LOAD_ARG :=
endif

# This optional module exports MAVEN_REPO_URL, MAVEN_REPO_USERNAME and MAVEN_REPO_PASSWORD environment variables
# making it possible to publish resulting artifacts to a codeartifact maven repository
-include ric-dev-environment/codeartifact-repo.mk
Expand All @@ -15,7 +22,7 @@ target:

.PHONY: test
test:
mvn test
mvn test $(EXTRA_LOAD_ARG)

.PHONY: setup-codebuild-agent
setup-codebuild-agent:
Expand Down Expand Up @@ -44,11 +51,11 @@ pr: test test-smoke

.PHONY: build
build:
mvn clean install
mvn install -P linux-x86_64
mvn install -P linux_musl-x86_64
mvn install -P linux-aarch64
mvn install -P linux_musl-aarch64
mvn clean install $(EXTRA_LOAD_ARG)
mvn install -P linux-x86_64 $(EXTRA_LOAD_ARG)
mvn install -P linux_musl-x86_64 $(EXTRA_LOAD_ARG)
mvn install -P linux-aarch64 $(EXTRA_LOAD_ARG)
mvn install -P linux_musl-aarch64 $(EXTRA_LOAD_ARG)

.PHONY: publish
publish:
Expand Down
4 changes: 2 additions & 2 deletions aws-lambda-java-runtime-interface-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pom.xml
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</dependency>
</dependencies>
<build>
Expand Down Expand Up @@ -160,7 +160,7 @@ platform-specific JAR by setting the `<classifier>`.
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-runtime-interface-client</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<classifier>linux-x86_64</classifier>
</dependency>
```
Expand Down
5 changes: 5 additions & 0 deletions aws-lambda-java-runtime-interface-client/RELEASE.CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### June 28, 2024
`2.5.1`
- Runtime API client improvements: fix a DNS cache issue
- Runtime API client improvements: fix circular exception references causing stackOverflow

### March 20, 2024
`2.5.0`
- Runtime API client improvements ([#471](https://github.com/aws/aws-lambda-java-libs/pull/471))
Expand Down
Loading

0 comments on commit 9a5450a

Please sign in to comment.