Project

General

Profile

Actions

action #55457

closed

flaky test: t/api/11-bugs.t

Added by okurz over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
-
Start date:
2019-08-13
Due date:
% Done:

100%

Estimated time:

Description

Observation

See https://travis-ci.org/os-autoinst/openQA/jobs/571252106#L1021 , failed 1/20 test runs:

#   Failed test 'All reported bugs'
#   at ./t/api/11-bugs.t line 90.
#          got: '2'
#     expected: '3'
# Looks like you failed 1 test of 31.
./t/api/11-bugs.t ......................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/31 subtests 

Related issues 3 (0 open3 closed)

Related to openQA Project (public) - action #53858: flaky test: 25-cache-service.tResolvedokurz2019-07-04

Actions
Related to openQA Project (public) - action #37638: Flaky fullstack test: 'Test 3 is scheduled' at t/full-stack.tResolvedokurz2018-06-21

Actions
Copied to openQA Project (public) - action #55460: flaky test: t/33-developer_mode.t - not ok 308 - Wait for (?^:\"set_pause_on_screen_mismatch\":\"assert_screen\") timed outResolvedokurz2019-08-13

Actions
Actions #1

Updated by okurz over 5 years ago

Actions #2

Updated by okurz over 5 years ago

  • Copied to action #55460: flaky test: t/33-developer_mode.t - not ok 308 - Wait for (?^:\"set_pause_on_screen_mismatch\":\"assert_screen\") timed out added
Actions #3

Updated by okurz over 5 years ago

  • Related to action #37638: Flaky fullstack test: 'Test 3 is scheduled' at t/full-stack.t added
Actions #4

Updated by tinita over 5 years ago

I can reproduce this by doing a short sleep here:

select undef, undef, undef, 0.2;
$t->get_ok('/api/v1/bugs?created_since=500');

I suggest to change this line

t_created => time2str('%Y-%m-%d %H:%M:%S', time - 500, 'UTC')

to

t_created => time2str('%Y-%m-%d %H:%M:%S', time - 490, 'UTC')
Actions #5

Updated by tinita over 5 years ago

  • Assignee set to tinita
  • Difficulty set to easy
Actions #6

Updated by tinita over 5 years ago

  • % Done changed from 0 to 80
Actions #7

Updated by tinita over 5 years ago

  • Status changed from New to In Progress
Actions #9

Updated by tinita over 5 years ago

  • % Done changed from 80 to 100

PR was merged

Actions #10

Updated by tinita over 5 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF