Project

General

Profile

action #55457

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

Added by okurz 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Concrete Bugs
Target version:
-
Start date:
2019-08-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
easy
Duration:

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

Related to openQA Project - action #53858: flaky test: 25-cache-service.tResolved2019-07-04

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

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

History

#1 Updated by okurz 10 months ago

#2 Updated by okurz 10 months 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

#3 Updated by okurz 10 months ago

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

#4 Updated by tinita 10 months 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')

#5 Updated by tinita 10 months ago

  • Assignee set to tinita
  • Difficulty set to easy

#6 Updated by tinita 10 months ago

  • % Done changed from 0 to 80

#7 Updated by tinita 10 months ago

  • Status changed from New to In Progress

#9 Updated by tinita 10 months ago

  • % Done changed from 80 to 100

PR was merged

#10 Updated by tinita 10 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF