Commit Graph

742 Commits

Author SHA1 Message Date
Cody Cutrer 369501d8dc bundle update --bundler
Change-Id: Ic337ff6da406403f4d999cfef60d40227860f523
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/340413
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2024-02-14 22:30:21 +00:00
Isaac Moore c1c84b783a Add dynamodb container to contract tests
refs AE-554
flag=none

test plan:
- pact tests run and pass

Change-Id: I8b8d62b10a81d00ef3502462241239ba400cb8ac
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/340440
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-02-13 21:32:04 +00:00
Isaac Moore f94e732e51 Add CACHE_VERSION to WEBPACK_CACHE computation
This allows the webpack cache to be invalidated if needed.

Change-Id: Ie60d1c387f899eb3a53010ebbca361889341c184
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/340082
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: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
2024-02-09 00:56:26 +00:00
Aaron Shafovaloff 39191a3ccc replace JS_BUILD_NO_UGLIFY; enable sourcemaps in jenkins
closes CFA-47

Change-Id: I411e6189ac228d18eafb9d86c34763e396334bdd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/339121
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 Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-29 20:33:23 +00:00
Keith T. Garner ddf97e9d52 create web compose varient running puma/debug
In development its often useful to attach a debugger to the running
rails instance. This is a docker-compose override file that will switch
the web container to using puma directly instead of the default of
rails via passenger via nginx.

To use this file, add puma.override.yml after
docker-compose.override.yml in your COMPOSE_FILE environment variable
and rebuild your web container.

flag=none

Change-Id: I152ba49fa88db8d33f1223e8b809894a4a10775e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335727
QA-Review: Keith Garner <kgarner@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-25 20:06:31 +00:00
Isaac Moore 80e9be1b23 Use shared db for dynamo in Jenkins
This prevents the database from being access key-dependent.

refs AE-554
flag=none

test plan:
- build and specs still pass

Change-Id: Idc0c5e7949ea27bd56f787a937e83febf498a2f4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/338513
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: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
2024-01-24 15:34:21 +00:00
James Butters 79f6c79080 upgrade chromedriver to latest version 120
refs: DE-1673
Change-Id: I2dfc653740f9bdf679a52e2f57a873d9aa188336
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337715
QA-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2024-01-22 18:56:21 +00:00
Omar Gerardo Soto-Fortuño 6905503d29 Update bundler to 2.5.3 in Dockerfiles
flag=none

test plan:
  - Specs pass.
  - Make sure you can run canvas using docker
    with this new version of the bundler.
  - If you are using inst-cli, you can do:
      inst canvas clean
      inst canvas setup

qa risk: low

Change-Id: I259119d6ec09332480f0e110d22fa233c3ac1b7e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/338012
Reviewed-by: James Butters <jbutters@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2024-01-18 15:09:37 +00:00
Aaron Shafovaloff 1c4d77c850 remove --ignore-optional flag
I ended up needing to remove this with webpack -> rspack

Change-Id: I047c84b7355b89455f1df57a783dbcbfa5fd11a6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337968
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Build-Review: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-17 23:34:02 +00:00
Aaron Shafovaloff 980fd0a1c3 include jsx in istanbul and crystalball
Change-Id: Ia69aecbc8032896691128f2645d57e073cfbc336
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/337526
Reviewed-by: Jackson Huang <jackson.huang@instructure.com>
Reviewed-by: Samuel Lee <samuel.lee@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Build-Review: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-01-12 22:23:37 +00:00
Aaron Shafovaloff 81b9e57bfe use static list of feature bundles
better for static analysis of the frontend

also helps gives visibility to what we need to move to
ui/boot/initializers/router.tsx

test plan:
  - tests pass

flag=none

Change-Id: I8ff04a7449293abcb54379ce4d5a51fcbe312ae3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/335975
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Josh Wilson <josh.wilson@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: James Butters <jbutters@instructure.com>
2024-01-02 21:36:09 +00:00
Dustin Cowles 1bcb60ae9e add git core ppa to Dockerfile
closes QUIZ-12806
flag=none

Test plan:
- Specs Pass
- Canvas container builds and runs
- Git at latest version (currently 2.42.0)

