diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 15:09:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-12 15:09:02 +0300 |
commit | 49d26b2348f2eb9e345eb1f66214678f42f15dd3 (patch) | |
tree | e68c6c2e50aae17d37a4d5508613b3d93627a5e2 /scripts | |
parent | 7f5e08060f261a63ebf5058a95419da66928173a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/flaky_examples/detect-new-flaky-examples | 1 | ||||
-rwxr-xr-x | scripts/flaky_examples/prune-old-flaky-examples | 1 | ||||
-rwxr-xr-x | scripts/gather-test-memory-data | 1 | ||||
-rwxr-xr-x | scripts/generate-gems-memory-metrics-static | 1 | ||||
-rwxr-xr-x | scripts/generate-gems-size-metrics-static | 1 | ||||
-rwxr-xr-x | scripts/generate-memory-metrics-on-boot | 1 | ||||
-rwxr-xr-x | scripts/generate-test-mapping | 1 | ||||
-rwxr-xr-x | scripts/gitaly-test-build | 1 | ||||
-rwxr-xr-x | scripts/gitaly-test-spawn | 1 | ||||
-rw-r--r-- | scripts/gitaly_test.rb | 4 | ||||
-rwxr-xr-x | scripts/insert-rspec-profiling-data | 1 | ||||
-rwxr-xr-x | scripts/lint-rugged | 1 | ||||
-rwxr-xr-x | scripts/merge-html-reports | 1 | ||||
-rwxr-xr-x | scripts/merge-reports | 1 | ||||
-rwxr-xr-x | scripts/merge-simplecov | 1 | ||||
-rwxr-xr-x | scripts/no-ee-check | 2 | ||||
-rwxr-xr-x | scripts/pack-test-mapping | 1 | ||||
-rwxr-xr-x | scripts/static-analysis | 1 | ||||
-rwxr-xr-x | scripts/sync-reports | 1 | ||||
-rwxr-xr-x | scripts/unpack-test-mapping | 1 | ||||
-rwxr-xr-x | scripts/update-feature-categories | 1 | ||||
-rwxr-xr-x | scripts/used-feature-flags | 1 | ||||
-rwxr-xr-x | scripts/verify-tff-mapping | 1 |
23 files changed, 26 insertions, 1 deletions
diff --git a/scripts/flaky_examples/detect-new-flaky-examples b/scripts/flaky_examples/detect-new-flaky-examples index 3bee4f9a34b..4805c5054a5 100755 --- a/scripts/flaky_examples/detect-new-flaky-examples +++ b/scripts/flaky_examples/detect-new-flaky-examples @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'json' diff --git a/scripts/flaky_examples/prune-old-flaky-examples b/scripts/flaky_examples/prune-old-flaky-examples index 4df49c6d8fa..8c09c4cc860 100755 --- a/scripts/flaky_examples/prune-old-flaky-examples +++ b/scripts/flaky_examples/prune-old-flaky-examples @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # lib/rspec_flaky/flaky_examples_collection.rb is requiring # `active_support/hash_with_indifferent_access`, and we install the `activesupport` diff --git a/scripts/gather-test-memory-data b/scripts/gather-test-memory-data index 9992a83e6a6..3156365ac19 100755 --- a/scripts/gather-test-memory-data +++ b/scripts/gather-test-memory-data @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'csv' diff --git a/scripts/generate-gems-memory-metrics-static b/scripts/generate-gems-memory-metrics-static index aa7ce3615bf..42191f078f1 100755 --- a/scripts/generate-gems-memory-metrics-static +++ b/scripts/generate-gems-memory-metrics-static @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true abort "usage: #{__FILE__} <memory_bundle_objects_file_name>" unless ARGV.length == 1 memory_bundle_objects_file_name = ARGV.first diff --git a/scripts/generate-gems-size-metrics-static b/scripts/generate-gems-size-metrics-static index ceec8aaccf1..2406e720916 100755 --- a/scripts/generate-gems-size-metrics-static +++ b/scripts/generate-gems-size-metrics-static @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1 memory_bundle_mem_file_name = ARGV.first diff --git a/scripts/generate-memory-metrics-on-boot b/scripts/generate-memory-metrics-on-boot index 5197a8fcdcd..945661aa057 100755 --- a/scripts/generate-memory-metrics-on-boot +++ b/scripts/generate-memory-metrics-on-boot @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1 memory_bundle_mem_file_name = ARGV.first diff --git a/scripts/generate-test-mapping b/scripts/generate-test-mapping index eabe6a5b513..c4d0dfea4d8 100755 --- a/scripts/generate-test-mapping +++ b/scripts/generate-test-mapping @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'json' require_relative '../tooling/lib/tooling/test_map_generator' diff --git a/scripts/gitaly-test-build b/scripts/gitaly-test-build index 62d3dbda911..bb561e2906a 100755 --- a/scripts/gitaly-test-build +++ b/scripts/gitaly-test-build @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'fileutils' diff --git a/scripts/gitaly-test-spawn b/scripts/gitaly-test-spawn index caa41a9a0c3..8547d0b13e4 100755 --- a/scripts/gitaly-test-spawn +++ b/scripts/gitaly-test-spawn @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # This script is used both in CI and in local development 'rspec' runs. diff --git a/scripts/gitaly_test.rb b/scripts/gitaly_test.rb index c7b3f72d590..2262870eb96 100644 --- a/scripts/gitaly_test.rb +++ b/scripts/gitaly_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file contains environment settings for gitaly when it's running # as part of the gitlab-ce/ee test suite. # @@ -52,7 +54,7 @@ module GitalyTest if ENV['CI'] bundle_path = File.expand_path('../vendor/gitaly-ruby', __dir__) - env_hash['BUNDLE_FLAGS'] << " --path=#{bundle_path}" + env_hash['BUNDLE_FLAGS'] += " --path=#{bundle_path}" end env_hash diff --git a/scripts/insert-rspec-profiling-data b/scripts/insert-rspec-profiling-data index 3af5fe763a2..b2011858558 100755 --- a/scripts/insert-rspec-profiling-data +++ b/scripts/insert-rspec-profiling-data @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'csv' require 'rspec_profiling' diff --git a/scripts/lint-rugged b/scripts/lint-rugged index d7af5499e1c..038fd5199c2 100755 --- a/scripts/lint-rugged +++ b/scripts/lint-rugged @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true ALLOWED = [ # https://gitlab.com/gitlab-org/gitaly/issues/760 diff --git a/scripts/merge-html-reports b/scripts/merge-html-reports index 7d1e15186c8..de300851990 100755 --- a/scripts/merge-html-reports +++ b/scripts/merge-html-reports @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'nokogiri' diff --git a/scripts/merge-reports b/scripts/merge-reports index 3a421f1f1fc..a1164495f2f 100755 --- a/scripts/merge-reports +++ b/scripts/merge-reports @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'json' diff --git a/scripts/merge-simplecov b/scripts/merge-simplecov index c00dae81c4d..38dd2dfe2e9 100755 --- a/scripts/merge-simplecov +++ b/scripts/merge-simplecov @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require_relative '../spec/simplecov_env' SimpleCovEnv.configure_profile diff --git a/scripts/no-ee-check b/scripts/no-ee-check index 29d319dc822..a878a4424e9 100755 --- a/scripts/no-ee-check +++ b/scripts/no-ee-check @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + ee_path = File.join(File.expand_path(__dir__), '../ee') if Dir.exist?(ee_path) diff --git a/scripts/pack-test-mapping b/scripts/pack-test-mapping index 58ace3eca67..b5148cd1882 100755 --- a/scripts/pack-test-mapping +++ b/scripts/pack-test-mapping @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'json' require_relative '../tooling/lib/tooling/test_map_packer' diff --git a/scripts/static-analysis b/scripts/static-analysis index 9103a9c14af..febfdbd1da4 100755 --- a/scripts/static-analysis +++ b/scripts/static-analysis @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true # We don't have auto-loading here require_relative '../lib/gitlab' diff --git a/scripts/sync-reports b/scripts/sync-reports index 5ed65e78005..73afd276e6c 100755 --- a/scripts/sync-reports +++ b/scripts/sync-reports @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'rubygems' require 'fog/aws' diff --git a/scripts/unpack-test-mapping b/scripts/unpack-test-mapping index c0f706c3f9f..7176f9cecea 100755 --- a/scripts/unpack-test-mapping +++ b/scripts/unpack-test-mapping @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'json' require_relative '../tooling/lib/tooling/test_map_packer' diff --git a/scripts/update-feature-categories b/scripts/update-feature-categories index ed5d8dccdd6..88520b9f95f 100755 --- a/scripts/update-feature-categories +++ b/scripts/update-feature-categories @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'uri' require 'net/http' diff --git a/scripts/used-feature-flags b/scripts/used-feature-flags index 7ef3dbafd36..aebd007dda9 100755 --- a/scripts/used-feature-flags +++ b/scripts/used-feature-flags @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'set' diff --git a/scripts/verify-tff-mapping b/scripts/verify-tff-mapping index 8bf25ea3b5f..9931e14008a 100755 --- a/scripts/verify-tff-mapping +++ b/scripts/verify-tff-mapping @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require 'set' |