-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
dlangbot.github: Show Digger test command in automatic message #198
base: master
Are you sure you want to change the base?
Conversation
The previous message only told users how to build their pull request, but not how to run the test suite.
Thanks for your pull request, @CyberShadow! |
I don't have a strong opinion on this, but I'm not so sure users will actually find this useful (and space comes at a premium here), because in my experience no one except for the author runs the testsuite for a PR locally and after all we have a few CIs configured to do so which will show warnings if something went wrong... |
Well, what bugs me is that the message is currently kind of misleading: it's saying "you can use Digger to test this PR", but the command actually doesn't do any testing. |
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.
I'm strongly in favor, thanks @CyberShadow!
The comment could be improved somewhat to be more relevant and terse. |
We already do that - it's shown only when at least one issue has been referenced. |
I see, but that's intended because many people forget to reference issues (especially newcomers) and about 80% of all PRs should either reference an issue or contain a changelog entry. |
Ping, where do we go from here?
One way we can conserve vertical space is the
It's useful if a test fails, and it's not clear why from just the CI log. You'd need to add debug code to the implementation or debug/trace the failing test. As an alternative to this change, we could:
|
Yes, but in most cases it's a lot easier to run the failing DMD test yourself via the e.g.
Yeah we should definitely replace the word "build" (or reword the entire sentence + header).
I would suggest to reword the sentence + heading, s.t. it's clear that this provides a easy way to play/experiment with the respective PR locally and it's not about testing it. What do you think?
A bit unrelated, but the hopefully upcoming
We already link to Digger, so they could also click on that link for more info ;-) |
Does that take care of setting up all the dependencies and the environment, esp. on Windows? I didn't see anything for setting up MSVC or DMC / DM tools in there. |
Anyhow, my point was more that if you submit a PR to DMD, you should already have figured out how to build DMD locally or when making a PR to Phobos then you should have managed to build Phobos locally. And editing the source files in place has the advantage that they can directly |
You can still do that, though? Digger checks out the code in a git repository, so you can commit and push from there, you just need to add your remote. |
The previous message only told users how to build their pull request, but not how to run the test suite.
There's a few relevant commands here:
checkout
just gets the source code + does any merges necessary.build
gets the source code, builds it, then puts it in a directory ready to be added toPATH
and used.rebuild
just builds whatever's currently checked out.test
runs the test suite of whatever's currently checked out.build
+test
is probably the most useful combination, as it allows both running the test suite, and giving users a build that they can play around with (i.e. test it against their personal codebase).