From c02b7981f19536cf434ba81912d051b5c3f1b326 Mon Sep 17 00:00:00 2001
From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
Date: Mon, 2 Nov 2026 09:14:49 -0800
Subject: [PATCH 01/10] test: Remove the poller race from the big segment
status listener spec (#473)
Fixes an intermittent JRuby failure in
`big_segment_store_status_provider sends status updates`
(`spec/ldclient_listeners_spec.rb:34`, `expected false, got true`), seen
on #472.
- `spec/mock_components.rb`: adds `GatedBigSegmentStore`, a Big Segment
store whose metadata queries wait for the test to supply each result
- `spec/ldclient_listeners_spec.rb`: the example adds its observer and
checks what it received only while the poller is waiting inside a query
**Requirements**
- [x] I have added test coverage for new or changed functionality
- [x] I have followed the repository's [pull request submission
guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests)
- [ ] I have validated my changes against all supported platform
versions
Implementation details
**Root cause**
The status poller caches each status inside `@poll_lock` and notifies
observers after it releases the lock. `status_provider.status` returns
the cached status without waiting for that notification. When the
poller's first poll runs before the example reads the status, as it
usually does on JRuby, the example can do all of the following before
the poller delivers its first notification:
1. Read the healthy status.
2. Add its observer.
3. Inject the store error.
The provider has not notified anyone yet, so that first notification
goes to the new observer, carrying the healthy status. `statuses.pop`
returns it instead of the unavailable status.
#440 fixed the same race in the `status polling` examples in
`spec/impl/big_segments_spec.rb`. There it caused a hang; here it
delivers the wrong first status.
**Solution**
`GatedBigSegmentStore#get_metadata` counts the query, then waits until
the test queues a result. The poller notifies observers of one result
before it starts its next query. So once query N has started, every
earlier result has been delivered, and nothing else happens until the
test queues another result.
The example now runs in three steps:
1. It queues a healthy result and reads it through
`status_provider.status`.
2. It waits for query 2, then adds the observer. Only the poller can
make that query, because later status reads come from the cache.
3. It queues an error and waits for query 3. Then it checks that the
observer received exactly one status, that the status is unavailable,
and that `status_provider.status` returns it.
None of these steps depends on how long a poll or notification takes:
- `status_poll_interval: 0.01` only controls how quickly the poller
moves on to its next query.
- The 5-second wait timeouts only bound how long a failure takes to
report.
The example releases the store in `ensure`. The client can't stop its
poller while a query is waiting.
**Alternatives considered**
- Skipping statuses until an unavailable one arrives, as
`next_status_matching` does in `big_segments_spec.rb`. That would pass,
but it would hide an extra or out-of-order notification, and it waits in
a sleep loop.
- Changing the manager so the first status reaches observers before
`status` returns. That changes SDK behavior to suit a test. The manager
also deliberately notifies outside `@poll_lock` (see
`query_store_status`).
**Testing**
With no code changes, the failure reproduces on JRuby 9.4.6 pinned to
one or two cores. Every failure was the CI one: `expected false, got
true` at line 34.
| Unmodified SDK, JRuby 9.4.6 | Old example | New example |
|---|---|---|
| Pinned to 1 core (`taskset -c 0`) | 6/1,000 failed; 8/1,000 on a rerun
| 1,000/1,000 passed |
| Pinned to 2 cores | 4/1,000 failed | 1,000/1,000 passed |
| 8 cores, not pinned | 1,500/1,500 passed | 1,500/1,500 passed |
The next rows inject delays, gated by environment variables, into a
local copy of `big_segments.rb` and the spec. None of that code is in
this PR. The random delays apply at 5 points in the poll and notify
path, plus the example's status read and `add_observer`.
| Injected delays | Old example | New example |
|---|---|---|
| Poller polls first, notify delayed 0.3s (MRI 3.2) | 10/10 failed |
10/10 passed |
| Same, JRuby 9.4.6 | 10/10 failed | 10/10 passed |
| Random delay up to 5ms at each point (MRI 3.2) | 121/300 failed |
300/300 passed |
| Same, JRuby 9.4.6 | 141/300 failed | 300/300 passed |
| Random delay up to 50ms at each point (MRI 3.2) | 23/60 failed | 60/60
passed |
| Same, JRuby 9.4.6 | 23/60 failed | 60/60 passed |
The new example still fails when the SDK is broken in each of these
ways:
- The poller never notifies.
- A store error is reported as available.
- A change is notified twice.
- Polls never update the cached status.
- The store is queried only once.
The full suite passes on MRI 3.2 (`bundle exec rspec spec`) and on JRuby
9.4.6 (`--tag '~flaky'`, as in CI), with one exception.
`launchdarkly-server-sdk_spec.rb:5` fails on `main` too: its unbundled
subprocess can't find the gems in my local bundle path. RuboCop reports
no offenses on the changed files.
**Not addressed here**
The same timing can affect an application. If it reads the status and
then adds a listener while the client is starting, the listener can
receive the status that was just read. That's a redundant notification
rather than a wrong status, so this PR doesn't change it.
[SDK-3424](https://launchdarkly.atlassian.net/browse/SDK-3424)
[SDK-3424]:
https://launchdarkly.atlassian.net/browse/SDK-3424?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
---
> [!NOTE]
> **Overview**
> Fixes a flaky JRuby failure in **`big_segment_store_status_provider
sends status updates`** where the observer could receive the initial
healthy status instead of the post-error unavailable status, because the
status poller notifies observers after caching and the old mock returned
results immediately.
>
> Adds **`GatedBigSegmentStore`** in `spec/mock_components.rb`: metadata
**`get_metadata`** blocks until the test **`queue_metadata`** /
**`queue_metadata_error`**, exposes **`wait_for_queries`** for poll
ordering, and **`release`** so the client can shut down without hanging
on a blocked query.
>
> The listener example switches from **`MockBigSegmentStore`** to the
gated store: queue healthy metadata, wait for the second poll before
registering the observer, then queue an error and wait for the third
poll before asserting exactly one unavailable notification and matching
**`status`**.
>
> Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1ecf5d0976e6e340d88fd49f5b85b461c628a9d4. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).
(cherry picked from commit d3f643e2b568adcb4365364e4c72472e2ee7bcfe)
---
spec/ldclient_listeners_spec.rb | 18 ++++++--
spec/mock_components.rb | 81 +++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+), 3 deletions(-)
diff --git a/spec/ldclient_listeners_spec.rb b/spec/ldclient_listeners_spec.rb
index 2542b81e..927ffba7 100644
--- a/spec/ldclient_listeners_spec.rb
+++ b/spec/ldclient_listeners_spec.rb
@@ -13,8 +13,8 @@ module LaunchDarkly
end
it "sends status updates" do
- store = MockBigSegmentStore.new
- store.setup_metadata(Time.now)
+ store = GatedBigSegmentStore.new
+ store.queue_metadata(Time.now)
big_segments_config = BigSegmentsConfig.new(
store: store,
status_poll_interval: 0.01
@@ -24,17 +24,29 @@ module LaunchDarkly
expect(status1.available).to be(true)
expect(status1.stale).to be(false)
+ # Status reads after the first come from the cache, so the second query comes from the
+ # poller. Observers have been notified of the first status by the time it starts, so the
+ # observer added below sees only later changes.
+ expect(store.wait_for_queries(2)).to be(true)
+
statuses = Queue.new
observer = SimpleObserver.adding_to_queue(statuses)
client.big_segment_store_status_provider.add_observer(observer)
- store.setup_metadata_error(StandardError.new("sorry"))
+ # Fail the waiting query, then wait for the poller to start the next one. It has notified
+ # observers of the failure by then.
+ store.queue_metadata_error(StandardError.new("sorry"))
+ expect(store.wait_for_queries(3)).to be(true)
+ # The observer should have received one status, reporting the store as unavailable.
+ expect(statuses.size).to eq(1)
status2 = statuses.pop
expect(status2.available).to be(false)
expect(status2.stale).to be(false)
expect(client.big_segment_store_status_provider.status).to eq(status2)
+ ensure
+ store.release
end
end
end
diff --git a/spec/mock_components.rb b/spec/mock_components.rb
index 4f0784c7..56a2e96d 100644
--- a/spec/mock_components.rb
+++ b/spec/mock_components.rb
@@ -223,6 +223,87 @@ def setup_segment_for_context(user_key, segment, included)
end
end
+ #
+ # A Big Segment store whose metadata queries wait for the test to supply each result.
+ #
+ # The status poller notifies observers of one result before it starts its next query. Once a
+ # test sees a query start, every earlier result has been delivered, and the poller stays in that
+ # query until the test supplies another result.
+ #
+ # Call {#release} before closing the client. The poller cannot stop while a query is waiting.
+ #
+ class GatedBigSegmentStore
+ def initialize
+ @lock = Mutex.new
+ @changed = ConditionVariable.new
+ @results = []
+ @last_result = nil
+ @queries_started = 0
+ @released = false
+ end
+
+ def get_metadata
+ result = @lock.synchronize do
+ @queries_started += 1
+ @changed.broadcast
+ @changed.wait(@lock) while @results.empty? && !@released
+ @last_result = @results.shift unless @results.empty?
+ @last_result
+ end
+ raise result if result.is_a?(Exception)
+ result
+ end
+
+ def get_membership(_context_hash)
+ nil
+ end
+
+ def stop
+ end
+
+ # Supplies the result of the next metadata query.
+ def queue_metadata(last_up_to_date)
+ queue_result(Interfaces::BigSegmentStoreMetadata.new(last_up_to_date.to_f * 1000))
+ end
+
+ # Makes the next metadata query raise the given error.
+ def queue_metadata_error(ex)
+ queue_result(ex)
+ end
+
+ #
+ # Blocks until the store has received `count` metadata queries, or until the timeout passes.
+ #
+ # @return [Boolean] false if the queries did not start within the timeout
+ #
+ def wait_for_queries(count, timeout: 5)
+ deadline = Process.clock_gettime(Process::CLOCK_MONOTONIC) + timeout
+ @lock.synchronize do
+ while @queries_started < count
+ remaining = deadline - Process.clock_gettime(Process::CLOCK_MONOTONIC)
+ return false if remaining <= 0
+ @changed.wait(@lock, remaining)
+ end
+ true
+ end
+ end
+
+ # Stops queries from waiting. Waiting and later queries return the last result again.
+ def release
+ @lock.synchronize do
+ @released = true
+ @changed.broadcast
+ end
+ end
+
+ private def queue_result(result)
+ @lock.synchronize do
+ @results << result
+ @changed.broadcast
+ end
+ end
+ end
+
class SimpleObserver
def initialize(fn)
@fn = fn
From a772f1f6e385e6ef33439da65d5bcea3ca904da6 Mon Sep 17 00:00:00 2001
From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
Date: Tue, 3 Nov 2026 10:30:11 -0800
Subject: [PATCH 02/10] test: Wire wrapper and service endpoint options and
declare TLS peer verification in the contract test service (#481)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The contract test service now maps `configuration.wrapper` to
`wrapper_name`/`wrapper_version` (an empty name or version counts as
unset) and `configuration.serviceEndpoints` to
`stream_uri`/`base_uri`/`events_uri`, and streams by default when only
`serviceEndpoints.streaming` is given. It declares `wrapper`,
`service-endpoints` and `tls:verify-peer`, so the harness now runs the
wrapper header tests, `events/disabling`, `service endpoints/using
separate service endpoints properties` (v2) and the three `invalid tls
certificate` tests. The SDK verifies peers by default, so TLS needs no
mapping.
Tested locally against harness v2.42.0 and v3.2.0-alpha.15 with
persistence tests enabled: every newly run test passes and no test that
passed on main fails or disappears.
Opened from termag
---
> [!NOTE]
> **Overview**
> The contract test **ClientEntity** now maps harness
**`configuration.serviceEndpoints`** onto SDK **`stream_uri` /
`base_uri` / `events_uri`** (applied early; legacy
streaming/polling/events blocks can still override). When there is no
**`dataSystem`**, **`streaming`**, or **`polling`** block, **`use_ldd`**
is enabled only if **`serviceEndpoints.streaming`** is absent—so a
streaming-only endpoint config can drive live updates without an
explicit streaming section.
>
> **`configuration.wrapper`** is mapped to **`wrapper_name`** and
**`wrapper_version`**, treating empty strings as unset.
>
> The test service advertises **`wrapper`**, **`service-endpoints`**,
and **`tls:verify-peer`** capabilities so the harness runs wrapper
header, separate-endpoints, events-disable, and invalid-TLS scenarios
(peer verification relies on SDK defaults, not new mapping).
>
> Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
0370c08bca4359f92c41f89be85580bacc319403. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).
(cherry picked from commit 9a2f5b94e7cef8a6d3cbfe87ba46d7050eb2e327)
---
contract-tests/client_entity.rb | 15 +++++++++++++++
contract-tests/service.rb | 3 +++
2 files changed, 18 insertions(+)
diff --git a/contract-tests/client_entity.rb b/contract-tests/client_entity.rb
index ba012107..9a88221a 100644
--- a/contract-tests/client_entity.rb
+++ b/contract-tests/client_entity.rb
@@ -15,6 +15,14 @@ def initialize(log, config)
opts[:logger] = log
+ # A per-component baseUri set below takes precedence over these.
+ service_endpoints = config[:serviceEndpoints]
+ if service_endpoints
+ opts[:stream_uri] = service_endpoints[:streaming] if service_endpoints[:streaming]
+ opts[:base_uri] = service_endpoints[:polling] if service_endpoints[:polling]
+ opts[:events_uri] = service_endpoints[:events] if service_endpoints[:events]
+ end
+
data_system_config = config[:dataSystem]
if data_system_config
data_system = LaunchDarkly::DataSystem.custom
@@ -91,6 +99,13 @@ def initialize(log, config)
}
end
+ if config[:wrapper]
+ # The harness sends an empty string for an unset name or version.
+ wrapper = config[:wrapper]
+ opts[:wrapper_name] = wrapper[:name] unless wrapper[:name].to_s.empty?
+ opts[:wrapper_version] = wrapper[:version] unless wrapper[:version].to_s.empty?
+ end
+
if config[:hooks]
opts[:hooks] = config[:hooks][:hooks].map do |hook|
Hook.new(hook[:name], hook[:callbackUri], hook[:data] || {}, hook[:errors] || {})
diff --git a/contract-tests/service.rb b/contract-tests/service.rb
index 1ff98c79..fb68fc38 100644
--- a/contract-tests/service.rb
+++ b/contract-tests/service.rb
@@ -53,6 +53,9 @@
'flag-change-listeners',
'flag-value-change-listeners',
'fdv1-fallback',
+ 'wrapper',
+ 'service-endpoints',
+ 'tls:verify-peer',
],
}.to_json
end
From a1302d432f36600a9f2b7d80bf519b2b19f105f7 Mon Sep 17 00:00:00 2001
From: Jason Bailey
Date: Fri, 20 Nov 2026 09:54:11 -0600
Subject: [PATCH 03/10] chore: Recommend using the latest patched Ruby release
(#505)
(cherry picked from commit cd9308c5fdb182719c0cb3fbb3abef590c10db95)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6acadf29..133b7636 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ LaunchDarkly overview
Supported Ruby versions
-----------------------
-This version of the LaunchDarkly SDK has a minimum Ruby version of 3.4.0. On JRuby, the minimum is JRuby 10.0, which requires Java 21.
+While this version of the LaunchDarkly SDK requires Ruby 3.4.0 or later (or JRuby 10.0 or later, which requires Java 21), you should use the latest patched version of a supported Ruby or JRuby release.
Getting started
-----------
From 1cc2e2720dc9a03c5f13b3c96ab59577194040b5 Mon Sep 17 00:00:00 2001
From: Jason Bailey
Date: Fri, 20 Nov 2026 18:20:14 -0600
Subject: [PATCH 04/10] chore: Add Dependabot configuration (#506)
(cherry picked from commit 48d606e05e56ffa758b3595dd08ff5b5a3a6ef5b)
---
.github/dependabot.yml | 12 ++++++++++++
.github/renovate.json | 4 ----
2 files changed, 12 insertions(+), 4 deletions(-)
create mode 100644 .github/dependabot.yml
delete mode 100644 .github/renovate.json
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 00000000..3188240d
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,12 @@
+version: 2
+updates:
+ - package-ecosystem: 'github-actions'
+ directories:
+ - '/'
+ - '/.github/actions/*'
+ schedule:
+ interval: 'monthly'
+ cooldown:
+ default-days: 7
+ exclude:
+ - 'launchdarkly/*'
diff --git a/.github/renovate.json b/.github/renovate.json
deleted file mode 100644
index cc962478..00000000
--- a/.github/renovate.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "$schema": "https://docs.renovatebot.com/renovate-schema.json",
- "extends": ["github>launchdarkly/gh-actions//renovate/sdk-ruby"]
-}
From 6073760b6eb65e27fb7921b33f1ca1bcf6e06568 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Nov 2026 09:56:36 -0500
Subject: [PATCH 05/10] chore(deps): bump actions/download-artifact from 8.0.1
to 8.0.2 in /.github/actions/publish (#511)
(cherry picked from commit b89031c9077db7900969180706ccf313f9225e1f)
---
.github/actions/publish/action.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml
index 54c573b3..7a383540 100644
--- a/.github/actions/publish/action.yml
+++ b/.github/actions/publish/action.yml
@@ -8,7 +8,7 @@ inputs:
runs:
using: composite
steps:
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: 'gems-*'
merge-multiple: true
From 072d97f146c9ada1cbaabfb3a4dbd46296306915 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Nov 2026 09:57:28 -0500
Subject: [PATCH 06/10] chore(deps): bump ruby/setup-ruby from 1.321.0 to
1.338.0 in /.github/actions/setup (#512)
(cherry picked from commit 91392ea7b584bb3a8a421c19ab61aeb735500343)
---
.github/actions/setup/action.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 96ee9cd7..b9036114 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -19,7 +19,7 @@ runs:
distribution: temurin
java-version: "21"
- - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
+ - uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
with:
ruby-version: ${{ inputs.version }}
bundler: "4.0.19"
From d0315d0afe7eccd5d17f4e17216c99202fa04e7c Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Nov 2026 09:58:29 -0500
Subject: [PATCH 07/10] chore(deps): bump actions/upload-artifact from 7.0.1 to
7.0.2 (#509)
(cherry picked from commit f3706f253f3ae091ea0e2d80f59935a284dbcc52)
---
.github/workflows/build-gem.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build-gem.yml b/.github/workflows/build-gem.yml
index fa70a6ea..c56df364 100644
--- a/.github/workflows/build-gem.yml
+++ b/.github/workflows/build-gem.yml
@@ -44,7 +44,7 @@ jobs:
- name: Build gemspec
run: gem build launchdarkly-server-sdk.gemspec --platform=$BUILD_PLATFORM
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: ${{ inputs.upload-artifact }}
with:
name: gems-${{ inputs.version }}
From 73180faa2aae04316f9d40355ed48323532e8550 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 23 Nov 2026 10:00:06 -0500
Subject: [PATCH 08/10] chore(deps): bump actions/attest from 4.2.0 to 4.2.2
(#508)
(cherry picked from commit 3153f2136f04c252ad181629cf96bb635b9b1c29)
---
.github/workflows/manual-publish.yml | 2 +-
.github/workflows/release-please.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml
index 654a8e72..3660c822 100644
--- a/.github/workflows/manual-publish.yml
+++ b/.github/workflows/manual-publish.yml
@@ -56,6 +56,6 @@ jobs:
- name: Attest build provenance
if: ${{ format('{0}', inputs.dry_run) == 'false' }}
- uses: actions/attest@f7c74d28b9d84cb8768d0b8ca14a4bac6ef463e6 # v4.2.0
+ uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: 'launchdarkly-server-sdk-*.gem'
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 7b32d95e..9f2c9f6f 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -70,6 +70,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Attest build provenance
- uses: actions/attest@f7c74d28b9d84cb8768d0b8ca14a4bac6ef463e6 # v4.2.0
+ uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: 'launchdarkly-server-sdk-*.gem'
From 0c4a7b865feca676b2ceb8e6e0f0816d44ad9615 Mon Sep 17 00:00:00 2001
From: joker23 <2494686+joker23@users.noreply.github.com>
Date: Mon, 23 Nov 2026 10:37:14 -0500
Subject: [PATCH 09/10] chore: Declare the diagnostic-events capability in the
contract tests (#507)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Summary
Declares `diagnostic-events` in the contract test service so the new
sdk-test-harness test `events/diagnostic events` runs. The test was
added in v3.2.0-alpha.20 and checks that `diagnostic-init` is sent to
`/diagnostic` and that no diagnostic payload reaches the analytics
route.
- The entity already sets `diagnostic_opt_out = !enableDiagnostics`, so
the entity needs no other change.
Testing
I ran the v3.2.0-alpha.20 harness locally with `-run diagnostic` against
the service (Ruby 3.3), and all 3 diagnostic tests passed.
Link to Devin session:
https://app.devin.ai/sessions/56b8ade9602745fbba00e59a531bbefa
Open in Devin Desktop:
https://app.devin.ai/desktop/session/56b8ade9602745fbba00e59a531bbefa?variant=devin
Requested by: @joker23
---
> [!NOTE]
> **Overview**
> Adds **`diagnostic-events`** to the capabilities returned by the
contract test service’s root endpoint so the sdk-test-harness
**diagnostic events** suite (v3.2.0-alpha.20+) is selected for this
adapter. No other service or entity changes are required because
diagnostics opt-out is already driven by `enableDiagnostics` in the
client entity.
>
> Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
b40a9c98d6af16c327701402b52113fb11a26050. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 81e754493119717b9ac6eedb901e87c4b977b1bd)
---
contract-tests/service.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/contract-tests/service.rb b/contract-tests/service.rb
index fb68fc38..684e5eab 100644
--- a/contract-tests/service.rb
+++ b/contract-tests/service.rb
@@ -37,6 +37,7 @@
'migrations',
'event-gzip',
'optional-event-gzip',
+ 'diagnostic-events',
'event-sampling',
'context-comparison',
'polling-gzip',
From 4f6cb7fbba70be129134271c17ea38ba19481c24 Mon Sep 17 00:00:00 2001
From: Jason Bailey
Date: Mon, 23 Nov 2026 15:24:08 -0600
Subject: [PATCH 10/10] chore: Use slash tags for launchdarkly/gh-actions
(#513)
(cherry picked from commit 8080f5b12ef9c4c361676a2dbefd8101add62516)
---
.github/actions/check/action.yml | 2 +-
.github/actions/publish-docs/action.yml | 2 +-
.github/workflows/build-gem.yml | 2 +-
.github/workflows/manual-publish.yml | 2 +-
.github/workflows/release-please.yml | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/actions/check/action.yml b/.github/actions/check/action.yml
index 01a4ed1d..cd281cf0 100644
--- a/.github/actions/check/action.yml
+++ b/.github/actions/check/action.yml
@@ -40,7 +40,7 @@ runs:
- name: Run contract tests v3
if: ${{ inputs.flaky != 'true' }}
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1
+ uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests/v1
with:
test_service_port: 9000
enable_persistence_tests: true
diff --git a/.github/actions/publish-docs/action.yml b/.github/actions/publish-docs/action.yml
index 2a99cf5d..86267459 100644
--- a/.github/actions/publish-docs/action.yml
+++ b/.github/actions/publish-docs/action.yml
@@ -8,7 +8,7 @@ inputs:
runs:
using: composite
steps:
- - uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages-v1
+ - uses: launchdarkly/gh-actions/actions/publish-pages@publish-pages/v1
name: 'Publish to Github pages'
with:
docs_path: docs/build/html/
diff --git a/.github/workflows/build-gem.yml b/.github/workflows/build-gem.yml
index c56df364..6de6832f 100644
--- a/.github/workflows/build-gem.yml
+++ b/.github/workflows/build-gem.yml
@@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - uses: launchdarkly/gh-actions/actions/persistent-stores@persistent-stores-v0
+ - uses: launchdarkly/gh-actions/actions/persistent-stores@persistent-stores/v0
with:
redis: true
consul: true
diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml
index 3660c822..a4bb22d2 100644
--- a/.github/workflows/manual-publish.yml
+++ b/.github/workflows/manual-publish.yml
@@ -35,7 +35,7 @@ jobs:
version: "3.4"
install-dependencies: false
- - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1
+ - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets/v1
name: "Get rubygems API key"
if: ${{ format('{0}', inputs.dry_run) == 'false' }}
with:
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 9f2c9f6f..8971a38d 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -52,7 +52,7 @@ jobs:
version: "3.4"
install-dependencies: false
- - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1
+ - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets/v1
name: "Get rubygems API key"
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}