sync: fix packaging branch discovery in workflows sync#197
Open
Simon Beaudoin (simonbeaudoin0935) wants to merge 2 commits into
Open
sync: fix packaging branch discovery in workflows sync#197Simon Beaudoin (simonbeaudoin0935) wants to merge 2 commits into
Simon Beaudoin (simonbeaudoin0935) wants to merge 2 commits into
Conversation
Workflows Sync currently enumerates refs with: refs/remotes/origin/* That only matches top-level refs and skips nested branches such as: - debian/qcom-next - qcom/ubuntu/resolute As a result, the packaging-branch pkg-pr-hook sync loop is empty and no PRs are created for packaging branches. Use refs/remotes/origin instead so all origin remote branches are seen, including nested branch paths. Signed-off-by: Simon Beaudoin <sbeaudoi@qti.qualcomm.com>
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>
Keerthi Gowda (keerthi-go)
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workflows Syncso nested remote branches areincluded during sync passes.
Root cause
workflows_sync.ymlused:git for-each-ref ... refs/remotes/origin/*That pattern only matches top-level refs and skips nested branch paths
such as:
debian/qcom-nextqcom/ubuntu/resoluteBecause of that, the packaging-branch
pkg-pr-hook.ymlsync loop could beempty, so no packaging-branch PRs were created.
Change
refs/remotes/origin(no trailing/*) in both branch collectors:HEADexclusion in packaging list forconsistency.
Validation
Validated the updated filters against
pkg-urm-extremote refs. Thepackaging list now correctly includes:
debian/qcom-nextqcom/ubuntu/resoluteqcom/ubuntu/resolute-backupThis unblocks
Workflows Syncfrom creating pkg-pr-hook sync PRs for thepackaging branches.