| Commit-Queue | +1 |
ASSERT_DEATH(OpenDocument(filename), "");Would probably want a better solution than this. This test alone takes about 40 seconds on my machine.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
TEST_F(FPDFPPOEmbedderTest, Bug474670216) {calling this DISABLED_Bug474670216 allows the test to be skipped. Removethe DISABLED_ prefix when landing the CL that fixes the bug.
static const char* kCrashingPDFs[] = {these are now all working pdfs (at least in a universe where this is fixed).
for (const char* filename : kCrashingPDFs) {
ASSERT_DEATH(OpenDocument(filename), "");
}and just strike this.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
TEST_F(FPDFPPOEmbedderTest, Bug474670216) {calling this DISABLED_Bug474670216 allows the test to be skipped. Removethe DISABLED_ prefix when landing the CL that fixes the bug.
@tse...@chromium.org Issue is, if this is is disabled, how can you verify if just one of them is solved, without re enabling it?
I believe that the issues were different across all of these PDFs.
Maybe have all tests as separate so that we can enable and disable as we need?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
TEST_F(FPDFPPOEmbedderTest, Bug474670216) {Aryan Krishnancalling this DISABLED_Bug474670216 allows the test to be skipped. Removethe DISABLED_ prefix when landing the CL that fixes the bug.
@tse...@chromium.org Issue is, if this is is disabled, how can you verify if just one of them is solved, without re enabling it?
I believe that the issues were different across all of these PDFs.
Maybe have all tests as separate so that we can enable and disable as we need?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Aryan Krishnancalling this DISABLED_Bug474670216 allows the test to be skipped. Removethe DISABLED_ prefix when landing the CL that fixes the bug.
Tom Sepez@tse...@chromium.org Issue is, if this is is disabled, how can you verify if just one of them is solved, without re enabling it?
I believe that the issues were different across all of these PDFs.
Maybe have all tests as separate so that we can enable and disable as we need?
yep. Separate.
Done
these are now all working pdfs (at least in a universe where this is fixed).
Done
for (const char* filename : kCrashingPDFs) {
ASSERT_DEATH(OpenDocument(filename), "");
}| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Running this so it doesn't have to re-run on submit.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).
Investigating some of the PDFs might help decide which is better.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).Investigating some of the PDFs might help decide which is better.
Will look at optimizing these first: They seem to differ quite a bit in terms of root cause and the stack trace.
Or perhaps, instead of testing all cases of this bug, we can test only a few.
What do you think?
I tried using a compressor and that fails to compress due to some malformed objects.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Aryan KrishnanThis CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).Investigating some of the PDFs might help decide which is better.
Will look at optimizing these first: They seem to differ quite a bit in terms of root cause and the stack trace.
Or perhaps, instead of testing all cases of this bug, we can test only a few.
What do you think?
I tried using a compressor and that fails to compress due to some malformed objects.
The bug report claims they're all unique stacktraces. Hmm, outside of just trying to minimize the contents, not sure then. Any thoughts, thestig@?
There's corpus tests, but I think those always compare pixel results.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Aryan KrishnanThis CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).Investigating some of the PDFs might help decide which is better.
Andy PhanWill look at optimizing these first: They seem to differ quite a bit in terms of root cause and the stack trace.
Or perhaps, instead of testing all cases of this bug, we can test only a few.
What do you think?
I tried using a compressor and that fails to compress due to some malformed objects.
The bug report claims they're all unique stacktraces. Hmm, outside of just trying to minimize the contents, not sure then. Any thoughts, thestig@?
There's corpus tests, but I think those always compare pixel results.
Yes, I would prefer not to check 7 MB of binary blobs. The PDFium repo, without .git and all the things pulled in via DEPS, is only 51 MB.
These PDFs are probably just garbage generated by a fuzzer. It's the most interesting garbage, but it's not worth checking in or optimizing. I would just skip this CL, fix the bugs and call it done. Especially considering the failure is mostly just nullptr derefs and such.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Aryan KrishnanThis CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).Investigating some of the PDFs might help decide which is better.
Andy PhanWill look at optimizing these first: They seem to differ quite a bit in terms of root cause and the stack trace.
Or perhaps, instead of testing all cases of this bug, we can test only a few.
What do you think?
I tried using a compressor and that fails to compress due to some malformed objects.
Lei ZhangThe bug report claims they're all unique stacktraces. Hmm, outside of just trying to minimize the contents, not sure then. Any thoughts, thestig@?
There's corpus tests, but I think those always compare pixel results.
Yes, I would prefer not to check 7 MB of binary blobs. The PDFium repo, without .git and all the things pulled in via DEPS, is only 51 MB.
These PDFs are probably just garbage generated by a fuzzer. It's the most interesting garbage, but it's not worth checking in or optimizing. I would just skip this CL, fix the bugs and call it done. Especially considering the failure is mostly just nullptr derefs and such.
Oh, so are you suggesting not to check in tests, just use pdfium_test or something of the sort to test it locally before uploading? Ok will update.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Aryan KrishnanThis CL is adding 7 MB worth of test PDFs. Most PDFs in testing/resources/ are under 100 KB. It would be nice to keep it this way. Some options:
1. Look into the PDFs and try to minimize its contents. Most time-consuming.
2. Remove some of these PDFs. They might have the same root cause, especially if they have the same stack trace. Adding more of the PDFs for the same root cause would be redundant. They can be added back as needed if there's a different cause.
3. A mix of (1) and (2).Investigating some of the PDFs might help decide which is better.
Andy PhanWill look at optimizing these first: They seem to differ quite a bit in terms of root cause and the stack trace.
Or perhaps, instead of testing all cases of this bug, we can test only a few.
What do you think?
I tried using a compressor and that fails to compress due to some malformed objects.
Lei ZhangThe bug report claims they're all unique stacktraces. Hmm, outside of just trying to minimize the contents, not sure then. Any thoughts, thestig@?
There's corpus tests, but I think those always compare pixel results.
Aryan KrishnanYes, I would prefer not to check 7 MB of binary blobs. The PDFium repo, without .git and all the things pulled in via DEPS, is only 51 MB.
These PDFs are probably just garbage generated by a fuzzer. It's the most interesting garbage, but it's not worth checking in or optimizing. I would just skip this CL, fix the bugs and call it done. Especially considering the failure is mostly just nullptr derefs and such.
Oh, so are you suggesting not to check in tests, just use pdfium_test or something of the sort to test it locally before uploading? Ok will update.
Abandoning this CL, have moved the parent CL to be rebased on main.
Aryan Krishnan abandoned this change.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |