From 582b954fd3446c6d06c66eea5857c020a85d52ed Mon Sep 17 00:00:00 2001 From: Cristina Amico Date: Tue, 17 Sep 2024 11:35:00 +0200 Subject: [PATCH] [Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029) ## Summary [Job](https://buildkite.com/elastic/kibana-fleet-packages/builds/1022) `install_all_packages` is been failing for several days because of `symantec-0.1.3` being deprecated. Querying ``` GET kbn:/api/fleet/epm/packages?prerelease=true ``` it returns: ``` "name": "symantec", "title": "Symantec", "version": "0.1.3", "release": "experimental", "description": "Deprecated. Use a specific Symantec package instead.", ``` I'm not sure when this deprecation was announced but I'm skipping this package from the script so the job should hopefully return green. EDIT: package got deprecated back in 2022: https://github.com/elastic/package-storage/pull/3254 however last week we merged a [change](https://github.com/elastic/kibana/pull/192040/files#diff-292c3f307d3d0d341a361d12416d04609a3f525be268242c2a06be06fd8d5810R188) to temporarily remove kibana version checks when querying EPR, so this package started appearing. In fact in previous successful runs we didn't attempt installing this package at all. Co-authored-by: Elastic Machine (cherry picked from commit 6b24114b4298266d7c4d73186983f9b73704a7a2) --- x-pack/test/fleet_packages/tests/install_all.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x-pack/test/fleet_packages/tests/install_all.ts b/x-pack/test/fleet_packages/tests/install_all.ts index d58c9a0333b84..e835f200ed490 100644 --- a/x-pack/test/fleet_packages/tests/install_all.ts +++ b/x-pack/test/fleet_packages/tests/install_all.ts @@ -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) {