Dev-iL commented on code in PR #60280:
URL: https://github.com/apache/airflow/pull/60280#discussion_r2685562753


##########
providers/git/tests/unit/git/bundles/test_git.py:
##########
@@ -976,3 +976,52 @@ def test_submodule_fetch_error_raises_runtime_error(
             bundle.initialize()
 
         mock_rmtree.assert_not_called()
+
+    @mock.patch("airflow.providers.git.bundles.git.GitHook")
+    def test_clone_applies_permissions(self, mock_githook, git_repo, 
bundle_temp_dir):
+        """Test that cloning applies configured permissions to repository 
directories."""
+        import stat
+
+        repo_path, repo = git_repo
+        mock_githook.return_value.repo_url = repo_path
+
+        with conf_vars(
+            {
+                ("dag_processor", "dag_bundle_new_folder_permissions"): 
"0o775",
+                ("dag_processor", "dag_bundle_new_file_permissions"): "0o664",
+            }
+        ):

Review Comment:
   I rewrote the changes to be standalone via `common.compat`.



-- 
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]

Reply via email to