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

[FTR] add custom runner and config to run load tests #88409

Merged
merged 7 commits into from
Jan 20, 2021

Conversation

dmlemeshko
Copy link
Member

@dmlemeshko dmlemeshko commented Jan 14, 2021

Summary

In order to run kibana--load-testing project agaist custom kibana branch, I'm adding simple runner and config to start kibana with basic trial license and run load scenario maven command via functiona-test-runner.

PR that runs this change: elastic/kibana-load-testing/pull/29

Data is ingested into Kibana stats, doc sample:

{
  "_index": "gatling-data",
  "_type": "_doc",
  "_id": "lEb0FXcBLc-4D9UPlUS5",
  "_version": 1,
  "_score": null,
  "_source": {
    "timestamp": "2021-01-18T14:44:45.618Z",
    "name": "Discover query 3",
    "requestSendStartTime": "2021-01-18T14:41:14.541Z",
    "responseReceiveEndTime": "2021-01-18T14:41:15.023Z",
    "status": "OK",
    "requestTime": 482,
    "message": "",
    "version": "8.0.0",
    "buildHash": "5a3c702033c5c34ccfca70fedd0a4c4d7bedc755",
    "buildNumber": 39605,
    "branch": "ftr/run-load-testing",
    "isSnapshotBuild": true,
    "baseUrl": "http://localhost:5620",
    "scenario": "org.kibanaLoadTest.simulation.DemoJourney"
  },
  "fields": {
    "requestSendStartTime": [
      "2021-01-18T14:41:14.541Z"
    ],
    "responseReceiveEndTime": [
      "2021-01-18T14:41:15.023Z"
    ],
    "timestamp": [
      "2021-01-18T14:44:45.618Z"
    ]
  },
  "sort": [
    1610981085618
  ]
}

In order to run load scenario for your branch, change STACK_VERSION job parameter with <github_username>/<kibana_repo_name>:<your_branch>:

Jenkins 2021-01-18 16-09-48

If you checkout kibana-load-testing repo next to the main kibana repo, you can run load scenario against your local build:

node scripts/functional_tests \
    --kibana-install-dir "$KIBANA_INSTALL_DIR" \
    --config test/load/config.ts

@dmlemeshko dmlemeshko added 8.0.0 v7.12.0 release_note:skip Skip the PR/issue when compiling release notes labels Jan 15, 2021
@dmlemeshko dmlemeshko marked this pull request as ready for review January 18, 2021 15:13
@dmlemeshko
Copy link
Member Author

@elasticmachine merge upstream

@dmlemeshko dmlemeshko requested review from mshustov, a team and TinaHeiligers January 18, 2021 15:14
@LeeDr
Copy link

LeeDr commented Jan 19, 2021

I'm adding simple runner and config to start kibana with basic license

I don't see anything in these files for a basic license. Wouldn't we typically use a trial license so all features are enabled?

@dmlemeshko
Copy link
Member Author

I'm adding simple runner and config to start kibana with basic license

I don't see anything in these files for a basic license. Wouldn't we typically use a trial license so all features are enabled?

My bad, it is actually a trial license. The same that we use in x-pack functional tests

@dmlemeshko
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@dmlemeshko dmlemeshko merged commit 841655c into elastic:master Jan 20, 2021
@dmlemeshko dmlemeshko added v8.0.0 and removed 8.0.0 labels Jan 20, 2021
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Jan 20, 2021
* add custom runner and config for load testing

* add full maven command

* add jenkins script

* run tests against build

* run kibana with no-base-path flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
dmlemeshko added a commit that referenced this pull request Jan 20, 2021
* add custom runner and config for load testing

* add full maven command

* add jenkins script

* run tests against build

* run kibana with no-base-path flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@dmlemeshko dmlemeshko deleted the ftr/run-load-testing branch January 31, 2022 12:33
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 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants