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

Upgrade axios dependency (0.21.10.27.2). #111655

Merged
merged 37 commits into from
May 12, 2022
Merged

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Sep 8, 2021

Summary

Upgrade axios dependency (0.21.10.27.2).

Change log: https://github.com/axios/axios/blob/master/CHANGELOG.md

Note to reviewers: Most of the breaking changes are related to Axios types, but there are some notable breaking changes in 0.25.0 and 0.27.0 releases that you might want to verify in the scope of your specific use cases.

~/dev/kibana(bump-axios*) » npm ls axios
kibana@8.3.0 /projects/elastic/master/kibana
├─┬ @percy/agent@0.28.6
│ ├── axios@0.21.4
│ └─┬ retry-axios@1.0.1
│   └── axios@0.21.4 deduped
├─┬ @slack/webhook@5.0.4
│ └── axios@0.21.4
├── axios@0.27.2
├─┬ backport@7.3.1
│ └── axios@0.25.0
└─┬ chromedriver@100.0.0
  └── axios@0.24.0

@jbudz jbudz added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 v7.16.0 v7.14.2 labels Sep 8, 2021
@elasticmachine
Copy link
Contributor

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

@jbudz jbudz requested a review from a team as a code owner September 8, 2021 22:06
@jbudz jbudz enabled auto-merge (squash) September 8, 2021 22:06
@jbudz
Copy link
Member Author

jbudz commented Sep 13, 2021

@elasticmachine merge upstream

@kibanamachine

This comment has been minimized.

@jbudz jbudz disabled auto-merge September 13, 2021 20:46
@jbudz
Copy link
Member Author

jbudz commented Sep 13, 2021

This break is somewhere in the 0.21.2 release. Taking a look at our test interceptors..

@jbudz
Copy link
Member Author

jbudz commented Sep 13, 2021

@jbudz
Copy link
Member Author

jbudz commented Sep 13, 2021

axios/axios#4036

@jportner
Copy link
Contributor

jportner commented Jan 7, 2022

@jbudz this comment claims that the problem was fixed in axios@v0.21.3.

Can we resurrect this PR and upgrade/retest? It would be great to get this shipped with the 7.17 release.

@jbudz jbudz requested a review from a team as a code owner January 10, 2022 20:46
@jbudz jbudz marked this pull request as draft January 10, 2022 20:46
@jbudz jbudz added the v8.1.0 label Jan 10, 2022
@azasypkin azasypkin requested a review from a team as a code owner May 9, 2022 16:11
@azasypkin azasypkin requested review from pzl and parkiino May 9, 2022 16:11
@botelastic botelastic bot added Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team labels May 9, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@azasypkin azasypkin added v7.17.4 and removed v7.17.2 labels May 9, 2022
Copy link
Contributor

@pjhampton pjhampton left a comment

Choose a reason for hiding this comment

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

🌔 🚀 ✨ LGTM ✨ 🚀 🌔

(Sec Telemetry - after comments from @azasypkin are addressed).
I think I would like to move off axios and use node-fetch or something for sec-telemetry. I might refactor this once this has been sorted.

Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

Fleet changes LGTM

Copy link
Contributor

@patrykkopycinski patrykkopycinski left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

ResponseOps changes LGTM

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Presentation team test syntax change LGTM! Code only review

@azasypkin
Copy link
Member

@elasticmachine merge upstream

@azasypkin
Copy link
Member

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
canvas 1089 1094 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
canvas 1020.1KB 1.0MB +5.7KB
Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/pm 52 75 +23

Total ESLint disabled count

id before after diff
@kbn/pm 58 81 +23

History

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

@azasypkin
Copy link
Member

Since the PR has an absolute majority of the approvals I'm going to merge it now to reduce the risk of conflicts with the upstream.

@parkiino feel free to leave your feedback after the merge if any and I'll handle it separately.

@azasypkin azasypkin merged commit b191f14 into elastic:main May 12, 2022
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
7.17 Backport failed because of merge conflicts

You might need to backport the following PRs to 7.17:
- [ci-stats-reporter] use a default timeout of 60 seconds (#131428)

Manual backport

To create the backport manually run:

node scripts/backport --pr 111655

Questions ?

Please refer to the Backport tool documentation

azasypkin added a commit that referenced this pull request May 12, 2022
…132110)

* Upgrade `axios` dependency (`0.21.1` → `0.27.2`). (#111655)

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@elastic.co>
(cherry picked from commit b191f14)

# Conflicts:
#	packages/kbn-pm/dist/index.js
#	x-pack/plugins/actions/server/builtin_action_types/servicenow/utils.test.ts
#	x-pack/plugins/actions/server/builtin_action_types/servicenow/utils.ts
#	x-pack/plugins/fleet/server/telemetry/sender.ts
#	x-pack/plugins/osquery/server/lib/telemetry/sender.ts
#	x-pack/plugins/security_solution/scripts/endpoint/blocklists/index.ts
#	x-pack/plugins/security_solution/server/lib/telemetry/sender.ts
#	x-pack/plugins/synthetics/server/lib/telemetry/sender.ts
#	x-pack/test/performance/services/auth.ts
#	x-pack/test/ui_capabilities/common/services/ui_capabilities.ts
#	yarn.lock

* Update yarn.lock

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
Copy link
Contributor

@parkiino parkiino left a comment

Choose a reason for hiding this comment

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

looks fine to me. sorry i didn't get to it earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team Team:Operations Team label for Operations Team v7.17.4 v8.3.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.