Skip to content

sync: make workflow_sync resilient to LFS/archive branches#198

Open
Simon Beaudoin (simonbeaudoin0935) wants to merge 1 commit into
mainfrom
fix/workflows-sync-lfs-safe-pr-create
Open

sync: make workflow_sync resilient to LFS/archive branches#198
Simon Beaudoin (simonbeaudoin0935) wants to merge 1 commit into
mainfrom
fix/workflows-sync-lfs-safe-pr-create

Conversation

@simonbeaudoin0935

Copy link
Copy Markdown
Contributor

Summary

  • skip pristine* and upstream/* refs in the non-packaging cleanup pass
  • keep processing when clone/checkout/push/PR creation fails for one repo/branch
  • add end-of-run warning summary while still listing created PR URLs
  • keep nested packaging branch discovery using refs/remotes/origin

Why

workflow_sync was failing halfway when touching branches like pristine-lfs in repos such as pkg-libcamera. Those branches can fail checkout in CI because of LFS/archive history, which then cascaded into incorrect branch state and a hard PR creation failure.

This change avoids that class of branch entirely and degrades per-branch failures into warnings so the run can continue and create the remaining sync PRs.

Validation

  • bash -n on extracted workflow shell block
  • reviewed new warning/summary behavior and guarded branch/PR operations

Skip lfs/archive refs in the non-packaging cleanup pass.
Handle clone/checkout/push/PR failures per branch and continue.
Print a warning summary so the run still lists completed PRs.

Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant