Project

General

Profile

Actions

Bug #14845

closed

[controller] Fix flaky test

Added by Tom Clegg about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Story points:
-
Release relationship:
Auto

Description

FAIL: handler_test.go:64: HandlerSuite.TestRequestTimeout

handler_test.go:74:
    c.Check(jresp.Errors[0], check.Matches, `.*context deadline exceeded.*`)
    ... value string = "Get https://0.0.0.0:38843/discovery/v1/apis/arvados/v1/rest: net/http: request canceled (Client.Timeout exceeded while awaiting headers)" 
    ... regex string = ".*context deadline exceeded.*" 

OOPS: 49 passed, 1 FAILED
--- FAIL: Test (1.20s)
FAIL
coverage: 83.6% of statements
FAIL      git.curoverse.com/arvados.git/lib/controller  1.250s

Subtasks 1 (0 open1 closed)

Task #14850: Review 14845-fix-flaky-testResolvedPeter Amstutz02/15/2019Actions
Actions #1

Updated by Tom Clegg about 5 years ago

"Repeat test suite 99 times" (or even 2) also involved fixing an unrelated leaky test case.

14845-fix-flaky-test @ 9fa65d7621853b24b7fb13acd44fedb28543b261 https://ci.curoverse.com/view/Developer/job/developer-run-tests/1070/

Actions #2

Updated by Tom Clegg about 5 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Peter Amstutz about 5 years ago

Tom Clegg wrote:

"Repeat test suite 99 times" (or even 2) also involved fixing an unrelated leaky test case.

14845-fix-flaky-test @ 9fa65d7621853b24b7fb13acd44fedb28543b261 https://ci.curoverse.com/view/Developer/job/developer-run-tests/1070/

The tweak to TestUpdateRemoteContainerRequest() that resets the priority to 1 is slightly dodgy since the test don't actually record what the starting priority was. On the other hand, we already make lots of assumptions about the contents of fixtures in our tests, so this isn't really a problem.

LGTM.

Actions #4

Updated by Tom Clegg about 5 years ago

  • Status changed from In Progress to Resolved
Actions #5

Updated by Tom Morris about 5 years ago

  • Release set to 15
Actions

Also available in: Atom PDF