Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: auto_merge not working properly with orchestrator backend #1

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

duy0611
Copy link
Member

@duy0611 duy0611 commented Jan 15, 2025

When running with Digger backend mode, PR is merged when auto_merge is enabled even though not all impacted projects have been applied. This is caused because Digger batch does not have context whether all the needed jobs have been triggered when using digger apply with -p flag.

Unlike in backendless mode, where all the jobs are run sequentially and the parent one does have context if all the impacted projects have been applied, in backend mode jobs are triggered via the Batch one, which does not have this context. This PR addresses the issue by adding one more column into Batch table to store this context, which will then be used in the subsequent run.

When running with Digger backend mode, PR is merged when `auto_merge`
is enabled even though not all impacted projects have been applied.
This is caused because Digger batch does not have context whether all
the needed jobs have been triggered when using `digger apply` with `-p` flag.
Unlike in backendless mode, where all the jobs are run sequentially and the parent one
does have context if all the impacted projects have been applied, in backend mode
jobs are triggered via the Batch one, which does have this context. This PR addresses
the issue by adding one more column to store this context, which will then be used in the
subsequent run.
@duy0611 duy0611 changed the title fix: auto_merge not working properly iwith orchestrator backend fix: auto_merge not working properly with orchestrator backend Jan 15, 2025
@duy0611
Copy link
Member Author

duy0611 commented Jan 16, 2025

Upstream PR: diggerhq#1871

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