Skip to content

Add SMB support for ObjectStoragePath - #77788

Open
yuseok89 wants to merge 10 commits into
apache:mainfrom
yuseok89:aip-132-smb-filesystem
Open

yuseok89 wants to merge 10 commits into
apache:mainfrom
yuseok89:aip-132-smb-filesystem

Conversation

@yuseok89

@yuseok89 yuseok89 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This lets ObjectStoragePath work with SMB paths such as smb://my_conn@/share/data/file.csv, for GCSToSambaOperator in phase 1 of AIP-132. The host, port, login, password and auth_protocol extra come from the Samba connection, and the first part of the path is the share.

fsspec's SMB filesystem registers one session in smbclient's process-wide pool and then calls smbclient without credentials, so two connections to the same server both run as whichever user connected first, and after a dropped connection every call fails. A subclass keeps its own pool and sends the credentials with every call, like SambaHook. It also sends copies through the generic copy and a server-side cp_file, since fsspec's SMB copy passes recursive on to smbclient.

The smbprotocol floor goes up to 1.17.0. It accepts the auth_protocol the hook already sends, which needs 1.16.0, and reports a missing share as an OSError, which exists relies on.

Testing

  • Unit tests, and a Samba server in Docker with two users, another client changing files, and dropped and idle connections.

cc @dabla


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    • Claude Code (Opus 5.5)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@github-actions github-actions Bot added the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fork CI: green. CI for the latest commit passed in your fork. The pull request is ready for maintainer review.

Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.

Fork CI tested this branch merged with main at ed5836773e, as project CI would, 1 commits behind main when the run turned green.

Latest run: https://github.com/yuseok89/airflow/actions/runs/46684560007

How this works: CI in your fork.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@yuseok89
yuseok89 force-pushed the aip-132-smb-filesystem branch from 5e9156a to a26cf86 Compare November 30, 2026 14:37
@yuseok89
yuseok89 marked this pull request as ready for review November 30, 2026 21:40
@github-actions github-actions Bot added the ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. label Nov 30, 2026
Comment thread providers/samba/pyproject.toml Resolved
@github-actions github-actions Bot added ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. and removed ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. labels Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. kind:documentation provider:samba ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants