Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56)

Issue 8479043: code review 8479043: test: fix flaky NaN-key map complexity test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by bradfitz
Modified:
12 years, 7 months ago
Reviewers:
remyoudompheng
CC:
golang-dev, r
Visibility:
Public.

Description

test: fix flaky NaN-key map complexity test Don't measure wall time in map.go. Keep it portable and only test NaN, but not time. Move time tests to mapnan.go and only measure user CPU time, not wall time. It builds on Darwin and Linux, the primary platforms where people hack on the runtime & in particular maps. The runtime is shared, though, so we don't need it to run on all of the platforms. Fixes flaky build failures like: http://build.golang.org/log/ba67eceefdeaa1142cb6c990a62fa3ffd8fd73f8

Patch Set 1 #

Patch Set 2 : diff -r cce4c4f5fa17 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r cce4c4f5fa17 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 3bec344c9c55 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -32 lines) Patch
M test/map.go View 1 3 chunks +19 lines, -32 lines 0 comments Download
A test/mapnan.go View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 6
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 7 months ago (2013-04-07 18:32:37 UTC) #1
r
LGTM https://codereview.appspot.com/8479043/diff/5001/test/mapnan.go File test/mapnan.go (right): https://codereview.appspot.com/8479043/diff/5001/test/mapnan.go#newcode47 test/mapnan.go:47: n := 30000 // 0.02 seconds on a ...
12 years, 7 months ago (2013-04-07 18:47:21 UTC) #2
bradfitz
https://codereview.appspot.com/8479043/diff/5001/test/mapnan.go File test/mapnan.go (right): https://codereview.appspot.com/8479043/diff/5001/test/mapnan.go#newcode47 test/mapnan.go:47: n := 30000 // 0.02 seconds on a MacBook ...
12 years, 7 months ago (2013-04-07 18:53:06 UTC) #3
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=845066f7e0df *** test: fix flaky NaN-key map complexity test Don't measure wall ...
12 years, 7 months ago (2013-04-07 18:56:18 UTC) #4
remyoudompheng
$ go run run.go -show_skips ?? linkx.go : skipped; unknown pattern: $G skip mapnan.go : ...
12 years, 7 months ago (2013-04-08 07:01:12 UTC) #5
bradfitz
12 years, 7 months ago (2013-04-08 07:03:10 UTC) #6
That fixes the flakiness!



On Mon, Apr 8, 2013 at 12:01 AM, <remyoudompheng@gmail.com> wrote:

> $ go run run.go -show_skips
> ??                   linkx.go            : skipped; unknown pattern: $G
> skip                 mapnan.go           : +build darwin,linux
> [...]
>
> The build tag is always false.
>
>
https://codereview.appspot.**com/8479043/<https://codereview.appspot.com/8479...
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b