[8.8] [Synthetics] Skip package installation on CI (#155854) (#155987)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[Synthetics] Skip package installation on CI
(#155854)](https://github.com/elastic/kibana/pull/155854)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2023-04-26T16:02:44Z","message":"[Synthetics]
Skip package installation on CI
(#155854)","sha":"559d928705d1e5d9510229b745612a17346181a1","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:uptime","release_note:skip","auto-backport","v8.8.0","v8.9.0"],"number":155854,"url":"https://github.com/elastic/kibana/pull/155854","mergeCommit":{"message":"[Synthetics]
Skip package installation on CI
(#155854)","sha":"559d928705d1e5d9510229b745612a17346181a1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/155854","number":155854,"mergeCommit":{"message":"[Synthetics]
Skip package installation on CI
(#155854)","sha":"559d928705d1e5d9510229b745612a17346181a1"}},{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
This commit is contained in:
Shahzad 2023-04-28 10:56:47 +02:00 committed by GitHub
parent 59efc494f7
commit d8718ff1bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,3 @@
[
"x-pack/plugins/watcher/jest.config.js",
"src/core/server/integration_tests/ui_settings/jest.integration.config.js"
"x-pack/plugins/watcher/jest.config.js"
]

View file

@ -108,6 +108,10 @@ export class SyntheticsService {
}
public async setupIndexTemplates() {
if (process.env.CI && !this.config?.manifestUrl) {
// skip installation on CI
return;
}
if (this.indexTemplateExists) {
// if already installed, don't need to reinstall
return;

View file

@ -30,9 +30,6 @@ export async function getApiIntegrationConfig({ readConfigFile }: FtrConfigProvi
'--xpack.ruleRegistry.write.enabled=true',
'--xpack.ruleRegistry.write.enabled=true',
'--xpack.ruleRegistry.write.cache.enabled=false',
'--xpack.uptime.service.password=test',
'--xpack.uptime.service.username=localKibanaIntegrationTestsUser',
'--xpack.uptime.service.devUrl=mockDevUrl',
'--monitoring_collection.opentelemetry.metrics.prometheus.enabled=true',
],
},