You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Stack 9.7.0-SNAPSHOT] Too many packages failing in daily job #22189
Build 52238 ran every package against the upcoming 9.7 stack (snapshot build). The 44 packages listed in this issue failed from 16 different causes. The same packages pass against the current release, so these failures come from changes in the upcoming 9.6/9.7 stack, not from recent package edits. Most of these causes also explain the 9.6.0-SNAPSHOT failures in #20180.
One more job, extrahop, failed in this build but isn't in this issue's list. The CI machine timed out downloading Go, so no tests ran. A retry should pass.
At a glance
Packages
What's wrong
Next step
14
Elastic Agent breaks when an integration name contains a space
📝 Issue to file in elastic/elastic-agent
5
Elasticsearch 9.7 returns list items in a different order
🛠 Fix in this repo
4
Elasticsearch 9.7 bug when searching for test documents
📝 Issue to file in elastic/elasticsearch
4
OpenTelemetry collector takes ~15s to start listening, so one-shot test senders give up
📝 Issue to file in open-telemetry/opentelemetry-collector-contrib (ES exporter) and elastic/kibana (Fleet)
3
Test counts the same mock data twice
🔁 Retry; optional test tweak
2
Azure storage emulator rejects the newer agent
📝 Issue to file in elastic/integrations
2
Kibana 9.7 writes the agent policy slightly differently
📝 Issue to file in elastic/kibana (Fleet)
2
9.7 adds new fields the tests don't know about
🛠 Fix in this repo
1
network_traffic: packetbeat stops before it sends the last events
📝 Issue to file in elastic/beats
1
fim: the test writes its files before the agent starts watching
📝 Issue to file in elastic/integrations
1
vectra_rux: a pipeline script is rejected by 9.7, affects real users
🛠 Fix in this repo
1
ti_eset: a document that used to be dropped is now kept
elasticapm_input_otel: data lands in generic instead of generic.otel
📝 Issue to file in elastic/integrations
1
statsd_input_otel: gets fewer documents than expected, failing since 2026-09-08
🔍 Not investigated yet
Legend: 📝 an issue should be filed in that repo · 🛠 fix needed in this repo · 📌 already tracked · 🔁 retry should pass · 🔍 not investigated yet
Details
1. Elastic Agent breaks on spaces in integration names (14 packages)
Root cause: The agent puts the integration name (e.g. Cisco ISE) into an internal OpenTelemetry component ID. Spaces aren't allowed in that ID, so the agent's collector refuses to start and the integration never runs. This was introduced by Include input id in otel receiver names if present elastic-agent#17148 on 10-16. It isn't released yet, but it will ship in 9.5.6, 9.6.0 and 9.7.0 unless it's fixed first.
Evidence: agent log invalid character(s) in name "...tcp-Cisco ISE-...". All 14 packages started failing on the same night.
Next: an issue should be filed in elastic/elastic-agent. It should be fixed before 9.5.6 / 9.6.0 ship.
2. OpenTelemetry collector starts listening too late (4 packages)
Root cause: In 9.6/9.7, Fleet tells the agent's Elasticsearch exporter to retry on 401/403. On startup the exporter checks the Elasticsearch version without sending its API key, gets a 401, and retries it for 5s, once per signal (logs, metrics, traces). That keeps the receivers from opening their ports for about 15s. The test senders fire once when the policy is applied, get connection refused, and give up. The packages and their policies are correct.
Evidence: reproduced locally. The collector logs failed to fetch Elasticsearch info ... context deadline exceeded three times and starts listening 15s after the policy ack. The sender logs connect: connection refused. Narrowing the retry list to [429, 500, 502, 503, 504] makes the tests pass.
Next: an issue should be filed for the ES exporter in open-telemetry/opentelemetry-collector-contrib: send the API key with the version check and don't retry 401/403. Also file one in elastic/kibana for Fleet: reconsider 401/403 in retry_on_status. Real users with push clients that don't retry (Jaeger, OTLP, StatsD) can lose data in that window.
3. Lists come back in a different order (5 packages)
Root cause: These pipelines remove duplicates from a list with a HashSet, and Elasticsearch 9.7 changed the order a HashSet returns items in. No data is lost, but the expected test output compares the order.
Evidence: the only difference in the test output is the order of items, e.g. in related.hosts.
Next: sort the list in the pipeline, so the output is the same on every stack version.
Root cause: A bug in the Elasticsearch 9.7 snapshot. Searching the test documents fails even though they were indexed. The packages are fine.
Evidence:400 minDoc must be >= 0 but got minDoc=-359
Next: an issue should be filed in elastic/elasticsearch.
Packages: grafana, mysql, oracle, oracle_weblogic
5. Test counts the same data twice (3 packages)
Root cause: The mock API returns the same data on every poll. On a slow CI run the agent polls twice before the test checks the count, so it finds double the expected documents.
Evidence:observed 15, expected 5
Next: retry. To stop it for good, use a longer poll interval in the test.
6. Azure storage emulator rejects the newer agent (2 packages)
Root cause: The tests use Azurite, an Azure Storage emulator. Even its latest version rejects the newer API version the 9.7 agent sends. The azure_blob_storage package already fixed this in [azure_blob_storage] Pass --skipApiVersionCheck to Azurite in system tests #20300 with --skipApiVersionCheck, but these two packages were missed. Test setup only, so no impact on users.
Evidence:400 The API version 2026-12-06 is not supported by Azurite. With the flag, both tests pass locally on 9.7.
7. Kibana writes the policy differently (2 packages)
Root cause: Kibana 9.7 writes two values in the compiled agent policy differently: condition: true becomes "true", and an empty secrets entry is gone. The expected test output still has the old form.
Evidence: the policy tests show these two lines changing.
Next: an issue should be filed in elastic/kibana for Fleet to confirm whether the change is intended. If it is, update the expected test files.
Packages: system, ti_abusech
8. New fields in 9.7 (2 packages)
Root cause: In 9.7 the agent and Elasticsearch add new fields (log.file.fingerprint and .text variants of some fields). Field validation rejects them because these packages don't declare them.
Evidence:field "log.file.fingerprint" is undefined
Next: declare the new fields in each package.
Packages: backstage, elasticsearch
9. Single-package failures
network_traffic: When the agent runs it through its new OpenTelemetry mode, packetbeat stops as soon as it finishes reading the test capture file. The UDP events are only sent 10s later, so they're lost. Only the test setup hits this, not live traffic. 📝 An issue should be filed in elastic/beats.
fim: The agent waits a random 0–10s before it starts watching files. The test generator is done in about 3s, so the test passes only when the agent happens to start quickly. 📝 An issue should be filed in elastic/integrations for the package owners.
vectra_rux: A pipeline script modifies the document in a way 9.7 no longer allows, so documents are tagged with a pipeline error. This affects real users on 9.6+. 🛠 Fix the script. 7 other packages use the same pattern but have no test that covers it.
ti_eset: A document that used to be dropped is now kept. The cause isn't clear yet. 🛠 Reproduce it on both stacks before changing the expected output.
Root cause: A bug in the Elasticsearch 9.7 snapshot. Searching the test documents fails even though they were indexed. The packages are fine.
Evidence:400 minDoc must be >= 0 but got minDoc=-359
Next: an issue should be filed in elastic/elasticsearch.
Packages: grafana, mysql, oracle, oracle_weblogic
There is an issue in elastic-package related to this elastic/elastic-package#3877 But no solution found there for this. Not sure if this is related to elastic-package or Elasticsearch as mentioned in this analysis.
2. OpenTelemetry collector starts listening too late (4 packages)
Root cause: In 9.6/9.7, Fleet tells the agent's Elasticsearch exporter to retry on 401/403. On startup the exporter checks the Elasticsearch version without sending its API key, gets a 401, and retries it for 5s, once per signal (logs, metrics, traces). That keeps the receivers from opening their ports for about 15s. The test senders fire once when the policy is applied, get connection refused, and give up. The packages and their policies are correct.
Evidence: reproduced locally. The collector logs failed to fetch Elasticsearch info ... context deadline exceeded three times and starts listening 15s after the policy ack. The sender logs connect: connection refused. Narrowing the retry list to [429, 500, 502, 503, 504] makes the tests pass.
Next: an issue should be filed for the ES exporter in open-telemetry/opentelemetry-collector-contrib: send the API key with the version check and don't retry 401/403. Also file one in elastic/kibana for Fleet: reconsider 401/403 in retry_on_status. Real users with push clients that don't retry (Jaeger, OTLP, StatsD) can lose data in that window.
3. Lists come back in a different order (5 packages)
Root cause: These pipelines remove duplicates from a list with a HashSet, and Elasticsearch 9.7 changed the order a HashSet returns items in. No data is lost, but the expected test output compares the order.
Evidence: the only difference in the test output is the order of items, e.g. in related.hosts.
Next: sort the list in the pipeline, so the output is the same on every stack version.
Correction (after further investigation): The cause isn't only HashSet. When an ingest pipeline writes any Set into the document (including TreeSet and LinkedHashSet), Elasticsearch's deep copy turns it into a HashSet. elastic/elasticsearch#159996 changed the HashSet capacity that copy uses, which changed the order of the items. That's why gcp fails even though it uses a sorted TreeSet. The change shipped in 9.6.0, so 9.6 is affected as well as 9.7, and these packages also appear in #20180. Using LinkedHashSet won't fix it. Each pipeline has to write a List (new ArrayList(set), sorted if needed), as #21700 already did for aws.cloudtrail. The fix belongs in each package's pipeline, not in elastic-package, whose test runner correctly compares arrays in order. Filed for the package owners (@elastic/security-service-integrations) as #22201.
Root cause: In 9.7 the agent and Elasticsearch add new fields (log.file.fingerprint and .text variants of some fields). Field validation rejects them because these packages don't declare them.
Evidence:field "log.file.fingerprint" is undefined
vectra_rux: A pipeline script modifies the document in a way 9.7 no longer allows, so documents are tagged with a pipeline error. This affects real users on 9.6+. 🛠 Fix the script. 7 other packages use the same pattern but have no test that covers it.
+ "error": {
+ "message": [
+ "Processor script with tag script_to_truncate_long_fields_68a9333e in pipeline default-1792468191089977891 failed with message: not supported"
+ ]
+ },
Status update (2026-11-20): build 53671, 21 packages
atlassian_cloud passes now: #22530 fixed it. vectra_rux changed: its audit pipeline test passes on 9.7 for the first time, with no package change, after tonight's Elasticsearch snapshot. Its system tests now run, and they fail the elastic-agent logs check (log). No new packages.
✅ Investigated, tracked, waiting on the owning team
Duplicate metric docs are rejected (version_conflict_engine_exception): 3 of 6 docs
#17716 and #18735 are closed. Issue to file for the owners
network_traffic
Fleet refuses breaking-change upgrades unless they are acknowledged, and upgrade_package_latest can't acknowledge them
Issue to file in elastic/elastic-package
system, ti_abusech
Kibana 9.7 renders condition: "true" and secret_references: []
Issue to file in elastic/kibana to confirm it's intended
doppel
The test mock only answers x-doppel-client: elastic/1.2.0; the package is 1.3.0
Fix the mock in this repo
backstage, elasticsearch, mongodb
The stack emits undeclared fields (mongodb also fails on 8.19: #22492, #22484)
Declare the fields
elasticapm_input_otel
The APM receiver forces ECS mode, so data lands in generic
Owners to confirm and update the test
🔍 Not investigated
vectra_rux (new symptom): the system tests for audit, detection_event and entity_event fail the "elastic-agent logs - common" check. Ingest works (5 docs per data stream), and the job log doesn't show which agent log lines triggered the check. Next step: read the agent errors from the stack dump or reproduce locally on 9.7.0-SNAPSHOT.
ti_eset: the apt pipeline test output differs on 9.7 only. The diff isn't in the job log, so it needs the test-results artifact.
vectra_rux update (build 53671): cause found ✅. The elastic-agent logs - common failures in audit, detection_event and entity_event come from the system-test mock. After the last page (next_checkpoint: 6), the next poll requests from=6, which the mock doesn't serve, so it answers 404 and the CEL input goes HEALTHY→DEGRADED. Ingest is fine (5 docs per stream).
It's a test-only issue for package owners. It reproduces locally on 9.7.0-SNAPSHOT, and an empty-page mock route for from=6 fixes it (verified). Owner issue with details: #22567.
Status update (2026-11-24): build 53875, 21 packages
The same 21 packages fail as in the last build; kubernetes (an intermittent Fleet policy teardown error seen on 2026-11-23) did not fail tonight. No new packages and no package passes that failed before. One job in the build reports timed_out; it is not mapped to a package.
✅ Investigated, tracked, waiting on the owning team
Readiness checks pass before the DB listener is up (ORA-12541). Fails on 9.7, 8.19, 8.19 LogsDB and basic+LogsDB
#22502 is assigned. Draft PR elastic/integrations#22635; package fix, so it reaches the daily jobs on the next night after it merges
⏳ Cause known, nothing filed yet
Packages
Cause
Next step
statsd_input_otel
Duplicate metric docs are rejected (version_conflict_engine_exception): 3 of 6 docs
#17716 and #18735 are closed. Issue to file for the owners
network_traffic
Fleet refuses breaking-change upgrades unless they are acknowledged, and upgrade_package_latest can't acknowledge them
Issue to file in elastic/elastic-package
system, ti_abusech
Kibana 9.7 renders condition: "true" and secret_references: []
Issue to file in elastic/kibana to confirm it's intended
doppel
The test mock only answers x-doppel-client: elastic/1.2.0; the package is 1.3.0
Fix the mock in this repo
backstage, elasticsearch, mongodb
The stack emits fields the packages don't declare. For mongodb collstats the undefined fields are mongodb.collstats.stats.capped, stats.freeStorageSize and stats.scaleFactor (log); it also fails on 8.19 (#22492, #22484). Cause is inferred, not reproduced
Declare the fields
elasticapm_input_otel
The APM receiver forces ECS mode, so data lands in generic
Owners to confirm and update the test
🔍 Not investigated
ti_eset: the apt pipeline test output differs on 9.7 only. The diff isn't in the job log, so it needs the test-results artifact.
Activity
mrodm commentedon Oct 27, 2026
Related to the issues previously found testing with stack 9.6.0-SNAPSHOT #20180
teresaromero commentedon Oct 27, 2026
Report of failures:
Nightly build 52238: why 44 packages failed
Build 52238 ran every package against the upcoming 9.7 stack (snapshot build). The 44 packages listed in this issue failed from 16 different causes. The same packages pass against the current release, so these failures come from changes in the upcoming 9.6/9.7 stack, not from recent package edits. Most of these causes also explain the 9.6.0-SNAPSHOT failures in #20180.
One more job, extrahop, failed in this build but isn't in this issue's list. The CI machine timed out downloading Go, so no tests ran. A retry should pass.
At a glance
elastic/elastic-agentelastic/elasticsearchopen-telemetry/opentelemetry-collector-contrib(ES exporter) andelastic/kibana(Fleet)elastic/integrationselastic/kibana(Fleet)elastic/beatselastic/integrationsgenericinstead ofgeneric.otelelastic/integrationsLegend: 📝 an issue should be filed in that repo · 🛠 fix needed in this repo · 📌 already tracked · 🔁 retry should pass · 🔍 not investigated yet
Details
1. Elastic Agent breaks on spaces in integration names (14 packages)
Cisco ISE) into an internal OpenTelemetry component ID. Spaces aren't allowed in that ID, so the agent's collector refuses to start and the integration never runs. This was introduced by Include input id in otel receiver names if present elastic-agent#17148 on 10-16. It isn't released yet, but it will ship in 9.5.6, 9.6.0 and 9.7.0 unless it's fixed first.invalid character(s) in name "...tcp-Cisco ISE-...". All 14 packages started failing on the same night.elastic/elastic-agent. It should be fixed before 9.5.6 / 9.6.0 ship.2. OpenTelemetry collector starts listening too late (4 packages)
connection refused, and give up. The packages and their policies are correct.failed to fetch Elasticsearch info ... context deadline exceededthree times and starts listening 15s after the policy ack. The sender logsconnect: connection refused. Narrowing the retry list to[429, 500, 502, 503, 504]makes the tests pass.open-telemetry/opentelemetry-collector-contrib: send the API key with the version check and don't retry 401/403. Also file one inelastic/kibanafor Fleet: reconsider 401/403 inretry_on_status. Real users with push clients that don't retry (Jaeger, OTLP, StatsD) can lose data in that window.3. Lists come back in a different order (5 packages)
HashSet, and Elasticsearch 9.7 changed the order aHashSetreturns items in. No data is lost, but the expected test output compares the order.related.hosts.4. Elasticsearch search bug (4 packages)
400 minDoc must be >= 0 but got minDoc=-359elastic/elasticsearch.5. Test counts the same data twice (3 packages)
observed 15, expected 56. Azure storage emulator rejects the newer agent (2 packages)
azure_blob_storagepackage already fixed this in [azure_blob_storage] Pass --skipApiVersionCheck to Azurite in system tests #20300 with--skipApiVersionCheck, but these two packages were missed. Test setup only, so no impact on users.400 The API version 2026-12-06 is not supported by Azurite. With the flag, both tests pass locally on 9.7.elastic/integrationsfor the package owners. It probably also explains the open flaky-test issues [Stack 8.19.24-SNAPSHOT] [azure_network_watcher_nsg] Failing test daily: system test: default in azure_network_watcher_nsg.log #22134 and [Stack 8.19.24-SNAPSHOT] [azure_network_watcher_vnet] Failing test daily: system test: default in azure_network_watcher_vnet.log #22135.7. Kibana writes the policy differently (2 packages)
condition: truebecomes"true", and an empty secrets entry is gone. The expected test output still has the old form.elastic/kibanafor Fleet to confirm whether the change is intended. If it is, update the expected test files.8. New fields in 9.7 (2 packages)
log.file.fingerprintand.textvariants of some fields). Field validation rejects them because these packages don't declare them.field "log.file.fingerprint" is undefined9. Single-package failures
elastic/beats.elastic/integrationsfor the package owners.logs-generic-*instead ofgeneric.otel. 📝 An issue should be filed inelastic/integrationsfor the package owners to confirm the change is intended and update the test.teresaromero commentedon Oct 27, 2026
Opening bug for elastic/elastic-agent#17590
@cmacknz could you take a look on the relevance of this bug found? this is from an investigation of many failing packages.... thanks!
cc @elastic/ecosystem
mrodm commentedon Oct 27, 2026
There are two issues already created for this package related to 9.4.0-SNAPSHOT and 9.5.0-SNAPSHOT:
Not investigated the root cause of this divergence.
With the minimum kibana/stack version (9.2.6), tests run successfully
mrodm commentedon Oct 27, 2026
There is an issue in elastic-package related to this elastic/elastic-package#3877 But no solution found there for this. Not sure if this is related to elastic-package or Elasticsearch as mentioned in this analysis.
teresaromero commentedon Oct 27, 2026
Two issues where filled to verify this bugs found
teresaromero commentedon Oct 27, 2026
Correction (after further investigation): The cause isn't only
HashSet. When an ingest pipeline writes anySetinto the document (includingTreeSetandLinkedHashSet), Elasticsearch's deep copy turns it into aHashSet. elastic/elasticsearch#159996 changed theHashSetcapacity that copy uses, which changed the order of the items. That's why gcp fails even though it uses a sortedTreeSet. The change shipped in 9.6.0, so 9.6 is affected as well as 9.7, and these packages also appear in #20180. UsingLinkedHashSetwon't fix it. Each pipeline has to write aList(new ArrayList(set), sorted if needed), as #21700 already did foraws.cloudtrail. The fix belongs in each package's pipeline, not in elastic-package, whose test runner correctly compares arrays in order. Filed for the package owners (@elastic/security-service-integrations) as #22201.mrodm commentedon Oct 27, 2026
These errors were already raised when testing with stack version 9.6.0-SNAPSHOT: #20180
Example of one of the latest buildkite builds testing with 9.6.0-SNAPSHOT https://buildkite.com/elastic/integrations/builds/51772
mrodm commentedon Oct 27, 2026
The errors of the package were already reported in 9.6.0-SNAPSHOT too: #20180
Example of one of the latest buildkite builds testing with 9.6.0-SNAPSHOT https://buildkite.com/elastic/integrations/builds/51772
Example of the error found in the document:
teresaromero commentedon Nov 17, 2026
Status update (2026-11-17): build 53431, 26 packages
Full breakdown:
✅ Investigated, tracked, waiting on the owning team
@elastic/security-service-integrations. Also closes 8.19 flakes #20536, #20790, #21407, #21518, #22430--skipApiVersionCheck, as in #20300). Also explains 8.19 issues #22132–#22135, #22314, #22315, #22322, #22323, #22482, #22483, #22490, #22491hit_count: 9→min_count: 7)ORA-12541)Setiteration order changed in 9.6+version_conflict_engine_exception)🔄 Fix in progress
⏳ Pending: root cause identified, nothing filed yet
upgrade_package_latestcan't acknowledgeelastic/elastic-packagecondition: "true"andsecret_references: []elastic/kibanato confirm it's intendedx-doppel-client: elastic/1.2.0; package is 1.3.0 (#20987)not supportedon 9.x, every audit event fails ingest for usersgeneric🔍 Not investigated
teresaromero commentedon Nov 20, 2026
Status update (2026-11-20): build 53671, 21 packages
atlassian_cloud passes now: #22530 fixed it. vectra_rux changed: its audit pipeline test passes on 9.7 for the first time, with no package change, after tonight's Elasticsearch snapshot. Its system tests now run, and they fail the elastic-agent logs check (log). No new packages.
✅ Investigated, tracked, waiting on the owning team
ORA-12541)Setiteration order changed in 9.6+⏳ Cause known, nothing filed yet
version_conflict_engine_exception): 3 of 6 docsupgrade_package_latestcan't acknowledge themelastic/elastic-packagecondition: "true"andsecret_references: []elastic/kibanato confirm it's intendedx-doppel-client: elastic/1.2.0; the package is 1.3.0generic🔍 Not investigated
aptpipeline test output differs on 9.7 only. The diff isn't in the job log, so it needs the test-results artifact.teresaromero commentedon Nov 20, 2026
vectra_rux update (build 53671): cause found ✅. The
elastic-agent logs - commonfailures inaudit,detection_eventandentity_eventcome from the system-test mock. After the last page (next_checkpoint: 6), the next poll requestsfrom=6, which the mock doesn't serve, so it answers 404 and the CEL input goes HEALTHY→DEGRADED. Ingest is fine (5 docs per stream).Evidence:
HEALTHY->DEGRADED) are in the system test JUnit report, artifactbuild/test-results/vectra_rux-system-1795147213172027019.xml: https://buildkite.com/organizations/elastic/pipelines/integrations/builds/53671/jobs/01a1f70c-6950-4186-a35c-8746101f7734/artifacts/01a1f71d-0000-4a85-8c09-a89c392574cffrom=6: https://github.com/elastic/integrations/blob/main/packages/vectra_rux/_dev/deploy/docker/files/config.ymlIt's a test-only issue for package owners. It reproduces locally on 9.7.0-SNAPSHOT, and an empty-page mock route for
from=6fixes it (verified). Owner issue with details: #22567.teresaromero commentedon Nov 24, 2026
Status update (2026-11-24): build 53875, 21 packages
The same 21 packages fail as in the last build; kubernetes (an intermittent Fleet policy teardown error seen on 2026-11-23) did not fail tonight. No new packages and no package passes that failed before. One job in the build reports
timed_out; it is not mapped to a package.✅ Investigated, tracked, waiting on the owning team
Setiteration order changed in 9.6+🔄 Fix in progress
ORA-12541). Fails on 9.7, 8.19, 8.19 LogsDB and basic+LogsDB⏳ Cause known, nothing filed yet
version_conflict_engine_exception): 3 of 6 docsupgrade_package_latestcan't acknowledge themelastic/elastic-packagecondition: "true"andsecret_references: []elastic/kibanato confirm it's intendedx-doppel-client: elastic/1.2.0; the package is 1.3.0collstatsthe undefined fields aremongodb.collstats.stats.capped,stats.freeStorageSizeandstats.scaleFactor(log); it also fails on 8.19 (#22492, #22484). Cause is inferred, not reproducedgeneric🔍 Not investigated
aptpipeline test output differs on 9.7 only. The diff isn't in the job log, so it needs the test-results artifact.