-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rum-selected-service-view
- Loading branch information
Showing
296 changed files
with
7,623 additions
and
3,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli) | ||
# Visit https://fossa.com to learn more | ||
|
||
version: 2 | ||
cli: | ||
server: https://app.fossa.com | ||
fetcher: custom | ||
project: kibana | ||
analyze: | ||
modules: | ||
- name: kibana | ||
type: nodejs | ||
strategy: yarn.lock | ||
target: . | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../server/kibana-plugin-core-server.savedobjectscomplexfieldmapping.doc_values.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsComplexFieldMapping](./kibana-plugin-core-server.savedobjectscomplexfieldmapping.md) > [doc\_values](./kibana-plugin-core-server.savedobjectscomplexfieldmapping.doc_values.md) | ||
|
||
## SavedObjectsComplexFieldMapping.doc\_values property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
doc_values?: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ore/server/kibana-plugin-core-server.savedobjectscorefieldmapping.doc_values.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [SavedObjectsCoreFieldMapping](./kibana-plugin-core-server.savedobjectscorefieldmapping.md) > [doc\_values](./kibana-plugin-core-server.savedobjectscorefieldmapping.doc_values.md) | ||
|
||
## SavedObjectsCoreFieldMapping.doc\_values property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
doc_values?: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ const env = { | |
ES_HOST: 'https://super:[email protected]:9243', | ||
NODE_ENV: 'integration_test', | ||
COVERAGE_INGESTION_KIBANA_ROOT: '/var/lib/jenkins/workspace/elastic+kibana+code-coverage/kibana', | ||
FETCHED_PREVIOUS: 'FAKE_PREVIOUS_SHA', | ||
}; | ||
|
||
describe('Ingesting coverage', () => { | ||
|
@@ -68,31 +69,64 @@ describe('Ingesting coverage', () => { | |
expect(folderStructure.test(actualUrl)).ok(); | ||
}); | ||
}); | ||
|
||
describe(`vcsInfo`, () => { | ||
let stdOutWithVcsInfo = ''; | ||
describe(`without a commit msg in the vcs info file`, () => { | ||
let vcsInfo; | ||
const args = [ | ||
'scripts/ingest_coverage.js', | ||
'--verbose', | ||
'--vcsInfoPath', | ||
'src/dev/code_coverage/ingest_coverage/integration_tests/mocks/VCS_INFO_missing_commit_msg.txt', | ||
'--path', | ||
]; | ||
|
||
beforeAll(async () => { | ||
const args = [ | ||
'scripts/ingest_coverage.js', | ||
'--verbose', | ||
'--vcsInfoPath', | ||
'src/dev/code_coverage/ingest_coverage/integration_tests/mocks/VCS_INFO_missing_commit_msg.txt', | ||
'--path', | ||
]; | ||
const opts = [...args, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
vcsInfo = stdout; | ||
stdOutWithVcsInfo = stdout; | ||
}); | ||
|
||
it(`should be an obj w/o a commit msg`, () => { | ||
const commitMsgRE = /"commitMsg"/; | ||
expect(commitMsgRE.test(vcsInfo)).to.not.be.ok(); | ||
expect(commitMsgRE.test(stdOutWithVcsInfo)).to.not.be.ok(); | ||
}); | ||
}); | ||
describe(`including previous sha`, () => { | ||
let stdOutWithPrevious = ''; | ||
beforeAll(async () => { | ||
const opts = [...verboseArgs, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
stdOutWithPrevious = stdout; | ||
}); | ||
|
||
it(`should have a vcsCompareUrl`, () => { | ||
const previousCompareUrlRe = /vcsCompareUrl.+\s*.*https.+compare\/FAKE_PREVIOUS_SHA\.\.\.f07b34f6206/; | ||
expect(previousCompareUrlRe.test(stdOutWithPrevious)).to.be.ok(); | ||
}); | ||
}); | ||
describe(`with a commit msg in the vcs info file`, () => { | ||
beforeAll(async () => { | ||
const args = [ | ||
'scripts/ingest_coverage.js', | ||
'--verbose', | ||
'--vcsInfoPath', | ||
'src/dev/code_coverage/ingest_coverage/integration_tests/mocks/VCS_INFO.txt', | ||
'--path', | ||
]; | ||
const opts = [...args, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
stdOutWithVcsInfo = stdout; | ||
}); | ||
|
||
it(`should be an obj w/ a commit msg`, () => { | ||
const commitMsgRE = /commitMsg/; | ||
expect(commitMsgRE.test(stdOutWithVcsInfo)).to.be.ok(); | ||
}); | ||
}); | ||
}); | ||
describe(`team assignment`, () => { | ||
let shouldNotHavePipelineOut = ''; | ||
let shouldIndeedHavePipelineOut = ''; | ||
|
||
const args = [ | ||
'scripts/ingest_coverage.js', | ||
'--verbose', | ||
|
@@ -101,26 +135,30 @@ describe('Ingesting coverage', () => { | |
'--path', | ||
]; | ||
|
||
it(`should not occur when going to the totals index`, async () => { | ||
const teamAssignRE = /"pipeline":/; | ||
const shouldNotHavePipelineOut = await prokJustTotalOrNot(true, args); | ||
const teamAssignRE = /pipeline:/; | ||
|
||
beforeAll(async () => { | ||
const summaryPath = 'jest-combined/coverage-summary-just-total.json'; | ||
const resolved = resolve(MOCKS_DIR, summaryPath); | ||
const opts = [...args, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
shouldNotHavePipelineOut = stdout; | ||
}); | ||
beforeAll(async () => { | ||
const summaryPath = 'jest-combined/coverage-summary-manual-mix.json'; | ||
const resolved = resolve(MOCKS_DIR, summaryPath); | ||
const opts = [...args, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
shouldIndeedHavePipelineOut = stdout; | ||
}); | ||
|
||
it(`should not occur when going to the totals index`, () => { | ||
const actual = teamAssignRE.test(shouldNotHavePipelineOut); | ||
expect(actual).to.not.be.ok(); | ||
}); | ||
it(`should indeed occur when going to the coverage index`, async () => { | ||
const shouldIndeedHavePipelineOut = await prokJustTotalOrNot(false, args); | ||
const onlyForTestingRe = /ingest-pipe=>team_assignment/; | ||
const actual = onlyForTestingRe.test(shouldIndeedHavePipelineOut); | ||
it(`should indeed occur when going to the coverage index`, () => { | ||
const actual = /ingest-pipe=>team_assignment/.test(shouldIndeedHavePipelineOut); | ||
expect(actual).to.be.ok(); | ||
}); | ||
}); | ||
}); | ||
async function prokJustTotalOrNot(isTotal, args) { | ||
const justTotalPath = 'jest-combined/coverage-summary-just-total.json'; | ||
const notJustTotalPath = 'jest-combined/coverage-summary-manual-mix.json'; | ||
|
||
const resolved = resolve(MOCKS_DIR, isTotal ? justTotalPath : notJustTotalPath); | ||
const opts = [...args, resolved]; | ||
const { stdout } = await execa(process.execPath, opts, { cwd: ROOT_DIR, env }); | ||
return stdout; | ||
} |
Oops, something went wrong.