added an opam loader
Related to T3425
Differential D5975
add opam loader aleo on Jul 6 2021, 6:38 PM. Authored by
Details
added an opam loader Related to T3425 will add tests later using a local opam repository as it's done in the lister
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions I've added some tests and fixed one of the review (I don't think the other one is easily do-able for now...).
Comment Actions Build has FAILED Patch application report for D5975 (id=21610)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 5e5aedaedb880bad731cfc07719f8da6ce3f5159 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/490/ Comment Actions Build is green Patch application report for D5975 (id=21614)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit b187b00b4a6edb1e219aefe562cc66e7d75d3ff6 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/491/ for more details. Comment Actions Thanks! Please raise exceptions instead of print + exit(1); they will be run in long-running processes. And use more explicit messages (eg. "can't parse" rather than "can't get"). You could also include details in the logs (eg. extracts from the stdout the loader tried to parse)
Comment Actions Build is green Patch application report for D5975 (id=21619)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 0f896966b86b11484f903ba4c0d33f420081990e Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/492/ for more details. Comment Actions Build has FAILED Patch application report for D5975 (id=21627)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 1cf9bc414cab9a9ba0fefcc86ba6de8575ff0d94 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/493/ Comment Actions Build is green Patch application report for D5975 (id=21630)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 6bd41a852059dc3a5e5fe6e15b2f7189d600b858 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/494/ for more details. Comment Actions Build is green Patch application report for D5975 (id=21631)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit f8e3d614d0decd214c7c889b54dec2e0ecf30235 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/495/ for more details.
Comment Actions Build is green Patch application report for D5975 (id=21689)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 6c7a5f4b723c0f29822e5502131a752dbfd59763 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/496/ for more details.
Comment Actions use stats for tests, remove useless comments and print statements
Comment Actions Build is green Patch application report for D5975 (id=21691)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 8a2357fe79dddbba3e0df1bfc40450e4ddf39cfc Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/497/ for more details.
Comment Actions This is all fine with me, except for the author list. (I'm removing myself from the reviewers as I won't be available for the rest of the week and I don't want to block this diff from being merged)
Comment Actions Build is green Patch application report for D5975 (id=21694)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 0532b4f77e90f8001f545cbd72530917056887ce Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/498/ for more details.
Comment Actions Build is green Patch application report for D5975 (id=21695)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit 4d6c57a4a344437aadb204405d0a0dfa7cdc2446 Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/499/ for more details. Comment Actions look good to me. One non-blocking question and a couple of suggestions inline to refactor and improve readability a bit.
Comment Actions it's fine for me. I can always take care of improving the current implementation with what i suggested later ;) Comment Actions I updated the code as you suggested (I had to raise exceptions in some cases otherwise my editor was complaining with No return statement).
Comment Actions Build is green Patch application report for D5975 (id=21699)Rebasing onto dbb18628f1... First, rewinding head to replay your work on top of it... Applying: add opam loader Changes applied before testcommit e4fbfe035320a914e6a3276b8a5d8285ecafe97e Author: zapashcanon <leo@ndrs.fr> Date: Tue Jul 6 18:36:40 2021 +0200 add opam loader See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/500/ for more details.
Comment Actions
great
That makes the code more clunky than it should. tl; dr make opam_read directly return the list[str] (which splits the first line it reads from stdout). Comment Actions
I slightly diverge from this but the gist of it remained roughtly the same idea ;) |