Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Remove deprecated ML job property from test fixtures #207857

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

kpollich
Copy link
Member

@kpollich kpollich commented Jan 22, 2025

Summary

Replace estimated_heap_memory_usage_bytes property with expected model_size_bytes per deprecation warning. I unzipped the fixture archives, replaced the property, and rezipped them.

To test

Add the following to your serverArgs block in x-pack/test/fleet_api_integration/config.base.ts

{
  name: 'elasticsearch.debug',
  level: 'debug',
  appenders: ['default'],
},

Run the EPM FTR tests e.g.

FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.epm.ts 

# in another terminal session
FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.epm.ts --grep "Assets tagging"

Check that the deprecation notice does not appear in the elasticsearch.debug logs in your console

x-pack/test/fleet_api_integration/apis/epm/bulk_get_assets.ts: Deprecated field estimated_heap_memory_usage_bytes used, expected model_size_bytes instead

@kpollich kpollich added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Jan 22, 2025
@kpollich kpollich self-assigned this Jan 22, 2025
@kpollich kpollich requested a review from a team as a code owner January 22, 2025 15:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich kpollich enabled auto-merge (squash) January 22, 2025 16:31
@kpollich kpollich merged commit 4073aff into elastic:main Jan 22, 2025
16 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12913297484

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #9 / core route timeouts idle socket should timeout if payload sending has too long of an idle period
  • [job] [logs] FTR Configs #94 / discover/security/context_awareness security root profile cell renderers host.name DataView mode should open host.name flyout
  • [job] [logs] Jest Tests #2 / RegisteredAttachmentsPropertyActions renders the correct number of actions

Metrics [docs]

✅ unchanged

cc @kpollich

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 22, 2025
…#207857)

## Summary

Replace `estimated_heap_memory_usage_bytes` property with `expected
model_size_bytes` per deprecation warning. I unzipped the fixture
archives, replaced the property, and rezipped them.

## To test

Add the following to your `serverArgs` block in
`x-pack/test/fleet_api_integration/config.base.ts`

```
{
  name: 'elasticsearch.debug',
  level: 'debug',
  appenders: ['default'],
},
```

Run the EPM FTR tests e.g.

```
FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/fleet_api_integration/config.epm.ts

# in another terminal session
FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/fleet_api_integration/config.epm.ts --grep "Assets tagging"
```

Check that the deprecation notice does not appear in the
`elasticsearch.debug` logs in your console

```
x-pack/test/fleet_api_integration/apis/epm/bulk_get_assets.ts: Deprecated field estimated_heap_memory_usage_bytes used, expected model_size_bytes instead
```

(cherry picked from commit 4073aff)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 22, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants