Skip to content

Tech debt: Idempotency Thread safety E2E test is flaky #2552

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
1 of 2 tasks
heitorlessa opened this issue Jun 23, 2023 · 7 comments · Fixed by #2576
Closed
1 of 2 tasks

Tech debt: Idempotency Thread safety E2E test is flaky #2552

heitorlessa opened this issue Jun 23, 2023 · 7 comments · Fixed by #2576
Assignees
Labels
tech-debt Technical Debt tasks tests

Comments

@heitorlessa
Copy link
Contributor

Why is this needed?

Ensure E2E pipeline works successfully.


FAILED tests/e2e/idempotency/test_idempotency_dynamodb.py::test_idempotent_function_thread_safety@idempotency - assert {'3', 'l', '1', 'x', '_', '-', '8', '0', 't', '}', 'u', 'a', 'H', 'i', 'o', 'h', 'e', 'p', 'E', 'd', 'S', 'P', '6', ',', '[', '{', 'c', 'I', 'n', '7', ' ', 'D', 'N', ']', 'm', 's', 'r', 'T', 'F', '2', '5', ':', '.', '"'} == {'3', 'l', '1', 'x', '_', '-', '8', '0', 't', '}', 'u', 'a', 'H', '4', 'i', 'o', 'h', 'e', 'p', 'E', 'd', 'S', 'P', '6', ',', '[', '9', '{', 'c', 'I', 'n', '7', ' ', 'D', 'N', ']', 'm', 's', 'r', 'T', 'F', '2', '5', ':', '.', '"'}
  Extra items in the right set:
  '9'
  '4'
  Full diff:
    {
     ' ',
     '"',
     ',',
     '-',
     '.',
     '0',
     '1',
     '2',
     '3',
  -  '4',
     '5',
     '6',
     '7',
     '8',
  -  '9',
     ':',
     'D',
     'E',
     'F',
     'H',
     'I',
     'N',
     'P',
     'S',
     'T',
     '[',
     ']',
     '_',
     'a',
     'c',
     'd',
     'e',
     'h',
     'i',
     'l',
     'm',
     'n',
     'o',
     'p',
     'r',
     's',
     't',
     'u',
     'x',
     '{',
     '}',
    }
============ 1 failed, 50 passed, 10 warnings in 233.35s (0:03:53) =============

Which area does this relate to?

Tests

Suggestion

No response

Acknowledgment

@heitorlessa heitorlessa added triage Pending triage from maintainers tech-debt Technical Debt tasks labels Jun 23, 2023
@heitorlessa heitorlessa removed the triage Pending triage from maintainers label Jun 23, 2023
@heitorlessa
Copy link
Contributor Author

@rubenfonseca for on-call next week

@rubenfonseca
Copy link
Contributor

Looking at this now

@rubenfonseca rubenfonseca self-assigned this Jun 26, 2023
@rubenfonseca rubenfonseca moved this from Triage to Working on it in Powertools for AWS Lambda (Python) Jun 26, 2023
@rubenfonseca
Copy link
Contributor

Note: right now tests are failing because we created too many IAM roles

 ❌  testV37-idempotency-3a6c657f-3575-46e8-848a-0703daabe1b4 failed: Error: The stack named testV37-idempotency-3a6c657f-3575-46e8-848a-0703daabe1b4 failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Cannot exceed quota for RolesPerAccount: 1000 (Service: AmazonIdentityManagement; Status Code: 409; Error Code: LimitExceeded; Request ID: d0344a4f-bcb2-46cb-b669-da98fc7fd050; Proxy: null), Cannot exceed quota for RolesPerAccount: 1000 (Service: AmazonIdentityManagement; Status Code: 409; Error Code: LimitExceeded; Request ID: 429d0b45-3a96-470a-8d8c-be363b962ac4; Proxy: null)

Besides deleting the roles, I'll try to figure out why the roles are being removed at the end of each test.

@rubenfonseca
Copy link
Contributor

The role APIGatewayRestCloudWatch seems to never be deleted, even when the tests succeed.

@rubenfonseca
Copy link
Contributor

Found the culprit: CDK introduced a breaking change aws/aws-cdk#22020. Solution is to disable the creation of the CloudWatch role.

@rubenfonseca rubenfonseca linked a pull request Jun 27, 2023 that will close this issue
7 tasks
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) Jun 27, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Jun 27, 2023
@github-actions
Copy link
Contributor

This is now released under 2.19.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Jun 30, 2023
@rubenfonseca rubenfonseca moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Technical Debt tasks tests
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

2 participants