8000 Validate existing test apigw by cloutierMat · Pull Request #10653 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Validate existing test apigw #10653

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

Merged
merged 12 commits into from
Apr 15, 2024
Merged

Validate existing test apigw #10653

merged 12 commits into from
Apr 15, 2024

Conversation

cloutierMat
Copy link
Contributor
@cloutierMat cloutierMat commented Apr 12, 2024

Motivation

Part of the effort to improve parity with aws. This first step sorts all aws.unknown tags and replaces them with aws.validated or aws.needs_fixing.

Changes

Started to go through apigw

@cloutierMat cloutierMat self-assigned this Apr 12, 2024
@cloutierMat cloutierMat added the semver: patch Non-breaking changes which can be included in patch releases label Apr 12, 2024
@cloutierMat cloutierMat requested a review from steffyP April 12, 2024 22:49
Copy link
github-actions bot commented Apr 12, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 29m 59s ⏱️ + 1m 37s
2 849 tests +1  2 565 ✅ +1  284 💤 ±0  0 ❌ ±0 
2 851 runs  +1  2 565 ✅ +1  286 💤 ±0  0 ❌ ±0 

Results for commit 9387318. ± Comparison against base commit 03c220a.

♻️ This comment has been updated with latest results.

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! Nice work, and thanks for the comments, really helpful in understanding why there's an issue. 🙇‍♂️

Comment on lines +1943 to +1951
client_config = None
if is_aws_cloud():
client_config = botocore.config.Config(
# Api gateway can throttle requests pretty heavily. Leading to potentially undeleted apis
retries={"max_attempts": 10, "mode": "adaptive"}
)
apigateway_client = aws_client_factory(
region_name=region_name, config=client_config
).apigateway
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, this is a great way to fix it. We also have some other fixtures which just try deleting forever or almost if getting a 429, the throttling of DeleteRestApi is really insane to me, you'd need to add 15+ seconds sleep in between calls 😭 neat 👌

added comment < 8000 /code>
@cloutierMat
Copy link
Contributor Author

@bentsku I added a lost commit forgotten on my machine! It contained the update you mentioned for only_localstack and a quick swap of markers from one test to the other. (I had gotten confused in the navigation of the fixture calling fixture of that class)

@cloutierMat cloutierMat merged commit f98dbf9 into master Apr 15, 2024
@cloutierMat cloutierMat deleted the validate-existing-test-apigw branch April 15, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0