-
Notifications
You must be signed in to change notification settings - Fork 24k
Log error dependency resolver exceptions strings #81607
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
base: devel
Are you sure you want to change the base?
Conversation
@webknjaz are you still interested in this PR? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
aac9f8e
to
59884c9
Compare
59884c9
to
63fe6d0
Compare
@jborean93 @s-hertel can I get approvals plz? |
63fe6d0
to
7dc422f
Compare
@webknjaz do you have an example of the type of error messages this would produce. Is it worth using Also are you able to add a changelog fragment for this new change? |
@jborean93 So @bcoca asked me to switch away from |
I'll need to see how to trigger it. It was long ago when I looked into this. I just remember that when I was hitting these code branches, it didn't seem like there was enough information in the output to understand what was going on. |
Using |
@mattclay okay, I can revert that commit. @jborean93 I was able to trigger one of the code paths and checked the output. I realized it's rather raw: $ ansible-galaxy collection install 'vmware.vmware:<1.5' 'vmware.vmware:>1.5' -p .
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a
rapidly changing source of code and can become unstable at any point.
Starting galaxy collection install process
[WARNING]: The specified collections path '/home/wk/src/github/ansible/ansible' is not part of the configured Ansible collections paths
'/home/wk/.ansible/collections:/usr/share/ansible/collections'. The installed collection will not be picked up in an Ansible run, unless within a playbook-adjacent collections directory.
Process install dependency map
Collection dependency resolution impossible: [RequirementInformation(requirement=<vmware.vmware:<1.5 of type 'galaxy' from Galaxy>, parent=None), RequirementInformation(requirement=<vmware.vmware:>1.5 of type 'galaxy' from Galaxy>, parent=None)]
ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements:
* vmware.vmware:<1.5 (direct request)
* vmware.vmware:>1.5 (direct request)
Hint: Pre-releases hosted on Galaxy or Automation Hub are not installed by default unless a specific version is requested. To enable pre-releases globally, use --pre. As for the I discovered that some This PR is so old that I didn't even remember what I was after. But going through it once again, I think it was difficult to understand what exceptions in the error handling paths happen. And logging those details is still useful but I'd do that with increased verbosity only. I also realized that there's a number of other exceptions in |
Makes sense, I would be weary of adding more output to the command as well. The sheer number of verbosity levels probably hasn't been the best things and adding more noise may not be that great. Certainly more debug information for when things go wrong would be nice but we don't want to overload the user with too much information. |
@jborean93 I'll go for |
This reverts commit 4017b07.
7dc422f
to
fb22a24
Compare
@jborean93 so I experimented with surfacing better information regarding errors here and there. Plz take a look. |
@jborean93 @s-hertel could you find a minute to share more thoughts on this? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
SUMMARY
$sbj.
ISSUE TYPE
ADDITIONAL INFORMATION
N/A