Use PRs when importing engine sources #96
Merged
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.
Currently
Vendor.yml
workflow imports DuckDB engine sources and commits the changes to themain
branch straight away.This PR changes this to import engine changes into a
vendoring
branch and create a PR on that branch. This PR triggersODBC.yml
tests runs. Additional job is added toODBC.yml
to merge the PRs onvendoring
branch automatically after all tests are passed.When the import happens and the PR on
vendoring
branch is still open (when previous import did not pass the tests), then the imported changes are added to thevendoring
branch and the PR is closed and re-opened to trigger theODBC.yml
workflow run.Non-default personal access token (
PAT_TOKEN
secret) must be used for creation or re-opening of the PR because the default tokenGITHUB_TOKEN
is restricted to not triggerpull_request
event. All other operations, besides the PR create/re-open, use the default token.Merge is done by rebasing all
vendoring
commits ontomain
branch, thus the history of the imports should look the same (linear) as it looks now with direct pushes.Testing: debugged this on a separate repo.