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

[CI] Preparation for APM tracking on CI #80399

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

tylersmalley
Copy link
Contributor

@tylersmalley tylersmalley commented Oct 13, 2020

Updates default APM server/token with that of the Kibana Stats cluster and enable APM on CI.

There are still tests that are failing that need addressed. It will be easier for others to assist with when this is available in master.

To enable set ELASTIC_APM_ACTIVE=true

@@ -41,13 +41,13 @@ const getDefaultConfig = (isDistributable: boolean): ApmAgentConfig => {

return {
active: false,
serverUrl: 'https://f1542b814f674090afd914960583265f.apm.us-central1.gcp.cloud.es.io:443',
serverUrl: 'https://b1e3b4b4233e44cdad468c127d0af8d8.apm.europe-west1.gcp.cloud.es.io:443',
Copy link
Contributor Author

@tylersmalley tylersmalley Oct 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This location doesn't seem ideal as I believe our CI workers are in U.S. West. We can move it if it ends up being an issue.

@tylersmalley tylersmalley force-pushed the enable-apm-ci branch 4 times, most recently from c430bae to 0d57811 Compare October 13, 2020 23:19
@tylersmalley

This comment has been minimized.

@elastic elastic deleted a comment from kibanamachine Oct 15, 2020
@tylersmalley tylersmalley force-pushed the enable-apm-ci branch 7 times, most recently from c6166a3 to 9bff89c Compare October 21, 2020 04:22
tylersmalley pushed a commit to tylersmalley/kibana that referenced this pull request Oct 21, 2020
This is being used in other click* helpers, but was missing here.

Resulting in failures in elastic#80399

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
tylersmalley pushed a commit that referenced this pull request Oct 21, 2020
This is being used in other click* helpers, but was missing here.

Resulting in failures in #80399

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
tylersmalley pushed a commit to tylersmalley/kibana that referenced this pull request Oct 21, 2020
This is being used in other click* helpers, but was missing here.

Resulting in failures in elastic#80399

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
@@ -14,7 +14,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const browser = getService('browser');
const queryBar = getService('queryBar');

describe('Endpoint Event Resolver', function () {
describe.skip('Endpoint Event Resolver', function () {
Copy link
Contributor Author

@tylersmalley tylersmalley Oct 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IgorGuz2000, I see you have worked with these tests quite a bit recently. Would you mind helping me resolving the failures here caused by enabling APM on the project?

To reproduce:

export ELASTIC_APM_ACTIVE=true
node scripts/functional_tests_server.js --config x-pack/test/security_solution_endpoint/config.ts
node scripts/functional_test_runner.js --config x-pack/test/security_solution_endpoint/config.ts --grep "Endpoint Event Resolver"

So far the failures I have been able to address have been timing related.

1)    endpoint
       Endpoint Event Resolver
         Endpoint Resolver Tree
           Check Related Events for event.file Node:

      Error: expected '1 registry' to equal 'Events'
       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
       at Assertion.equal (packages/kbn-expect/expect.js:227:8)
       at Object.runNodeEvents (x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts:127:30)
       at process._tickCallback (internal/process/next_tick.js:68:7)


2)    endpoint
       Endpoint Event Resolver
         Resolver Tree events
           Check Related Events for event.process Node:

      Error: expected '60 registry' to equal 'Events'
       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
       at Assertion.equal (packages/kbn-expect/expect.js:227:8)
       at Object.runNodeEvents (x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts:127:30)
       at process._tickCallback (internal/process/next_tick.js:68:7)


3)    endpoint
       Endpoint Event Resolver
         Resolver Tree events
           Check Related Events for event.library Node:

      Error: expected '1 library' to equal 'Events'
       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
       at Assertion.equal (packages/kbn-expect/expect.js:227:8)
       at Object.runNodeEvents (x-pack/test/security_solution_endpoint/page_objects/hosts_page.ts:127:30)
       at process._tickCallback (internal/process/next_tick.js:68:7)

tylersmalley pushed a commit that referenced this pull request Oct 21, 2020
This is being used in other click* helpers, but was missing here.

Resulting in failures in #80399

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
@tylersmalley tylersmalley changed the title [CI] Enables APM tracking [CI] Preparation for APM tracking on CI Oct 26, 2020
@tylersmalley tylersmalley added Team:Operations Team label for Operations Team Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.11.0 v8.0.0 labels Oct 26, 2020
@tylersmalley tylersmalley marked this pull request as ready for review October 26, 2020 05:14
@tylersmalley tylersmalley requested a review from a team as a code owner October 26, 2020 05:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@spalger spalger added the release_note:skip Skip the PR/issue when compiling release notes label Oct 26, 2020
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but one open question/nit/suggestion

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@tylersmalley tylersmalley merged commit aaa4795 into elastic:master Oct 26, 2020
tylersmalley pushed a commit to tylersmalley/kibana that referenced this pull request Oct 26, 2020
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
tylersmalley pushed a commit that referenced this pull request Oct 27, 2020
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 27, 2020
* master: (37 commits)
  [ILM] Migrate Warm phase to Form Lib (elastic#81323)
  [Security Solutions][Detection Engine] Fixes critical bug with error reporting that was doing a throw (elastic#81549)
  [Detection Rules] Add 7.10 rules (elastic#81676)
  [kbn/optimizer] ignore missing metrics when updating limits with --focus (elastic#81696)
  [SECURITY SOLUTIONS] Bugs overview page + investigate eql in timeline (elastic#81550)
  [Maps] fix unable to edit cluster vector styles styled by count when switching to super fine grid resolution (elastic#81525)
  Fixed migration issue for case specific actions, by extending email action migrator checks (elastic#81673)
  [CI] Preparation for APM tracking on CI (elastic#80399)
  [Home] Fixes Kibana app description order on home page and updates Canvas copy (elastic#80057)
  Make sure `to` is 'now' and not the same as `from` (elastic#81524)
  Nitpicking the 8.0 Breaking Change issue template (elastic#81678)
  [SECURITY_SOLUTION] Fix text on onboarding screen (elastic#81672)
  [data.search] Skip async search tests in build candidates and production builds (elastic#81547)
  Fix previousStartedAt by not changing when execution fails (elastic#81388)
  [Monitoring] Fix a couple of issues with the cpu usage alert (elastic#80737)
  Telemetry collection xpack to ts project references (elastic#81269)
  Elasticsearch: don't use url authentication for new client (elastic#81564)
  [App Search] Credentials: implement working flyout form (elastic#81541)
  Properly encode links to edit user page (elastic#81562)
  [Alerting UI] Don't wait for health check before showing Create Alert flyout (elastic#80996)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Operations Team label for Operations Team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants