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
feat(tests): add extractHash support in test-infra #683
feat(tests): add extractHash support in test-infra #683
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.
The extractSummary
has to work on the output given by webpack
, not jest.
I think there's been some confusion/misunderstanding about what this function should do.
The input of the function will be the stdout
of a generic webpack output.
The function will extract information that we want.
I left some comments here #672 where I explain better the issue. Let me know if you have any questions
👍 thanks, @ematipico for the clarification. I will revisit the problem here. |
b66c9ee
to
021b4c8
Compare
I've added support for extractHash. I'm kinda confused regarding the return value of extractSummary functionality. Implementation purely depends upon what info we want to extract to validate. |
Yes, the original PR lacks of spec and I do apologize for that. As extract summary we can do basically what that function I pointed out does. We should strip out any timestamp, hash and information that is dynamic. |
The existing PR contains |
Yes it already does that but it's not optimal, it can have parameters for instance. We can do this change later. In this PR we can do copy paste for now and doing another PR where we change all the tests. |
@ematipico any thoughts over |
It would be nice to have some test on some mock string, to make sure it will work |
@ematipico added relevant tests |
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!
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.
Left some questions :)
@hemal7735 Thanks for your update. I labeled the Pull Request so reviewers will review it again. @evenstensberg Please review the new changes. |
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
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.
Can you add JSDocs for the rest of the functions getting exported? looking good, a few things left!
@evenstensberg I would love to do that, however not here, in the separate PR. 💯 |
@evenstensberg: I think @hemal7735 he's right. That's not part of the scope of the PR. He did a great job here! |
lgtm here |
What kind of change does this PR introduce?
This PR adds support for extracting hash after running test. Jest is already doing it. We are trying to mimic it here, for our needs.
Did you add tests for your changes? Yes
If relevant, did you update the documentation? NA
Summary
This PR tries to address the feature-request issue #672
Closes #672
Does this PR introduce a breaking change? No