Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Feature Request: Support ignoring noisy fields #59

Closed
sunnybayz opened this issue May 10, 2017 · 4 comments
Closed

Feature Request: Support ignoring noisy fields #59

sunnybayz opened this issue May 10, 2017 · 4 comments

Comments

@sunnybayz
Copy link

My understanding is that Diffy saves all the responses with differences in memory. In one of our services, the service returns a random UUID in the response. Therefore, when "Exclude Noise" is disabled, it shows 100% diff. When "Exclude Noise" is enabled, it shows very low percentage diff. Diffy frequently runs out of memory because it saves 100% of the responses.

Is it possible to configure Diffy in a way that it simply discard the responses that only differ in noisy fields? That way, it can process much more requests without running out of memory.

Another solution is to support ignoring certain fields for comparison. The ignored fields can be set in command line.

Thanks!

@puneetkhanduri
Copy link
Contributor

Diffy does not save all results in memory - only a subset of samples so that it doesn't run out of memory. Without having access to a heapdump it will be impossible to say what might be causing a memeory leak in your specific case.

@sunnybayz
Copy link
Author

That's really good to know! I will try to get a heapdump.

@fwz
Copy link

fwz commented May 8, 2020

May I know whether Diffy support excluding specific key now? @puneetkhanduri

For example, we have a v1 API, with key 'a' in response. And then we implement a v2 API to add another key 'b' in response. We want to use Diffy to ensure the value of 'a' are exactly the same for both versions.

@puneetkhanduri
Copy link
Contributor

The Diffy UI allows you to manually click and ignore certain keys. This selection exists purely in the UI and has no impact on the Diffy server.
Side: Please open future support requests on Opendiffy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants