Skip to content

Comments

Improve behavior of std.socket "soft" unittests#7580

Merged
dlang-bot merged 6 commits intodlang:masterfrom
CyberShadow:pull-20200805-084948
Aug 5, 2020
Merged

Improve behavior of std.socket "soft" unittests#7580
dlang-bot merged 6 commits intodlang:masterfrom
CyberShadow:pull-20200805-084948

Conversation

@CyberShadow
Copy link
Member

See discussion in #7579 for details.

@dlang-bot
Copy link
Contributor

dlang-bot commented Aug 5, 2020

Thanks for your pull request, @CyberShadow!

Bugzilla references

Auto-close Bugzilla Severity Description
21114 normal core.exception.AssertError@std/socket.d(1004): Assertion failure

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#7580"

@WalterBright
Copy link
Member

Please change commit message to:

"fix Issue 21114"

@CyberShadow CyberShadow force-pushed the pull-20200805-084948 branch 2 times, most recently from 317469f to 0fe4d28 Compare August 5, 2020 09:21
…built with -debug=std_socket

Reduce noise and false alarms in CI logs.

Also improve the printed message on failure, to make it clear that it
is likely a random failure, and that the ignored test failure is not
what's causing the entire test suite run to fail.
Have a single switch to control whether to test std.socket "in full"
or not.
- There is already a copy of the full license text in
  ../LICENSE_1_0.txt.

- There is already a standard "License" DDoc header.
@CyberShadow
Copy link
Member Author

I don't know why @dlang-bot thinks the issue reference is not fixing it. I copied its code to a small program and it correctly detects that closed is true.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style target requires cast to have whitespace

Fix cast style.

Co-authored-by: Sebastian Wilzbach <seb@wilzba.ch>
@wilzbach
Copy link
Contributor

wilzbach commented Aug 5, 2020

I don't know why @dlang-bot thinks the issue reference is not fixing it.

Not sure either, my best guess is that the bot is confused with the std.socket prefix, see e.g. this test:

https://github.com/dlang/dlang-bot/blob/master/source/dlangbot/bugzilla.d#L61

@CyberShadow
Copy link
Member Author

I copied its code to a small program and it correctly detects that closed is true.

Ah, whoops, I must have been looking at the wrong branch. I can reproduce with the code from the current master you linked.

@wilzbach
Copy link
Contributor

wilzbach commented Aug 5, 2020

The RegExp was changed recently to cater more for the GH-syntax people are used to, see dlang/dlang-bot@b7efd0b

@CyberShadow
Copy link
Member Author

The RegExp was changed recently to cater more for the GH-syntax people are used to, see dlang/dlang-bot@b7efd0b

Thanks, here's the fix: dlang/dlang-bot#254

@dlang-bot dlang-bot merged commit 50751f4 into dlang:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants