Skip to content

[Stack 9.7.0-SNAPSHOT] Too many packages failing in daily job #22189

Open

Description

  • Stack version: 9.7.0-SNAPSHOT
  • Packages:
    • azure_network_watcher_nsg
    • azure_network_watcher_vnet
    • backstage
    • chargeback
    • cloudflare_logpush
    • doppel
    • elasticapm_input_otel
    • elasticsearch
    • entityanalytics_ad
    • f5_bigip
    • gcp
    • kafka_input_otel
    • mongodb
    • network_traffic
    • o365_metrics
    • statsd_input
    • statsd_input_otel
    • symantec_endpoint_security
    • system
    • ti_abusech
    • ti_eset
    • vectra_rux
  • Owners:
    • @elastic/ecosystem

First build failed: https://buildkite.com/elastic/integrations/builds/52238

Latest 5 failed builds:

Activity

  1. added
    flaky-test
    Team:Ecosystem
    on Oct 27, 2026
  2. mrodm commented on Oct 27, 2026

    @mrodm
    Collaborator

    Related to the issues previously found testing with stack 9.6.0-SNAPSHOT #20180

  3. teresaromero commented on Oct 27, 2026

    @teresaromero
    Contributor

    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

    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 🛠 Investigate first
    1 mongodb: unmapped fields, also fails on 8.19 📌 Already tracked (#22005, #22022)
    1 kafka_input_otel: the collector rejects removed Kafka settings 📌 Already tracked (#22185)
    1 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.
    • Packages: cisco_ise, cisco_secure_email_gateway, citrix_adc, infoblox_nios, pps, jamf_compliance_reporter, jamf_protect, apache_tomcat, proofpoint_tap, spycloud, ece, ess_billing, trellix_edr_cloud, sentinel_one_cloud_funnel

    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.
    • Packages: jaeger_input_otel, otlp_input_otel, claude_code, claude_cowork

    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.
    • Packages: cloudflare_logpush, entityanalytics_ad, f5_bigip, gcp, symantec_endpoint_security

    4. Elasticsearch search bug (4 packages)

    • 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.
    • Packages: atlassian_cloud, beyondtrust_pra, o365_metrics

    6. Azure storage emulator rejects the newer agent (2 packages)

    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

  4. teresaromero commented on Oct 27, 2026

    @teresaromero
    Contributor

    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

  5. mrodm commented on Oct 27, 2026

    @mrodm
    Collaborator
    • statsd_input_otel: Gets 3 documents instead of 6. It has failed every 9.6 night since 2026-09-08 and passes on 9.4. 🔍 Not investigated yet.

    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

  6. mrodm commented on Oct 27, 2026

    @mrodm
    Collaborator

    . Elasticsearch search bug (4 packages)

    • 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.

  7. teresaromero commented on Oct 27, 2026

    @teresaromero
    Contributor

    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.
    • Packages: jaeger_input_otel, otlp_input_otel, claude_code, claude_cowork

    Two issues where filled to verify this bugs found

  8. teresaromero commented on Oct 27, 2026

    @teresaromero
    Contributor

    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.
    • Packages: cloudflare_logpush, entityanalytics_ad, f5_bigip, gcp, symantec_endpoint_security

    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.

  9. mrodm commented on Oct 27, 2026

    @mrodm
    Collaborator

    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

    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

  10. mrodm commented on Oct 27, 2026

    @mrodm
    Collaborator
    • 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.

    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:

    +            "error": {
    +                "message": [
    +                    "Processor script with tag script_to_truncate_long_fields_68a9333e in pipeline default-1792468191089977891 failed with message: not supported"
    +                ]
    +            },
    
  11. self-assigned this
    on Nov 16, 2026
  12. teresaromero commented on Nov 17, 2026

    @teresaromero
    Contributor

    Status update (2026-11-17): build 53431, 26 packages

    Full breakdown:

    ✅ Investigated, tracked, waiting on the owning team

    Packages Cause Tracked in Status
    atlassian_cloud Test mock serves page 1 again every 3rd poll (6 → 12 → 18 docs) #22504 Fix verified locally on 9.7, awaiting @elastic/security-service-integrations. Also closes 8.19 flakes #20536, #20790, #21407, #21518, #22430
    azure_network_watcher_nsg, azure_network_watcher_vnet Azurite rejects the agent's newer API version #22499 Reproduced locally. Test-only fix (--skipApiVersionCheck, as in #20300). Also explains 8.19 issues #22132–#22135, #22314, #22315, #22322, #22323, #22482, #22483, #22490, #22491
    statsd_input Intended metricbeat change (elastic/beats#53285): idle timers no longer re-sent #22500 Test-only fix (hit_count: 9 → min_count: 7)
    oracle Readiness checks pass before the DB listener is up (ORA-12541) #22502 Duplicates closed into it
    cloudflare_logpush, entityanalytics_ad, f5_bigip, gcp, symantec_endpoint_security Painless Set iteration order changed in 9.6+ #22201 No fix PR yet
    kafka_input_otel Template renders removed kafka receiver settings #22185 Unassigned, no fix PR yet
    statsd_input_otel Duplicate metric docs rejected (version_conflict_engine_exception) #17716, #18735 Symptom matches; this build's agent log not checked

    🔄 Fix in progress

    Packages Cause Fix
    claude_code, claude_cowork, jaeger_input_otel, otlp_input_otel OTel collector starts listening after the test sends data Fixed upstream in open-telemetry/opentelemetry-collector-contrib#52470 (v0.165.0). Agent bump elastic/elastic-agent#17977 passes CI, awaiting review, to be backported to all active branches. elastic/kibana#300838 still open as a hardening follow-up

    ⏳ Pending: root cause identified, nothing filed yet

    Packages Cause Next step
    network_traffic Fleet now refuses breaking-change upgrades unless acknowledged (elastic/kibana#301973); upgrade_package_latest can't acknowledge 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 Test mock only answers x-doppel-client: elastic/1.2.0; package is 1.3.0 (#20987) Fix the mock in this repo
    vectra_rux Pipeline script not supported on 9.x, every audit event fails ingest for users Fix in this repo
    backstage, elasticsearch, mongodb Stack emits undeclared fields Declare the fields (related: #20180, #22005)
    elasticapm_input_otel APM receiver forces ECS mode, data lands in generic Owners to confirm and update the test

    🔍 Not investigated

    • ti_eset: a document the test expects to be dropped is now indexed.
  13. teresaromero commented on Nov 20, 2026

    @teresaromero
    Contributor

    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

    Packages Cause Tracked in Status
    azure_network_watcher_nsg, azure_network_watcher_vnet Azurite rejects the agent's newer API version #22499 Assigned, test-only fix. Also fails on 8.19 and 8.19 LogsDB
    statsd_input Intended metricbeat change (elastic/beats#53285): idle timers are no longer re-sent, so 7 docs arrive instead of 9 #22500 Unassigned, test-only fix
    oracle Readiness checks pass before the DB listener is up (ORA-12541) #22502 Unassigned. Also fails on 8.19, 8.19 LogsDB and basic+LogsDB
    cloudflare_logpush, entityanalytics_ad, f5_bigip, gcp, symantec_endpoint_security Painless Set iteration order changed in 9.6+ #22201 Assigned, no fix PR yet
    kafka_input_otel Template renders removed kafka receiver settings #22185 Unassigned

    ⏳ 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 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.
  14. teresaromero commented on Nov 20, 2026

    @teresaromero
    Contributor

    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).

    Evidence:

    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.

  15. teresaromero commented on Nov 24, 2026

    @teresaromero
    Contributor

    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

    Packages Cause Tracked in Status
    azure_network_watcher_nsg, azure_network_watcher_vnet Azurite rejects the agent's newer API version #22499 Open, assigned, test-only fix. Also fails on 8.19 and 8.19 LogsDB
    statsd_input Intended metricbeat change (elastic/beats#53285): idle timers are no longer re-sent, so 7 docs arrive instead of 9 #22500 Open, test-only fix
    cloudflare_logpush, entityanalytics_ad, f5_bigip, gcp, symantec_endpoint_security Painless Set iteration order changed in 9.6+ #22201 Open, no fix PR yet
    kafka_input_otel Template renders removed kafka receiver settings #22185 Open
    vectra_rux Test mock returns 404 on the last page #22567 Open, fix verified locally, waiting on owners

    🔄 Fix in progress

    Packages Cause Fix (PR, release, where it must land)
    oracle 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Team:Ecosystemautomationflaky-test

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions