Skip to content
Back

[SOLVED] Function Getting Rebuilt for other branches on the same repo

  • 1
  • Functions
  • Cloud
martino
30 Oct, 2024, 18:33

I'm not sure if this is a known issue - but I'm trying to figure out what's happening. The appwrite function is setup attached to a specific branch on a mono-repo of different functions. However, if anyone pushes to any other branches on the same repo, it seems to try and re-build. We're worried about deploying these functions to production if this is a known issue. Thanks!

TL;DR
[SOLVED] Function in a mono-repo rebuilds for other branches, expected behavior as branch determines deployment. Solution: Function rebuilds are based on branch changes.
martino
30 Oct, 2024, 18:36

Some screenshots for context - the branch has never been changed in the function settings. Let me know if i can provide more information to help resolve this issue!

martino
30 Oct, 2024, 18:37
Steven
30 Oct, 2024, 18:41

yes, this is expected at the moment. The branch specifies whether the new deployment will become active or not

Steven
30 Oct, 2024, 18:41

Feel free to add a 👍🏼 to this related issue: https://github.com/appwrite/appwrite/issues/7473

martino
30 Oct, 2024, 18:42

oh shoot - i see. so mono-repos for functions really aren't ""supported"" (or recommended) right now then?

Steven
30 Oct, 2024, 18:42

it's doable. you'll just have more deployments than you may want

martino
30 Oct, 2024, 18:43

that's fair - i appreciate the help!!! good to know they won't auto activate.

martino
30 Oct, 2024, 18:44

[SOLVED] Function Getting Rebuilt for other branches on the same repo

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more