ood_core 0.20.1 → 0.20.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ad31cf26a48b0b388b5c4f1bc83583515837a82c1a9419e51f724d135c4820c
4
- data.tar.gz: 9eccd2b14920adf24f4273abd9355b4061a6a082913011757c3d636ba9d7d485
3
+ metadata.gz: 2c4e013f80e987d4d1cefbc78cc76bcff52e4083e0b84192b42807ae46806946
4
+ data.tar.gz: c4a1607904baccc1b063916ecf8e5a9692a9c0102a0d8cda3a9edf0ae760191f
5
5
  SHA512:
6
- metadata.gz: 126c139985ca62fdfca217ee8ea2fade4292d2f8aac110d51ad94edda36aff6e8c28fbe1876981010dc2ac395eb5cebea0439add3cafbb844a023ff699b4d841
7
- data.tar.gz: 6d17cc409aff1b7d7098b409451c93e0660a855c4b4b36f8a49afea5cc306aeff5181e76305c15b056a5234e401f613bc428a3e49d98e292c3b584aaf4394a9a
6
+ metadata.gz: ab3333366fc7802d59a15dead3b21e863d0017385053eea629a109a076c6e768ed1575378a34e68bb6c163b050be87a9cf323f087d02e4e2be4d349550bf5531
7
+ data.tar.gz: 234c13fbbc428717532bd93ba4e977cfd825e480c69daf66c737165ed7c5d8a951c329ced0312d525efc0b70cb4d11234c016c6216c2bb7f74573de854340889
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.20.2] - 07-28-2022
11
+
12
+ - Fixed an issue with Slurm's `cluster_info` in [762](https://github.com/OSC/ood_core/pull/762).
13
+ - Relaxed Ruby requirement down to 2.5 in [771](https://github.com/OSC/ood_core/pull/771).
14
+
10
15
  ## [0.20.1] - 07-21-2022
11
16
 
12
17
  - Fixed turbovnc compatability issue with the -nohttpd flag in [767](https://github.com/OSC/ood_core/pull/767).
@@ -432,7 +437,8 @@ Functionally the same as [0.17.3] but with some CI updates.
432
437
  ### Added
433
438
  - Initial release!
434
439
 
435
- [Unreleased]: https://github.com/OSC/ood_core/compare/v0.20.1...HEAD
440
+ [Unreleased]: https://github.com/OSC/ood_core/compare/v0.20.2...HEAD
441
+ [0.20.2]: https://github.com/OSC/ood_core/compare/v0.20.1...v0.20.2
436
442
  [0.20.1]: https://github.com/OSC/ood_core/compare/v0.20.0...v0.20.1
437
443
  [0.20.0]: https://github.com/OSC/ood_core/compare/v0.19.0...v0.20.0
438
444
  [0.19.0]: https://github.com/OSC/ood_core/compare/v0.18.1...v0.19.0
@@ -39,7 +39,7 @@ module OodCore
39
39
  # Get integer representing the number of gpus used by a node or job,
40
40
  # calculated from gres string
41
41
  # @return [Integer] the number of gpus in gres
42
- def gpus_from_gres(gres)
42
+ def self.gpus_from_gres(gres)
43
43
  gres.to_s.scan(/gpu:[^,]*(\d+)/).flatten.map(&:to_i).sum
44
44
  end
45
45
 
@@ -116,8 +116,8 @@ module OodCore
116
116
  total_nodes: node_cpu_info[2].to_i,
117
117
  active_processors: node_cpu_info[3].to_i,
118
118
  total_processors: node_cpu_info[6].to_i,
119
- active_gpus: gres_lines.sum { |line| gpus_from_gres(line[2]) },
120
- total_gpus: gres_lines.sum { |line| gpus_from_gres(line[1]) }
119
+ active_gpus: gres_lines.sum { |line| Slurm.gpus_from_gres(line[2]) },
120
+ total_gpus: gres_lines.sum { |line| Slurm.gpus_from_gres(line[1]) }
121
121
  )
122
122
  end
123
123
 
@@ -673,7 +673,7 @@ module OodCore
673
673
  submission_time: v[:submit_time] ? Time.parse(v[:submit_time]) : nil,
674
674
  dispatch_time: (v[:start_time].nil? || v[:start_time] == "N/A") ? nil : Time.parse(v[:start_time]),
675
675
  native: v,
676
- gpus: gpus_from_gres(v[:gres])
676
+ gpus: self.class.gpus_from_gres(v[:gres])
677
677
  )
678
678
  end
679
679
 
@@ -1,4 +1,4 @@
1
1
  module OodCore
2
2
  # The current version of {OodCore}
3
- VERSION = "0.20.1"
3
+ VERSION = "0.20.2"
4
4
  end
data/ood_core.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.bindir = "exe"
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
- spec.required_ruby_version = ">= 2.7.0"
23
+ spec.required_ruby_version = ">= 2.5.0"
24
24
 
25
25
  spec.add_runtime_dependency "ood_support", "~> 0.0.2"
26
26
  spec.add_runtime_dependency "ffi", "~> 1.9", ">= 1.9.6"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Franz
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-07-21 00:00:00.000000000 Z
13
+ date: 2022-07-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ood_support
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  requirements:
235
235
  - - ">="
236
236
  - !ruby/object:Gem::Version
237
- version: 2.7.0
237
+ version: 2.5.0
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - ">="