-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix --fail-above
with --exclude
.
#11306
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
Conversation
New test was failing, as the count for |
Hi @marcandre! It is worth noticing there is a difference in behaviour here. You are filtering now before we analyze the graph, which means that transitive dependencies through that node are no longer caught, while before it would simply remove those nodes from the results (with the exception of We should discuss if we really want to make this change. |
Indeed. I do not know which is most useful/intuitive. |
Hi @marcandre, just a heads up we plan to have a release candidate next week, in case you want to see this included. :) |
Thanks! Yes, I definitely want to fix that bug, so I'll have a separate fix by then. |
I'll first start to write a test, because I'm not sure how this PR differs. At least for format "dot/plain/pretty", we go through the graph using Or did you mean that the change was for "stats" and "cycles"? Are those meant to be compatible with |
@marcandre imagine a.ex depends on b.ex which depends on c.ex. My understanding is that, by filtering early, we will now no longer show c.ex at all. By filtering earlier, I think c.ex still appears in the "end result", just not linked to anything. I may be misremembering the behaviour. But that's what I think is the difference. It should appear on any kind of graph. |
Deal with exclusions once
I rebased this branch on #11330, to show that the particular example of 3 "linear" dependencies (as I understood it) does not change with this PR (with or without a Is there a different scenario that I should be testing? |
💚 💙 💜 💛 ❤️ |
Great, thanks! |
Nevermind, I had an out of date |
This PR deals with exclusions once, which simplifies the code.