Change-Id: Ib63e5634c9287114f060262761e0d700b6aa09e2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332978
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: Dustin Cowles <dustin.cowles@instructure.com>
Product-Review: Stephen Kacsmark <skacsmark@instructure.com>
2023-11-28 19:27:22 +00:00
Jackson Howe b6d0fde831 Give s3 translations precedence in package-translations
closes LF-994
flag = none

Test plan:
 - wait for the package-translations job to run
 - make sure the resulting commit has complete translation sets for
   vi, th, sv, and ru (these were the only locales with translations
   in both s3 and transifex; other locales should not be affected as
   they were only present in a single source)

Change-Id: Ia78c006fe30290256813938c7a87d2c7d9cdb116
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/332518
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2023-11-10 18:33:32 +00:00
Cody Cutrer bd0097b762 bundle update --bundler
Change-Id: I20dc6723943fc442865dad2fb68d512d7b98459a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328959
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: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-09-29 15:42:35 +00:00
Cody Cutrer 17ec5d8498 Lint -2 when _any_ pin-commit- flag is used
Change-Id: Ia95c2f4034c3e4af8a5147cf99105abc0f12268c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/328633
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-09-27 15:38:29 +00:00
Cody Cutrer 450d78155b switch to extracted bundler-multilock gem
well, somewhat. it's vendored for now, bugfixes and improvements
have been going into that gem, and we'd like those fixes in
Canvas.

Change-Id: Ib4f30926acddb364779b9f91b1ee129ba6b17ff0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327463
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-09-18 21:25:15 +00:00
Jacob Burroughs 2f611b1765 Upgrade to node 18
refs AE-485

Change-Id: I32fe1a73dbed1b625a744efb47ca349ac6776035
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327039
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-09-11 17:28:59 +00:00
Andrea Cirulli b75528cc31 update snyk org
[canvas-builds-refspec=8f775a14385cfd426592eecdd14d0226f3cac9d1]
[build-registry-path=jenkins/canvas-lms-snyk-test]
[change-merged]

Change-Id: I4b33786da4dc0a03c4638931df0a03c54950c72b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/327107
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-09-07 21:53:59 +00:00
jake.oeding 0f5c22ae81 update npm version in dockerfiles
fixes error during build

Change-Id: I319634a1988d05bb29f19dee6b8a994e6814d6d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/326773
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: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-09-01 15:20:08 +00:00
Aaron Ogata 23f4805460 use new node setup incantation
Change-Id: I799dc922a081745102d876189e4da56ed0a2533c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/326546
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Build-Review: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
2023-08-31 14:58:08 +00:00
Cody Cutrer f4c34f6393 bundle update --bundler
also, don't set BUNDLER_VERSION env var in Docker, so that
bundler's auto-install-and-restart-with-the-correct-version
feature can work

Change-Id: I8e3722197fb3598b5c40679d997f19b3b3957ea8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/326580
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-08-30 23:31:39 +00:00
jake.oeding fa6c005751 add ENV linter for RCE package changes
Since the RCE can be and is consumed outside
of the Canvas monolith, ENV references pose a
problem because they don't work outside of Canvas.

closes LF-539
flag=none
qa risk: low

test plan:
-look at the past patchsets and you can see
 it fails if you add ENV references in the RCE,
 and that it doesn't fail ENV references in
 the ui folder

Change-Id: Ic7a7c58550ffff22477bd2d8ea7759d0a8b4d5ac
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323549
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
2023-08-02 13:42:44 +00:00
Cody Cutrer aa7041d2c1 update rubocop, and apply new cops
[skip-stages=Flakey]

Change-Id: I2d3ffbeb652a6668941125a8a2afe87f104c8d0a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/321953
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
Build-Review: Jacob Burroughs <jburroughs@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Jacob Burroughs <jburroughs@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-07-03 22:11:42 +00:00
Cody Cutrer b636c1c041 add a bundler binstub
refs AE-297

and also include binstubs in the path in docker

this will help ensure people are running the correct version of bundler

