Skip to content
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

Remove build-pass unnecessary comments #75673

Closed
wants to merge 1 commit into from

Conversation

evaporei
Copy link

@evaporei evaporei commented Aug 18, 2020

This Pull Request removes the unnecessary build-pass comments which raised the possibility of using check-pass.

The way we discovered that they could be removed, was by putting check-pass instead, and seeing the tests fail.

Related issue: #62277

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 18, 2020
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diffs shouldn't be changed, could you make the failed tests build-pass?

@petrochenkov
Copy link
Contributor

@otavio
Is this a blanket change build-pass (FIXME(62277): could be check-pass?) -> check-pass?
#62277 is about manually reviewing each test and deciding on its category (#62277 (comment) describes the criteria).

@evaporei
Copy link
Author

Ohh okay @petrochenkov , I didn't do a deep analysis, since I don't know much about how this works.
Maybe I should close this then, or I can follow @JohnTitor suggestion of just doing a rollback change on the failed tests.

@JohnTitor
Copy link
Member

I can follow @JohnTitor suggestion of just doing a rollback change on the failed tests.

It's helpful to reduce the number of FIXMEs imo.

@JohnTitor
Copy link
Member

@otaviopace Ah, I mean, we should revert all the changes then remove FIXMEs of the failed tests so that we could reduce FIXMEs.

@evaporei
Copy link
Author

Okay @JohnTitor so just to see if I understood it. I should rollback all of them, even if their tests passed, but the ones which failed, I should just remove the (FIXME(62277): could be check-pass?) comment, is this correct?

Also, should I remove the Fixes from the description since this PR will not solve the issue no more?

@JohnTitor
Copy link
Member

Okay @JohnTitor so just to see if I understood it. I should rollback all of them, even if their tests passed, but the ones which failed, I should just remove the (FIXME(62277): could be check-pass?) comment, is this correct?

Yeah, that's correct. The problem here is that we need to look at which tests should be check-pass or build-pass one by one. Otherwise, we will overlook bugs or regressions.
But if a test is failing with check-pass, it should be obviously build-pass. We found some tests failed in moving so we could remove FIXMEs and mark it as build-pass duly.

Also, should I remove the Fixes from the description since this PR will not solve the issue no more?

Yep.

@evaporei
Copy link
Author

@JohnTitor do you know how can I analyze if I can change from build-pass to check-pass by reading the code? Maybe we can fix this issue in this Pull Request 🙂

If it is something too complicated to pass, or maybe you don't have context on it, we could just finish this Pull Request only with the removal of unnecessary comments.

@JohnTitor
Copy link
Member

@JohnTitor do you know how can I analyze if I can change from build-pass to check-pass by reading the code? Maybe we can fix this issue in this Pull Request slightly_smiling_face

Well, I'd say it'd be a hard way. For example, if a test is for the const, the reviewer and you should know consts, the purpose of the test, and where will the items be resolved, evaluated, etc.
So, it's a good way to address one area with one PR. That way, it's easier to know who to ask for a review and less of a burden on the reviewer.

This removal was possible, because we tried to use `check-pass` instead
and the tests failed, so we can clean these comments and only leave them
on tests which could be changed to `check-pass`.
@evaporei evaporei changed the title Moves the last build-pass tests to check-pass Remove build-pass unnecessary comments Aug 20, 2020
@evaporei
Copy link
Author

@JohnTitor so I've decided to make this Pull Request only to be to clean the tests which clearly can't use check-pass okay?
I've changed the title, description and commits to adequate the new purpose of it 🙂

@Mark-Simulacrum
Copy link
Member

Even if they currently have differing output between check and build pass, I would prefer to avoid blanket removing the fixme. It seems likely that at least in some cases, that could be hiding bugs or unintentional differences...

@evaporei
Copy link
Author

If that's the case I think I will close this then.

@JohnTitor
Copy link
Member

JohnTitor commented Aug 20, 2020

It seems likely that at least in some cases, that could be hiding bugs or unintentional differences...

@Mark-Simulacrum Hm you mean ignore-pass things? IIRC build-pass is equivalent to compile-pass so just removing FIXMEs should be fine though.

@Mark-Simulacrum
Copy link
Member

No, I mean that e.g. the type size printing seems like it shouldn't be build-pass and should be check-pass. I guess it can't be right now - but we shouldn't just patch over that by dropping the fixme IMO.

Dropping the fixme on incremental tests could be more reasonable, but again I would prefer to check that the difference is e.g. codegen-related, and not something more subtle and earlier in the pipeline.

@JohnTitor
Copy link
Member

Ah makes sense. In particular, the ICH things should be fine to be removed the FIXMEs but I might be missing something.

@otaviopace So, if you want to continue, then I think we could tackle incr-comp things only here. And the detailed reviews are needed. Unfortunately, I'm not an expert on incr-comp so I couldn't help... Otherwise, we could just close this. Anyway, thanks for contributing and working on it <3

@Mark-Simulacrum
Copy link
Member

Basically I would want to see the differences/test failures before signing off on dropping any FIXME annotations here.

@evaporei
Copy link
Author

I will close this one then, thanks for the help 😊
One day I will make one Pull Request that helps hahahha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants