rspec_trunk_flaky_tests 0.7.10.pre.alpha.1-x86_64-linux → 0.8.0-x86_64-linux
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 +4 -4
 - data/lib/context_ruby/3.0/context_ruby.so +0 -0
 - data/lib/context_ruby/3.1/context_ruby.so +0 -0
 - data/lib/context_ruby/3.2/context_ruby.so +0 -0
 - data/lib/context_ruby/3.3/context_ruby.so +0 -0
 - data/lib/context_ruby/3.4/context_ruby.so +0 -0
 - data/lib/trunk_spec_helper.rb +17 -12
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6b7f94410f8cf2a15e9adcbab1901d3f86a02af583e4331c561e9f5d4b3cb0de
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: dd968f676e5556bf2a88df8c7b11dc5008ea3bd1b1ad4599d70347ab3b4ac1d2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f4c2bb1ca256e22dd8f82579c99ee32328d338e16ba6e80506dab34a3331f275e9140f4acda8a91b4d3281d80eddf1eef9af8e944558b6b4826e77916febdb3e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: e6ebadf4219bddcc5bc9847565e88b1deee4b2d57de005b24c495f8702cdc353d4d53438f749bb6762bc84e64102b57f0be4227e24305ea2ede5f51dcdf7eb7d
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/lib/trunk_spec_helper.rb
    CHANGED
    
    | 
         @@ -45,7 +45,7 @@ module RSpec 
     | 
|
| 
       45 
45 
     | 
    
         
             
                  # RSpec uses the existance of an exception to determine if the test failed
         
     | 
| 
       46 
46 
     | 
    
         
             
                  # We need to override this to allow us to capture the exception and then
         
     | 
| 
       47 
47 
     | 
    
         
             
                  # decide if we want to fail the test or not
         
     | 
| 
       48 
     | 
    
         
            -
                  # trunk-ignore(rubocop/ 
     | 
| 
      
 48 
     | 
    
         
            +
                  # trunk-ignore(rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength,rubocop/Naming/AccessorMethodName)
         
     | 
| 
       49 
49 
     | 
    
         
             
                  def set_exception(exception)
         
     | 
| 
       50 
50 
     | 
    
         
             
                    return set_exception_core(exception) if metadata[:pending]
         
     | 
| 
       51 
51 
     | 
    
         
             
                    return set_exception_core(exception) if trunk_disabled
         
     | 
| 
         @@ -139,21 +139,26 @@ class TrunkAnalyticsListener 
     | 
|
| 
       139 
139 
     | 
    
         
             
                add_test_case(notification.example)
         
     | 
| 
       140 
140 
     | 
    
         
             
              end
         
     | 
| 
       141 
141 
     | 
    
         | 
| 
       142 
     | 
    
         
            -
              # trunk-ignore(rubocop/Metrics/ 
     | 
| 
      
 142 
     | 
    
         
            +
              # trunk-ignore(rubocop/Metrics/MethodLength)
         
     | 
| 
       143 
143 
     | 
    
         
             
              def close(_notification)
         
     | 
| 
       144 
     | 
    
         
            -
                 
     | 
| 
       145 
     | 
    
         
            -
             
     | 
| 
       146 
     | 
    
         
            -
                   
     | 
| 
       147 
     | 
    
         
            -
             
     | 
| 
       148 
     | 
    
         
            -
                   
     | 
| 
       149 
     | 
    
         
            -
             
     | 
| 
       150 
     | 
    
         
            -
                   
     | 
| 
       151 
     | 
    
         
            -
                 
     | 
| 
       152 
     | 
    
         
            -
                   
     | 
| 
      
 144 
     | 
    
         
            +
                if ENV['TRUNK_LOCAL_UPLOAD_DIR']
         
     | 
| 
      
 145 
     | 
    
         
            +
                  saved = @testreport.try_save(ENV['TRUNK_LOCAL_UPLOAD_DIR'])
         
     | 
| 
      
 146 
     | 
    
         
            +
                  if saved
         
     | 
| 
      
 147 
     | 
    
         
            +
                    puts 'Local Flaky tests report generated'.green
         
     | 
| 
      
 148 
     | 
    
         
            +
                  else
         
     | 
| 
      
 149 
     | 
    
         
            +
                    puts 'Failed to generate local flaky tests report'.red
         
     | 
| 
      
 150 
     | 
    
         
            +
                  end
         
     | 
| 
      
 151 
     | 
    
         
            +
                else
         
     | 
| 
      
 152 
     | 
    
         
            +
                  published = @testreport.publish
         
     | 
| 
      
 153 
     | 
    
         
            +
                  if published
         
     | 
| 
      
 154 
     | 
    
         
            +
                    puts 'Flaky tests report upload complete'.green
         
     | 
| 
      
 155 
     | 
    
         
            +
                  else
         
     | 
| 
      
 156 
     | 
    
         
            +
                    puts 'Failed to publish flaky tests report'.red
         
     | 
| 
      
 157 
     | 
    
         
            +
                  end
         
     | 
| 
       153 
158 
     | 
    
         
             
                end
         
     | 
| 
       154 
159 
     | 
    
         
             
              end
         
     | 
| 
       155 
160 
     | 
    
         | 
| 
       156 
     | 
    
         
            -
              # trunk-ignore(rubocop/Metrics/ 
     | 
| 
      
 161 
     | 
    
         
            +
              # trunk-ignore(rubocop/Metrics/CyclomaticComplexity,rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength)
         
     | 
| 
       157 
162 
     | 
    
         
             
              def add_test_case(example)
         
     | 
| 
       158 
163 
     | 
    
         
             
                failure_message = example.exception.to_s if example.exception
         
     | 
| 
       159 
164 
     | 
    
         
             
                failure_message = example.metadata[:quarantined_exception].to_s if example.metadata[:quarantined_exception]
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rspec_trunk_flaky_tests
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.8.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86_64-linux
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Trunk Technologies, Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2025-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-05-11 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rspec-core
         
     |