nulogy_message_bus_producer 5.0.5 → 5.0.7

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: 4216628aa92b98993d350cdb2cd4ca4a0615fcb76d1d9389ec51a0af5cf77dac
4
- data.tar.gz: 37f1f5c84898eed279d34034586e1bada6789c50e71868d14c77e97275f293c5
3
+ metadata.gz: 036eea7176338f4c2a13313706144eaf0399db0a3ee0f5eb00e834041acbc358
4
+ data.tar.gz: 0d872f484f66967b952de3cb7646fc2723632a0730a85b54206c26a754bae946
5
5
  SHA512:
6
- metadata.gz: 2236565774b0ee85db684ba7703d83c6953cb778eb68268730a8b2dd24f561264341835a9168ee54514020fb1b35ff63a395066fb5af63c4a99d27779e3c5305
7
- data.tar.gz: 4f298cda943eb872d574752ef312677f863a7ac5428960a4d5bab86107efb2ad5ab07678c652350c71e976b6c876648ac2d13316ebba5b34ebb882cf29670f54
6
+ metadata.gz: ca2c15972d588377f6a26cff073a1515a91208363eef139289bf3ba5e0d20cf6f6404af97d77e536363942b93fa0486cd6b77ba1af81ca5e68bf86d9e3488883
7
+ data.tar.gz: 8209b4b7ce3daea8325679343b0336110627f4015ef85705bb71bee85fd682f3d77b1ace195085c1e93d9b66522e303e91cad42ff5041bea5f4edf7804f044d1
data/README.md CHANGED
@@ -27,6 +27,8 @@ There are two ways to create subscriptions:
27
27
 
28
28
  #### Configured
29
29
 
30
+ ![Configured subscriptions](docs/message-bus-configured-subscriptions.png)
31
+
30
32
  Subscriptions provided by configuration in the producer app:
31
33
 
32
34
  ```ruby
@@ -50,6 +52,8 @@ end
50
52
 
51
53
  #### Self-Serve (soft-deprecated)
52
54
 
55
+ ![Self-serve subscriptions](docs/message-bus-self-serve-subscriptions.png)
56
+
53
57
  You create these subscriptions via the public GraphQL API. For testing, the [Insomnia](https://insomnia.rest/) client
54
58
  is highly recommended.
55
59
 
@@ -271,9 +275,52 @@ rake db:setup
271
275
  rake
272
276
  ```
273
277
 
278
+ # Buildkite
279
+
280
+ [![Build status](https://badge.buildkite.com/d7d8d8869573938a831b6942ea3a6d4b9b354edbb6822166a3.svg?branch=main)](https://buildkite.com/nulogy-corp/message-bus)
281
+
282
+ Our CI pipeline will run all tests, linting, and security audits for *BOTH* gems.
283
+
284
+ To see that a new build "works", you can deploy to the test synthetic apps.
285
+ The synthetic producer app generates a synthetic change to the database that is picked up by the Message Bus, and is consumed by the synthetic consumer app.
286
+
287
+ ## Testing Synthetic apps
288
+
289
+ For testing, the AWS account is the `message-bus-test` profile.
290
+ The synthetic apps are running in ECS under: ECS > Clusters > message-bus-us-east-1-cluster > Services > message-bus-us-east-1-cluster
291
+
292
+ ### Test Deployment
293
+
294
+ In Buildkite, you can use the Deploy job to deploy to the test environments.
295
+ Note: Often the "Wait until deployment completes" job fails. The following script will output the git SHA that is deployed:
296
+
297
+ ```
298
+ message-bus> aws sso login
299
+ message-bus> ./scripts/whats_deployed.sh
300
+ 83ac09ec33c0597d6ec65c4631140d04213d968d
301
+ ```
302
+
303
+ To run the script, you need the `aws` CLI installed as well as `jq`.
304
+
305
+ ### Confirm Test Synthetic apps work after deployment
306
+
307
+ 1. Log into the AWS console for the `nulogy-message-bus-test` account.
308
+ 2. Go to Cloudwatch
309
+ 3. Use the log group for the synthetic consumer app: `message-bus-us-east-1-message-bus-consumer`
310
+ 4. Select "All events"
311
+ 5. Filter to a recent time (say, last 1 hour) and use the query: `{ $.event = "message_processed" && $.result = "success" }`
312
+ This will display the logs generated when a message is successfully processed.
313
+ 6. In the `Message` field, the timestamps should be roughly 30 seconds apart, with only a gap during deployment.
314
+ The synthetic producer app generates synthetic events every 30 seconds, so we are confirming those are being consumed.
315
+
274
316
  # Gem Releases
275
317
 
276
- You must be listed as a gem owner [on rubygems](https://rubygems.org/gems/nulogy_message_bus_producer) to cut a release:
318
+ This gem is hosted on [RubyGems](https://rubygems.org/gems/nulogy_message_bus_producer).
319
+
320
+ You must be listed as a gem owner to release a new version.
321
+ You can request RubyGem access in the #message-bus Slack channel.
322
+
323
+ ## Release steps
277
324
 
278
325
  * Commit a version bump
279
326
  * Update `lib/nulogy_message_bus_producer/version.rb`
@@ -282,5 +329,5 @@ You must be listed as a gem owner [on rubygems](https://rubygems.org/gems/nulogy
282
329
  * Update the CHANGELOG
283
330
  * Run `cd heartbeat_app/backend`
284
331
  * Run `bundle`
285
- * Merge your changes to `master`
332
+ * Merge your changes to `main`
286
333
  * Run `bundle exec rake release`
@@ -1,3 +1,3 @@
1
1
  module NulogyMessageBusProducer
2
- VERSION = "5.0.5".freeze
2
+ VERSION = "5.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nulogy_message_bus_producer
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.26
19
+ version: 2.1.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.26
26
+ version: 2.1.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -340,7 +340,7 @@ files:
340
340
  - spec/support/sql_helpers.rb
341
341
  - spec/support/subscription_helpers.rb
342
342
  - spec/support/test_graphql_schema.rb
343
- homepage: https://github.com/nulogy/message-bus/tree/master/gems/nulogy_message_bus_producer
343
+ homepage: https://github.com/nulogy/message-bus/tree/main/gems/nulogy_message_bus_producer
344
344
  licenses: []
345
345
  metadata: {}
346
346
  post_install_message: