-
Notifications
You must be signed in to change notification settings - Fork 15
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: reinstate har-validator
#15
Conversation
CC: @flotwig who approved the original dependency removal. |
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 don't think it's a good idea to re-add deprecated code, even if it breaks installation in yarn. It breaks code that's not tested, so it's probably not needed anyway. This was part of the original request library, it's probably not needed now in cypress
Probably not needed no matter what, since I haven't seen similar code in
axios
or others.
As an alternative, remove the require as well as the check that uses this. Tests are going to continue green, this is not going to be needed. Please refer to this issue in har-validator
for the reasons why it was abandoned (mainly too much work due to request
... which was also abandoned and eventually adopted here)
Other alternatives: import relevant code. However, I don't see HTTP archive validation as a real requirement in this context. See also #9 (which probably should have been closed by #14)
Just be aware that all cypress installations, builders, pipelines are stuck right now because of this (yes global failure) if they don't handle Yes its not great to reinstall a useless package, but it's even less to have the whole cypress installation flow down. We can fix it here OR in cypress yarn package.lock removing the |
It's not only yarn problem. Npm without locks also fails miserably. I'd suggest revert this change and fix it by removing usage after. |
My CI/CD is broken since local dev has equal build pipeline I'm not able event build code locally now.. This is really big failure in repo.. |
As a temporal fix, you can install har-validator in the pipeline. Long term fix is #16 |
@JJ this trickles down to everyone who's solution contains cypress. The number of users is large and not everyone will find their way here (or cypress-io/cypress#19097) so fix needs to be published as soon as possible. Installing |
A PR to remove the usage of |
🎉 This PR is included in version 2.88.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Well, I can incorporate that into #16 if you want. |
PR Checklist:
npm test
locally and all tests are passing. [they are passing in CI]PR Description
Reinstates
har-validator
Fixes cypress-io/cypress#19097
Fixes #14