anisayakmitra-in commented on PR #75583: URL: https://github.com/apache/airflow/pull/75583#issuecomment-7212765492
Thanks for the thorough review @o-nikolas! I've updated the PR to address all five review comments: 1. **Removed bare-`MagicMock` `conf` tests**: Dropped `TestFetchTemplatedKwargs` and `TestFetchConfigValues` (and `_mock_conf`) from both `test_ecs_executor_config.py` and `test_batch_executor_config.py`. 2. **Moved pure config tests into `test_ecs_executor_config.py` & kept the EC2 `platformVersion` test**: Moved the pure `build_task_kwargs` tests (`test_subnets_required`, `test_config_defaults_are_applied`, `test_provided_values_override_defaults`, `test_count_can_not_be_modified_by_the_user`, `test_verify_tags_are_used_as_provided`, `test_that_provided_kwargs_are_moved_to_correct_nesting`, `test_providing_both_capacity_provider_and_launch_type_fails`, `test_providing_capacity_provider`, `test_providing_no_capacity_provider_no_lunch_type_with_cluster_default`, `test_providing_no_capacity_provider_no_lunch_type_no_cluster_default`) out of `test_ecs_executor.py` into `test_ecs_executor_config.py`, dropped the overlapping mock-based duplicates, and rewrote `test_ec2_launch_type_drops_platform_version` using `conf_vars` and real `conf`. 3. **Moved pure config tests into `test_batch_executor_config.py`**: Moved `test_config_defaults_are_applied`, `test_verify_tags_are_used_as_provided`, and `test_rejects_unsupported_submit_job_kwargs` out of `test_batch_executor.py` into `test_batch_executor_config.py`, and dropped the overlapping mock-based duplicates. 4. **Dropped dead-branch `DroppingCommandDict` test**: Removed `test_missing_command_in_container_overrides_raises_key_error` from `test_batch_executor_config.py`. 5. **Dropped `json.dumps` mock `JSONDecodeError` tests**: Removed `test_json_decode_error_raises_value_error` from both `test_ecs_executor_config.py` and `test_batch_executor_config.py`. Validated locally across all four files with `ruff check`, `ruff format --check`, and `pytest` (157 passed, 5 skipped — including all 15 tests in `test_ecs_executor_config.py` and `test_batch_executor_config.py`). Could you please approve the CI workflow run and take another look when convenient? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
