gitlab-test-balancing 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 375d785c08af55c1e66d134855e4410bd97664f628638d32619e33ab837ce669
4
- data.tar.gz: ebb9818c89abca6fbc0f2e9a74a0941d3734f346e55f2380506f73b7111f9cc9
3
+ metadata.gz: dc6aeb2e8bf9c28515bd8469cfe1c3308b22518693fe385f953531f7fd783b1a
4
+ data.tar.gz: b771e9503e57e627cb188e912f2027e15c591f3bae0aa255b172462185a4680f
5
5
  SHA512:
6
- metadata.gz: 9ba2af75e6fdcca74d2af6dc0080d7fe0c4b397ad48f29bb01483a614a6b315e1dbda48aa8be0fd5a4852810f795f5d8417c7a451b69a281a9e01946a850d467
7
- data.tar.gz: 4ec4d7171254f391015124792663fc8235bd56055c67d0a3a8b16f19f881e0283ad65afd398c3f955d38af5d2133cd94b63264ec8d4e4ebc3a8f2c5d9a904d94
6
+ metadata.gz: 8ae1037a19fc41afd5f023f422546558375f853d3556a0e568b595381795b89c0851a817f33623610ce2ccfab690befa83133cd0ae48c388353b34dcb8a77fda
7
+ data.tar.gz: 4f880e6b02da673220e4847b3ec53b1607ec7f9f99f01300b72dd0082423916a9a18f65beed3be372be487af5f971da84664cbd611ebfe6e7312b348b0d92647
@@ -99,12 +99,13 @@ module Gitlab
99
99
  end
100
100
 
101
101
  # Sorted, so that every node computes the same split. Without a leading ./,
102
- # like the durations report's paths.
102
+ # like the durations report's paths. Unique, because a pattern such as
103
+ # `spec/**{,/*/**}/*_spec.rb` matches a file more than once.
103
104
  def files
104
105
  @files ||= (given_files || Dir.glob(env.fetch('TEST_BALANCING_PATTERN', DEFAULT_PATTERN)).reject do |path|
105
106
  exclude = env['TEST_BALANCING_EXCLUDE_PATTERN']
106
107
  exclude && File.fnmatch?(exclude, path, File::FNM_PATHNAME | File::FNM_EXTGLOB)
107
- end).map { |path| path.delete_prefix('./') }.sort
108
+ end).map { |path| path.delete_prefix('./') }.uniq.sort
108
109
  end
109
110
 
110
111
  # Files missing from the report get the median, so they aren't treated as the
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module TestBalancing
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-test-balancing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Engineers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-18 00:00:00.000000000 Z
11
+ date: 2026-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-styles