Skip to content

chore: Prepare v2 for work #1340

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

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
7fc50ae
build(deps-dev): bump constructs from 10.2.62 to 10.2.64 (#1257)
dependabot[bot] Jun 30, 2023
716a798
build(deps-dev): bump aws-cdk-lib from 2.85.0 to 2.86.0 (#1256)
dependabot[bot] Jun 30, 2023
d8d13c0
build(deps): bump aws.sdk.version from 2.20.96 to 2.20.97 (#1260)
dependabot[bot] Jul 3, 2023
3e97bc8
build(deps-dev): bump constructs from 10.2.64 to 10.2.67 (#1261)
dependabot[bot] Jul 3, 2023
f0dc212
build(deps): bump aws.sdk.version from 2.20.97 to 2.20.98 (#1262)
dependabot[bot] Jul 4, 2023
49cb12f
build(deps-dev): bump constructs from 10.2.67 to 10.2.68 (#1263)
dependabot[bot] Jul 4, 2023
d257989
build(deps-dev): bump constructs from 10.2.68 to 10.2.69 (#1265)
dependabot[bot] Jul 5, 2023
a6ec458
build(deps): bump aws.sdk.version from 2.20.98 to 2.20.99 (#1266)
dependabot[bot] Jul 6, 2023
f13dbc5
build(deps): bump json-schema-validator from 1.0.85 to 1.0.86 (#1267)
dependabot[bot] Jul 6, 2023
66cac4d
build(deps-dev): bump aws-cdk-lib from 2.86.0 to 2.87.0 (#1270)
dependabot[bot] Jul 7, 2023
2c282a9
build(deps): bump aws.sdk.version from 2.20.99 to 2.20.101 (#1275)
dependabot[bot] Jul 10, 2023
c7aedc4
chore(unit-test): Add missing unit tests in modules with low coverage…
eldimi Jul 10, 2023
ba8075f
build(deps): bump aws.sdk.version from 2.20.101 to 2.20.102 (#1279)
dependabot[bot] Jul 11, 2023
5ba9cf4
docs: update documentation for aspectJ (#1273)
jeromevdl Jul 11, 2023
a19def3
fix: Handle batch failures in FIFO queues correctly (#1183)
scottgerring Jul 11, 2023
b6b118f
fix: ParamManager cannot provide default SSM & Secrets providers (#1282)
jeromevdl Jul 12, 2023
f19e202
docs: adding our customer references (#1287)
msailes Jul 13, 2023
a7e3782
build(deps): bump aws.sdk.version from 2.20.102 to 2.20.103 (#1288)
dependabot[bot] Jul 14, 2023
ba190dc
fix: idempotency timeout bug (#1285)
scottgerring Jul 17, 2023
903d08b
build(deps): bump aws.sdk.version from 2.20.103 to 2.20.104 (#1292)
dependabot[bot] Jul 18, 2023
5b1c2c4
docs: update README.md (#1294)
scottgerring Jul 19, 2023
8da24cb
build(examples): Add example for the powertools-cloudformation module…
mriccia Jul 19, 2023
39ba43b
chore:Prep release 1.16.1 (#1296)
jeromevdl Jul 19, 2023
b191d72
build(deps): bump aws.sdk.version from 2.20.102 to 2.20.105 (#1297)
dependabot[bot] Jul 19, 2023
c185cb0
chore: update poms to SNAPSHOT version for dev (#1299)
mriccia Jul 19, 2023
0ac8127
docs: Started cleaning up example doc (#1291)
scottgerring Jul 20, 2023
577d03f
build(deps): bump aws.sdk.version from 2.20.105 to 2.20.107 (#1300)
dependabot[bot] Jul 20, 2023
ac5ce9d
build(deps): bump aws.sdk.version from 2.20.107 to 2.20.108 (#1304)
dependabot[bot] Jul 21, 2023
4c42359
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1305)
dependabot[bot] Jul 21, 2023
3594bbd
fix: use default credentials provider for all provided SDK clients (#…
roamingthings Jul 24, 2023
4bc526c
build(deps): bump aws.sdk.version from 2.20.108 to 2.20.109 (#1308)
dependabot[bot] Jul 24, 2023
530968f
build(deps): bump aws.sdk.version from 2.20.109 to 2.20.110 (#1312)
dependabot[bot] Jul 25, 2023
b1c688d
Update README.md (#1311)
scottgerring Jul 25, 2023
48533f7
Make request for Logger explicit on current class (#1307)
jreijn Jul 26, 2023
baa3592
build(deps): bump aws.sdk.version from 2.20.110 to 2.20.111 (#1315)
dependabot[bot] Jul 26, 2023
0e76f04
chore: checkstyle formater & linter (#1316)
jeromevdl Jul 27, 2023
8548397
few formatting things
jeromevdl Jul 27, 2023
0671bbe
Adding external examples from https://github.com/aws/aws-sam-cli-app-…
AlexeySoshin Jul 27, 2023
661100c
build(deps): bump com.puppycrawl.tools:checkstyle from 10.9.1 to 10.1…
dependabot[bot] Jul 27, 2023
3dc8405
docs: add support for docs versioning (#1239) (#1293)
kozub Jul 28, 2023
a0c7d38
docs: versioning - fix typo (#1322)
kozub Jul 28, 2023
bddd99a
fix: Rollback doc changes (#1323)
scottgerring Jul 28, 2023
a2ad292
build(deps): bump aws.sdk.version from 2.20.111 to 2.20.114 (#1324)
dependabot[bot] Jul 28, 2023
1261e58
build(deps): bump org.apache.commons:commons-lang3 from 3.12.0 to 3.1…
dependabot[bot] Jul 31, 2023
70da5f0
docs: Add maintainers guide (#1326)
scottgerring Jul 31, 2023
bc40ea2
build(deps): bump aws.sdk.version from 2.20.114 to 2.20.115 (#1328)
dependabot[bot] Jul 31, 2023
e378d4d
build(deps): bump com.puppycrawl.tools:checkstyle (#1329)
dependabot[bot] Jul 31, 2023
e2ef948
build(deps): bump aws.sdk.version from 2.20.115 to 2.20.116 (#1331)
dependabot[bot] Aug 1, 2023
3a106ca
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1330)
dependabot[bot] Aug 1, 2023
a05823b
feat: large message in SQS and SNS (#1310)
jeromevdl Aug 2, 2023
6900b72
build(deps): bump commons-io:commons-io from 2.11.0 to 2.13.0 (#1333)
dependabot[bot] Aug 2, 2023
7179713
chore: Add powertools specific user-agent-suffix to the AWS SDK v2 cl…
eldimi Aug 2, 2023
7f6c892
docs: improve contributing guide (#1334)
jeromevdl Aug 3, 2023
4fa74d1
build(deps): bump aws.sdk.version from 2.20.116 to 2.20.118 (#1338)
dependabot[bot] Aug 3, 2023
d8675ec
Merge from main
scottgerring Aug 3, 2023
c98a50d
Remove old SQS utility
scottgerring Aug 3, 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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ on:
- 'powertools-idempotency/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'powertools-large-messages/**'
- 'pom.xml'
- '.github/workflows/**'

pull_request:
branches:
- main
paths:
- 'powertools-e2e-tests/**'

jobs:
e2e:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) fo

## [Unreleased]

## [1.16.1] - 2023-07-19

* Fix: idempotency timeout bug (#1285) by @scottgerring
* Fix: ParamManager cannot provide default SSM & Secrets providers (#1282) by @jeromevdl
* Fix: Handle batch failures in FIFO queues correctly (#1183) by @scottgerring
* Deps: Bump third party dependencies to the latest versions.


## [1.16.0] - 2023-06-29


Expand Down
120 changes: 95 additions & 25 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,128 @@
<!-- markdownlint-disable MD043 MD041 -->
# Table of contents <!-- omit in toc -->

- [Contributing Guidelines](#contributing-guidelines)
- [Reporting Bugs/Feature Requests](#reporting-bugsfeature-requests)
- [Contributing via Pull Requests](#contributing-via-pull-requests)
- [Dev setup](#dev-setup)
- [Local documentation](#local-documentation)
- [Conventions](#conventions)
- [General terminology and practices](#general-terminology-and-practices)
- [Testing definition](#testing-definition)
- [Finding contributions to work on](#finding-contributions-to-work-on)
- [Code of Conduct](#code-of-conduct)
- [Security issue notifications](#security-issue-notifications)
- [Troubleshooting](#troubleshooting)
- [Licensing](#licensing)

# Contributing Guidelines

Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.
<!-- markdownlint-disable MD013 -->
Thank you for your interest in contributing to our project. Whether it's a [bug report](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=bug%2C+triage&projects=&template=bug_report.md&title=Bug%3A+TITLE), [new feature](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=feature-request%2C+triage&projects=&template=feature_request.md&title=Feature+request%3A+TITLE) or [additional documentation](https://github.com/aws-powertools/powertools-lambda-java/issues/new?assignees=&labels=documentation%2Ctriage&projects=&template=documentation_improvements.yml&title=Docs%3A+TITLE), we greatly value feedback and contributions from our community.
<!-- markdownlint-enable MD013 -->

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.


## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment
We welcome you to use the GitHub issue tracker to report bugs, suggest features, or documentation improvements.

<!-- markdownlint-disable MD013 -->
[When filing an issue](https://github.com/aws-powertools/powertools-lambda-java/issues/new/choose), please check [existing open](https://github.com/aws-powertools/powertools-lambda-java/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc), or [recently closed](https://github.com/aws-powertools/powertools-lambda-java/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can.
<!-- markdownlint-enable MD013 -->

## Contributing via Pull Requests

Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

1. You are working against the latest source on the *main* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
1. You are working on a fork. [Fork the repository](https://github.com/aws-powertools/powertools-lambda-java/fork).
2. You are working against the latest source on the **main** branch.
3. You've checked existing open, and recently merged pull requests to make sure someone else hasn't addressed the problem already.
4. You've opened an [issue](https://github.com/aws-powertools/powertools-lambda-java/issues/new/choose) before you begin any implementation. We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

### Dev setup

We recommend using [IntelliJ IDEA](https://www.jetbrains.com/idea/) from JetBrains.
A community version is available and largely enough for our purpose.

#### Code Formatting

We strongly recommend installing the CheckStyle-IDEA plugin and apply the provided [checkstyle.xml](checkstyle.xml) in order to comply with our formatting rules:

1. Install the [CheckStyle-IDEA plugin](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) and restart IntelliJ.

2. After installing the plugin, open the preferences (`⌘,` on macOS, or `Ctrl+Alt+S` on Windows/Linux) and search for _Code Style_. Click on the gear icon near the scheme and import checkstyle configuration. Click on "Apply" and "OK".
![](docs/media/intellij_checkstyle_1.png)

3. Select the code you've created (module, package, class) and reformat code: `⌘⌥L` (macOS), or `Ctrl+Alt+L` (Windows/Linux):
![](docs/media/intellij_checkstyle_2.png)

4. Apply the reformat, optimize imports, rearrange and cleanup to your code and only to java files:
![](docs/media/intellij_checkstyle_3.png)

#### License headers
All the java files should contain the licence/copyright header. You can copy paste it from the [license-header](license-header) file.

To send us a pull request, please:
### Creating the pull request

1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
To send us a pull request, please follow these steps:

1. Create a new branch to focus on the specific change you are contributing e.g. `improv/logger-debug-sampling`
2. Run all tests, and code baseline checks: `mvn clean verify -P build-with-spotbugs`
3. Commit to your fork using clear commit messages.
4. Send us a pull request with a [conventional semantic title](.github/semantic.yml), and answering any default questions in the pull request interface.
5. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).

### Local documentation

If you work on the documentation, you may find useful to display it locally while editing, using the following command:

- **Docs website**: `make docs-local-docker`

## Conventions

### General terminology and practices

| Category | Convention |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Style guide** | We use Checkstyle and Sonar to enforce beyond good practices. |
| **Exceptions** | Specific exceptions live within the utilities themselves and use `Exception` suffix e.g. `IdempotencyKeyException`. |
| **Git commits** | We follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). We do not enforce conventional commits on contributors to lower the entry bar. Instead, we enforce a conventional PR title so our label automation and changelog are generated correctly. |
| **API documentation** | API reference docs are generated from Javadoc which should have examples to allow developers to have what they need within their own IDE. Documentation website covers the wider usage, tips, and strive to be concise. |
| **Documentation** | We treat it like a product. We sub-divide content aimed at getting started (80% of customers) vs advanced usage (20%). We also ensure customers know how to unit test their code when using our features. |

### Testing definition

We group tests in different categories

| Test | When to write | Notes | Speed |
| ----------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| Unit tests | Verify the smallest possible unit works. | Networking access is prohibited. Prefer Functional tests given our complexity. | Lightning fast (nsec to ms) |
| End-to-end tests | Gain confidence that a Lambda function with our code operates as expected. | It simulates how customers configure, deploy, and run their Lambda function - Event Source configuration, IAM permissions, etc. | Slow (minutes) |

**NOTE**: Unit tests are mandatory. End-to-end tests should be created for new modules.
We apply the principle of the [test pyramid](https://martinfowler.com/articles/practical-test-pyramid.html), having a majority of unit tests to cover most cases (standard, edge, errors, ...) and generally one end-to-end test to verify the standard case in the target environment.

## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/help wanted/invalid/question/documentation), [looking at any 'good first issue' issues is a great place to start](https://github.com/aws-powertools/powertools-lambda-java/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).

## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
[email protected] with any additional questions or comments.

<[email protected]> with any additional questions or comments.

## Security issue notifications

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

## Troubleshooting


## Licensing

Expand Down
Loading