prompt
listlengths
1
1
data_source
stringclasses
1 value
ability
stringclasses
1 value
instance
dict
[ { "content": "DynamoDB's `update_item` performs floating-point arithmetic with mock table created via `boto3`\nWhen using `moto.mock_aws` to create a `pytest` fixture for a DynamoDB table created with `boto3`, it appears that the `update_item` operation called with an `ADD` expression performs floating-point ar...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_item_add_float" ], "PASS_TO_PASS": [ "tests/test_dynamodb/test_dynamodb_update_expressions.py::test_update_different_map_elements_in_single_request" ], "base_commit": "7f6c9cb1deafb280fe7fcc7551c38e397f11a706", ...
[ { "content": "Timestream Write has the wrong response returned\n### Environment\r\nPython 3.10.2 (and 3.9 in lambda)\r\n\r\nLibraries involved installed from pip:\r\nboto3 1.20.49\r\nbotocore 1.23.49\r\nmoto 3.1.0\r\npytest 7.1.0\r\npytest-mock ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_write_records" ], "PASS_TO_PASS": [ "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_update_table", "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_describe_table", "tests/test_timest...
[ { "content": "DynamoDB query with brackets in KeyConditionExpression causes: Invalid function name; function:\nSee the attached testcase\r\n\r\nI have found that when mocking DynamoDB and running a query, if I put brackets in my KeyConditionExpression then it raises an error\r\n\r\nMy KeyConditionExpression is ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/models/test_key_condition_expression_parser.py::TestHashAndRangeKey::test_brackets[(job_id", "tests/test_dynamodb/models/test_key_condition_expression_parser.py::TestHashAndRangeKey::test_brackets[job_id" ], "PASS_TO_PASS": [ "tests/test_dynamodb/models/test_ke...
[ { "content": "EKS CreateCluster response encryptionConfig property should be a List/Array\n# Description\r\n\r\nWhen using moto server, the `CreateCluster` EKS API, the Cluster response object should contain `encryptionConfig` as a List of at-most-one `EncryptionConfig` maps/objects (as per example here: https...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_eks/test_server.py::test_eks_describe_existing_cluster" ], "PASS_TO_PASS": [ "tests/test_eks/test_server.py::test_eks_create_multiple_clusters_with_same_name", "tests/test_eks/test_server.py::test_eks_delete_cluster", "tests/test_eks/test_server.py::test_eks_list_no...
[ { "content": "KeyError when calling deregister_resource with unknown ResourceArn in lake formation\nDescription:\r\nWhen calling deregister_resource on a mocked lake formation client you get a KeyError which does not conform to the AWS docs.\r\nhttps://boto3.amazonaws.com/v1/documentation/api/latest/reference/s...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_lakeformation/test_lakeformation.py::test_deregister_resource" ], "PASS_TO_PASS": [ "tests/test_lakeformation/test_lakeformation.py::test_list_data_cells_filter", "tests/test_lakeformation/test_lakeformation.py::test_revoke_permissions", "tests/test_lakeformation/te...
[ { "content": "ECS list_services ClusterNotFoundException Not raised\n## Reporting Bugs\r\n\r\nResource/Client:\r\n**ECS**\r\n\r\nMethod:\r\n**list_services**\r\n\r\nWhen calling the `ecs` `list_services` with a cluster that does not exist (in moto) the API returns an empty list response.\r\n\r\nExpected behavio...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[unknown]", "tests/test_ecs/test_ecs_boto3.py::test_list_unknown_service[no" ], "PASS_TO_PASS": [ "tests/test_ecs/test_ecs_boto3.py::test_update_missing_service", "tests/test_ecs/test_ecs_boto3.py::test_start_task_with...
[ { "content": "Organizations close_account doesn't match public API\nThe Organizations close_account API was added in #5040.\r\n\r\nIt doesn't match the spec of the public [CloseAccount](https://docs.aws.amazon.com/organizations/latest/APIReference/API_CloseAccount.html) API.\r\n\r\n> If the action is successful...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_organizations/test_organizations_boto3.py::test_close_account_puts_account_in_suspended_status" ], "PASS_TO_PASS": [ "tests/test_organizations/test_organizations_boto3.py::test_describe_organization", "tests/test_organizations/test_organizations_boto3.py::test_aiservice...
[ { "content": "API Gateway does not support \":\" character in the resource path.\n## Reporting Bugs\r\n\r\n### Expectation:\r\nLike the real API gateway, I want to create resource path with the character \":\". This is important for our use case because we follow https://google.aip.dev/136 where \":\" is common...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_apigateway/test_apigateway.py::test_create_resource__validate_name" ], "PASS_TO_PASS": [ "tests/test_apigateway/test_apigateway.py::test_get_model_by_name", "tests/test_apigateway/test_apigateway.py::test_get_usage_plans_using_key_id", "tests/test_apigateway/test_ap...
[ { "content": "moto batch - \"RuntimeError: cannot join thread before it is started\"\nHey,\r\n\r\n**after upgrading from moto 4.0.11 to 4.2.11** i am facing the following issue with my previously running pytest. The first test is successfull, the second test, essentially doing the same but with different input,...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_batch/test_batch_jobs.py::test_submit_job_with_timeout_set_at_definition", "tests/test_batch/test_batch_jobs.py::test_submit_job_with_timeout", "tests/test_batch/test_batch_jobs.py::test_register_job_definition_with_timeout", "tests/test_batch/test_batch_jobs.py::test_c...
[ { "content": "mock_athena fails to get \"primary\" work group\nHello! After upgrading from moto version 4.1.4 to 4.1.7, we now experience errors when performing the `athena_client.get_work_group(WorkGroup=\"primary\")` call. Querying any other work group than \"primary\" (existent or non-existent work groups) w...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_athena/test_athena.py::test_get_primary_workgroup" ], "PASS_TO_PASS": [ "tests/test_athena/test_athena.py::test_create_and_get_workgroup", "tests/test_athena/test_athena.py::test_create_work_group", "tests/test_athena/test_athena.py::test_stop_query_execution", ...
[ { "content": "SES region setting is not supported\nHi,\r\nwhen trying to set the region of the SES client, it seems like it is not setting the region correctly and just defaults to the global region. \r\nIt seems like this is a bug caused in this file:\r\nhttps://github.com/getmoto/moto/blob/master/moto/ses/res...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ses/test_ses_boto3.py::test_identities_are_region_specific" ], "PASS_TO_PASS": [ "tests/test_ses/test_ses_boto3.py::test_create_configuration_set", "tests/test_ses/test_ses_boto3.py::test_send_email_when_verify_source", "tests/test_ses/test_ses_boto3.py::test_create...
[ { "content": "delete_secret accepts invalid input and then fails\nThe following call is accepted by moto `delete_secret` validations but runtime AWS error is issued\r\n\r\n```\r\n self.secrets_client.delete_secret(\r\n SecretId=creds_name,\r\n RecoveryWindowInDays=0,\r\n...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_recovery_window_invalid_values", "tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_force_no_such_secret_with_invalid_recovery_window" ], "PASS_TO_PASS": [ "tests/test_secretsmanager/test_secre...
[ { "content": "Deleting secrets not possible with full ARN\nDeleting secrets in AWS Secrets Manager isn't possible when using the full ARN as secrets id and not specifying `ForceDeleteWithoutRecovery=True`:\r\n\r\n```python\r\nimport boto3\r\nfrom moto import mock_secretsmanager\r\n\r\n@mock_secretsmanager\r\nde...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_delete_secret_by_arn" ], "PASS_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_that_has_no_value", "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_value_by_arn", "tests/tes...
[ { "content": "Versioned S3 buckets leak keys\nA left-over from #5551\r\n\r\n```python\r\n$ python -Wall\r\nPython 3.9.12 (main, Oct 8 2022, 00:52:50) \r\n[Clang 14.0.0 (clang-1400.0.29.102)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import gc\r\n>>> from...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_versioned_file" ], "PASS_TO_PASS": [ "tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_overwriting_file", "tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_delete_specif...
[ { "content": "mock_lambda missing PackageType attribute\nI'm trying to test against zip based only lambdas, but the return object is missing `PackageType`.\r\n\r\ntest:\r\n```python\r\n @mock_lambda\r\n def test_list_zipped_lambdas(self):\r\n self.setup_mock_iam_role()\r\n\r\n # with mock_la...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_awslambda/test_lambda.py::test_list_functions", "tests/test_awslambda/test_lambda.py::test_list_create_list_get_delete_list", "tests/test_awslambda/test_lambda.py::test_create_function_from_zipfile" ], "PASS_TO_PASS": [ "tests/test_awslambda/test_lambda.py::test_put...
[ { "content": "Cognito client describe_user_pool does not return with associated domain\nHi,\r\n\r\nI would like to test our programmatically created user pool's domain but it seems that the user pool's domain property is not implemented in the `describe_user_pool()` response in moto.\r\nI'm using boto version `...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_describe_user_pool_domain" ], "PASS_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_custom_attribute_required", "tests/test_cognitoidp/test_cognitoidp.py::test_admin_confirm_sign_up", "tests/test_cogni...
[ { "content": "Feature Request: Support for \"key\" and \"value\" filters in autoscaling describe_tags calls\nI'm on Moto 4.2.2. I saw [this comment](https://github.com/getmoto/moto/blob/master/moto/autoscaling/models.py#L1561) in the code that confirmed the behavior I'm seeing when I try to filter by `key` or `...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_autoscaling/test_autoscaling_tags.py::test_describe_tags_filter_by_key_or_value" ], "PASS_TO_PASS": [ "tests/test_autoscaling/test_autoscaling_tags.py::test_describe_tags_no_filter", "tests/test_autoscaling/test_autoscaling_tags.py::test_describe_tags_filter_by_propgate...
[ { "content": "Cognito ID/Access Token do not contain user pool custom attributes\nHi,\r\n\r\nI notice here that user pool [custom attributes](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-custom-attributes) are not injected into the JWT \r\n\r\nh...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_other_attributes_in_id_token" ], "PASS_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_list_groups_when_limit_more_than_total_items", "tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_custom_attribute_requir...
[ { "content": "IoT - thingId not present after create_thing()\n```\r\nimport boto3\r\nfrom moto import mock_iot\r\n\r\n@mock_iot\r\ndef test_create_thing():\r\n client = boto3.client(\"iot\", region_name=\"ap-northeast-1\")\r\n\r\n thing = client.create_thing(\r\n thingName=\"IDontHaveAThingId\"\r\n...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_iot/test_iot_things.py::test_describe_thing", "tests/test_iot/test_iot_things.py::test_create_thing" ], "PASS_TO_PASS": [ "tests/test_iot/test_iot_things.py::test_create_thing_with_type", "tests/test_iot/test_iot_things.py::test_delete_thing", "tests/test_iot/te...
[ { "content": "Cloudformation stack sets: Missing keys in describe_stack_instance response\nmoto version:\r\n4.1.12\r\n\r\nmodule:\r\nmock_cloudformation\r\n\r\naction:\r\ncreate_change_set\r\nWhen we create a stack instance and describe it using the following code, the result is not the same as running using bo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_describe_stack_instances" ], "PASS_TO_PASS": [ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_describe_stack_with_special_chars", "tests/test_cloudformation/test_cloudformation_stack_...
[ { "content": "server: Overwriting a binary object in S3 causes `/moto-api/data.json` to fail\n- **Moto version:** 759f26c6d (git cloned)\r\n- **Python version:** 3.11.4\r\n- **OS:** macOS 13.4\r\n\r\nAfter storing a binary file in S3 on the server and overwriting it, the server's dashboard fails to load due to ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_core/test_moto_api.py::test_overwriting_s3_object_still_returns_data" ], "PASS_TO_PASS": [ "tests/test_core/test_moto_api.py::test_model_data_is_emptied_as_necessary", "tests/test_core/test_moto_api.py::test_reset_api", "tests/test_core/test_moto_api.py::test_creati...
[ { "content": "SNS: `create_platform_endpoint` is not idempotent with default attributes\nAccording to [AWS Documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns/client/create_platform_endpoint.html#), `create_platform_endpoint` is idempotent, so if an endpoint is created ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_sns/test_application_boto3.py::test_create_duplicate_default_platform_endpoint" ], "PASS_TO_PASS": [ "tests/test_sns/test_application_boto3.py::test_delete_platform_application", "tests/test_sns/test_application_boto3.py::test_publish_to_disabled_platform_endpoint", ...
[ { "content": "Adding `StreamSummaries` to kinesis.list_streams response\nThe default [boto3 response](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/kinesis/client/list_streams.html) includes the `StreamSummaries` key. Can this be included?\r\nhttps://github.com/getmoto/moto/blob/69f...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_kinesis/test_kinesis.py::test_list_streams_stream_discription", "tests/test_kinesis/test_server.py::test_list_streams" ], "PASS_TO_PASS": [ "tests/test_kinesis/test_kinesis.py::test_get_records_timestamp_filtering", "tests/test_kinesis/test_kinesis.py::test_describe...
[ { "content": "CloudFront: list_invalidations includes empty element if no invalidations\n## How to reproduce the issue\r\n\r\n```python\r\n@mock_cloudfront\r\ndef test_list_invalidations__no_entries():\r\n client = boto3.client(\"cloudfront\", region_name=\"us-west-1\")\r\n\r\n resp = client.list_invalida...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_list_invalidations__no_entries" ], "PASS_TO_PASS": [ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_list_invalidations", "tests/test_cloudfront/test_cloudfront_invalidation.py::test_create_invalidation" ],...
[ { "content": "Bug: global_sign_out does not actually sign out\nThe current test code for `global_sign_out` only checks against a refresh token action. If you do a sign out and try to access a protected endpoint, like say `get_user(AccessToken)`, it should result to `NotAuthorizedException`. This is not the case...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_global_sign_out" ], "PASS_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_list_groups_when_limit_more_than_total_items", "tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_custom_attribute_required", "tes...
[ { "content": "mock_logs delete_metric_filter raises unexpected InvalidParameterException\n#### Issue description\r\n\r\nWhen using the `moto.mock_logs`, `boto3` fails to delete a metric_filter arguing that the `logGroupName` parameter is invalid, even if the log group already exists and that the metric_filter w...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_logs/test_logs.py::test_delete_metric_filter" ], "PASS_TO_PASS": [ "tests/test_logs/test_logs.py::test_create_log_group[arn:aws:kms:us-east-1:000000000000:key/51d81fab-b138-4bd2-8a09-07fd6d37224d]", "tests/test_logs/test_logs.py::test_describe_log_streams_invalid_order_...
[ { "content": "SES verify_email_identity is not idempotent\nUsing `verify_email_identity` on an existing identity with boto3 allows to re-send the verification email, without creating a duplicate identity.\r\n\r\nHowever, in moto it duplicates the identity.\r\n\r\n```python3\r\nimport boto3\r\nfrom moto import m...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ses/test_ses_boto3.py::test_verify_email_identity_idempotency" ], "PASS_TO_PASS": [ "tests/test_ses/test_ses_boto3.py::test_create_configuration_set", "tests/test_ses/test_ses_boto3.py::test_send_email_when_verify_source", "tests/test_ses/test_ses_boto3.py::test_cre...
[ { "content": "KMS `encrypt` operation doesn't resolve aliases as expected\nHi, I'm trying to use Moto's KMS implementation to test some code that uses boto3's KMS client to encrypt and decrypt data. When using key aliases, I'm running into some unexpected behavior that doesn't seem to match the behavior of AWS ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_kms/test_kms_encrypt.py::test_encrypt_using_alias_name", "tests/test_kms/test_kms_encrypt.py::test_encrypt_using_alias_arn" ], "PASS_TO_PASS": [ "tests/test_kms/test_kms_boto3.py::test__create_alias__raises_if_alias_has_restricted_characters[alias/my-alias!]", "test...
[ { "content": "EventBridge rule doesn't match null value with \"exists\" filter\n### What I expected to happen\r\n\r\nI expected moto to match null values with `{\"exists\": true}` as this is the way AWS behaves.\r\n\r\n### What actually happens\r\n\r\nMoto doesn't seem to match null values with `{\"exists\": tr...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_events/test_events_integration.py::test_moto_matches_none_value_with_exists_filter", "tests/test_events/test_event_pattern.py::test_event_pattern_with_exists_event_filter" ], "PASS_TO_PASS": [ "tests/test_events/test_event_pattern.py::test_event_pattern_with_prefix_even...
[ { "content": "stepfunctions list_executions with aborted execution does not return stopDate attribute in response\nHey Folks,\r\n\r\nLooks like we are missing the `stopDate` attribute being set for `list-executions` responses for non `RUNNING` statemachines. \r\n\r\nMoto version: `4.1.9`\r\n\r\n\r\n(sample aws ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_stop_execution" ], "PASS_TO_PASS": [ "tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_describe_execution_with_no_input", "tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_untagg...
[ { "content": "Missing vpc security group name from rds.create_db_cluster response\n## Reporting Bugs\r\nWhen we provide a vpc security group id for rds.create_db_cluster, the response of this create returns an empty list for `'VpcSecurityGroups': []`. I am using boto3 & mocking this call using moto library's m...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_create_db_cluster_additional_parameters" ], "PASS_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_start_db_cluster_without_stopping", "tests/test_rds/test_rds_clusters.py::test_modify_db_cluster_needs_long_master_user_password", ...
[ { "content": "Search Transit Gateway Returns Cached Routes\nSearching for transit gateway routes seems to cache routes. The first search will work, but subsequent searches only return the first value you searched for.\r\n\r\n```\r\n def late_boto_initialization(self):\r\n import boto3\r\n\r\n ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_transit_gateway.py::test_search_transit_gateway_routes_by_routesearch" ], "PASS_TO_PASS": [ "tests/test_ec2/test_transit_gateway.py::test_search_transit_gateway_routes_by_state", "tests/test_ec2/test_transit_gateway.py::test_describe_transit_gateway_by_id", ...
[ { "content": "IAM list_groups method didn't return \"CreateDate\" field\nIt is very simple:\r\n\r\nbased on [iam_client.list_groups() AWS Document](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iam/paginator/ListGroups.html), it should returns a field ``CreateDate``.\r\n\r\nI think ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_iam/test_iam_groups.py::test_get_all_groups" ], "PASS_TO_PASS": [ "tests/test_iam/test_iam.py::test_create_policy_already_exists", "tests/test_iam/test_iam.py::test_create_policy_with_tag_containing_large_key", "tests/test_iam/test_iam.py::test_policy_list_config_di...
[ { "content": "iot_data publish raises UnicodeDecodeError for binary payloads\nI am writing a function that publishes protobuf using the `publish` function in iot data. I am trying to test that function using moto. However, when the mock client calls `publish` is raises a `UnicodeDecodeError`. See below for stac...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_iotdata/test_iotdata.py::test_publish" ], "PASS_TO_PASS": [ "tests/test_iotdata/test_iotdata.py::test_basic", "tests/test_iotdata/test_iotdata.py::test_update", "tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow" ], "base_commit": "1b2dfba...
[ { "content": "KeyError: 'clustername' (instead of `DBClusterNotFoundFault`) thrown when calling `describe_db_clusters` for a non-existent cluster\n## Moto version:\r\n `3.1.16`\r\n\r\n## Repro steps\r\n```python\r\nimport boto3\r\nfrom moto import mock_rds\r\n\r\n@mock_rds\r\ndef test_bug():\r\n session = bo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_fails_for_non_existent_cluster" ], "PASS_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_start_db_cluster_without_stopping", "tests/test_rds/test_rds_clusters.py::test_copy_db_cluster_snapshot_fails_for_unknown_s...
[ { "content": "Cloud Formation delete_stack_instances implementation does not remove all instances when multiple regions are specified.\n## Reporting Bugs\r\n\r\nCloud Formation delete_stack_instances implementation does not remove all instances when multiple regions are specified.\r\n\r\nI am writing a test wit...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_delete_stack_instances" ], "PASS_TO_PASS": [ "tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_describe_stack_with_special_chars", "tests/test_cloudformation/test_cloudformation_stack_cr...
[ { "content": "Inconsistent `us-west-1` availability zones\n`us-west-1` only has [2 availability zones accessible to customers](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/). The [mapping of availability zone name to availability zone ID](https://docs.aws.amazon.com/ram/latest/userguide/wor...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_autoscaling/test_autoscaling.py::test_create_auto_scaling_from_template_version__latest", "tests/test_autoscaling/test_autoscaling.py::test_create_autoscaling_policy_with_policytype__targettrackingscaling", "tests/test_ec2/test_subnets.py::test_modify_subnet_attribute_valid...
[ { "content": "Cognito IDP/ create-resource-server: TypeError if no scopes are provided\nIf I try to create a ressource servers without scope Moto is crashing with the following error : \r\n\r\n```python\r\nself = <moto.cognitoidp.models.CognitoResourceServer object at 0x1096a4750>\r\n\r\n def to_json(self) -...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_create_resource_server_with_no_scopes" ], "PASS_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_list_groups_when_limit_more_than_total_items", "tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_custom_attribu...
[ { "content": "CloudFront: Bogus response from create_invalidation API when supplying a single path.\nI'm testing that a Lambda will invalidate the cache of a particular object in CloudFront. There is an issue when creating an invalidation with only one item in the `Paths` parameter.\r\n\r\n## Traceback\r\nNo ru...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_create_invalidation_with_single_path" ], "PASS_TO_PASS": [ "tests/test_cloudfront/test_cloudfront_invalidation.py::test_create_invalidation_with_multiple_paths", "tests/test_cloudfront/test_cloudfront_invalidation.py::tes...
[ { "content": "logs: Cannot add a second subscription filter\n## Description\r\nAccording to the [cloudwatch logs documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html), we should be able to add 2 subscription filters per log group.\r\n\r\nCurrently, when I try to wri...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_logs/test_integration.py::test_put_subscription_filter_update" ], "PASS_TO_PASS": [ "tests/test_logs/test_integration.py::test_put_subscription_filter_with_kinesis", "tests/test_logs/test_integration.py::test_delete_subscription_filter_errors", "tests/test_logs/test...
[ { "content": "describe_instances fails to find instances when filtering by tag value contains square brackets (json encoded)\n## Problem\r\nUsing boto3 ```describe_instances``` with filtering by tag key/value where the value cotnains a json encoded string (containing square brackets), the returned instances lis...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_instances.py::test_get_instances_filtering_by_tag" ], "PASS_TO_PASS": [ "tests/test_ec2/test_instances.py::test_run_instance_with_block_device_mappings_missing_ebs", "tests/test_ec2/test_instances.py::test_run_instance_and_associate_public_ip", "tests/test_...
[ { "content": "cognito-idp admin_initiate_auth can't refresh token\n## Reporting Bugs\r\nmoto==3.1.6\r\n/moto/cognitoidp/[models.py](https://github.com/spulec/moto/tree/9a8c9f164a472598d78d30c78f4581810d945995/moto/cognitoidp/models.py)\r\nfunction admin_initiate_auth line:1276\r\n\r\n elif auth_flow is A...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_admin_initiate_auth__use_access_token" ], "PASS_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_create_user_pool_custom_attribute_required", "tests/test_cognitoidp/test_cognitoidp.py::test_admin_confirm_sign_up", "test...
[ { "content": "A Different Reaction of ECS tag_resource\nHello!\r\nLet me report a bug found at `moto/ecs/models.py`.\r\n\r\n# Symptom\r\nWhen try to add new tags to a *_ECS cluster having no tag_*, `moto` fails to merge new tags into existing tags because of TypeError.\r\n\r\n# Expected Result\r\nThe new tags s...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ecs/test_ecs_boto3.py::test_create_cluster_with_tags" ], "PASS_TO_PASS": [ "tests/test_ecs/test_ecs_boto3.py::test_update_missing_service", "tests/test_ecs/test_ecs_boto3.py::test_start_task_with_tags", "tests/test_ecs/test_ecs_boto3.py::test_update_service", "t...
[ { "content": "Secret ARNs should have 6 random characters at end, not 5\nWhen you create a secret in AWS secrets manager, the ARN is what you'd expect, plus `-xxxxxx`, where `x` is random characters.\r\n\r\nMoto already adds random characters, but 5 instead of 6 (excluding the hyphen).\r\n\r\nFor context, I'm t...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_secret_arn" ], "PASS_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_that_has_no_value", "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_value_by_arn", "tests/test_secretsm...
[ { "content": "DynamoDB table Creates only in us-east-1\nWhen trying to create a dynamodb table in us-east-2, the table is created in us-east-1. \r\n\r\nWith us-east-2 set in the client, the arn is returned as 'arn:aws:dynamodb:us-east-1:123456789012:table/test_table'.\r\n\r\nimport pytest\r\nimport boto3\r\nfro...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_create_table" ], "PASS_TO_PASS": [ "tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_update_item_conditions_pass", "tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_update_item_c...
[ { "content": "DynamoDB `get_item()` should raise `ClientError` for empty key\n### What I expect to happen:\r\nWhen an empty key is provided for a `get_item()` call, AWS's DynamoDB returns an error like this:\r\n> botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the GetItem o...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/exceptions/test_key_length_exceptions.py::test_item_add_empty_key_exception" ], "PASS_TO_PASS": [ "tests/test_dynamodb/exceptions/test_key_length_exceptions.py::test_item_add_long_string_range_key_exception", "tests/test_dynamodb/exceptions/test_key_length_exce...
[ { "content": "Describe EC2 Vpc endpoints doesn't support vpc-endpoint-type filter.\nThis happens on line 202\r\n![image](https://user-images.githubusercontent.com/92550453/167168166-94b94167-5670-4d38-9577-ea2374cb674f.png)\r\n\r\n![image](https://user-images.githubusercontent.com/92550453/167168009-be85eeea-44...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_vpcs.py::test_describe_vpc_gateway_end_points" ], "PASS_TO_PASS": [ "tests/test_ec2/test_vpcs.py::test_create_vpc_with_invalid_cidr_block_parameter", "tests/test_ec2/test_vpcs.py::test_vpc_dedicated_tenancy", "tests/test_ec2/test_vpcs.py::test_vpc_state_ava...
[ { "content": "[IAM] Adding user the same IAM group twice causes the group to become \"sticky\"\nHi team.\r\nDiscovered an interesting behavior of mock_s3: if I add an IAM user to an IAM group and then remove the user from the group, everything works as expected, i.e. as a result the user is not a member of any ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_iam/test_iam_groups.py::test_add_user_should_be_idempotent" ], "PASS_TO_PASS": [ "tests/test_iam/test_iam_groups.py::test_get_group_policy", "tests/test_iam/test_iam_groups.py::test_delete_unknown_group", "tests/test_iam/test_iam_groups.py::test_update_group_name", ...
[ { "content": "The filter 'route.gateway-id' for DescribeRouteTables has not been implemented in Moto yet.\nWould you consider adding support for route.gateway-id filter in the DescribeRouteTables command?\n", "role": "user" } ]
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_route_tables.py::test_route_tables_filters_standard" ], "PASS_TO_PASS": [ "tests/test_ec2/test_route_tables.py::test_route_table_associations", "tests/test_ec2/test_route_tables.py::test_route_tables_defaults", "tests/test_ec2/test_route_tables.py::test_rou...
[ { "content": "SESV2 send_email saves wrong body in ses_backend\nWhen using sesv2 send_email, the email saved in the ses_backend is not what it should be. The body of the email is replaced by the subject.\r\n\r\nThe issue comes from moto/sesv2/responses.py line 45-50:\r\n```\r\nmessage = self.sesv2_backend.send_...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_sesv2/test_sesv2.py::test_send_email" ], "PASS_TO_PASS": [ "tests/test_sesv2/test_sesv2.py::test_create_contact_list__with_topics", "tests/test_sesv2/test_sesv2.py::test_send_raw_email__with_to_address_display_name", "tests/test_sesv2/test_sesv2.py::test_create_cont...
[ { "content": "ECR batch_delete_image incorrectly adding failures to reponse\nhttps://github.com/spulec/moto/blob/eed32a5f72fbdc0d33c4876d1b5439dfd1efd5d8/moto/ecr/models.py#L634-L651\r\n\r\nThis block of code appears to be indented one level too far and is running for each iteration of the for loop that begins ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ecr/test_ecr_boto3.py::test_delete_batch_image_with_multiple_images" ], "PASS_TO_PASS": [ "tests/test_ecr/test_ecr_boto3.py::test_delete_repository_with_force", "tests/test_ecr/test_ecr_boto3.py::test_start_image_scan_error_repo_not_exists", "tests/test_ecr/test_ecr...
[ { "content": "Cancel spot fleet request without terminate incorrectly removes the fleet entirely\nhttps://github.com/spulec/moto/blob/c301f8822c71a402d14b380865aa45b07e880ebd/moto/ec2/models.py#L6549\r\n\r\nI'm working with localstack on moto and trying to simulate a flow of:\r\n\r\n- create spot fleet with X i...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_spot_fleet.py::test_cancel_spot_fleet_request__but_dont_terminate_instances" ], "PASS_TO_PASS": [ "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_up", "tests/test_ec2/test_spot_fleet.py::test_create_spot_fleet_with_lowest_price", "tests/t...
[ { "content": "TimestreamWrite (TimestreamTable.write_records) uses append rather than extend when appropriate.\nNear as I can tell this was just an oversight:\r\n\r\nhttps://github.com/spulec/moto/blob/master/moto/timestreamwrite/models.py#L17\r\n\r\nRecords will never be a single entity per the spec.\r\n\r\nht...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_write_records" ], "PASS_TO_PASS": [ "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_update_table", "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_describe_table", "tests/test_timest...
[ { "content": "Tagging count in S3 response breaks requests\nI'm using `requests` to download a file from S3 using a presigned link. Here's example code where I expect it to print `b\"abc\"` but it throws an exception when calling `requests.get`.\r\n\r\n```python\r\nimport boto3\r\nimport requests\r\nfrom moto i...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_s3/test_s3_tagging.py::test_generate_url_for_tagged_object" ], "PASS_TO_PASS": [ "tests/test_s3/test_s3_tagging.py::test_put_object_tagging_on_both_version", "tests/test_s3/test_s3_tagging.py::test_put_object_tagging_with_single_tag", "tests/test_s3/test_s3_tagging....
[ { "content": "glue.create_database does not create tags\nThe AWS API allows to specify resource tags when creating a Glue database. However, moto will ignore those tags and not tag the database. As a demonstration, the following test fails:\r\n```\r\nfrom moto import mock_aws\r\nimport boto3\r\n\r\n@mock_aws\r\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_glue/test_datacatalog.py::test_create_database_with_tags" ], "PASS_TO_PASS": [ "tests/test_glue/test_datacatalog.py::test_delete_database", "tests/test_glue/test_datacatalog.py::test_create_partition_already_exist", "tests/test_glue/test_datacatalog.py::test_get_par...
[ { "content": "elbv2 describe_tags return ResourceArn empty instead of the correct one\n## Reporting Bugs\r\n\r\nI am using the latest version of moto for elbv2. After create_load_balancer with moto, which return resource 'LoadBalancerArn': 'arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/lo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_elbv2/test_elbv2.py::test_create_load_balancer" ], "PASS_TO_PASS": [ "tests/test_elbv2/test_elbv2.py::test_modify_load_balancer_attributes_routing_http2_enabled", "tests/test_elbv2/test_elbv2.py::test_set_security_groups", "tests/test_elbv2/test_elbv2.py::test_modif...
[ { "content": "update_secret doesn't update description\nThe `update_secret` call for secretsmanager has a `description` field.\r\nWithout moto, you can update the description.\r\nWith moto, the description is not updated.\r\n\r\nThe implementation in [responses.py](https://github.com/getmoto/moto/blob/master/mo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_update_secret[True]", "tests/test_secretsmanager/test_secretsmanager.py::test_update_secret[False]" ], "PASS_TO_PASS": [ "tests/test_secretsmanager/test_secretsmanager.py::test_get_secret_that_has_no_value", "tests/test_se...
[ { "content": "SNS topics on incorrect region unexpectedly succeeds\n## Reporting Bugs\r\n\r\nDear `moto` team, I am wondering if this is the expected behaviour but it seems the behaviour changed recently (`4.0.11` vs `4.1.10`, always installed with `pip`).\r\nI am creating a topic in a region and trying to load...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_sns/test_topics_boto3.py::test_create_topic_in_multiple_regions" ], "PASS_TO_PASS": [ "tests/test_sns/test_topics_boto3.py::test_create_topic_with_attributes", "tests/test_sns/test_topics_boto3.py::test_topic_fifo_get_attributes", "tests/test_sns/test_topics_boto3.p...
[ { "content": "lambda get_function() returns config working directory in error\nThanks for the recent fix, but I've spotted another problem/corner case in moto 4.1.14.\r\n\r\nIn the case where a function's `ImageConfig` dict does not contain a working directory definition, it is not reported by `get_function()`....
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_awslambda/test_lambda.py::test_create_function_from_image_default_working_directory" ], "PASS_TO_PASS": [ "tests/test_awslambda/test_lambda.py::test_publish_version_unknown_function[bad_function_name]", "tests/test_awslambda/test_lambda.py::test_create_function_from_zip...
[ { "content": "Scan of DynamoDB table with GSI ignores projection type and returns all attributes\n## Description\r\n\r\nScanning the global secondary index (GSI) of a dynamodb table with the GSI projection type set to `INCLUDE` or `KEYS_ONLY` returns all the table attributes (i.e. ignores which attributes are p...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/test_dynamodb.py::test_gsi_projection_type_include", "tests/test_dynamodb/test_dynamodb.py::test_lsi_projection_type_keys_only" ], "PASS_TO_PASS": [ "tests/test_dynamodb/test_dynamodb.py::test_remove_list_index__remove_existing_nested_index", "tests/test_dy...
[ { "content": "UnboundLocalError: cannot access local variable 'comparison_operator' where it is not associated with a value\nWhen scanning a dynamodb table with an attribute filter that is not present on all table items, the following exception is thrown:\r\n\r\n`UnboundLocalError: cannot access local variable ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/test_dynamodb.py::test_scan_with_scanfilter" ], "PASS_TO_PASS": [ "tests/test_dynamodb/test_dynamodb.py::test_remove_list_index__remove_existing_nested_index", "tests/test_dynamodb/test_dynamodb.py::test_basic_projection_expressions_using_query_with_attr_expres...
[ { "content": "Implement filter 'route.vpc-peering-connection-id' for DescribeRouteTables\nHi, when I try to mock the DescribeRouteTables I got the following error.\r\n\r\n`FilterNotImplementedError: The filter 'route.vpc-peering-connection-id' for DescribeRouteTables has not been implemented in Moto yet. Feel f...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_route_tables.py::test_route_tables_filters_vpc_peering_connection" ], "PASS_TO_PASS": [ "tests/test_ec2/test_route_tables.py::test_route_table_associations", "tests/test_ec2/test_route_tables.py::test_route_tables_defaults", "tests/test_ec2/test_route_table...
[ { "content": "mock_rds does not contain \"DbInstancePort\"\nUsing moto 4.0.3, when running the `create_db_instance` the only reference to port found is in the `Endpoint` response.\r\n\r\n```\r\n{\r\n \"DBInstance\": {\r\n \"DBInstanceIdentifier\": \"GenericTestRds\",\r\n \"DBInstanceClass\": \"db.t2.medi...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_rds/test_rds.py::test_create_database", "tests/test_rds/test_rds.py::test_get_databases" ], "PASS_TO_PASS": [ "tests/test_rds/test_rds.py::test_create_parameter_group_with_tags", "tests/test_rds/test_rds.py::test_describe_db_snapshots", "tests/test_rds/test_rds....
[ { "content": "DeliveryTimedOutCount missing from ssm list_commands output\n```python\r\nimport boto3\r\nfrom moto import mock_ssm\r\n\r\nmock = mock_ssm()\r\nmock.start()\r\n\r\nclient = boto3.client(\"ssm\", region_name=\"us-east-1\")\r\n\r\nclient.send_command(DocumentName=\"AWS-RunShellScript\", Parameters={...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ssm/test_ssm_boto3.py::test_list_commands", "tests/test_ssm/test_ssm_boto3.py::test_send_command" ], "PASS_TO_PASS": [ "tests/test_ssm/test_ssm_boto3.py::test_get_parameters_should_only_return_unique_requests", "tests/test_ssm/test_ssm_boto3.py::test_describe_parame...
[ { "content": "RDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier\nRDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier. Boto3 allow passing either ClusterArn or DBClusterIdentifier passed as fil...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_after_creation" ], "PASS_TO_PASS": [ "tests/test_rds/test_rds_clusters.py::test_start_db_cluster_without_stopping", "tests/test_rds/test_rds_clusters.py::test_modify_db_cluster_needs_long_master_user_password", "tes...
[ { "content": "Call `GetId` on Cognito Identity when Access Control is available\nAuthorization may not be included in some Cognito operations.\r\nNot including Authorization results in an error when Access control is enabled.\r\n\r\nmoto server version: 4.2.14\r\n\r\nstack trace.\r\n```\r\nError on request:\r\n...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_cognitoidp/test_cognitoidp.py::test_initiate_auth_with_invalid_user_pool", "tests/test_cognitoidp/test_cognitoidp.py::test_get_user_unknown_accesstoken", "tests/test_cognitoidp/test_cognitoidp.py::test_forgot_password", "tests/test_cognitoidp/test_cognitoidp.py::test_co...
[ { "content": "Dynamodb update_item does not raise ValidationException when changing the partition key\nHi,\r\n\r\nThe `update_item` method on the `resource(\"dynamodb\").Table(\"table_name\")` object should raise ValidationException if the user tries to change the partition key.\r\n\r\nSpecifically it should ra...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_update_primary_key", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_update_primary_key_with_sortkey" ], "PASS_TO_PASS": [ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi...
[ { "content": "SNS `delete_endpoint` is not idempotent\nThe [AWS documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns/client/delete_endpoint.html#) states that `delete_endpoint` is idempotent. However, moto raises a `NotFoundException` when attempting to delete an endpoi...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_sns/test_application_boto3.py::test_get_list_endpoints_by_platform_application" ], "PASS_TO_PASS": [ "tests/test_sns/test_application_boto3.py::test_set_endpoint_attributes", "tests/test_sns/test_application_boto3.py::test_get_platform_application_attributes", "test...
[ { "content": "stepfunctions does not respect the flag `SF_EXECUTION_HISTORY_TYPE` across all API's\n# Reasoning:\r\nI am trying to use Moto to replicate a failed step function by providing a definition with just a failed state.\r\n\r\n# How I found the error:\r\n- Originally as the docs are sparse, I thought th...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_get_execution_history_contains_expected_failure_events_when_started" ], "PASS_TO_PASS": [ "tests/test_stepfunctions/test_stepfunctions.py::test_state_machine_describe_execution_with_no_input", "tests/test_stepfunct...
[ { "content": "Unexpected FlowLogAlreadyExists Error when all flow logs have no log_group_name\n# Issue description\r\nAdding 2 flow logs having different `log_destination` but no `log_group_name`(unset as deprecated) raises an undesired `FlowLogAlreadyExists`. \r\n\r\n# Reproduction (with awslocal & localstack,...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_ec2/test_flow_logs.py::test_create_multiple_flow_logs_s3", "tests/test_ec2/test_flow_logs.py::test_create_multiple_flow_logs_cloud_watch" ], "PASS_TO_PASS": [ "tests/test_ec2/test_flow_logs.py::test_create_flow_logs_cloud_watch", "tests/test_ec2/test_flow_logs.py::t...
[ { "content": "{AttributeError}type object 'FakeTrainingJob' has no attribute 'arn_formatter'\nI've encountered what I think is a bug.\r\n\r\nWhenever I try to call describe_training_job on a sagemaker client, and I give a training job name that doesn't exist, like so:\r\n\r\n```\r\n@mock_sagemaker \r\ndef test_...
swe-gym
coding
{ "FAIL_TO_PASS": [ "tests/test_sagemaker/test_sagemaker_training.py::test_describe_unknown_training_job" ], "PASS_TO_PASS": [ "tests/test_sagemaker/test_sagemaker_training.py::test_list_training_jobs_paginated_with_fragmented_targets", "tests/test_sagemaker/test_sagemaker_training.py::test_list_train...
[ { "content": "Look into @python2 subdirectories of mypy search path entries in Python 2 mode\nTypeshed uses the `@python2` subdirectory for Python 2 variants of stubs. Mypy could also support this convention for custom search paths. This would make dealing with mixed Python 2/3 codebases a little easier.\r\n\r\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testMypyPathAndPython2Dir_python2" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testMypyPathAndPython2Dir" ], "base_commit": "322ef60ba7231bbd4f735b273e88e67afb57ad17", "created_at": "2021-04-30T15:58:20Z", "hints_text":...
[ { "content": "assert_type: Use fully qualified types when names are ambiguous\nOn current master, this code:\r\n\r\n```python\r\nfrom typing import TypeVar\r\nimport typing\r\nimport typing_extensions\r\n\r\nU = TypeVar(\"U\", int, typing_extensions.SupportsIndex)\r\n\r\ndef f(si: U) -> U:\r\n return si\r\n\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-assert-type-fail.test::testAssertTypeFail1", "mypy/test/testcheck.py::TypeCheckSuite::check-assert-type-fail.test::testAssertTypeFail2" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-assert-type-fail.test::testAsse...
[ { "content": "Daemon crash if stub package is removed\nSteps to reproduce (using #10034):\r\n* `pip install types-six`\r\n* `echo \"import six\" > t.py`\r\n* `dmypy run -- t.py`\r\n* `pip uninstall types-six`\r\n* `dmypy run -- t.py` -> crash\r\n\r\nHere's the traceback:\r\n```\r\n$ dmypy run -- t/t.py\r\nDaemo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testfinegrained.py::FineGrainedSuite::testFollowImportsNormalDeletePackage" ], "PASS_TO_PASS": [ "mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::testFollowImportsNormalDeletePackage_cached" ], "base_commit": "a1a74fe4bb8ac4e094bf6345da461bae21791e95", "creat...
[ { "content": "Fix typeguards crash when assigning guarded value in if statement\n### Description\r\n\r\nFixes https://github.com/python/mypy/issues/10665\r\n\r\nThis PR implements joining type guard types (which can happen when leaving an if statement). (it continues along the lines of https://github.com/python...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable1", "mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable2" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable3", "mypy/test/testcheck.py::TypeC...
[ { "content": "False positives for \"Attempted to reuse member name in Enum\"\n<!--\r\n If you're new to mypy and you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form\r\n instead.\r\n Please also consider:\r\n\r\n - checking our common issues page: https:/...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testEnumValueWithPlaceholderNodeType" ], "PASS_TO_PASS": [], "base_commit": "6c1eb5b36b83ecf959a50100d282ca86186f470f", "created_at": "2022-01-11T20:08:45Z", "hints_text": "", "instance_id": "python__mypy-11972",...
[ { "content": "Crash with alembic 1.7.0\n\r\n**Crash Report**\r\n\r\nRunning `mypy` in a simple file which uses type annotations from [`alembic`](https://github.com/sqlalchemy/alembic) `1.7.0` gives a crash. Works fine with `1.6.5 .\r\n\r\n**Traceback**\r\n\r\n```\r\nTraceback (most recent call last):\r\n File ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testExplicitReexportImportCycleWildcard" ], "PASS_TO_PASS": [], "base_commit": "e557ec242b719e386a804766b0db8646f86ef0e3", "created_at": "2021-11-28T11:13:18Z", "hints_text": "Having the same issue on my code, I really don't understand where ...
[ { "content": "Crashes when running with xmlschema\n<!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\n(Tell us what happened.)\r\n\r\n**Tr...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testPartialAttributeNoneType", "mypy/test/testcheck.py::TypeCheckSuite::testPartialAttributeNoneTypeStrictOptional" ], "PASS_TO_PASS": [], "base_commit": "c6e8a0b74c32b99a863153dae55c3ba403a148b5", "created_at": "2021-09-18T09:00:51Z", "hi...
[ { "content": "Regression in 0.930 - Slots \n**Bug Report**\r\n\r\nThis error is incorrectly showing up on my class that inherits from Generic[V]. This is probably because it inherits from Protocol, which defines `__slots__ = ()`\r\nerror: \"Node\" both defines \"__slots__\" and is used with \"slots=True\" [mis...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses4", "mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testSlotsDefinitionWithTwoPasses1" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.t...
[ { "content": "Can't assign to ()\nMypy incorrectly complains about assignments to `()`. The simplest example of this is\r\n```python\r\n() = []\r\n```\r\nThis code executes without a problem, but mypy says `error: can't assign to ()`\r\n\r\nA more real world use case might be code like this\r\n```python\r\n(a, ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testAssignEmptyBogus", "mypy/test/testcheck.py::TypeCheckSuite::testAssignEmptyPy36" ], "PASS_TO_PASS": [ "mypy/test/testsemanal.py::SemAnalErrorSuite::testInvalidLvalues6", "mypy/test/testcheck.py::TypeCheckSuite::testAssignEmptyPy27" ...
[ { "content": "Crash type-checking overloaded function\n<!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nCrash typing code that previousl...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-generics.test::testGenericLambdaGenericMethodNoCrash" ], "PASS_TO_PASS": [], "base_commit": "6b1fc865902bf2b845d3c58b6b9973b5a412241f", "created_at": "2023-04-28T23:16:19Z", "hints_text": "Thanks for the report! I think this bisects to h...
[ { "content": "INTERNAL ERROR when defining \"__add__\" in two related Protocol classes\nThe following minimal example causes a crash:\r\n\r\n```\r\nfrom typing import Protocol, TypeVar, Union\r\n\r\nT1 = TypeVar(\"T1\", bound=float)\r\nT2 = TypeVar(\"T2\", bound=float)\r\n\r\n\r\nclass Vector(Protocol[T1]):\r\n...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testTwoUncomfortablyIncompatibleProtocolsWithoutRunningInIssue9771" ], "PASS_TO_PASS": [], "base_commit": "1567e36165b00d532f232cb3d33d1faf04aaf63d", "created_at": "2021-04-11T13:10:29Z", "hints_text": "Thanks for the report!\r\nConfirmed that...
[ { "content": "'Maybe you forgot to use \"await\"?' has wrong error code\n```python\r\nfrom typing import AsyncGenerator\r\n\r\n\r\nasync def f() -> AsyncGenerator[str, None]:\r\n raise Exception(\"fooled you\")\r\n\r\n\r\nasync def g() -> None:\r\n async for y in f(): # type: ignore[attr-defined]\r\n ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-async-await.test::testAsyncForErrorCanBeIgnored" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-async-await.test::testAsyncForErrorNote", "mypy/test/testcheck.py::TypeCheckSuite::check-async-await.test::testAsyncFo...
[ { "content": "mypy fails when redefining class variable with Final[Type] type annotation\n<!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-final.test::testFinalClassVariableRedefinitionDoesNotCrash" ], "PASS_TO_PASS": [], "base_commit": "7e38877750c04abfd436e6ad98da23d6deca4e8f", "created_at": "2022-06-07T14:35:44Z", "hints_text": "Reproduced. Weirdly, this, on the other ha...
[ { "content": "Incomplete and incorrect stub generation of a dataclass.\n**Bug Report**\r\nStubs for a dataclass are incomplete and depending on the use case also incorrect. Consider the following dataclass:\r\n```python\r\n# module.py\r\nimport dataclasses\r\n\r\n\r\n@dataclasses.dataclass\r\nclass A:\r\n fo...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testDataclass_semanal", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testDataclassWithKwOnlyField_semanal" ], "PASS_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testAlwaysUsePEP...
[ { "content": "Crash when analysing qiskit\n**Crash Report**\r\n\r\nRunning mypy on a library where typing has recently been added causes a crash while analyzing this line:\r\nhttps://github.com/Qiskit/qiskit-terra/blob/main/qiskit/circuit/library/blueprintcircuit.py#L72\r\n\r\n\r\n**Traceback**\r\n\r\n```\r\n/q...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-classes.test::testOverridePartialAttributeWithMethod" ], "PASS_TO_PASS": [], "base_commit": "9611e2d0b1d9130ca1591febdd60a3523cf739eb", "created_at": "2022-06-05T18:48:06Z", "hints_text": "Thanks for the report! I am able to reproduce it...
[ { "content": "Strict equality false positive when strict optional disabled\nThis generates an unexpected error:\r\n\r\n```py\r\n# mypy: no-strict-optional, strict-equality\r\n\r\nfrom typing import Any, Optional\r\n\r\nx: Optional[Any]\r\n\r\nif x in (1, 2): # Error: non-overlapping container check\r\n pass...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testOverlappingAnyTypeWithoutStrictOptional" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testUnimportedHintAnyLower", "mypy/test/testcheck.py::TypeCheckSuite::testUnimportedHintAny" ], "base_commit": "c8bae06919674b9846...
[ { "content": "Narrowing types using a metaclass can cause false positives\nThe `type(t) is not M` check should not narrow the type of `t`, since a subclass can have the metaclass:\r\n\r\n```py\r\nfrom typing import Type\r\n\r\nclass M(type):\r\n pass\r\n\r\nclass C: pass\r\n\r\nclass D(C, metaclass=M): pass\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testNarrowingUsingMetaclass" ], "PASS_TO_PASS": [], "base_commit": "4518b55663bc689646280a0ab2247c4a724bf3c0", "created_at": "2021-05-05T12:28:20Z", "hints_text": "", "instance_id": "python__mypy-10424", "patch": "diff --git a/mypy/meet.py...
[ { "content": "Stubgen crashes on TypeVarTuple usage\n<!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nIt crashes on `Generic[*_Ts]`.\r\n...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuplePy311_semanal" ], "PASS_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test:...
[ { "content": "attrs & dataclasses false positive error with slots=True when subclassing from non-slots base class\n<!--\r\nIf you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form instead.\r\nPlease consider:\r\n\r\n- checking our common issues page: https://m...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassWithSlotsDerivedFromNonSlot", "mypy/test/testcheck.py::TypeCheckSuite::check-plugin-attrs.test::testAttrsClassWithSlotsDerivedFromNonSlots" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::ch...
[ { "content": "crash for protocol member with contravariant type variable\n\r\n**Reproducer**\r\n\r\n```\r\nfrom typing import overload, Protocol, TypeVar\r\n\r\nI = TypeVar('I')\r\nV_contra = TypeVar('V_contra', contravariant=True)\r\n\r\nclass C(Protocol[I]):\r\n def __abs__(self: 'C[V_contra]') -> 'C[V_con...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testProtocolConstraintsUnsolvableWithSelfAnnotation1", "mypy/test/testcheck.py::TypeCheckSuite::testProtocolConstraintsUnsolvableWithSelfAnnotation2" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testProtocolConstraintsUnsolv...
[ { "content": "Introduce error category [unsafe-overload].\n**Feature**\r\n\r\nSpecifically, consider this [example from the documentation](https://mypy.readthedocs.io/en/stable/more_types.html#type-checking-the-variants) [[mypy-play]](https://mypy-play.net/?mypy=latest&python=3.11&gist=e3ef44b3191567e27dc1b2887...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-errorcodes.test::testErrorCodeUnsafeOverloadError" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-errorcodes.test::testUnusedIgnoreEnableCode" ], "base_commit": "ed9b8990025a81a12e32bec59f2f3bfab3d7c71b", "create...
[ { "content": "Unresolved references + tuples crashes mypy\n<!--\r\n Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nUhh.. mypy crashed? Not sure...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testMultipleUndefinedTypeAndTuple", "mypy/test/testcheck.py::TypeCheckSuite::testSingleUndefinedTypeAndTuple" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testAssignEmptyBogus" ], "base_commit": "44925f4b121392135440f53d...
[ { "content": "Crash from module level __getattr__ in incremental mode\nIt's possible to get crashes like this when using module-level `__getattr__` in incremental mode:\r\n\r\n```\r\n/Users/jukka/src/mypy/mypy/build.py:179: in build\r\n result = _build(\r\n/Users/jukka/src/mypy/mypy/build.py:253: in _build\r...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testModuleGetattrIncrementalSerializeVarFlag" ], "PASS_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubsIgnorePackageFrom", "mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubsPackagePartial", "mypy/tes...
[ { "content": "AST diff crash related to ParamSpec\nI encountered this crash when using mypy daemon:\r\n```\r\nTraceback (most recent call last):\r\n File \"mypy/dmypy_server.py\", line 229, in serve\r\n File \"mypy/dmypy_server.py\", line 272, in run_command\r\n File \"mypy/dmypy_server.py\", line 371, in cm...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testdiff.py::ASTDiffSuite::testChangeParamSpec" ], "PASS_TO_PASS": [], "base_commit": "7f0ad943e4b189224f2fedf43aa7b38f53ec561e", "created_at": "2021-11-16T15:58:55Z", "hints_text": "", "instance_id": "python__mypy-11567", "patch": "diff --git a/mypy/server/astdiff.py ...
[ { "content": "stubgen seems not able to handle a property deleter\n<!--\r\nIf you're not sure whether what you're experiencing is a mypy bug, please see the \"Question and Help\" form instead.\r\nPlease consider:\r\n\r\n- checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testProperty_semanal" ], "PASS_TO_PASS": [ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testMisplacedTypeComment" ], "base_commit": "e64fb9f7fe75d5e5aa722f80576bd2b67b442a4e", "created_at": "2024-01-13T2...
[ { "content": "Accessing null key in TypedDict cause an internal error\nThe last line of the following code, d[''], attempts to access an empty key. However, since the key is empty (''), it should raise a KeyError with Python because empty keys are not defined in the A class. Mypy reports an internal error.\r\n\...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-typeddict.test::testTypedDictMissingEmptyKey" ], "PASS_TO_PASS": [], "base_commit": "fe0714acc7d890fe0331054065199097076f356e", "created_at": "2023-06-08T04:33:41Z", "hints_text": "", "instance_id": "python__mypy-15392", "patch": "di...
[ { "content": "\"Parameters cannot be constrained\" with generic ParamSpec\n**Crash Report**\r\n\r\nRan into this one while implementing generic ParamSpec after #11847 was merged this morning.\r\n/CC: @A5rocks\r\n\r\n**Traceback**\r\n\r\n```\r\nversion: 0.950+dev.e7e1db6a5ad3d07a7a4d46cf280e972f2342a90f\r\nTrace...
swe-gym
coding
{ "FAIL_TO_PASS": [ "mypy/test/testcheck.py::TypeCheckSuite::check-parameter-specification.test::testPropagatedAnyConstraintsAreOK" ], "PASS_TO_PASS": [], "base_commit": "222029b07e0fdcb3c174f15b61915b3b2e1665ca", "created_at": "2022-04-08T03:43:15Z", "hints_text": "", "instance_id": "python__mypy-125...
[ { "content": "[feature] Add profile_name variable to profile rendering\n### What is your suggestion?\n\nFeature request: Please add `profile_name` variable into profile templates - this will help a lot for the use case with large number of profiles.\r\n\r\nIn our use case, we have dozens of profiles that have p...
swe-gym
coding
{ "FAIL_TO_PASS": [ "conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_profile_name" ], "PASS_TO_PASS": [ "conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_variables", "conans/test/integration/configuration/test_profile_jinja.py::test_...
[ { "content": "can't use c++17 with gcc 5\n<!--\r\n Please don't forget to update the issue title.\r\n Include all applicable information to help us reproduce your problem.\r\n\r\n To help us debug your issue please explain:\r\n-->\r\ninstalling with `compiler.cppstd=17 compiler=gcc compiler.version=5` fails ...
swe-gym
coding
{ "FAIL_TO_PASS": [ "conans/test/unittests/client/build/cpp_std_flags_test.py::CompilerFlagsTest::test_gcc_cppstd_flags" ], "PASS_TO_PASS": [ "conans/test/unittests/client/build/cpp_std_flags_test.py::CompilerFlagsTest::test_visual_cppstd_defaults", "conans/test/unittests/client/build/cpp_std_flags_te...