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
:mlMachine learning>test-failureTriaged test failures from CITeam:MLMeta label for the ML teamneeds:riskRequires assignment of a risk label (low, medium, blocker)
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.
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.
:mlMachine learning>test-failureTriaged test failures from CITeam:MLMeta label for the ML teamneeds:riskRequires assignment of a risk label (low, medium, blocker)
Activity
elasticsearchmachine commentedon Dec 6, 2026
Pinging @elastic/ml-core (Team:ML)
infra-vault-gh-plugin-prod commentedon Dec 6, 2026
This has been muted on branch 9.6
Mute Reasons:
Muted tasks:
:x-pack:plugin:ml:testBuild Scans:
Mute org.elasticsearch.xpack.ml.datafeed.DatafeedManagerTests testPut…
elasticsearchmachine commentedon Dec 6, 2026
Test Failure Analysis
Summary
testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOfftriggersDatafeedManager.warnIfProjectRoutingIsInert(adds theproject_routing is stored but has no effect…header warning, since CPS is not allowed), but the test never consumes it withassertWarnings(...), soESTestCase.ensureNoWarnings()fails.assertWarnings(DatafeedConfig.PROJECT_ROUTING_INERT_WITHOUT_CPS_MESSAGE));origin/9.6does not have it (its onlyassertWarningsis at the other test). The test only runs (notassumeFalse-skipped) when the ML CPS feature flag is off, i.e. in release-tests builds (-Dbuild.snapshot=false).Release risk: low-risk
Impact
Reproduction
./gradlew :x-pack:plugin:ml:test --tests "org.elasticsearch.xpack.ml.datafeed.DatafeedManagerTests.testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff" -Dtests.seed=81262CC6F6ABCD90 -Dbuild.snapshot=false -Dtests.locale=fr-LU -Dtests.timezone=Europe/Vatican -Druntime.java=27Mitigation Proposal
assertWarningsdiagnosis.DatafeedManager.warnIfProjectRoutingIsInert,ESTestCase.ensureNoWarnings/assertWarnings,DatafeedManagerTests.assertWarnings(DatafeedConfig.PROJECT_ROUTING_INERT_WITHOUT_CPS_MESSAGE);after the response assertions in the Put test), validate with the command above, then remove thetestPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOffentry ([CI] DatafeedManagerTests testPutDatafeed_WithProjectRouting_SucceedsWhenMlFlagOff failing #168948) frommuted-tests.ymlon 9.6. Also check the Update variant for the same issue.