Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow to auto-patch vendored Samba code
Since our vendored Samba code has a few patches, a good way to ensure we keep it in sync with upstream is to apply an auto-patch workflow where we take the original files and apply a series of patches to get the files to the final state. This way we ensure that we don't miss any of the changes that happen upstream. The implementation is self-explanatory for the most part, taking inspiration from our other automated PR workflows. Auto-merging is disabled to give maintainers the opportunity to review (and test) the changes before merging anything in. This means, in addition to vendoring the "final" versions in `./internal/policies/certificate`, we also need to vendor the upstream versions, and the series of patches to apply. As there's no reliable way to trigger this workflow only on upstream code changes (i.e. webhooks), the next best thing is to have the workflow run on schedule. We don't expect changes to the vendored part of our codebase given that it's been around 5-6 months since the last commits, so running it on a weekly cadence should suffice. I'm also leaving the `workflow_dispatch` trigger on in case we want to run it on demand. If the patching fails, the PR body will contain the hunks that failed to apply. In this case, the developer is expected to manually perform the actions of the workflow, updating the patches so they are applicable to the new Samba version. Fixes UDENG-1113
- Loading branch information