Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Fleet] Remove deprecated ML job property from test fixtures (#…
…207857) (#207886) # Backport This will backport the following commits from `main` to `8.x`: - [[Fleet] Remove deprecated ML job property from test fixtures (#207857)](#207857) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kyle Pollich","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-22T17:03:55Z","message":"[Fleet] Remove deprecated ML job property from test fixtures (#207857)\n\n## Summary\r\n\r\nReplace `estimated_heap_memory_usage_bytes` property with `expected\r\nmodel_size_bytes` per deprecation warning. I unzipped the fixture\r\narchives, replaced the property, and rezipped them.\r\n\r\n## To test\r\n\r\nAdd the following to your `serverArgs` block in\r\n`x-pack/test/fleet_api_integration/config.base.ts`\r\n\r\n```\r\n{\r\n name: 'elasticsearch.debug',\r\n level: 'debug',\r\n appenders: ['default'],\r\n},\r\n```\r\n\r\nRun the EPM FTR tests e.g. \r\n\r\n```\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.epm.ts \r\n\r\n# in another terminal session\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.epm.ts --grep \"Assets tagging\"\r\n```\r\n\r\nCheck that the deprecation notice does not appear in the\r\n`elasticsearch.debug` logs in your console\r\n\r\n```\r\nx-pack/test/fleet_api_integration/apis/epm/bulk_get_assets.ts: Deprecated field estimated_heap_memory_usage_bytes used, expected model_size_bytes instead\r\n```","sha":"4073aff617e1fa2fa09f9414df0e398d47159b41","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor"],"title":"[Fleet] Remove deprecated ML job property from test fixtures","number":207857,"url":"https://github.com/elastic/kibana/pull/207857","mergeCommit":{"message":"[Fleet] Remove deprecated ML job property from test fixtures (#207857)\n\n## Summary\r\n\r\nReplace `estimated_heap_memory_usage_bytes` property with `expected\r\nmodel_size_bytes` per deprecation warning. I unzipped the fixture\r\narchives, replaced the property, and rezipped them.\r\n\r\n## To test\r\n\r\nAdd the following to your `serverArgs` block in\r\n`x-pack/test/fleet_api_integration/config.base.ts`\r\n\r\n```\r\n{\r\n name: 'elasticsearch.debug',\r\n level: 'debug',\r\n appenders: ['default'],\r\n},\r\n```\r\n\r\nRun the EPM FTR tests e.g. \r\n\r\n```\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.epm.ts \r\n\r\n# in another terminal session\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.epm.ts --grep \"Assets tagging\"\r\n```\r\n\r\nCheck that the deprecation notice does not appear in the\r\n`elasticsearch.debug` logs in your console\r\n\r\n```\r\nx-pack/test/fleet_api_integration/apis/epm/bulk_get_assets.ts: Deprecated field estimated_heap_memory_usage_bytes used, expected model_size_bytes instead\r\n```","sha":"4073aff617e1fa2fa09f9414df0e398d47159b41"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207857","number":207857,"mergeCommit":{"message":"[Fleet] Remove deprecated ML job property from test fixtures (#207857)\n\n## Summary\r\n\r\nReplace `estimated_heap_memory_usage_bytes` property with `expected\r\nmodel_size_bytes` per deprecation warning. I unzipped the fixture\r\narchives, replaced the property, and rezipped them.\r\n\r\n## To test\r\n\r\nAdd the following to your `serverArgs` block in\r\n`x-pack/test/fleet_api_integration/config.base.ts`\r\n\r\n```\r\n{\r\n name: 'elasticsearch.debug',\r\n level: 'debug',\r\n appenders: ['default'],\r\n},\r\n```\r\n\r\nRun the EPM FTR tests e.g. \r\n\r\n```\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.epm.ts \r\n\r\n# in another terminal session\r\nFLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.epm.ts --grep \"Assets tagging\"\r\n```\r\n\r\nCheck that the deprecation notice does not appear in the\r\n`elasticsearch.debug` logs in your console\r\n\r\n```\r\nx-pack/test/fleet_api_integration/apis/epm/bulk_get_assets.ts: Deprecated field estimated_heap_memory_usage_bytes used, expected model_size_bytes instead\r\n```","sha":"4073aff617e1fa2fa09f9414df0e398d47159b41"}}]}] BACKPORT--> Co-authored-by: Kyle Pollich <[email protected]>
- Loading branch information