Skip to content

Initialize the default state of SalesforceToGcsOperator in the Google provider - #71530

Merged
shahar1 merged 1 commit into
apache:mainfrom
auyua9:codex/salesforce-to-gcs-default-latest-20260813
Sep 12, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
auyua9:codex/salesforce-to-gcs-default-latest-20260813

Conversation

@auyua9

@auyua9 auyua9 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • initialize self.unwrap_single on the omitted-argument compatibility path
  • extend the existing parameterized unit test to cover the default path

SalesforceToGcsOperator added an unwrap_single=None compatibility path in #61659, but that branch only assigned the local variable. execute() later reads self.unwrap_single, so the official system example, which omits the argument, can upload to GCS and then fail with AttributeError.

Verification

  • uv run --no-sync --project providers/google python -m compileall -q providers/google/src/airflow/providers/google/cloud/transfers/salesforce_to_gcs.py providers/google/tests/unit/google/cloud/transfers/test_salesforce_to_gcs.py
  • git diff --check

The focused pytest command was attempted with the repository's uv path but collection was blocked by missing test dependencies (tests_common initially, then time_machine after adding devel-common/src to PYTHONPATH).

@auyua9
auyua9 requested a review from shahar1 as a code owner August 13, 2026 06:09
@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Aug 13, 2026
@uros-b

uros-b commented Aug 13, 2026

Copy link
Copy Markdown
Member

Nice, thank you @auyua9!

@olayiwola-gbenga

Copy link
Copy Markdown
Contributor

Hi @auyua9 Please look into failing check

@auyua9 auyua9 changed the title fix(google): initialize SalesforceToGcsOperator default state Initialize the default state of SalesforceToGcsOperator in the Google provider Sep 11, 2026
@auyua9

auyua9 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Renamed the PR title to plain prose per the static check (Airflow does not use Conventional Commits).

@shahar1
shahar1 force-pushed the codex/salesforce-to-gcs-default-latest-20260813 branch from f1879dd to 380dbfd Compare September 12, 2026 17:45

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, rebased so the CI will pass succesfully this time

@shahar1
shahar1 merged commit 3acea9a into apache:main Sep 12, 2026
86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants