Repository navigation
Conversation
|
Hello @Eason09053360 - thank you for your contributions to Apache Airflow! The Airflow community has introduced a limit of 5 open pull requests at a time for contributors without write access to the repository. You currently have 33 open pull requests, so - as a one-time step of introducing the limit - we closed the ones where maintainers have not engaged yet:
These pull requests stay open because maintainers are already engaged in them - they count towards your limit:
This is not a judgement of you or of your changes. We never told contributors before that opening many pull requests at once was a problem, so there is nothing to feel bad about - and nothing is lost: your branches, commits and the review history stay where they are. What we ask you to do is to make your first prioritization decision: choose which of the pull requests above matter most to you, and reopen them (up to 5 open at a time, including the ones still open) with the "Reopen pull request" button or While your pull requests are waiting for review, the most valuable thing you can do is help in other ways - reviewing other contributors' pull requests, helping with issues, and taking part in the discussions on the devlist and Slack. Why we introduced the limit, what it means for you and how to reopen or restore a pull request is explained in https://github.com/apache/airflow/blob/main/contributing-docs/32_open_pull_request_limit.rst. Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting |
henry3260
left a comment
There was a problem hiding this comment.
Should we wrap the bulk() call in try/except so this surfaces as a SystemExit
message instead of a traceback? It wouldn't change the rejection itself the
whole-batch behaviour is a server-side contract question, but the command
reports every other failure that way.
Multi-team deployments assign pools to a team via team_name. Backing pools up and restoring them silently lost that ownership: the exported file never carried the field, and an import with --action-on-existing-key overwrite sent it as null, which the server then wrote back over the existing pool. The deprecated airflow pools export/import that this command supersedes does round-trip team_name, so the gap only bites users who follow the migration notice onto airflowctl.
e51fe27 to
4f00eb6
Compare
Thanks for reviewing! Test that traceback comes from this branch predating #73307, which made |
Backport successfully created: airflow-ctl/v0-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
…ool team ownership (#73132) (#74846) Multi-team deployments assign pools to a team via team_name. Backing pools up and restoring them silently lost that ownership: the exported file never carried the field, and an import with --action-on-existing-key overwrite sent it as null, which the server then wrote back over the existing pool. The deprecated airflow pools export/import that this command supersedes does round-trip team_name, so the gap only bites users who follow the migration notice onto airflowctl. (cherry picked from commit 91a8ab6) Co-authored-by: Y-C <[email protected]> Co-authored-by: Eason09053360 <[email protected]>
…ool team ownership (apache#73132) Multi-team deployments assign pools to a team via team_name. Backing pools up and restoring them silently lost that ownership: the exported file never carried the field, and an import with --action-on-existing-key overwrite sent it as null, which the server then wrote back over the existing pool. The deprecated airflow pools export/import that this command supersedes does round-trip team_name, so the gap only bites users who follow the migration notice onto airflowctl. (cherry picked from commit 91a8ab6) Co-authored-by: Y-C <[email protected]> Co-authored-by: Eason09053360 <[email protected]>
…ool team ownership (#73132) (#74846) Multi-team deployments assign pools to a team via team_name. Backing pools up and restoring them silently lost that ownership: the exported file never carried the field, and an import with --action-on-existing-key overwrite sent it as null, which the server then wrote back over the existing pool. The deprecated airflow pools export/import that this command supersedes does round-trip team_name, so the gap only bites users who follow the migration notice onto airflowctl. (cherry picked from commit 91a8ab6) Co-authored-by: Y-C <[email protected]> Co-authored-by: Eason09053360 <[email protected]>
Why
Multi-team deployments assign a pool to a team through
team_name, which decides who may use thatpool.
airflowctl pools exportnever wrote the field andairflowctl pools importnever read itback, so a backup/restore cycle silently dropped that ownership.
Worse than an incomplete file:
PoolsOperations.bulkserialises with a plainmodel_dump(), sothe omitted field still goes out as
"team_name": null, andBulkPoolService.handle_bulk_createtreats it as explicitly provided and writes it over the existing row.
airflowctl pools import --action-on-existing-key overwritetherefore clears the team on pools that had one, and reportssuccess.
airflow pools export/import— which these commands supersede, and which already carry a@deprecated_for_airflowctlnotice — do round-tripteam_name. The field reached the old CLI in#68110 and was never carried over, so this only bites users who followed the migration notice.
What
In
airflow-ctl/src/airflowctl/ctl/commands/pool_command.py,exportnow emitsteam_nameand_import_helperreads it back withpool_config.get("team_name")— the same spellingpool_import_helperuses in the command this one replaces, so files written before this changestill import.
test_export_includes_team_nameandtest_import_forwards_team_namecover the two halves; thelatter asserts on the serialised bulk body, so it pins what actually reaches the server. The
hand-rolled pool stubs in the existing export tests gained
team_nameto stay in step withPoolResponse.Open question
A hand-written file that omits
team_namestill sends null and still clears the team onoverwrite. That is unchanged here — same root cause as
descriptionandinclude_deferredbeingreset to their defaults:
bulk()sends every field unconditionally, defeating the server'sexclude_unset=Trueguard. Fixing it means changing whatbulk()serialises, which shiftsoverwrite semantics for those fields too and needs the same treatment in
connection_commandandvariable_command. (exclude_none=True, as the siblingpools.create/pools.updateuse, isnot enough —
descriptiondefaults to""andinclude_deferredtoFalse.) Happy to open thatseparately if you agree it should be split.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines