Commit Graph

489 Commits

Author SHA1 Message Date
James Butters 0e96f3b758 use DOCKER_WORKDIR for git safe.directory
hardcoding the dir /usr/src/app for git safe.directory doesn't
still leaves plugins broken. Change to use $DOCKER_WORKDIR.

flag: none

Test Plan:
- plugin jenkins build generates crystalball prediction
- standard jenkins build generates crystalball prediction

Change-Id: I06b3be6884685377fca3653f18db6a0a0157800d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319114
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
2023-05-25 14:35:21 +00:00
James Butters 067462f9e5 use different crystalball gem
toptal/crystalball has been stale for a couple years and we
are in need of updates with Psych 4 that aren't getting
merged. Switch to using wrapbook/crystalball since it has the
Psych 4 update amoung other improvements.

[force-crystalball]

Change-Id: Iee3565f69a6af83b018459c39326e1b475648bd1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319020
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
2023-05-24 20:52:42 +00:00
Andrea Cirulli f06dda7c70 fix post-merge failing publishing arm64 docker image
[change-merged]
[build-registry-path=jenkins/canvas-lms/de-1572]

refs DE-1572

test-plan:
- simulate change-merged build
- expect the docker image to be available for both amd64 and arm64

Change-Id: I6b17ba42e2eb0eac8ab22630f2f88ab6f0c1a9fd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313972
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-03-22 20:51:44 +00:00
Aaron Ogata 487f60b8b8 Revert "also call setEnabled for configuration"
This reverts commit bf470877ea.

Reason for revert: approach doesn't work

[build-registry-path=jenkins/canvas-lms/test]

Change-Id: I3a6d621530789ab316235fad47f8f8b2eaf46f6e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313317
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-17 17:03:22 +00:00
Aaron Ogata bf470877ea also call setEnabled for configuration
[build-registry-path=jenkins/canvas-lms/test]
[canvas-builds-refspec=b70c8b53c9a90cf47f4c03ea96695e234d5acaf8]

Change-Id: Ie14789a4f80879cb6f00f7a56064ef2f28690055
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313593
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-17 16:14:59 +00:00
Aaron Ogata 0e1f9f4406 remove final usage of deprecated configuration functions
refs DE-1359

[build-registry-path=jenkins/canvas-lms/test]
[canvas-builds-refspec=3c8d1f2ff141254c32033be495883267adb8761b]

Change-Id: I685b80b666f8e446d152e32e5e75c5c37091fa2e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313515
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-03-17 15:33:56 +00:00
Aaron Ogata 8941e61e91 decomplicate publishable patchset check
refs DE-1359

Change-Id: Iaba5386b752b278f7d994bd9cbf8ca48c43ced88
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313505
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-16 19:41:53 +00:00
Aaron Ogata 1e6312a404 move nodeLabel out of canvas-builds
refs DE-1359

Change-Id: I09cbcb708f9f8451a205b4fc470c27224bac49c1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313499
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-16 19:41:00 +00:00
Aaron Ogata a6aae57a48 convert remaining boolean flags
refs DE-1359

[canvas-builds-refspec=1f02879d6f1b3a3ca631b542539aa0b699e64146]

Change-Id: Id0b5e194f7e7d1ba55723fcbb5c0dcede028c5de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313490
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-16 18:30:43 +00:00
Aaron Ogata 7bcda4a55a move private defaults to own class
refs DE-1359

[canvas-builds-refspec=f031923d07a0057536e478ba11bbff5c61ca661d]

Change-Id: I67b32138c40edc2a5a05957c29360a33cf493448
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313458
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-16 16:55:19 +00:00
Aaron Ogata 9f1ca5f895 remove usage of configuration.getInteger
refs DE-1359

Change-Id: I500acf9fefd0a5d4f247da80c08ed7093d7dd7f3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313393
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-16 15:10:08 +00:00
Aaron Ogata 08c1a081a5 remove configuration.getBoolean usage
refs DE-1359

Change-Id: Ieeac054acd3fd56c299ab565e9c4b7e4082160d3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313364
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-15 18:37:07 +00:00
Aaron Ogata 8b1087fcc1 build ARM64 image for post-merge
refs DE-1487

[build-registry-path=jenkins/canvas-lms/de-1487]
[change-merged]

Change-Id: Iba525290e017aed9af4addbd293d42a3b59d602e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312867
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-15 14:07:49 +00:00
Aaron Ogata b90a187975 set commitMessageFlag enabled earlier
refs DE-1359

[canvas-builds-refspec=d45584f9fbf6617ddd76f5dd39a2cffdac3c9565]

Change-Id: I9f1cc7607afd0b656f20e6ebbf0837fc198f6851
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313259
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-03-14 17:27:06 +00:00
Aaron Ogata 85dd6e714b start using commitMessageFlag for refspec flags
refs DE-1359

[canvas-builds-refspec=d45584f9fbf6617ddd76f5dd39a2cffdac3c9565]

Change-Id: Ic7d7fa37df74a9c6268a70ed82337530492a3d20
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313242
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-14 17:03:56 +00:00
Aaron Ogata 05e0765136 remove dead / unused values
refs DE-1359

[canvas-builds-refspec=d7790354d9641ef746f144a871ea1dba1fb589d8]

Change-Id: I52390e97559bc755d8a8290e19753f6d7eae934f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313139
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-13 21:28:52 +00:00
Aaron Ogata 315617c28b use jenkins-library functionality instead of custom
refs DE-1527

Change-Id: I7810eadd526fa75bacef6ec0204a67dbbb950881
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313077
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-13 15:31:23 +00:00
Jacob Burroughs f1aac68562 Don't test against dead projects
Change-Id: I688d9eda03b3da03a0023e929e9a03d0c429bfeb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312972
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-03-10 15:04:41 +00:00
Tucker McKnight cf8f47a5b4 spec: Remove graphql schema check stage
fixes INTEROP-7891

Change-Id: Ia02f46c42eb81103a4ced3fb3a2c9618121b785a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310883
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Paul Gray <paul.gray@instructure.com>
Product-Review: Paul Gray <paul.gray@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Tucker Mcknight <tmcknight@instructure.com>
2023-02-15 22:32:30 +00:00
Aaron Ogata 295674216c send a more meaningful failure message for cron jobs
refs AE-113

Change-Id: I7e29cd514b65bf79bbd231f218955f0ec51c83aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310236
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Build-Review: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2023-02-02 15:35:38 +00:00
Aaron Ogata c80daf17ad add linter for Gemfile changes
refs DE-1492

Test Plan
1. Gemfile.lock is ok
2. Gemfile.lock is outdated
3. Private plugin specifies unique dependency

Change-Id: Ic5143faae2095fd5f02acaa86eda813aefd419c3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/309916
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-01-31 16:34:16 +00:00
Aaron Ogata e219d6de77 allow forcing crystal ball to run despite config changes
refs DE-1220

Change-Id: I12d3e9b4728e94c816a6bf610345aedf18c1baa7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303477
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-10-18 16:32:35 +00:00
Bobby Buten 2e953c37cc abort translation pre-merge builds
refs DE-1421
flag=none

TEST PLAN:
  Build

Change-Id: I4816755153decf199415b889b16cba3b930d786e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/303043
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
Build-Review: Bobby Buten <bobby.buten@instructure.com>
2022-10-11 17:38:33 +00:00
Bobby Buten 5d63e48131 stop running post-merge builds for translations
refs DE-1351
flag=none

TEST PLAN:
  Build

Change-Id: I85bb0c77820551bbbaf12e3d46b4b664897dcb64
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/299194
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
2022-09-28 19:28:08 +00:00
Bobby Buten 032ab3a0fb testing slack channel override
refs DE-1351
flag=none

TEST PLAN:
  Build

Change-Id: I1c90fa22f7f64e875157bd3e589b16f7079e6274
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/302044
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
Build-Review: Bobby Buten <bobby.buten@instructure.com>
2022-09-28 11:59:03 +00:00
Aaron Ogata 1734090658 cache compiled webpack assets
refs DE-1379

[build-registry-path=jenkins/canvas-lms/de-1379-webpack-3]
[change-merged]

Change-Id: I61bef0e398b917611136bdee34284bb7584c5aa6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/301946
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2022-09-27 19:43:55 +00:00
Aaron Ogata 9d390cd24f fix JS test impact analysis for plugins
refs DE-1379

Change-Id: I88884510728e80d06ad4eb9c9a785cca433ed465
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/301875
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Bobby Buten <bobby.buten@instructure.com>
Build-Review: Bobby Buten <bobby.buten@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-09-26 12:37:46 +00:00
Aaron Ogata 71bcd55d90 use bind mounts for cache helper image copies
refs DE-1379

Test Plan
1. JS Impact Analysis works
2. Tarball hashes are reproducible crossbuild

[build-registry-path=jenkins/canvas-lms/de-1379-3]
[change-merged]

Change-Id: I69631a80dd2cbdc03467b1ae690c0eeeaeda555c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/301748
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Bobby Buten <bobby.buten@instructure.com>
Build-Review: Bobby Buten <bobby.buten@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-09-26 11:51:46 +00:00
Aaron Ogata 78d9bacf42 pre-load webpack images while performing git commands
refs DE-1379

[build-registry-path=jenkins/canvas-lms/de-1379]
[change-merged]

Change-Id: I2f322fe85f43a3c2dc807ff2676aca539b3d5df7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/301661
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: Ryan Norton <rnorton@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>
Build-Review: Aaron Ogata <aogata@instructure.com>
2022-09-23 13:47:41 +00:00
Aaron Ogata f135d25758 rename webpack-cache image to webpack-assets
refs DE-1379

Change-Id: I50d9482c465daa410d693ef46ddf0942a6ee4343
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/301424
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@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>
2022-09-20 16:57:47 +00:00
Aaron Ogata 0ce3a33a1b only run JS tests in pre-merge if JS-related code changes
refs DE-1296

Test Plan
1. Validate Normal Build
2. Validate Plugin Build

Change-Id: I1cb97e03d9e8d7b34cf51037f81a6090f7f35bd9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/297316
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>
Build-Review: Aaron Ogata <aogata@instructure.com>
2022-08-17 16:36:55 +00:00
Aaron Ogata e6d57cab06 fix graphql files check
Change-Id: I8818debfaf41d3bf6f5ba157d28a7ab3af675571
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298824
Reviewed-by: Ryan Hawkins <ryan.hawkins@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>
Build-Review: Aaron Ogata <aogata@instructure.com>
2022-08-16 22:35:11 +00:00
Ryan Hawkins ea90e32223 Remove rover as dependency for schema checks
Rover was originally added as a devDependency so that Apollo Studio
schema checks could be performed. However, Rover does not build under
linux/arm64, so developers with newer M1 Macs were unable to get Canvas
running. Instead, the schema checks will be run inside of a separate
rover specific container, removing the dependency.

[canvas-builds-refspec=1b94202e657e6899de6629afd85b628a1e27b66c]
[force-graphql-schema-check]

closes INTEROP-7174

flag=none

test-plan:
- the simulated post-merge build succeeds
- M1 users can run yarn install without issue
- devx is happy :P

Change-Id: I92f8862b580b4300b14ee98bc9e9826c8d649e96
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298396
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Xander Moffatt <xmoffatt@instructure.com>
Product-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
2022-08-16 21:04:38 +00:00
Aaron Ogata c81178caf7 remove karma-builder image since local Chrome is no longer needed
refs DE-1334

Change-Id: I3fb5de6c396dc627813953b7cc31c7f40665b713
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/298395
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>
Build-Review: Aaron Ogata <aogata@instructure.com>
2022-08-15 14:19:35 +00:00
Ryan Hawkins 5fdaac076d Add GraphQL Post-Merge Schema Check
why:
- Schema checks ensure that any change to the Canvas GraphQL Schema
  don't impact existing queries as well as ensuring we don't break
  supergraph composition.
- We're starting with a post-merge build to see how common of an issue
  this is for now. We'll move it into the deploy and pre-merge steps
  once we're sure we like it.

flag=none

[canvas-builds-refspec=0e2b75ca09d79fe85fdb749b9288dabbbfc86012]
[change-merged]
[build-registry-path=jenkins/canvas-lms/interop-7174]

closes INTEROP-7174

test-plan:
- the simulated post-merge build reports to the appropriate Slack
  channel and we *don't* get a message about a schema check failure.
- we'll get eyes from devx and our SET to make sure everything looks
  A-OK.

Change-Id: Ibdb55c1f50d0ab71d809bb06a5f0d01a5b7fbc02
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296771
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
Product-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
2022-08-10 21:31:58 +00:00
Ryan Hawkins f412d1f65e Create generic alert Slack failure method
Creates a generic Slack failure for Jenkins. This is useful for newer
processes that need to customize where an error message might be sent
and whether or not the author of the failing patchset should be alerted.

refs INTEROP-7174

flag=none

test-plan:
- The current alerting methodology still works

Change-Id: I952548c2c3954028f63c2bfc9a23a8c4a3efd40b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296974
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
Product-Review: Ryan Hawkins <ryan.hawkins@instructure.com>
2022-08-10 21:31:43 +00:00
Aaron Ogata ed9f9d737f remove feature flag change notification experiment
refs DE-1273

Change-Id: I3f173051039248bff415362aeb09507ea8f95c26
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/296964
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
Product-Review: Ryan Norton <rnorton@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
2022-07-26 13:44:40 +00:00
Aaron Ogata 983bc779d3 allow node label to be overridden for testing
refs DE-1258

[canvas-builds-refspec=2b6856c05a90d298d5c25fb613233df9bc22af12]

Change-Id: Ic529fc5afce5a06c94a7efc71f8da01a55142c69
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/295032
Reviewed-by: Andrea Cirulli <andrea.cirulli@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>
2022-06-29 14:41:05 +00:00
Aaron Ogata d067991d90 only run crystalball for pre-merge builds
Change-Id: I9ec69ee0c8fc6616767e31d80259387a3d5bad36
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294605
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-06-23 14:28:00 +00:00
Aaron Ogata f7e92b4b52 remove rails boot requirement from JS job
Change-Id: I50f371c95f0f89dda05fd548ece3292fd7a63276
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294421
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-06-23 13:39:45 +00:00
Aaron Ogata 900a95b38b use single build container for post-docker build tasks
Change-Id: I18278c4449435bbd9e2acdfe42acf06bc9ec96d0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294518
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-06-23 13:25:29 +00:00
Ahmad Amireh f13c21ecd2 (i18n-js:2) rename i18n:generate to i18n:extract
refs FOO-2801
flag = none

this patch renames the rake task i18n:generate to i18n:extract to better
reflect what it does and to be consistent with the rest of the codebase

this might not be significant for 99% of users, but for maintainers who
deal with i18n code - i18nliner on ruby, i18nliner on js, i18n_tasks -
this particular Rake API is disorienting because everywhere in the code
the routine is referred to as "extraction" except for the api --
"i18n:generate", it's also compounded by the other api
"i18n:generate_js" which is significantly different in terms of logic,
so you always had to keep that in mind

now we have:

- i18n:extract - extract translations from all source code; Ruby, JS,
  Handlebars into a single YAML file with a tree structure
- i18n:generate_js - generate translation files for the JS *runtime*

~ test plan ~

you can still run i18n:extract and i18n:generate_js, and Jenkins runs
them too

Change-Id: I0216206b46c225e101dcd2112d9f84b773a84d04
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294207
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Ahmad Amireh <ahmad@instructure.com>
2022-06-22 18:53:09 +00:00
Aaron Ogata e7ec5c58b2 split junit uploads into separate job
refs DE-1221

Change-Id: If6cf07d702ac24a5ee9639e102e868005f305d74
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293763
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-06-13 15:40:57 +00:00
Aaron Ogata 338d1397a1 add duration string to noisy channel
refs DE-1207

Change-Id: Id06e646a6322fe5ec1d6e5a0e3cd58cb739f5ff0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293135
Reviewed-by: Andrea Cirulli <andrea.cirulli@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>
2022-06-02 19:29:18 +00:00
Aaron Ogata b728c44fa3 record more build timing metrics
refs DE-1207

Change-Id: Ifeda184cddabf24debbb56848ebd22dc4e9e7eeb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/292966
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-06-01 03:19:23 +00:00
Aaron Shafovaloff 4a9c56f531 Remove es-check
Test plan:
  - Automated tests pass

Refs EVAL-2485

flag=none

Change-Id: Ie199a30523379ce1bfaa6456542f8e5af0b3f5aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/292908
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
2022-05-31 17:21:47 +00:00
James Butters eb939193e2 only check locales changes for canvas-lms
flag = none

Change-Id: I33bc4af82d2e7db4cf067b86d941981cefefaba8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/291464
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2022-05-09 16:49:58 +00:00
Bobby Buten 1b3a8216ae optimize webpack linters build time
refs DE-938
flag=none

TEST PLAN:
  Confirm all builds still run successfully
  Confirm all webpack linter jobs still run
  Comfirm bundle sizes are appropriately reported

This task removes the webpack linter stage from premerge builds,
spreads the previous tasks around,
and adds a step to postmerge builds to track and report
webpack bundle sizes

Change-Id: I017876726ac0db6f099367b1ecfd086cfb726cf8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/289680
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
2022-04-27 16:07:10 +00:00
Aaron Ogata de5b4c851c no-op commit to test warmfix
Change-Id: I80798bc7a593e3bb2aed0e4a33d4eaaf06febd41
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/289832
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2022-04-18 19:57:53 +00:00
James Butters 00a1c9e9e6 only run Locales Only Changes stage for pre-merge
Change-Id: I44decd04cc35a179a69cc2951c106019b06bff15
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/289673
Reviewed-by: Bobby Buten <bobby.buten@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2022-04-14 13:15:27 +00:00