Commit Graph

17 Commits

Author SHA1 Message Date
Andrea Cirulli 67d6ccc360 fix jenkins file linter issues autofixable
refs DE-690
flag = none

test-plan:
- Build passes

Change-Id: Ie748a1e585ce8e3ec4978c7a5faa45dab524a905
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/265184
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-05-18 16:48:15 +00:00
Aaron Ogata 892b3bee6a move uploadParallelLog call to associated job
refs DE-444

This function is only used in one place, and we need to remove this file, so just integrate it into the calling job itself.

Change-Id: Ibda768b6672e1090947e72b1dd820662d895ab7b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/264902
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2021-05-13 15:10:43 +00:00
Aaron Ogata 9e10e34935 prepare rspec / selenium stage generation structure
refs DE-444

Modify the generation of these stages to align with our new extendedStage() conventions in preparation for a refactor of how the stage internals are implemented.

Test Plan
1. All RSpec stages are queued and run the correct tests
2. All Selenium stages are queued and run the correct tests
3. Parallel log build works correctly

Change-Id: Id0a35f84ddf8471f1f06eede608d6ad4dc964dea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/264870
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
2021-05-13 14:23:55 +00:00
Andrea Cirulli 3f2061ba56 Revert "Revert "add the ability to load local shared library""
[canvas-builds-refspec=84e5313a87dea47cc544ff1cb8fae728efa1af21]

refs DE-555
flag=none

This reverts commit 872961eb55.

Reason for revert: fixed issue in canvas-builds

Change-Id: Ia5d9232f1bec05724c0062fa6fdec31fd93e2ad4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/260740
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2021-03-24 21:30:59 +00:00
Andrea Cirulli 872961eb55 Revert "add the ability to load local shared library"
This reverts commit b4a90a4ffa.

Reason for revert: causing build issues

Change-Id: Icf4c6d0fe26ec073d7b7ad67d1670efdee761c16
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/260738
Tested-by: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2021-03-24 16:07:08 +00:00
Andrea Cirulli b4a90a4ffa add the ability to load local shared library
move rspec and distribution into a library folder that
can be loaded as local shared lib to avoid the load code
in the jenkins files.

refs DE-555
flag = none

[canvas-builds-refspec=d4cf97caed1edf2c9c91c48460e94f99e58a4d0a]

Change-Id: Id947a389d22f04126a8654bd5e4957433cddd330
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/261289
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2021-03-24 16:02:38 +00:00
Aaron Ogata bc1a61ff84 improve failure report
refs DE-519

Test Plan:
1. Build successful
2. Build failure w/ no detected causes
3. Build failure w/ rspec failures
4. Build failure w/ intermittent failures
5. Buidl failure w/ stage failures

[canvas-builds-refspec=fa9df2ba5173b83b29c035460fb41d3d2eba8d65]

Change-Id: I55812ea5a82255d2d922817e7e641079d8d556a2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/259854
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Kyle Rosenbaum <krosenbaum@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
2021-03-09 18:51:01 +00:00
Aaron Ogata fcb2dea7ce tag migrations image with merge tag
refs DE-471

[build-registry-path=jenkins/canvas-lms/de-471-migrations-merge-tag]
[change-merged]

Change-Id: Ic8489d32945ce87f3d3129879a61906ffd86369e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256983
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-01-19 20:06:39 +00:00
James Butters 4602b3ff2a fix parallel_logs build
flag = none

add processes suffix to image tags

Test Plan:
- PS build passes on parallel_logs build
- master branch passes with new Jenkinsfile


Change-Id: Ieece1a88eb2afd9de614506320e23cc2f081f442
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256964
QA-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2021-01-19 17:14:53 +00:00
Aaron Ogata 3e92cc4498 move execute function under libraryScript
refs DE-442

[canvas-builds-refspec=eecea52ff75a74be10cd0d2c1434dc917bd726af]

Change-Id: I7412d590e1c08a47eb48b1fd82af9eaf0d5eb145
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256507
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2021-01-12 00:32:08 +00:00
Aaron Ogata b3e7d11c77 move failure reports
refs DE-348

[canvas-builds-refspec=ea37440eb5fb011f138b2e3a8239fbd70b56a8ac]

Test Plan:
1. Ensure failure report is written when tests fail
2. Ensure failuie report links work

Change-Id: Idd84536fb203fb1d525f7e566c3b55b60a110e2d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250992
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
2020-11-03 18:30:44 +00:00
Andrea Cirulli d743b37439 move migrations.groovy into canvas-builds
move file migrations.groovy from canvas-lms to
canvas-builds

refs DE-328
flag = none

test plan:
- Ensure build passes
- Ensure migration cache is used when there is no migration
- Ensure the cache is not used with skip cache flag
- Ensure the cache is not used if we force a db
migration

Change-Id: I58671667e2e351a65439bbd55ae884118cd30575
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250531
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2020-10-20 21:01:22 +00:00
Andrea Cirulli 07a985e74b move failure messages report functions to canvas-builds
migrate functions related to failure message report
to canvas-builds shared libray

refs DE-323
flag = none

test plan:
- Ensure build passes
- Ensure canvas-lms PS with spec failures create
the failure-messages file and archive it into the
artifacts
- Ensure canvas-lms PS with spec failures send
failure links as gerrit comment on the PS

Change-Id: I1c9db466787f6761e7a7e0ae1d00d7a8422c4ccf
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/250243
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2020-10-19 19:38:32 +00:00
Aaron Ogata 241605abdb report junit results immediately
refs DE-317

Change-Id: If96c15589e865bed01859752d4b1adfcd4cedf94
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248437
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2020-10-12 18:05:37 +00:00
Aaron Ogata 6eee1dad02 fix parallel logs build for migration caching
refs DE-23

Test Plan
1. Ensure that build works against master
2. Ensure that build works against specific patchset

Change-Id: I898cb46db5c7287358bae80133685deecce9aab6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/249700
Reviewed-by: Kyle Rosenbaum <krosenbaum@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2020-10-12 15:48:44 +00:00
James Butters c49cd4aa76 fix for parallel log build
set the correct patchset_tag to pull if using master branch.

flag = none

Change-Id: I7a0d87fe3f2baf2ee693dbdb7e7c5847d54234db
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/244136
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-08-03 17:18:30 +00:00
James Butters c5fb85082a new build for parallel log generation
closes: DE-119
flag = none

Test Plan:
-Regular jenkins builds pass
-New build Canvas/test-suites/rspec-parallel-log
  -passes and pushes gerrit with new log
  -fails and does not run create gerrit stage
    -once one step fails, entire build is failed immediately

Change-Id: I965676e26927ec5b539532cdf87191cc52db9151
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/242157
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-07-31 17:27:02 +00:00