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

feat: improve ftl dev rebuild algorithm #932

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

alecthomas
Copy link
Collaborator

@alecthomas alecthomas commented Feb 13, 2024

Failed module builds will only retrigger if any of the following occur:

  1. If the number of failed builds changes between one pass and the next. This is for the case when we're iteratively trying to bring up the entire graph.
  2. If zero builds have succeeded. This catches the case where no builds are able to start initially because FTL isn't up yet.
  3. Finally, if any files change in a module. This catches changes due to the normal development cycle.

I also decreased the failure delay, because we don't inifinitely spam rebuilds anymore.

Fixes #914

Failed module builds will only retrigger if any of the following occur:

1. If the number of failed builds changes between one pass and the next.
   This is for the case when we're iteratively trying to bring up the
   entire graph.
2. If zero builds have succeeded. This catches the case where no builds
   are able to start initially because FTL isn't up yet.
3. Finally, if any files change in a module. This catches changes due
   to the normal development cycle.

I also decreased the failure delay, because we don't inifinitely spam
rebuilds anymore.
@alecthomas alecthomas merged commit 5926a17 into main Feb 13, 2024
11 checks passed
@alecthomas alecthomas deleted the aat/smarter-rebuild branch February 13, 2024 09:13
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.

ftl dev should stop rebuilding if the # of failed modules in the previous pass is unchanged in the next
1 participant