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

range resolver don't output directly #4065



None yet
3 participants
Copy link

commented Dec 5, 2018

Changelog: Feature: Display the version-ranges resolutions in a cleaner way.
Docs: omit

Need it for graph-lock

@ghost ghost assigned memsharded Dec 5, 2018

Copy link

left a comment

Why not mocking the output? No modification needed, it looks like an output...

class GrabOutput:
    def __init__(self):
        self._output = []

    def info(self, msg):
        self._output.append((INFO, msg))


Also, I will refactor the RangeResolver, I don't like havint the output as a class member self._output:

class RangeResolver:
    def resolve(self, ..., output=NoneOutput()):

Note.- NoneOutput would be an empty implementation of an output class


This comment has been minimized.

Copy link
Contributor Author

commented Dec 5, 2018

Because I don't want the bare output. Actually, I want an structured information result of the version ranges resolution that have happened. Was going to use a dict of dicts, but preferred to keep it simple for the purpose, as first iteration. The output might become too noisy for users with heavy usage of version ranges, so some processing and compacting will be necessary.


jgsogo approved these changes Dec 11, 2018

Copy link

left a comment

memsharded want to push this forward for the graph-info one, I think we have to revisit the only-write-the-output-if-it-succeed thing, and maybe adopt this philosophy somewhere else (it is not useful to have some lines of output if the logic block is going to fail in the last step).

@lasote, have a look at it, and merge if you don't see anything important.

@lasote lasote merged commit fe58553 into conan-io:develop Dec 12, 2018

2 checks passed

continuous-integration/jenkins/pr-head This commit looks good
license/cla Contributor License Agreement is signed.

@ghost ghost removed the stage: review label Dec 12, 2018

@memsharded memsharded deleted the memsharded:feature/range_solver_capture_output branch Dec 12, 2018

@memsharded memsharded added this to the 1.11 milestone Dec 12, 2018

grisumbras pushed a commit to grisumbras/conan that referenced this pull request Dec 27, 2018

range resolver don't output directly (conan-io#4065)
* range resolver don't output directly

* fixing tests

* removed print

@jgsogo jgsogo referenced this pull request Dec 28, 2018


[WIP] Show remote name for upload command output #4208

0 of 1 task complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.