origen 0.60.2 → 0.60.6

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: 0f10a2c8c7cf5abff32c00fece98aa0e4cc190c88866d20213fa6b269ee4d925
4
- data.tar.gz: d57c008c8af34d344cf2355a05e536299c482aca8d638669719d2f9bc46abd47
3
+ metadata.gz: 7a8de77b7e1b7c8c36dbfbe4c09cfed6abf1fd1d508d915f2b06af3c62595fac
4
+ data.tar.gz: 13f365bc2529ba358d79bc281442190f4f41c723fa10d533badd4b349f476ea7
5
5
  SHA512:
6
- metadata.gz: f1ebeae4bbf56385a85ffbc2d7f2801059403b2aac4fa29475600639e38a88ff52c328b3f668094a08f90d7b1e246c9c481f2bc9b0c60475d3e1b12de8c3321f
7
- data.tar.gz: 8b38ef3948bd4d384b76d0db2ca0099122d47a6a95aff262fb34ab812f2d1b7f18169517c3c11bdd16f727be023095c3b45a2956dfb8d4501687fd8f4838f779
6
+ metadata.gz: fec7b03350e86093b6733a2f870df766110489fa54bae7868d0d761b6a61811945f5483e4f57be963a0a3f4832dfef58abb924b85050da460e1b853ea5887192
7
+ data.tar.gz: 7cc42194880ba198e6e5dfa0b14321a96a6fcc83ad87c83b25fc0d5a0c759c90bfd20135fcebbf4362ebd785905d19da1deb532df9a4aac22badbb9f5918cb15
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 60
4
- BUGFIX = 2
4
+ BUGFIX = 6
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -253,6 +253,16 @@ module Origen
253
253
 
254
254
  # Build the log file from the completed jobs
255
255
  def build_log(options = {})
256
+ @completed_patterns = 0
257
+ @total_vectors = 0
258
+ @total_duration = 0
259
+ @completed_files = 0
260
+ @changed_patterns = 0
261
+ @changed_files = 0
262
+ @new_patterns = 0
263
+ @new_files = 0
264
+ @failed_patterns = 0
265
+ @failed_files = 0
256
266
  log_method = options[:log_file] ? options[:log_file] : :info
257
267
  Origen.log.send(log_method, '*' * 70)
258
268
  completed_jobs.each do |job|
@@ -271,25 +281,25 @@ module Origen
271
281
  begin
