mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029)](https://github.com/elastic/kibana/pull/193029) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cristina Amico","email":"criamico@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-17T09:35:00Z","message":"[Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029)\n\n## Summary\r\n\r\n[Job](https://buildkite.com/elastic/kibana-fleet-packages/builds/1022)\r\n`install_all_packages` is been failing for several days because of\r\n`symantec-0.1.3` being deprecated.\r\nQuerying \r\n```\r\nGET kbn:/api/fleet/epm/packages?prerelease=true\r\n```\r\nit returns:\r\n```\r\n\"name\": \"symantec\",\r\n \"title\": \"Symantec\",\r\n \"version\": \"0.1.3\",\r\n \"release\": \"experimental\",\r\n \"description\": \"Deprecated. Use a specific Symantec package instead.\",\r\n```\r\n\r\nI'm not sure when this deprecation was announced but I'm skipping this\r\npackage from the script so the job should hopefully return green.\r\n\r\nEDIT: package got deprecated back in 2022:\r\nhttps://github.com/elastic/package-storage/pull/3254\r\nhowever last week we merged a\r\n[change](https://github.com/elastic/kibana/pull/192040/files#diff-292c3f307d3d0d341a361d12416d04609a3f525be268242c2a06be06fd8d5810R188)\r\nto temporarily remove kibana version checks when querying EPR, so this\r\npackage started appearing. In fact in previous successful runs we didn't\r\nattempt installing this package at all.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"6b24114b4298266d7c4d73186983f9b73704a7a2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","v8.16.0"],"title":"[Fleet] Remove deprecated Symantec package from install_all_packages_job","number":193029,"url":"https://github.com/elastic/kibana/pull/193029","mergeCommit":{"message":"[Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029)\n\n## Summary\r\n\r\n[Job](https://buildkite.com/elastic/kibana-fleet-packages/builds/1022)\r\n`install_all_packages` is been failing for several days because of\r\n`symantec-0.1.3` being deprecated.\r\nQuerying \r\n```\r\nGET kbn:/api/fleet/epm/packages?prerelease=true\r\n```\r\nit returns:\r\n```\r\n\"name\": \"symantec\",\r\n \"title\": \"Symantec\",\r\n \"version\": \"0.1.3\",\r\n \"release\": \"experimental\",\r\n \"description\": \"Deprecated. Use a specific Symantec package instead.\",\r\n```\r\n\r\nI'm not sure when this deprecation was announced but I'm skipping this\r\npackage from the script so the job should hopefully return green.\r\n\r\nEDIT: package got deprecated back in 2022:\r\nhttps://github.com/elastic/package-storage/pull/3254\r\nhowever last week we merged a\r\n[change](https://github.com/elastic/kibana/pull/192040/files#diff-292c3f307d3d0d341a361d12416d04609a3f525be268242c2a06be06fd8d5810R188)\r\nto temporarily remove kibana version checks when querying EPR, so this\r\npackage started appearing. In fact in previous successful runs we didn't\r\nattempt installing this package at all.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"6b24114b4298266d7c4d73186983f9b73704a7a2"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193029","number":193029,"mergeCommit":{"message":"[Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029)\n\n## Summary\r\n\r\n[Job](https://buildkite.com/elastic/kibana-fleet-packages/builds/1022)\r\n`install_all_packages` is been failing for several days because of\r\n`symantec-0.1.3` being deprecated.\r\nQuerying \r\n```\r\nGET kbn:/api/fleet/epm/packages?prerelease=true\r\n```\r\nit returns:\r\n```\r\n\"name\": \"symantec\",\r\n \"title\": \"Symantec\",\r\n \"version\": \"0.1.3\",\r\n \"release\": \"experimental\",\r\n \"description\": \"Deprecated. Use a specific Symantec package instead.\",\r\n```\r\n\r\nI'm not sure when this deprecation was announced but I'm skipping this\r\npackage from the script so the job should hopefully return green.\r\n\r\nEDIT: package got deprecated back in 2022:\r\nhttps://github.com/elastic/package-storage/pull/3254\r\nhowever last week we merged a\r\n[change](https://github.com/elastic/kibana/pull/192040/files#diff-292c3f307d3d0d341a361d12416d04609a3f525be268242c2a06be06fd8d5810R188)\r\nto temporarily remove kibana version checks when querying EPR, so this\r\npackage started appearing. In fact in previous successful runs we didn't\r\nattempt installing this package at all.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"6b24114b4298266d7c4d73186983f9b73704a7a2"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
This commit is contained in:
parent
ec719e0c2a
commit
54424ef948
1 changed files with 8 additions and 2 deletions
|
@ -14,6 +14,11 @@
|
|||
|
||||
import { FtrProviderContext } from '../../api_integration/ftr_provider_context';
|
||||
|
||||
const DEPRECATED_PACKAGES = [
|
||||
'zscaler', // deprecated: https://github.com/elastic/integrations/issues/4947
|
||||
'symantec',
|
||||
];
|
||||
|
||||
export default function (providerContext: FtrProviderContext) {
|
||||
const { getService } = providerContext;
|
||||
const supertest = getService('supertest');
|
||||
|
@ -69,8 +74,9 @@ export default function (providerContext: FtrProviderContext) {
|
|||
.expect(200);
|
||||
const allResults = [];
|
||||
for (const pkg of packages) {
|
||||
// skip deprecated failing package https://github.com/elastic/integrations/issues/4947
|
||||
if (pkg.name === 'zscaler') continue;
|
||||
// skip deprecated failing packages
|
||||
if (DEPRECATED_PACKAGES.includes(pkg.name)) continue;
|
||||
|
||||
const res = await installPackage(pkg.name, pkg.version);
|
||||
allResults.push(res);
|
||||
if (res.success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue