-
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
Updated warning message to output on stderr #8396
Conversation
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 for the PR!
If I infer the intentions of previous cabal developers correctly, there shouldn't be any naked putStr
calls ever, but output should be channeled through one of the service functions given here:
cabal/Cabal/src/Distribution/Simple/Utils.hs
Lines 34 to 37 in a97e1f1
warn, | |
notice, noticeNoWrap, noticeDoc, | |
setupMessage, | |
info, infoNoWrap, |
I suppose
warn
would be what we want here, and warnIfAssertionsAreEnabled
then needs a Verbosity
argument.
There's a similar PR right next door: #7838. Maybe you want to pick it up? |
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.
LGTM, thanks! The big stderr switch will have to wait for another day, I guess…
@mergify refresh |
✅ Pull request refreshed |
@mergify refresh |
✅ Pull request refreshed |
@mergify rebase |
This Fixes #8393 The message warning about assertions being enabled was previously being output to the stdout stream rather than stderr.
✅ Branch has been successfully rebased |
Weird, I commanded "squash + merge me" 4 days ago, but it still isn't merged. I thought the waiting period was 2 days. Is the Mergify way of merging brittle? Should we go back to hit the button manually? |
The waiting period probably resets sometimes. I hope not at every manual rebase, but it's possible. As you can see I struggled with broken CI, fixed it, the merge queue was still blocked, so I rebased manually a few times, etc. Last time 2 days ago. Merging delay is brittle whenever CI is broken. |
Last events I see (before your comments today):
When pointing "2 days ago" with the mouse, I see the exact time and it's less than 48 hours, so I don't see a problem. I was thinking about this whole system, and I think what makes it take longer are concurrent merges during the 48 hours windows. Because Mergify has to rebase in that case, and that probably qualifies for a timer reset. Also, manual merges probably makes the queue of "law-abiding" (2-day rule preserving) merges to starve (also because of rebase). It'd be nice to say: merge 2 days after last "significant" event, rather than any event, but that doesn't seem to be possible. |
Yes, I think the clock should start ticking once the yellow "merge me" label is set. If one wants to halt the merge process, one would remove that label again. Q: Is me commenting here also delaying the merge? |
Correct. |
I submitted an issue against Mergify tracker about the spurious delays: Mergifyio/mergify#5036 Feel free to pitch in. |
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.
Based on my understanding of the code base, this is correct.
Looks like mergify has cancelled putting this PR on squash+merge queue |
It looks fine to me so far. The 2-day timer was reset by the last rebase 9 hours ago (and our comments after that), so we'll have to wait. Unless someone wants to take a liberty and merge it manually. |
Yes, me. |
Having been hit by I regret that I requested changes to @SaadAhmedGit 's original fix. The problem is that the |
This Fixes #8393
The message warning about assertions being enabled was previously being output to the stdout stream rather than stderr.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!