nulogy_message_bus_producer 5.0.4 → 5.0.6

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: 3a08939db91b31aa757d886238680a8973151feb26d00ac1c4cd073add22b6b5
4
- data.tar.gz: 6d664707742229f1ff27026f64c08aaa78f0b2161b057597767c504a74cbf51f
3
+ metadata.gz: 5e3ece660ff252d9d3610d2d4abc7e27a5d882222fa58c6f792a097f31edf5ca
4
+ data.tar.gz: 4852cae81887c925cbcefde6495674993b4bf127e0853c780611d5acf0188fd0
5
5
  SHA512:
6
- metadata.gz: '01825fc409c153b233d272fcd0c0305af4d1c5f9c7d5fc963e34bfedeb24c45dea00dc189641d8d97abb30c7351fa87600971b398fb1ea2f2970286cca92ceb0'
7
- data.tar.gz: 4f43f4c68e2513ff130ef3730618f69421da14f663061f0396e007d89d8a4e60cb9f2a1d23d8800d6ca91be848566d3cf22ec856b3eef4b0321cbee6f07748be
6
+ metadata.gz: 355fe9b309214605a2ea5161bdcd14ead94f969516417f19a10a03ea91bff81eae5d3f9f68386d3a350994f2abec278f50912f01c927ed46881be5cd478e6c5e
7
+ data.tar.gz: 387c615b686e2b72e2d7f7f55a10ba033c2c46aa472b70828b675d099d50f61bbf3589b56055628e639ece34398434a3d7d60f9d575bd5c8056de51d295d8a2f
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.4".freeze
2
+ VERSION = "5.0.6".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.4
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nulogy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-02 00:00:00.000000000 Z
11
+ date: 2023-09-18 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.21
19
+ version: 2.1.0
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.21
26
+ version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -313,7 +313,6 @@ files:
313
313
  - spec/dummy/config/storage.yml
314
314
  - spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb
315
315
  - spec/dummy/db/schema.rb
316
- - spec/dummy/log/test.log
317
316
  - spec/dummy/package.json
318
317
  - spec/dummy/public/404.html
319
318
  - spec/dummy/public/422.html
@@ -341,7 +340,7 @@ files:
341
340
  - spec/support/sql_helpers.rb
342
341
  - spec/support/subscription_helpers.rb
343
342
  - spec/support/test_graphql_schema.rb
344
- 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
345
344
  licenses: []
346
345
  metadata: {}
347
346
  post_install_message:
@@ -359,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
358
  - !ruby/object:Gem::Version
360
359
  version: '0'
361
360
  requirements: []
362
- rubygems_version: 3.2.15
361
+ rubygems_version: 3.2.22
363
362
  signing_key:
364
363
  specification_version: 4
365
364
  summary: Nulogy's code for producing to the Message Bus
@@ -414,7 +413,6 @@ test_files:
414
413
  - spec/dummy/config.ru
415
414
  - spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb
416
415
  - spec/dummy/db/schema.rb
417
- - spec/dummy/log/test.log
418
416
  - spec/dummy/package.json
419
417
  - spec/dummy/public/404.html
420
418
  - spec/dummy/public/422.html
File without changes