Skip to content

[CI] DatafeedManagerTests testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff failing #168948

Backlog

Description

@infra-vault-gh-plugin-prod

Build Scans:

Reproduction Line:

./gradlew ":x-pack:plugin:ml:test" --tests "org.elasticsearch.xpack.ml.datafeed.DatafeedManagerTests.testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff" -Dtests.seed=81262CC6F6ABCD90 -Dbuild.snapshot=false -Dtests.jvm.argline="-Dbuild.snapshot=false" -Dlicense.key=x-pack/license-tools/src/test/resources/public.key -Dtests.locale=fr-LU -Dtests.timezone=Europe/Vatican -Druntime.java=27

Applicable branches:
9.6

Reproduces locally?:
N/A

Failure History:
See dashboard

Failure Message:

java.lang.AssertionError: unexpected warning headers
Expected: an empty collection
     but: <[project_routing is stored but has no effect because cross-project search is not enabled in this environment; the datafeed will search local indices only]>

Issue Reasons:

  • [9.6] 1 consecutive failures in test testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff
  • [9.6] 1 consecutive failures in step checkpart4_release-tests
  • [9.6] 1 consecutive failures in pipeline elasticsearch-periodic

Note:
This issue was created using new test triage automation. Please report issues or feedback to es-core-infra.

Activity

  1. added
    >test-failure
    :ml
    on Dec 6, 2026
  2. added
    Team:ML
    needs:risk
    on Dec 6, 2026
  3. elasticsearchmachine commented on Dec 6, 2026

    @elasticsearchmachine
    Collaborator

    Pinging @elastic/ml-core (Team:ML)

  4. infra-vault-gh-plugin-prod commented on Dec 6, 2026

    @infra-vault-gh-plugin-prod
    ContributorAuthor

    This has been muted on branch 9.6

    Mute Reasons:

    • [9.6] 1 consecutive failures in test testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff
    • [9.6] 1 consecutive failures in step checkpart4_release-tests
    • [9.6] 1 consecutive failures in pipeline elasticsearch-periodic

    Muted tasks:

    • :x-pack:plugin:ml:test

    Build Scans:

  5. elasticsearchmachine commented on Dec 6, 2026

    @elasticsearchmachine
    Collaborator

    Test Failure Analysis

    Summary

    • Test-only bug on 9.6: testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff triggers DatafeedManager.warnIfProjectRoutingIsInert (adds the project_routing is stored but has no effect… header warning, since CPS is not allowed), but the test never consumes it with assertWarnings(...), so ESTestCase.ensureNoWarnings() fails.
    • Main already has the one-line fix ([ML] fix DatafeedManagerTests #163165 adds assertWarnings(DatafeedConfig.PROJECT_ROUTING_INERT_WITHOUT_CPS_MESSAGE)); origin/9.6 does not have it (its only assertWarnings is at the other test). The test only runs (not assumeFalse-skipped) when the ML CPS feature flag is off, i.e. in release-tests builds (-Dbuild.snapshot=false).

    Release risk: low-risk

    Test-only missing assertion; production behaviour (warning emitted when project_routing is inert) is intended and asserted elsewhere. Would change only if the warning were found to be emitted unexpectedly in production paths.

    Impact

    • Affected branches: 9.6
    • Affected OS: Linux
    • Affected pipelines: elasticsearch-periodic (checkpart4_release-tests)
    • Trend: first failure, deterministic in release-tests mode (flag off)

    Reproduction

    Mitigation Proposal


    Generated by test-analysis · archimedes v1.5.2 · agent-router/claude-sonnet-5-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    :ml>test-failureTeam:MLneeds:risk

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions