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

Project dependencies on self-hosted backend #1894

Closed
noxjonas opened this issue Mar 6, 2025 · 1 comment
Closed

Project dependencies on self-hosted backend #1894

noxjonas opened this issue Mar 6, 2025 · 1 comment

Comments

@noxjonas
Copy link

noxjonas commented Mar 6, 2025

Hi! I'm playing around with the self-hosted backend for digger.

I created two projects where one has depends_on on another. Digger successfully runs the plans for the first project, however, it never schedules the second project. I can see no errors in the backend logs.

Both action and backend are running digger v0.6.85

I also tested the project configuration using official Digger Cloud GitHub App, - and it works without issues.

Are dependencies supported on self-hosted digger? If so, any ideas what might be going on here?

I tried looking at the code for clues, but was not able to find where the dependent projects are supposed to be triggered. Any pointers welcome!

@noxjonas
Copy link
Author

noxjonas commented Mar 6, 2025

So actually I did find an error in the backend:

Error fetching installation link: GithubAppInstallationLink not found for orgId: 1

I dug deeper into what was happening and also looked at the objects in database. It appears I had two organisations, 1 (external_id: digger) and 2 (external_id: looked like random token/id). My installation links were bound to org 2. But after the first digger job was finished, controller was looking up orgs with external_id = 'digger', and would fetch the incorrect org without installation links (hence the error).

I did not use the automated github app setup so maybe it had something to do with that. I've now manually changed the external_id of the correct org and it seems to be working fine.

@noxjonas noxjonas closed this as completed Mar 6, 2025
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

No branches or pull requests

1 participant