-
Notifications
You must be signed in to change notification settings - Fork 46
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
fix(deps): update octokit monorepo (major) #513
Conversation
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.
Requires updates to dependencies first
59bf9a8
to
2042b52
Compare
2042b52
to
ce49779
Compare
I'm working on the failing tests for this to unblock these dep updates. |
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.
Skipped tests need to be fixed
I ran into issues with how we mock fetch in the smoke tests,
I am sure I am missing something obvious so If anyone else has a moment to take a look (@gr2m or @wolfy1339 or @oscard0m) I'd be glad for the additional 👀. This is a blocker to getting https://github.com/octokit/request-action updated and out the door. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
The library used doesn't seem to be compatible with the Fetch API because it uses The fetch mock uses The code will need to be updated, not just the tests |
Also of interest, nodejs/undici#1650 |
…octokit/action.js into renovate/major-octokit-monorepo
The test coverage failures here don't seem to me to be helping us in this instance. My instinct would be to suggest modifying the coverage threshold to unblock wrapping the Node/fetch breaking changes. I'm receptive to other suggestions for testing and challenges to my perception that the uncovered code is related to undici and not worth our time to test. |
It seems that the HTTP proxy isn't getting used at all in the tests 😓 hence the coverage issues |
I'm digging in this morning to determine why... given the changes you proposed and the proxy tests all set the env, this should be working. |
I did look into this some bit, and we override the custom fetch in the tests that is used in the production code. Since the custom fetch gets overridden the dispatcher option isn't set anymore |
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.
@oscard0m @wolfy1339 @gr2m @nickfloyd I've made some changes here to fix the failing tests and increase our test coverage. Please take another look and let me know what should be changed!
}, | ||
); | ||
await customFetch("http://api.github.com", {}); | ||
expect(JSON.stringify(dispatcher)).toEqual(JSON.stringify(expectedAgent)); |
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.
I believe these JSON.stringify hacks are similar to the others present we've been seeing and can be cleaned up when octokit/core.js#588 is addressed.
This reverts commit 6458785 in order to increase code coverage.
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.
💥
@wolfy1339 it looks like your review is required here due to the earlier request for changes. Do you mind taking another peek at this PR? |
I have two final points before merging I'd like to address:
|
I've talked with @nickfloyd a bit and we've decided to merge with the forked dependency and with a minor version bump as the interface hasn't had a breaking change. |
🎉 This PR is included in version 6.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Absolutely, unfortunately the pull request is still open 🤷🏼 I think it would also be worth to look into undici's request mocking solutions and see if we can use that as a better replacement to fetch-mock. I feel fetch-mock is not actively maintained any more for a while now |
Undici's does offer a mocking solution built-in, however it require the use of dispatchers, which means we can't test things like HTTP(s) proxies as they require dispatchers as well https://undici.nodejs.org/#/docs/best-practices/mocking-request |
we already test proxies with a local server today without mocking requests. But yeah there could be other reasons that we cannot use it, but it's worth to explore it |
fyi nodejs/undici#1650, new release is still outstanding at this time. |
This PR contains the following updates:
^3.0.0
->^4.0.0
^4.0.0
->^5.0.0
^7.0.0
->^8.0.0
^8.0.0
->^9.0.0
^10.0.0
->^11.0.0
Release Notes
octokit/auth-action.js (@octokit/auth-action)
v4.0.0
Compare Source
chore
BREAKING CHANGES
@octokit/types
to v11octokit/core.js (@octokit/core)
v5.0.0
Compare Source
Features
BREAKING CHANGES
octokit/plugin-paginate-rest.js (@octokit/plugin-paginate-rest)
v8.0.0
Compare Source
chore
BREAKING CHANGES
@octokit/core
to v5@octokit/types
to v11octokit/plugin-rest-endpoint-methods.js (@octokit/plugin-rest-endpoint-methods)
v9.0.0
Compare Source
Bug Fixes
BREAKING CHANGES
@octokit/core
> 5@octokit/types
to v11octokit/types.ts (@octokit/types)
v11.1.0
Compare Source
Features
parseSuccessResonseBody
option for requests (#563) (f70144e)v11.0.0
Compare Source
Features
BREAKING CHANGES
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.