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

update ASF APIs, switch SQS to JSON again #10741

Merged
merged 3 commits into from May 2, 2024
Merged

Conversation

localstack-bot
Copy link
Collaborator

🚀 ASF Update Report 🚀

This PR has been automatically generated to update the generated API stubs for our ASF services.
It uses the latest code-generator from the master branch (scaffold.py) and the latest published version of botocore to re-generate all API stubs which are already present in the localstack.aws.api module of the master branch.

🔄 Updated Services

This PR updates the following services:

  • ec2
  • sqs
  • ssm
  • stepfunctions

👷🏽 Handle this PR

The following options describe how to interact with this PR / the auto-update:

✔️ Accept Changes
If the changes are satisfying, just squash-merge the PR and delete the source branch.

🚫 Ignore Changes
If you want to ignore the changes in this PR, just close the PR and do not delete the source branch. The PR will not be opened and a new PR will not be created for as long as the generated code does not change (or the branch is deleted). As soon as there are new changes, a new PR will be created.

✏️ Adapt Changes
Don't do this. The APIs are auto-generated. If you decide that the APIs should look different, you have to change the code-generation.

⏸️ Pause Updates
Remove the cron-schedule trigger of the GitHub Action workflow which creates these PRs. The action can then still be triggered manually, but it will not be executed automatically.

@localstack-bot localstack-bot added area: asf area: dependencies Pull requests that update a dependency file labels Apr 29, 2024
@localstack-bot localstack-bot added the semver: patch Non-breaking changes which can be included in patch releases label Apr 29, 2024
Copy link

github-actions bot commented Apr 29, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 33m 28s ⏱️ + 1m 48s
2 926 tests ±0  2 634 ✅  - 1  292 💤 +1  0 ❌ ±0 
2 928 runs  ±0  2 634 ✅  - 1  294 💤 +1  0 ❌ ±0 

Results for commit cc358d3. ± Comparison against base commit 0da9865.

This pull request removes 127 and adds 127 tests. Note that renamed tests count towards both.
tests.aws.services.sqs.test_sqs.TestSQSMultiAccounts ‑ test_delete_queue_multi_account[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_approximate_number_of_messages_delayed[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_batch_send_with_invalid_char_should_succeed[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_after_visibility_timeout_expiration[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_batch_with_too_large_batch[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_not_permanent[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_visibility_on_deleted_message_raises_invalid_parameter_value[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_and_send_to_fifo_queue[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_and_update_queue_attributes[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_fifo_queue_with_different_attributes_raises_error[sqs_json]
…
tests.aws.services.sqs.test_sqs.TestSQSMultiAccounts ‑ test_delete_queue_multi_account[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_approximate_number_of_messages_delayed[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_batch_send_with_invalid_char_should_succeed[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_after_visibility_timeout_expiration[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_batch_with_too_large_batch[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_message_visibility_not_permanent[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_change_visibility_on_deleted_message_raises_invalid_parameter_value[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_and_send_to_fifo_queue[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_and_update_queue_attributes[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_create_fifo_queue_with_different_attributes_raises_error[sqs_query]
…
This pull request removes 5 skipped tests and adds 6 skipped tests. Note that renamed tests count towards both.
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_dead_letter_queue_execution_lambda_mapping_preserves_id[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_deduplication_interval[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_delete_message_batch_from_lambda[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_fifo_delete_message_with_expired_receipt_handle[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_sse_kms_and_sqs_are_mutually_exclusive[sqs_json]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_dead_letter_queue_execution_lambda_mapping_preserves_id[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_deduplication_interval[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_delete_message_batch_from_lambda[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_fifo_delete_message_with_expired_receipt_handle[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_set_unsupported_attribute_fifo[sqs_query]
tests.aws.services.sqs.test_sqs.TestSqsProvider ‑ test_sse_kms_and_sqs_are_mutually_exclusive[sqs_query]

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 29, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   2m 57s ⏱️
398 tests 346 ✅  52 💤 0 ❌
796 runs  692 ✅ 104 💤 0 ❌

Results for commit cc358d3.

♻️ This comment has been updated with latest results.

@alexrashed alexrashed changed the title Update ASF APIs update ASF APIs, switch SQS to JSON again Apr 30, 2024
@alexrashed
Copy link
Member

This PR contains a bump of botocore from version 1.34.84 to 1.34.93.
This range contains 1.34.90 which contains boto/botocore#3165 - yet another attempt to switch the protocol of SQS from query to json.
The last commit I pushed contains the changes necessary to - again, now for the third time? - perform this switch in LocalStack.
For more context see #9710.

Comment on lines +1598 to +1602
@handler("ValidateStateMachineDefinition", expand=False)
def validate_state_machine_definition(
self, context: RequestContext, request: ValidateStateMachineDefinitionInput, **kwargs
) -> ValidateStateMachineDefinitionOutput:
raise NotImplementedError
Copy link
Member

Choose a reason for hiding this comment

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

@MEPalma 👀

@alexrashed alexrashed marked this pull request as draft April 30, 2024 14:44
@alexrashed
Copy link
Member

FYI: Converted this PR to draft since a downstream pipeline failed on these changes.

@alexrashed alexrashed added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases and removed semver: patch Non-breaking changes which can be included in patch releases labels Apr 30, 2024
@alexrashed alexrashed marked this pull request as ready for review May 2, 2024 10:52
Copy link
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

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

LGTM! Quite an extensive change again, but hoping this is the last time we have to do the switch! Thanks a lot for taking care of it once again.

I just have a comment regarding a change to an SNS test where we use sns_query, not too sure if that was necessary or a typo?

Other than that, the pipeline being green gives us the confidence 🚀

localstack/testing/pytest/fixtures.py Show resolved Hide resolved
tests/aws/services/sns/test_sns.py Outdated Show resolved Hide resolved
tests/aws/services/sqs/test_sqs.py Show resolved Hide resolved
@alexrashed alexrashed merged commit 2f911c3 into master May 2, 2024
8 of 9 checks passed
@alexrashed alexrashed deleted the asf-auto-updates branch May 2, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: asf area: dependencies Pull requests that update a dependency file semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants