-
Notifications
You must be signed in to change notification settings - Fork 1
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
Resolve build errors in test project #577
Conversation
using DiffEngine 8.5.3 was causing package downgrade errors
ModifySerialization removed: VerifyTests/Verify#533 DontScrubNumericIds removed: VerifyTests/Verify#526
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
this resolves a package downgrade error
If desired, I can submit a subsequent pull request to resolve test failures. |
Thanks, @steverichey! Instead of a separate pull request, it's best to fix the test failures as part of this one. |
as of 7.14, a product check was added that fails for the metacpan search api: https://github.com/elastic/elasticsearch-net/releases/tag/7.14.0 elastic/elasticsearch-net#5728
Well, this is confusing. Reverting to a version of the ElasticSearch client before they added pre-flight checks resolves the issues for many tests. However, the solution to the second test issue is less clear. Here's an example test failure:
At the end of the
It's not immediately clear why this method can't be loaded. Will investigate as time allows. |
There might be a breaking change in the Verify package that we need to contend with. Perhaps searching for an older version of it? |
this is a sort of goldilocks zone for this dependency: newer versions change the api, and older versions have an unavoidable missingmethodexception error. unfortunately, some change to the library causes 2.0.0 and 2.0 to swap places in verifier output, resulting in a necessary change to a .verified.txt file. i think this is a reasonable tradeoff.
I'm still not sure what was causing the |
@mscottford Take a look at the changes when you have a chance. The most recent macOS tests failed, but it seems due to a spurious connection failure. The solution for this -- in the very long term -- would be to stub or mock external connections to avoid brittle tests, IMHO. |
We’re going to deprecate this library soon (a month or so). Let’s go ahead and remove the test matrix so we’re only testing against Linux. That will get this project passing well enough for us to move forward. |
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.
Thanks for doing this! This looks good enough to merge after the test matrix is changed to only run Linux builds.
@@ -10,17 +10,13 @@ public static void Initialize() | |||
{ | |||
VerifyDiffPlex.Initialize(); | |||
|
|||
VerifierSettings.ModifySerialization(settings => | |||
{ | |||
settings.DontScrubNumericIds(); |
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.
Is there no equivalent for this call?
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.
As far as I'm aware, it was completely removed. See: VerifyTests/Verify#526
Fixes #504.
There were two issues causing build errors in the test project:
VerifierSettings.ModifySerialization
By upgrading the DiffEngine reference and updating the methods used to set up Verify, I am now able to build this project and run tests locally. However, some tests still fail.
I've also updated dependencies in the
ExampleClient
project to allow theauto-format
action to succeed.