-
Notifications
You must be signed in to change notification settings - Fork 701
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
Re #7670: WIP: test case for #7248 #7702
Conversation
I'm only guessing from a quick code-dive, but how about |
@Mikolaj wrote:
This does record the warnings, but also the call stack, which is unwanted because it is too brittle as a golden value:
The call-stack includes line numbers and package versions which are volatile. The default seems to be I notice that the warning I was triggering is hidden explicitly (since cb5a778): cabal/cabal-install/src/Distribution/Client/IndexUtils.hs Lines 225 to 227 in bb08616
So I was chasing a wild goose.
For some reason,
But also, according to
|
Edit: see Edit2 below. That was a misunderstanding (and a rather unfriendly parser).
Yes, I think so. I wonder how other tests cope with no config files (and so no Edit1: I don't want to use the env var telling where config is, to limit how much we depend on it, even in tests. Edit2: see #7704, the problem was that the global option should be before command, |
Two problems remaining: - Warning output is not recorded in the golden value. - The correct warning is not produced yet. Current warning: Warning: No remote package servers have been specified. Usually you would have one specified in the config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thank you.
The correct syntax is edit: ah I see this was addressed in #7704, great! |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the test should use get
instead of unpack
Fixed that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I took the liberty of changing x.y.x
to repo.invalid
CI fails due to #7707, so let's merge anyway. |
How can I merge this now? |
@Mergifyio rebase |
I think I need to override the broken CI using admin power. |
Command
|
@andreasabel: thank you and please have a look at the single commit that resulted from this. I hope that's what you wished (the label didn't work due to CI failure, but I tried to replicate with the merge button). |
@Mikolaj: Excellent, thanks! |
Re #7670: WIP: test case for #7248
Two problems remaining:
Current warning:
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!