Change-Id: I68e7f6a43efd89ff257a9307aa4f6709acef05f8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318776
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-05-30 17:34:50 +00:00
James Butters 3cdb548d6a bump ruby to 3.1.x for Jenkins and local dev
[canvas-builds-refspec=44e26dfa9b10224d86ee3f9583eefa49b5a7a39f]
[ruby=3.1]

closes: DE-1627

Change-Id: Idb7e131252223a3eaa00ec5375d385e2f17f08ec
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318548
Reviewed-by: Jacob Burroughs <jburroughs@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-19 12:13:42 +00:00
Cody Cutrer 1c15214a63 keep lockfiles in sync as part of `bundle` commands
closes AE-283

this eliminates script/sync_lockfiles.rb and integrates its
functionality directly into `bundle install`, `bundle check`, etc.
it also generalizes a few pieces so that the same approach is used
for all use cases:
 * syncing versions between the main Gemfile and gems in gems/
 * maintaining separate lockfiles for no plugins/including
   private plugins
 * maintaining separate lockfiles for multiple Rails versions
   (crossed with the previous bullet)

The differences between them are just small variations on how strict
versions must match between lockfiles, and requiring pinning of
versions not in the default lockfile.

For full details, checks the docs on BundlerLockfileExtensions

This does change the strategy for filtering private plugin dependencies
out of the committed lockfile(s) - instead of filtering based on hash
of source, simply don't even include private plugin gems in the gemfile
when building the filtered lockfile (i.e. dynamic Gemfile, rather than
monkeypatching bundler to filter out -- semi-succesfully -- private
plugins from the Definition).

It also changes the "default" lockfile for Canvas that gets checked
in to be Gemfile.lock, so that other tools that are not
multi-lockfile aware can find it (such as rubocop, dependabot, and
others). This will be the lockfile corresponding to the current
default rails version for Canvas, and without private plugins.

Change-Id: I7ba398381974acbc4445f34fa3b788e8a07c5ce6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317888
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-05-16 18:39:21 +00:00
Cody Cutrer 64c4308714 commit lockfiles for sub-gems
still need to ensure gem dependencies are consistent, but this should
prevent unexpected breakage during tests

Change-Id: I39420479fd3fe4f7e49a12a418eca033fcdc7564
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314979
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-04-14 14:07:43 +00:00
Cody Cutrer b2b0bff902 rubocop: Style/TernaryParentheses, Style/RedundantParentheses
[skip-stages=Flakey]

Change-Id: I8d860eedd8b199ed3adf0e2bf9162b43096c5347
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315130
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-04-12 14:56:48 +00:00
Cody Cutrer a5ed8666f4 rubocop: Style/FileRead, Style/FileWrite
Change-Id: I9b8196a100f3b10f9146cdd18fa0a859ea665cb0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315161
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Build-Review: Cody Cutrer <cody@instructure.com>
2023-04-10 20:57:32 +00:00
Cody Cutrer b7f79cd73e remove parallel_tests gem
we use rspecq

Change-Id: I0b9c6027b9d33f82348d59b16ca440574583f407
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315508
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: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2023-04-10 15:16:59 +00:00
Aaron Ogata ee562abf60 add base-runner selected tag labels to each image
refs DE-1491

Test Plan
1. The new label appears on each produced image for a completely fresh build
2. The new label appears on each produced image for a build with ruby-runner cached
3. The new label appears on each produced image for a build with yarn-runner cached
4. The new label appears on each produced image for a build with webpack-builder cached
5. The new label appears on each produced image for a build with webpack-assets cached

[build-registry-path=jenkins/canvas-lms/de-1491/base-runner]
[change-merged]

Change-Id: I7aab0dc7af43127b1564cdac28aff198a28d5c08
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315231
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-04-05 18:25:37 +00:00
Jacob Burroughs 9a9fdf3a65 Remove auditor cassandra support
Also remove the engine experiment, because that never really went
anywhere for canvas and was just one more "different" thing

[fsc-max-nodes=15]
[fsc-timeout=45]

Change-Id: Ib990deb94bf5e25d587d554f64c535c9b96cce26
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314469
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
Migration-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Jacob Burroughs <jburroughs@instructure.com>
Product-Review: Jacob Burroughs <jburroughs@instructure.com>
2023-04-03 15:40:22 +00:00
Ed Schiebel f190dcd1d4 package-translations update
The package-translations build would fail to commit the changes resulting
from `yarn wsrun installTranslations`. I believe this was caused by wsrun
starting multiple jobs in parallel and git would fail.

While I'm not 100% sure this completely fixes the issues we were having,
this makes it better.

refs MAT-1178
flag=none

test plan: n/a

Change-Id: I333a1de8fdf6dc97e69fa0072d343a2ac2d7b553
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314059
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-23 15:14:24 +00:00
James Butters 578e3b1bdb ARG Ruby in Dockerfile is not getting used
When building the canvas web container, references to the arg RUBY
are not set resulting in unexpected file paths. For example
GEM_HOME only creates /home/docker/.gem/ when we expected it to
create /hom/docker/.gem/2.7 by default. We need to add another
reference to the ARG RUBY after the FROM.

According to Docker: An ARG declared before a FROM is outside of a
build stage, so it can’t be used in any instruction after a FROM.
To use the default value of an ARG declared before the first FROM
use an ARG instruction without a value inside of a build stage
https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

Test Plan:
-run `docker compose build web`
  -bash into the web container
  -echo $GEM_HOME
    -path is set to /home/docker/.gem/2.7
-run `docker compose build --build-arg RUBY=3.1 web`
  -bash into the web container
  -echo $GEM_HOME
    -path is set to /home/docker/.gem/3.1

Change-Id: I4856a8ffff3debe9deac3f3fb511d13735f41fea
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314062
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-03-23 14:46:08 +00:00
Aaron Ogata a4a9ebd6a2 always run migrations when switchman override is present
refs AE-177

Change-Id: Ia5e483a03208c042a9e498f8ccb047edc006b69a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314055
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>
2023-03-23 13:52:52 +00:00
Ed Schiebel d92010a746 Try to get new translations committed
- git add sub-package translations explicitely

closes MAT-1178
flag=none

test plan:  n/a

Change-Id: I413c1454f402bb7677b5216652b52380cea09b5e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313996
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-22 23:10:15 +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 32e454884a remove remaining use cases of configuration.getString()
refs DE-1359

Change-Id: Ib0680f9e97ce833aa6fdae0f7e4ae950bbcc89a2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313481
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-16 18:06:15 +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 36f5ed865b remove redundant skip-cache flag
refs DE-1359

The right way to force migrations to re-run is to use the flags: change-merged and build-registry-path. This is a holdover from when those flags didn’t exist.

Change-Id: I0f50c2c86bb9af8e67afb1c795b3c23674e97dc6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313266
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:53:36 +00:00
Aaron Ogata 80a5f8fc5d replace checkoutRepo with checkoutFromGit
refs DE-1559

[canvas-builds-refspec=4e6cb119dedfbcbeea5045e2cc77754a568088cd]

Change-Id: Iff0c62d0ea6da2359b786a474d7ab735a16c2dde
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313117
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-13 21:17:18 +00:00
Aaron Ogata 29193c6ec0 improve UX around Jenkinsfile error
refs DE-1528

Change-Id: Id46cf7f54a944ca7a5b674c05fd6cc8ef9437074
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311328
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Alex Slaughter <aslaughter@instructure.com>
Product-Review: Alex Slaughter <aslaughter@instructure.com>
Build-Review: Alex Slaughter <aslaughter@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
2023-03-13 17:36:17 +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
Andrea Cirulli 1017c1469e Revert "pin snyk to 1.1100.0"
[change-merged]
[build-registry-path=jenkins/canvas-lms/snyk1103]

This reverts commit 830112257c.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I9f0cae8f6adf0a2d834f2c97d9fb5cb1c7701c88
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310317
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-02-13 20:04:48 +00:00
Andrea Cirulli 830112257c pin snyk to 1.1100.0
[change-merged]
[build-registry-path=jenkins/canvas-lms/snyk1100]

Change-Id: I22664b9042f1fd6e662b5150ca16a704ef5217f0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/310971
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
2023-02-13 18:30:00 +00:00