-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Use forked gocheck #21017
Use forked gocheck #21017
Conversation
ping @tiborvass @icecrime @tianon |
ah saddness that upstream :( |
I see there's also an open PR from @brahmaroutu go-check/check#47 should we include that in our fork? |
Oh Go ecosystem 😢 For posterity's sake, can we enumerate some of the issues we've seen with upstream here? (perhaps links to PRs that have gone stale?) That'll be helpful to point anyone asking why we use a fork (or who traces it back to a commit and thus PR), and could also be an OK way to check whether we could consider switching back sometime later. |
@tianon Yes, can definitely do that. Unfortunately I'll have to re-create the branch since I managed to |
Related PR upstream: go-check/check#70 (and the one I mentioned above possibly) |
@cpuguy83 oh, I just meant here -- it's pretty easy IMO to trace a commit back to a PR (by going to https://github.com/.../commit/... and clicking the |
Updated the PR to list the PRs. |
LGTM 😞 |
Not sure what's wrong here:
|
aec0549
to
8b5ffc0
Compare
ping @cpuguy83 any idea what those failures are? TL;DR got a lot of WindowsTP4 builds timing out, so wondering if we should up the timeout for those, or if we can get this PR merged soon |
I have literally no idea. |
ping @mlaventure perhaps we should up the timeout for WindowsTP4 while we figure out what's wrong here? |
This one is not a timeout issue. It looks like the copy of the sources into the container didn't happen for some reason. But I can see it happening in the log:
Edit: adding missing not |
Yeah, it's super strange and it's only happening on this PR. |
And win2lin and userns run successfully. |
8b5ffc0
to
c012200
Compare
Seems I found the issue. Had to move the |
All 💚 |
LGTM |
If this works well, I think we should ditch using the suite timeout at all (it doesn't make sense, because we're always adding new tests, it's more important that if a test stalls we fail it after a timeout -- it doesn't matter how long the whole suite takes as long as it doesn't freeze). |
@cyphar Really I believe the Instead of removing it, we can still set the timeout option so it also applies to unit tests and such. |
Import it with: | ||
The intention of this fork is not to change any of the original behavior, but add | ||
some specific behaviors needed for some of my projects already using this test suite. | ||
For documentation on the main behavior of go-check see the afformentioned repo. |
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.
aforementioned
:)
15e9cea
to
b976da5
Compare
@@ -45,7 +45,7 @@ DOCKER_ENVS := \ | |||
-e DOCKER_USERLANDPROXY \ | |||
-e TESTDIRS \ | |||
-e TESTFLAGS \ | |||
-e TIMEOUT | |||
-e TIMEOUT \ |
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.
not going to harm anything at the moment, but this line continuation isn't needed after removing the new variable
506703c
to
d8c5889
Compare
Signed-off-by: Brian Goff <[email protected]>
Signed-off-by: Brian Goff <[email protected]>
d8c5889
to
11d3f70
Compare
all 💚 again |
@@ -250,6 +248,7 @@ test_env() { | |||
DOCKER_REMAP_ROOT="$DOCKER_REMAP_ROOT" \ | |||
DOCKER_REMOTE_DAEMON="$DOCKER_REMOTE_DAEMON" \ | |||
GOPATH="$GOPATH" \ | |||
GOTRACEBACK=all \ |
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.
This was added so that the panics that go-check produces give a full goroutine dump, otherwise the trace is useless since it's just a trace of the main go-check code, not the timed-out test code.
LGTM |
1 similar comment
LGTM |
🎉 thanks @cpuguy83 |
The original PR I made to go-check had a bad rebase (and difficult to recover from), so opened a new on here: go-check/check#80
Another PR for consideration is go-check/check#70 which adds parallel tests -- this is not included here as I have not merged it into my fork's master branch in consideration of the per-check timeout being a bit more pertinent to Docker's test suite right now.
The last merge to go-check/check was 3 months ago, and that merge also broke the test suite :(