Skip to content

Document commit SHA support for GitDagBundle tracking_ref#69735

Open
coleheflin wants to merge 7 commits into
apache:mainfrom
coleheflin:document-git-bundle-tracking-ref-commit-sha
Open

Document commit SHA support for GitDagBundle tracking_ref#69735
coleheflin wants to merge 7 commits into
apache:mainfrom
coleheflin:document-git-bundle-tracking-ref-commit-sha

Conversation

@coleheflin

@coleheflin coleheflin commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Clarifies that GitDagBundle.tracking_ref supports a branch, tag, or full commit SHA — it already works with a SHA in practice, but the provider docs only described branch/tag. Adds a commit-SHA example to the bundle docs, a note on static-ref refresh behavior (a SHA-pinned bundle doesn't pick up new commits via refresh_interval; promoting/rolling back requires updating tracking_ref in the bundle config), and test coverage for SHA checkout, promotion, and rollback.

Verified manually against a live repository: setting tracking_ref to a full commit SHA checks out that exact commit, promotes to a new SHA when the bundle config is updated, and rolls back when reverted to the prior SHA. The added tests cover the same scenarios. Note that (unlike moving a branch/tag ref) changing a pinned SHA is a dag_bundle_config_list config change, so it requires restarting the Dag processor and workers to take effect.


Was generative AI tooling used to co-author this PR?
  • Yes — Otto (Astronomer AI assistant, built on pi)

Generated-by: Otto following the guidelines

🤖 Generated by Otto

GitDagBundle.tracking_ref already works with a full commit SHA in
practice (checkout, promote, and rollback), but the provider docs only
described it as a branch or tag. Clarify the docstring and provider
docs, add a commit-SHA example, note static-ref refresh behavior, and
add test coverage for SHA-pinned tracking_ref.

Co-Authored-By: Otto <noreply@astronomer.io>
coleheflin and others added 5 commits July 10, 2026 16:22
Unlike moving a branch or tag ref, repointing tracking_ref to a new
commit SHA is a dag_bundle_config_list config change, so it only takes
effect after the Dag processor and workers are restarted to reload the
configuration.

Co-Authored-By: Otto <noreply@astronomer.io>
Clarify that promoting/rolling back a SHA-pinned tracking_ref (an
environment-level config change) is a different mechanism from Dag
bundle versioning, which lets individual runs be rerun with their
original commit regardless of the bundle's current tracking_ref.

Co-Authored-By: Otto <noreply@astronomer.io>
The promote/rollback test already exercises basic SHA checkout as its
first step, so the standalone test was redundant. Also tighten the
docs note down to two paragraphs without dropping any of the facts.

Co-Authored-By: Otto <noreply@astronomer.io>
The rerun_with_latest_version distinction is a separate feature and
isn't needed to document tracking_ref's SHA support; keep the note
focused on the restart caveat.

Co-Authored-By: Otto <noreply@astronomer.io>
…otion

The doc previously said promoting or rolling back a SHA-pinned
tracking_ref requires restarting both the Dag processor and workers,
but only the Dag processor needs to be restarted to pick up the change.

Co-Authored-By: Otto <noreply@astronomer.io>
@coleheflin
coleheflin marked this pull request as ready for review July 13, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants