-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
chore(deps): upgrade supertest
and superagent
#163716
Conversation
7a7a220
to
0ef4fb7
Compare
The tests that rely on |
8b43e16
to
e264670
Compare
@elasticmachine merge upstream |
Pinging @elastic/apm-ui (Team:APM) |
Pinging @elastic/kibana-core (Team:Core) |
@elasticmachine merge upstream |
v8.1.0 released which fixes this issue, thank you
release notes @ https://github.com/ladjs/superagent/releases/tag/v8.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, did not test locally but happy to merge this with a happy CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apm change lgtm
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @afharo |
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 24312ab)
…64053) # Backport This will backport the following commits from `main` to `8.9`: - [chore(deps): upgrade `supertest` and `superagent` (#163716)](#163716) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2023-08-16T11:12:43Z","message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Core","Team:APM","release_note:skip","backport:all-open","v8.10.0"],"number":163716,"url":"https://github.com/elastic/kibana/pull/163716","mergeCommit":{"message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163716","number":163716,"mergeCommit":{"message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 24312ab) # Conflicts: # package.json # yarn.lock
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…164142) # Backport This will backport the following commits from `main` to `7.17`: - [chore(deps): upgrade `supertest` and `superagent` (#163716)](#163716) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2023-08-16T11:12:43Z","message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Core","Team:APM","release_note:skip","backport:all-open","v8.10.0","v8.9.1"],"number":163716,"url":"https://github.com/elastic/kibana/pull/163716","mergeCommit":{"message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163716","number":163716,"mergeCommit":{"message":"chore(deps): upgrade `supertest` and `superagent` (#163716)\n\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"24312ab384cb2e5d3ac892619fcb654aed14b6da"}},{"branch":"8.9","label":"v8.9.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/164053","number":164053,"state":"MERGED","mergeCommit":{"sha":"3b64c613d2a9e279a4504c340a5fe766d4c99678","message":"[8.9] chore(deps): upgrade `supertest` and `superagent` (#163716) (#164053)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.9`:\n- [chore(deps): upgrade `supertest` and `superagent`\n(#163716)](https://github.com/elastic/kibana/pull/163716)\n\n<!--- Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Alejandro Fernández\nHaro\",\"email\":\"alejandro.haro@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2023-08-16T11:12:43Z\",\"message\":\"chore(deps):\nupgrade `supertest` and `superagent` (#163716)\\n\\nCo-authored-by: Kibana\nMachine\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"24312ab384cb2e5d3ac892619fcb654aed14b6da\",\"branchLabelMapping\":{\"^v8.10.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"chore\",\"Team:Core\",\"Team:APM\",\"release_note:skip\",\"backport:all-open\",\"v8.10.0\"],\"number\":163716,\"url\":\"https://github.com/elastic/kibana/pull/163716\",\"mergeCommit\":{\"message\":\"chore(deps):\nupgrade `supertest` and `superagent` (#163716)\\n\\nCo-authored-by: Kibana\nMachine\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"24312ab384cb2e5d3ac892619fcb654aed14b6da\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.10.0\",\"labelRegex\":\"^v8.10.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/163716\",\"number\":163716,\"mergeCommit\":{\"message\":\"chore(deps):\nupgrade `supertest` and `superagent` (#163716)\\n\\nCo-authored-by: Kibana\nMachine\n<42973632+kibanamachine@users.noreply.github.com>\",\"sha\":\"24312ab384cb2e5d3ac892619fcb654aed14b6da\"}}]}]\nBACKPORT-->\n\nCo-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>"}}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This pr didn't make it into the build candidate for v8.9.1. Updating the labels. |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
I noticed that we cannot reenable the SSL redirect tests (#131192) because
supertest/superagent
fails to read the headers of the original request when creating the follow-up request.kibana/test/server_integration/http/ssl_redirect/index.js
Line 22 in a86c016
This is the relevant piece of code failing in the library:
Following any redirects makes Node.js crash because it's accessing
req._headers
, which is deprecated.There's a known issue in the latest version of
superagent
when using theabort()
method, though. There's a PR open to fix it ladjs/superagent#1774, and I updated the tests to workaround the bug.For maintainers