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>
This commit is contained in:
Cody Cutrer 2023-04-10 08:14:01 -06:00
parent bac9b409c1
commit b7f79cd73e
5 changed files with 0 additions and 45 deletions

View File

@ -53,7 +53,6 @@ group :test do
gem "database_cleaner", "~> 2.0"
gem "json-schema", "~> 2.8.1"
gem "parallel_tests", "~> 4.2"
gem "rspecq", github: "kyler-instructure/rspecq", ref: "8cea6a3225cf0856a26c6c6b93a5ea5605082aa0"
gem "flakey_spec_catcher", "~> 0.12", require: false
gem "factory_bot", "6.2.1", require: false

View File

@ -825,8 +825,6 @@ GEM
term-ansicolor (~> 1.7)
thor (>= 0.20, < 2.0)
parallel (1.22.0)
parallel_tests (4.2.0)
parallel
parser (3.2.0.0)
ast (~> 2.4.1)
parslet (2.0.0)
@ -1323,7 +1321,6 @@ DEPENDENCIES
pact_broker-client (~> 1.66)
paginated_collection!
parallel (= 1.22.0)
parallel_tests (~> 4.2)
pdf-reader (= 2.5.0)
pg (= 1.4.5)
pg_query (= 2.2.0)

View File

@ -1,10 +0,0 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require 'bundler/setup'
load Gem.bin_path('parallel_tests', 'parallel_rspec')

View File

@ -1,27 +0,0 @@
#!/bin/bash
set -o nounset -o errexit -o errtrace -o pipefail -o xtrace
# required script parameters
parallel_index=$1
only_failures=${2-}
# calculate which group to run
max=$((CI_NODE_TOTAL * RSPEC_PROCESSES))
group=$(((max-CI_NODE_TOTAL * $parallel_index) - CI_NODE_INDEX))
maybeOnlyFailures=()
if [ "${only_failures}" = 'only-failures' ] && [ ! "${RSPEC_LOG:-}" == "1" ]; then
maybeOnlyFailures=("--test-options" "'--only-failures'")
fi
# we want actual globbing of individual elements for passing argument literals
# shellcheck disable=SC2068
PARALLEL_INDEX=$parallel_index RAILS_DB_NAME_TEST="canvas_test_$parallel_index" bin/parallel_rspec . \
--pattern "$TEST_PATTERN" \
--exclude-pattern "$EXCLUDE_TESTS" \
-n "$max" \
--only-group "$group" \
--verbose \
--group-by runtime \
--runtime-log log/parallel-runtime-rspec.log \
${maybeOnlyFailures[@]}

View File

@ -24,10 +24,6 @@ while true; do
else
if [ $1 ] && [ $1 = 'performance' ]; then
commands+=("docker-compose exec -T canvas bundle exec rspec --options spec/spec.opts spec/selenium/performance/ --failure-exit-code 99")
else
for i in $(seq 0 $PROCESSES); do
commands+=("build/new-jenkins/rspec-tests.sh $i")
done
fi
fi