-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
CW Logs: Test suite for service internalization #13692
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
base: main
Are you sure you want to change the base?
Conversation
Test Results (MA/MR) - Preflight, Unit0 tests 0 ✅ 0s ⏱️ Results for commit e37fae4. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 59m 36s ⏱️ - 58m 32s Results for commit 76e70f6. ± Comparison against base commit d8ec7bc. This pull request removes 2932 and adds 117 tests. Note that renamed tests count towards both.This pull request removes 245 skipped tests and adds 19 skipped tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
308c858 to
84cc8b9
Compare
d6d17ca to
2a52f91
Compare
bc34e9a to
bd83044
Compare
2a52f91 to
c597fa9
Compare
bd83044 to
1449515
Compare
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 39m 34s ⏱️ For more details on these failures, see this check. Results for commit 589e278. ♻️ This comment has been updated with latest results. |
5fd158c to
b403b67
Compare
b403b67 to
9915490
Compare
steffyP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great initiative, @pinzon 🥳 🙌
I have a couple of remarks:
- in several test classes the fixtures for creating log-group and log-stream are duplicated. Could you consolidate and ideally put them into the
fixtures.py? - I spotted a couple of tests (or classes) marked with
@pytest.mark.skip(reason="not supported")- could you please elaborate why this is not supported? given that the tests have been ported from moto they should work, shouldn't they? - just my personal opinion (feel free to ignore): i would love to get more hard facts into the PR description, e.g. how many tests have been added/ported from moto?
tests/aws/services/logs/test_logs.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be deleted if it's now empty :)
also please make sure to get the upstream changes from main, as formatting rules slightly changed (that's causing the merge-conflict).
| """Tests for metric filter integration with CloudWatch metrics.""" | ||
|
|
||
| @markers.aws.validated | ||
| @pytest.mark.skip(reason="not implemented correctly") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: originally we had this skip note:
@pytest.mark.skip("TODO: failing against community - filters are only in pro -> move test?")
It would be great to add a similar comment here, as it should be implemented in pro.
5cfcdc4 to
589e278
Compare
|
Thanks @steffyP. I added the report. Removed the extra file and added more details in the skips. I have some theories on why some of them fail but nothing concrete. For example:
Still, this new test suite made me learn that the new internalized service provider is (#13521) greatly incomplete. |
steffyP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing all suggestions 👍 🙌
Once the pipeline is green (there are currently issues with pro) it should be good to merge :)
@pinzon: yes, that is true. :) |
Motivation
As part of the internalization of CloudWatch Logs, this PR introduces a new AWS-validated test suite that consolidates tests from bot the existing LocalStack test suite and the Moto library test suite, organizing them by feature for better maintainability.
Changes
Migration Mapping by Test File
test_logs/test_logs.py(log groups)test_logs_groups.pytest_logs/test_logs.py(streams)test_logs_streams.pytest_logs/test_logs.py(events)test_logs_events.pytest_logs/test_logs.py(destinations)test_logs_destinations.pytest_logs/test_logs.py(resource policies)test_logs_resource_policies.pytest_logs/test_logs.py(delivery)test_logs_delivery.pytest_logs/test_logs_tags.pytest_logs_destinations.py,test_logs_groups.pytest_logs/test_logs_metric_filters.pytest_logs_metric_filters.pytest_logs/test_logs_filter_log_events.pytest_logs_filter_events.pytest_logs/test_integration.pytest_logs_subscription_filters.pytest_logs/test_export_tasks.pytest_logs_export_tasks.pytest_logs/test_logs_query/test_boto3.pytest_logs_queries.pytest_logs/test_logs_cloudformation.pytest_logs/test_models.pytest_logs/test_logs_query/test_query.pytest_logs/test_logs_query/test_query_parser.pyRelated
Internalization PR: #13521
Notes
Assisted by AI 🤖