Rome
Rome copied to clipboard
[WIP] Optimistic download
As per #181 , if a version file exists trust that everything else is there too.
22 Warnings | |
---|---|
:warning: | PR is classed as Work in Progress |
:warning: | src/CommandParsers.hs#L112 - Found Use <$>
Why Not
|
:warning: | src/Lib.hs#L256 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L275 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L295 - Found Redundant bracket
Why Not
|
:warning: | src/Lib.hs#L973 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1008 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1008 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1282 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1297 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1398 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1430 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1440 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1475 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1486 - Found Reduce duplication
Why Not
|
:warning: | src/Lib.hs#L1528 - Found Use lambda-case
Why Not
|
:warning: | src/Types/Commands.hs#L28 - Found Use newtype instead of data
Why Not
|
:warning: | src/Utils.hs#L378 - Found Use tuple-section
Why Not
|
:warning: | tests/Tests.hs#L138 - Found Use uncurry
Why Not
|
:warning: | tests/Tests.hs#L155 - Found Redundant bracket
Why Not
|
:warning: | tests/Tests.hs#L156 - Found Redundant bracket
Why Not
|
:warning: | tests/Tests.hs#L183 - Found Move brackets to avoid $
Why Not
|
Generated by :no_entry_sign: Danger
@blender Thanks for this work, it will certainly save us a lot of time... would you be able to make a pre-release binary (or point me in the right direction) so I can test it and provide feedback?
Hi,
I am not close to my computer at the moment. I will make a pre release on Monday.
If you feel adventurous you can try to compile yourself. Instructions are in the read me.
Sent from my iPhone
On 31 May 2019, at 17:21, Oliver Atkinson [email protected] wrote:
@blender Thanks for this work, it will certainly save us a lot of time... would you be able to make a pre-release binary with this so I can test it and provide feedback?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks for the pointer @blender - I got the branch compiled, but it did not do what I expect. I assumed it would do the following:
- Check the Cartfile.resolved against the .version file
- If a match, no files relating to the framework would be requested (including bcsymbolmaps)
- If there's a version mismatch, or lack of a version file then it would download all of the files relating to the framework.
I was not seeing the above behaviour, all files relating to the frameworks with valid version files were still being downloaded.
However, there's a good chance I did not set it up correctly as I'm new to Rome.
edit:
That could be useful but still .dYSM and .bcsymbolmap are not checksummed in the .version file so they would need to be downloaded again.
I have just seen your comment on the original issue, maybe this is what I am seeing - is it safe to add an option which does not download those files if the version file is present?
Did you run it with —optimistic ?
Sent from my iPhone
On 1 Jun 2019, at 14:04, Oliver Atkinson [email protected] wrote:
Thanks for the pointer @blender - I got the branch compiled, but it did not do what I expect. I assumed it would do the following:
Check the Cartfile.resolved against the .version file If a match, no files relating to the framework would be requested (including bcsymbolmaps) If there's a version mismatch, or lack of a version file then it would download all of the files relating to the framework. I was not seeing the above behaviour, all files relating to the frameworks with valid version files were still being downloaded.
However, there's a good chance I did not set it up correctly as I'm new to Rome.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Did you run it with —optimistic ?
Yes
This needs tests if anyone looking for hacktoberfest issues wants to finish it
Any progress on this PR?
@vytautasgimbutas it needs to be adapted to the current code base and it needs integration tests. Do you want to give it a shot?
I'd be very interested in this too. Is there an ETA for it?
When this is made available, can you also please include the "optimistic" parameter in the fasltane rome plugin? Many thanks for this!
Contributions are accepted @felipe-azevedo