272
282
  line.gsub!(/\e\[\d+m/, '') # Remove any coloring
273
283
  if line =~ /Total patterns:\s+(\d+)/
274
- stats.completed_patterns += Regexp.last_match[1].to_i
284
+ @completed_patterns = Regexp.last_match[1].to_i
275
285
  elsif line =~ /Total vectors:\s+(\d+)/
276
- stats.total_vectors += Regexp.last_match[1].to_i
286
+ @total_vectors = Regexp.last_match[1].to_i
277
287
  elsif line =~ /Total duration:\s+(\d+\.\d+)/
278
- stats.total_duration += Regexp.last_match[1].to_f
288
+ @total_duration = Regexp.last_match[1].to_f
279
289
  elsif line =~ /Total files:\s+(\d+)/
280
- stats.completed_files += Regexp.last_match[1].to_i
290
+ @completed_files = Regexp.last_match[1].to_i
281
291
  elsif line =~ /Changed patterns:\s+(\d+)/
282
- stats.changed_patterns += Regexp.last_match[1].to_i
292
+ @changed_patterns = Regexp.last_match[1].to_i
283
293
  elsif line =~ /Changed files:\s+(\d+)/
284
- stats.changed_files += Regexp.last_match[1].to_i
294
+ @changed_files = Regexp.last_match[1].to_i
285
295
  elsif line =~ /New patterns:\s+(\d+)/
286
- stats.new_patterns += Regexp.last_match[1].to_i
296
+ @new_patterns = Regexp.last_match[1].to_i
287
297
  elsif line =~ /New files:\s+(\d+)/
288
- stats.new_files += Regexp.last_match[1].to_i
298
+ @new_files = Regexp.last_match[1].to_i
289
299
  elsif line =~ /FAILED patterns:\s+(\d+)/
290
- stats.failed_patterns += Regexp.last_match[1].to_i
300
+ @failed_patterns = Regexp.last_match[1].to_i
291
301
  elsif line =~ /FAILED files:\s+(\d+)/
292
- stats.failed_files += Regexp.last_match[1].to_i
302
+ @failed_files = Regexp.last_match[1].to_i
293
303
  elsif line =~ /ERROR!/
294
304
  stats.errors += 1
295
305
  Origen.log.send :relog, line, options
@@ -318,6 +328,16 @@ module Origen
318
328
  end
319
329
  end
320
330
  end
331
+ stats.completed_patterns += @completed_patterns
332
+ stats.total_vectors += @total_vectors
333
+ stats.total_duration += @total_duration
334
+ stats.completed_files += @completed_files
335
+ stats.changed_patterns += @changed_patterns
336
+ stats.changed_files += @changed_files
337
+ stats.new_patterns += @new_patterns
338
+ stats.new_files += @new_files
339
+ stats.failed_patterns += @failed_patterns
340
+ stats.failed_files += @failed_files
321
341
  end
322
342
  Origen.log.send(log_method, '*' * 70)
323
343
  stats.print_summary
@@ -143,7 +143,7 @@ module Origen
143
143
  # rubocop:disable Style/RescueModifier
144
144
  record_invocation = Thread.new do
145
145
  Origen.client.record_invocation(options[:action]) if options[:action]
146
- rescue Errno::ECONNREFUSED
146
+ rescue
147
147
  # Dont allow server being down to flood the screen with the stacktrace
148
148
  end
149
149
  # rubocop:enable Style/RescueModifier
data/lib/origen/client.rb CHANGED
@@ -5,7 +5,7 @@ module Origen
5
5
  # https://github.com/jnunemaker/httparty/tree/v0.9.0
6
6
 
7
7
  require 'json'
8
- # require 'httparty'
8
+ require 'net/http'
9
9
  # include HTTParty
10
10
 
11
11
  USE_DEV_SERVER = false
data/lib/origen/loader.rb CHANGED
@@ -117,11 +117,23 @@ module Origen
117
117
  # If a block definition exists for the given model, then this will load it and apply it to
118
118
  # the model.
119
119
  # if options[:inherit] is passed, it will first try to load the files for the class name contained
120
- # in that option, even if its from a plugin app
120
+ # in that option, even if its from a plugin app. Additionally, any bugs/features will be inherited
121
+ # as well unless disable_bug_inheritance or disable_feature_inheritance options are passed
121
122
  # Returns true if a model is found and loaded, otherwise nil.
122
123
  def self.load_block(model, options = {})
123
124
  model = model.model # Ensure we have a handle on the model and not its controller
124
125
  loaded = nil
126
+
127
+ if options[:inherit]
128
+ # pass down any bugs/features from the inherited block class
129
+ unless options[:disable_bug_inheritance]
130
+ model.class.instance_variable_set(:@bugs, options[:inherit].constantize.bugs.merge(model.class.bugs))
131
+ end
132
+ unless options[:disable_feature_inheritance]
133
+ model.class.instance_variable_set(:@features, options[:inherit].constantize.features.merge(model.class.features))
134
+ end
135
+ end
136
+
125
137
  if local_app = options[:app] || model.app
126
138
  if options[:path]
127
139
  local_full_paths = Array(options[:path])
@@ -132,6 +144,7 @@ module Origen
132
144
  end
133
145
  app_paths_map = { local_app => local_full_paths }
134
146
  if options[:inherit]
147
+ # update app_paths_map with the relevant inherited files
135
148
  inherit_full_paths = options[:inherit].split('::')
136
149
  inherit_app = Origen.app(inherit_full_paths.shift.underscore.to_sym)
137
150
  inherit_full_paths = [inherit_full_paths.join('/')]
@@ -146,9 +146,11 @@ gem_use_from_system:
146
146
  #ldap_user_id_attribute: uid
147
147
 
148
148
  # LSF Configuration
149
- lsf_queue: 'batchq'
150
- lsf_group: 'nil'
151
- lsf_project: 'msg.te'
152
- lsf_resource: 'rhel6'
153
- lsf_cores: '1'
149
+ # lsf_queue: 'batchq'
150
+ # lsf_group: 'nil'
151
+ # lsf_project: 'msg.te'
152
+ # lsf_resource: 'rhel6'
153
+ # lsf_cores: '1'
154
+
155
+ # lsf_debug is needed for spec tests on the core.
154
156
  lsf_debug: 'false'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.2
4
+ version: 0.60.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -749,7 +749,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
749
749
  - !ruby/object:Gem::Version
750
750
  version: 1.8.11
751
751
  requirements: []
752
- rubygems_version: 3.0.1
752
+ rubygems_version: 3.2.31
753
753
  signing_key:
754
754
  specification_version: 4
755
755
  summary: The Semiconductor Developer's Kit