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 downloading assets to different filename #673
Conversation
Right, tidy failed and can you come up with some test for this feature? |
Done. |
Is the asset file ( |
Otherwise LGTM |
Hmm, it was because |
I think |
Either way, it shows warning about missing file but it works, so I've just added this warning as expected and removed unnecessary asset. |
I have to disagree with you. This shouldn't be expected warning. But instead of fixing this early attempt to register assets I would remove it and just rely on job_grab`s asset registration. |
It's fine in this scenario, but horrible in our first rsync, then schedule scenario. Because it leaves all the assets that never actually ran tests (but got obsoleted by next build) without any reference in the database - which means they are dead files filling disk space without the GRU having a chance to know which job group's limit they should apply to. |
hey, folks (@aaannz @coolo ), @garretraziel is still waiting for this; are you waiting for him to do something? |
I am not working on this. @coolo answered why early registration can't be removed, but in that case I stand by this comment to not register asset when both VAR and VAR_URL is provided. |
I assigned the issue to @aaannz to signal that you have to convince him before this is merged. |
@garretraziel can you try to do whatever is necessary to make @aaannz happy here? This is causing us problems in production now, because I can do some kind of ugly hack around this (I guess a script that runs hourly and wipes the files if no tests are scheduled/running) but we really need this to fix it properly. |
I'll try and fix it. I have tried rebasing, but it looks that it doesn't work anymore, so I need to dig deeper into the code. |
Since I've deleted forked repository and I can't update this pull request anymore, I have created new pull request with the same code in #920. |
I've just found out that it's not possible to set both
ASSET
andASSET_URL
to download asset from given URL, but then use different filename. This fixes it.