hotcell-client 0.3.1 → 0.4.0

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: a32972e8446655b4a96f79706c3baa794419a421e3743ec6113677349e35141e
4
- data.tar.gz: aa259b26182d98e1d08fc3c9545c64987446c0f80ba009896e21d3db7ff02b17
3
+ metadata.gz: f524eeac7887b27aef5f6c8da2c64f12156d8bf53b0182eaeee8586f3caea2fa
4
+ data.tar.gz: 23cc072de4878e911ee6a20a2fdd1f0272f21ffac66805b15d31534bd57a20ef
5
5
  SHA512:
6
- metadata.gz: e9bc0f3f71fe67241ba74d057cf86ada551198f014c090c7e4078cd5409f9f5e52ad0dae07c2c276a4f4fc8bd49275001aa94f908a0167c68b94feb5b6c7ddcc
7
- data.tar.gz: 3c1d53fd03133df6bf461309207dca60ade0a8454e8a5e590a59ae612fc9176976ad2fb39ea051aeb380cc9b428ad2e25dd64ce94e2791f7f32e3d5b52bf3a6b
6
+ metadata.gz: baeec88b90cd8601136b0c1260e8e0f4dc9879ded64c78d76298fde0d774ac00226221a1f4efce6071435c062089e39686e587f3b787a082a3588a25d82c707f
7
+ data.tar.gz: 549dd9b192b20a5a96d43f71907d06eaa0466eea01a7bb2da385ba7344caeed12490dba6aa03b02ccd8471b861229b9b77873c342d3b2ce5583f4d72e9000832
@@ -3,6 +3,6 @@
3
3
  module HotCell
4
4
  # A class and not a module: this file loads before hot_cell/client.rb opens the same name.
5
5
  class Client
6
- VERSION = "0.3.1"
6
+ VERSION = "0.4.0"
7
7
  end
8
8
  end
@@ -160,6 +160,11 @@ module HotCell
160
160
  # the code filed every fsize kill as transient. `permanent` is the Failure's own answer, so no
161
161
  # subscriber re-derives it.
162
162
  #
163
+ # `stderr` is the diagnosis of a crash — `libgomp: Thread creation failed` — and the event is the only
164
+ # place a subscriber can log it: the exception's message carries it too, but only a retry logs that,
165
+ # and a discarded failure loses it. It is text a tool wrote while processing a hostile file, bounded
166
+ # by `Failure.sanitize` on the way in, and a subscriber should write it to a log field and nowhere else.
167
+ #
163
168
  # A subscriber's own duration minus perform_ms is transport plus queueing, and those want separate
164
169
  # metrics: a rising perform_ms means the work got more expensive, and a rising difference means the
165
170
  # cell is saturated.
@@ -171,6 +176,7 @@ module HotCell
171
176
  event[:code] = failure&.code
172
177
  event[:cause] = failure&.cause
173
178
  event[:signal] = failure&.signal
179
+ event[:stderr] = failure&.stderr
174
180
  event[:permanent] = failure&.permanent?
175
181
  event[:bytes_in] = byte_count(inputs)
176
182
  event[:bytes_out] = byte_count(outputs)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotcell-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.3.1
18
+ version: 0.4.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.3.1
25
+ version: 0.4.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -67,8 +67,8 @@ licenses:
67
67
  - MIT
68
68
  metadata:
69
69
  homepage_uri: https://github.com/basecamp/hotcell
70
- source_code_uri: https://github.com/basecamp/hotcell/tree/v0.3.1/hotcell-client
71
- changelog_uri: https://github.com/basecamp/hotcell/blob/v0.3.1/CHANGELOG.md
70
+ source_code_uri: https://github.com/basecamp/hotcell/tree/v0.4.0/hotcell-client
71
+ changelog_uri: https://github.com/basecamp/hotcell/blob/v0.4.0/CHANGELOG.md
72
72
  bug_tracker_uri: https://github.com/basecamp/hotcell/issues
73
73
  rubygems_mfa_required: 'true'
74
74
  rdoc_options: []