-
Notifications
You must be signed in to change notification settings - Fork 67
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
Workaround fuel duplicated model #490
Conversation
Signed-off-by: Teo Koon Peng <[email protected]>
I tried a different approach to actually skip the model instead of breaking, it seems to work for me but admittedly I'm not sure why duplicate name was made a breaking condition and whether there is a corner case where we might end up looping endlessly (although that doesn't seem like it should happen):
Does this make sense? CC @methylDragon Edit: Oh I see that it would always update the model cache if it doesn't exit early |
The best approach would be to clean up the fuel db, that particular duplicated model has 0 downloads so far. |
What I did locally was I made the model name tuple a three member tuple of (model name, author name, creation timestamp) (this fixes the issue since the db's current duplicated model only differs in timestamp) But then that needed some other changes elsewhere that I wasn't confident of pushing in because it might lead to conflicts with preexisting model caches 😬 Best is to just fix the DB though, Ian said that the model-author pair is supposed to be unique. |
And yes, exiting early is important otherwise builds will get unnecessarily extended (and fuel will get slammed with model list requests) The models are always presented such that the latest models are shown first, which, when paired with the invariant that model-author pairs are unique, means we can halt accordingly. |
See what I did here: #492 I haven't refined it but the basic idea is there. |
Signed-off-by: Teo Koon Peng <[email protected]>
Bug fix
There is a duplicated model in fuel which break pit crew's cache. In order to not break existing caches, I just make an exception for that model.
Fixed bug
Fix applied
If your pull request is a bug fix, delete this line and all the below lines.
If your pull request is a feature implementation, delete this line and all the above lines.
New feature implementation
Implemented feature
Implementation description