ood_core 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/ood_core/job/adapters/slurm.rb +20 -4
- data/lib/ood_core/job/script.rb +1 -0
- data/lib/ood_core/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f452bc936a1246bb7ac53d3aeafe36c7f54ad23a2d754d916b5701c40343288
|
4
|
+
data.tar.gz: f30a99239692b568b30453a0c519cbf8adb977589c4dfa35132bd4a0f6019c17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1d20267c147d723bfdafb1d169d6f7efc8323f66a749959672f5df23dc74d8503453f5a9214bf7bf35e5db74156ac3e48cdf18b19fa256d8a53fd331df5491
|
7
|
+
data.tar.gz: 1672bfd5d571492d9c5d6e97e1b2f3eeeeb26bd5580bca6e12b5e6282f05be9300b5b58aecb7ec20ecf8b9513983e1df5d78968bc6a23bacfc38262ffb1e1110
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
|
+
## [0.11.4] - 2020-05-27
|
10
|
+
### Fixed
|
11
|
+
- Environment exports in SLURM while implementing [#158](https://github.com/OSC/ood_core/issues/158)
|
12
|
+
and [#109](https://github.com/OSC/ood_core/issues/109) in [#163](https://github.com/OSC/ood_core/pull/163)
|
13
|
+
|
9
14
|
## [0.11.3] - 2020-05-11
|
10
15
|
### Fixed
|
11
16
|
- LinuxhHost Adapter to work with any login shell ([#188](https://github.com/OSC/ood_core/pull/188))
|
@@ -228,7 +233,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
228
233
|
### Added
|
229
234
|
- Initial release!
|
230
235
|
|
231
|
-
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.11.
|
236
|
+
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.11.4...HEAD
|
237
|
+
[0.11.4]: https://github.com/OSC/ood_core/compare/v0.11.3...v0.11.4
|
232
238
|
[0.11.3]: https://github.com/OSC/ood_core/compare/v0.11.2...v0.11.3
|
233
239
|
[0.11.2]: https://github.com/OSC/ood_core/compare/v0.11.1...v0.11.2
|
234
240
|
[0.11.1]: https://github.com/OSC/ood_core/compare/v0.11.0...v0.11.1
|
@@ -394,10 +394,7 @@ module OodCore
|
|
394
394
|
|
395
395
|
# Set environment variables
|
396
396
|
env = script.job_environment || {}
|
397
|
-
|
398
|
-
prefix = script.copy_environment? ? "ALL," : "NONE," # NONE if false or nil
|
399
|
-
args += ["--export", prefix + script.job_environment.keys.join(",")]
|
400
|
-
end
|
397
|
+
args += ["--export", export_arg(env, script.copy_environment?)]
|
401
398
|
|
402
399
|
# Set native options
|
403
400
|
args += script.native if script.native
|
@@ -630,6 +627,25 @@ module OodCore
|
|
630
627
|
|
631
628
|
Info.new(**parent_task_hash)
|
632
629
|
end
|
630
|
+
|
631
|
+
|
632
|
+
# we default to export NONE, but SLURM defaults to ALL.
|
633
|
+
# we do this bc SLURM setups a new environment, loading /etc/profile
|
634
|
+
# and all giving 'module' function (among other things shells give),
|
635
|
+
# where the PUN did not.
|
636
|
+
# --export=ALL export the PUN's environment.
|
637
|
+
def export_arg(env, copy_environment)
|
638
|
+
if !env.empty? && !copy_environment
|
639
|
+
env.keys.join(",")
|
640
|
+
elsif !env.empty? && copy_environment
|
641
|
+
"ALL," + env.keys.join(",")
|
642
|
+
elsif env.empty? && copy_environment
|
643
|
+
# only this option changes behaivor dramatically
|
644
|
+
"ALL"
|
645
|
+
else
|
646
|
+
"NONE"
|
647
|
+
end
|
648
|
+
end
|
633
649
|
end
|
634
650
|
end
|
635
651
|
end
|
data/lib/ood_core/job/script.rb
CHANGED
@@ -131,6 +131,7 @@ module OodCore
|
|
131
131
|
# @param wall_time [#to_i, nil] max real time
|
132
132
|
# @param accounting_id [#to_s, nil] accounting id
|
133
133
|
# @param native [Object, nil] native specifications
|
134
|
+
# @param copy_environment [Boolean, nil] copy the environment
|
134
135
|
def initialize(content:, args: nil, submit_as_hold: nil, rerunnable: nil,
|
135
136
|
job_environment: nil, workdir: nil, email: nil,
|
136
137
|
email_on_started: nil, email_on_terminated: nil,
|
data/lib/ood_core/version.rb
CHANGED
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.11.
|
4
|
+
version: 0.11.4
|
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: 2020-05-
|
13
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ood_support
|
@@ -215,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
|
219
|
-
rubygems_version: 2.7.6.2
|
218
|
+
rubygems_version: 3.0.3
|
220
219
|
signing_key:
|
221
220
|
specification_version: 4
|
222
221
|
summary: Open OnDemand core library
|