Commit Graph

11 Commits

Author SHA1 Message Date
Rob Orton 2e0916fc7e use correct namespace
Change-Id: I0ecd9ff2bab9d01e605f6c1061886e03681565e8
Reviewed-on: https://gerrit.instructure.com/147578
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
2018-04-19 23:09:19 +00:00
Cody Cutrer e67fb3d3e4 use Erubi, not Erubis
Change-Id: I22efdd20563c11e98284083e7e99cbed45ef22ed
Reviewed-on: https://gerrit.instructure.com/146527
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-04-11 22:48:10 +00:00
Santhosh Natarajan 7e7aa18c0b spec: support internet explorer test run
Change-Id: I3aa0228cffa8e767e7ba2c21df351d96fa6f16cc
Reviewed-on: https://gerrit.instructure.com/131017
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2017-10-30 18:04:48 +00:00
Landon Wilkins 0ce4a23f58 da licença part 46
add consistent license headers to all source files

Change-Id: If9d3b01addc4fd9c2977bf2402dda57ec622e72f
Reviewed-on: https://gerrit.instructure.com/110151
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-28 17:56:22 +00:00
Jon Jensen cf2f1d7510 spec: fix some oversights in re-run changes, refs SD-2387
ensure we pick up the other location style when queueing up reruns
and when deciding not to re-run changed files

test plan:
1. see examples that were rerun in selenium build on PS 2
2. see modified examples that were not rerun in rspec build on PS 2

Change-Id: I31e8f4b8cc0ef8a0cc6cb2d5e8b66d69d1e931c0
Reviewed-on: https://gerrit.instructure.com/109288
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-04-20 22:58:34 +00:00
Jon Jensen ff19c48de2 spec: re-run as few examples as necessary, fixes SD-2387
don't re-run all shared_examples when just one fails, and don't rerun
otherwise colliding example locations

also ensure the various formatters output a unique/correct rerun argument
for any such failing example

test plan:
1. see intentional patchset 1 failures and corresponding output and error
   pages
2. see rerun failures on this patchset (if any)

Change-Id: I3f40b576f9f78bd9541cf9934ef348724fa815e6
Reviewed-on: https://gerrit.instructure.com/109235
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-04-20 17:55:50 +00:00
Jon Jensen 072c71a90b spec: tweak rerun formatting slightly, refs SD-2357
include the line number of the not-rerunnable spec for easier tracking in
janky

test plan:
see intentional failures and rerun behavior in patchset 2

Change-Id: I3c381f94c71dc082a83f0f025794dc135b0336b4
Reviewed-on: https://gerrit.instructure.com/107760
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-04-06 19:40:01 +00:00
Jon Jensen c63450315a spec: fix ffmpeg bomb
ensure we discard and stop recording for skipped/passed examples. also
don't even start recording once we hit the threshold

in the process, refactor a bit so it's more clear what's going on

Change-Id: Iea7ad53b2e74d76bdfe26dee73ef57bc4d956a8d
Reviewed-on: https://gerrit.instructure.com/102539
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-02-17 06:42:04 +00:00
Jon Jensen ff8ffd9a14 spec: refactor error page-y stuff, refs SD-1815
reimplement it using formatters. notable changes:

1. the index page has separate sections for "Initial", "Rerun 1", etc.
2. you now get error pages for before(:all) failures
3. you now get error pages for non-selenium failures
4. you now get links to pages for failures prior to the current one
5. in addition to not capturing screenshots/videos on too-many-failures,
   we now stop making error pages if there are too many, so that we don't
   fill up the workspace on mass badness

test plan:
1. see build in repo-who-shall-not-be-named

Change-Id: I54f065f1515f2b639b3f90b471a19e434a17aece
Reviewed-on: https://gerrit.instructure.com/102002
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-02-16 19:48:56 +00:00
Jon Jensen a743278b6b spec: intelligent spec time limits, fixes SD-1936, SD-1937
the idea is to prevent people from making specs slower, while
grandfathering in existing specs

basically:
1. if it's a spec we've seen before, don't let it run much slower than
   usual ... basically however long it took in the post-merge, with a
   very generous fudge factor
2. if it's a new spec in this commit, enforce an aggressive timeout (10
   sec, but configurable via env var)
3. regardless, don't let any spec take more than 60 seconds (not new, but
   now configurable via env var) ... since local testing typically won't
   have stats available, this will come into play

Change-Id: I4d8de97ccbef324ffde5b04de78db39e915b7e8a
Reviewed-on: https://gerrit.instructure.com/100379
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-01-27 19:17:23 +00:00
Jon Jensen 3beaab5647 spec: bring test-queue rerun logic into canvas
Change-Id: I8b1cc0ed0c019eb67ee8d22df8e5f32b4b74cac2
Reviewed-on: https://gerrit.instructure.com/100475
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2017-01-25 22:29:41 +00:00