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

feat(sdk): dead letter queue support for queues #6060

Merged
merged 69 commits into from
Apr 20, 2024
Merged

Conversation

marciocadev
Copy link
Collaborator

@marciocadev marciocadev commented Mar 25, 2024

⛔ As the dead-letter queue linked to the function is a specific case of AWS, I will remove it from the scope of this PR.

  • dlq (with retries) for queue (tf-aws / awscdk)
  • dlq (with retries) for queue (sim)
    dlq for function (tf-aws / awscdk)
    dlq for function (sim)

Closes #6033

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

@marciocadev marciocadev requested a review from a team as a code owner March 25, 2024 17:16
@marciocadev marciocadev marked this pull request as draft March 25, 2024 17:16
Copy link

Thanks for opening this pull request! 🎉
Please consult the contributing guidelines for details on how to contribute to this project.
If you need any assistence, don't hesitate to ping the relevant owner over Slack.

Topic Owner
Wing SDK and utility APIs @chriscbr
Wing Console @ainvoner, @skyrpex, @polamoros
JSON, structs, primitives and collections @hasanaburayyan
Platforms and plugins @hasanaburayyan
Frontend resources (website, react, etc) @tsuf239
Language design @chriscbr
VSCode extension and language server @markmcculloh
Compiler architecture, inflights, lifting @yoav-steinberg
Wing Testing Framework @tsuf239
Wing CLI @markmcculloh
Build system, dev environment, releases @markmcculloh
Library Ecosystem @chriscbr
Documentation @hasanaburayyan
SDK test suite @tsuf239
Examples @hasanaburayyan
Wing Playground @eladcon

@eladb eladb changed the title feat(sdk): adding dlq for Function and Queue feat(sdk): dead letter queue support for functions and queues Mar 25, 2024
eladb
eladb previously requested changes Mar 25, 2024
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Mar 25, 2024
Copy link
Contributor

@Chriscbr Chriscbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is looking good @marciocadev - just a few comments left and it should be good to go 🙂

examples/tests/sdk_tests/queue/dead-letter-queue.test.w Outdated Show resolved Hide resolved
examples/tests/sdk_tests/queue/dead-letter-queue.test.w Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/cloud/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/target-sim/schema-resources.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/target-tf-aws/queue.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/target-sim/queue.inflight.ts Outdated Show resolved Hide resolved
libs/wingsdk/src/target-sim/queue.inflight.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@Chriscbr Chriscbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @marciocadev (adding support for three targets! 🤯)

libs/wingsdk/src/cloud/queue.ts Show resolved Hide resolved
@Chriscbr Chriscbr removed the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Apr 19, 2024
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Apr 20, 2024
@marciocadev marciocadev removed the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Apr 20, 2024
Copy link
Contributor

mergify bot commented Apr 20, 2024

Thanks for contributing, @marciocadev! This PR will now be added to the merge queue, or immediately merged if dlq is up-to-date with main and the queue is empty.

@mergify mergify bot merged commit 2dea835 into winglang:main Apr 20, 2024
13 checks passed
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.71.2.

mergify bot pushed a commit that referenced this pull request Apr 20, 2024
Fixes a regression from #6060 that prevented messages from being processed in parallel (we noticed this bug when it caused test failures in one of our winglibs: https://github.com/winglang/winglibs/actions/runs/8767429765/job/24060674878).

I confirmed the updated test (set_consumer.test.w) passes when ran on my AWS account using the `tf-aws` target.

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
@marciocadev marciocadev deleted the dlq branch April 29, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dead letter queues
4 participants