-
Notifications
You must be signed in to change notification settings - Fork 204
Incremental: ensure we add post-compile jobs if no new compile jobs are found #509
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
Conversation
@swift-ci please test |
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.
LGTM, @davidungar what do you think?
@swift-ci please test |
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.
Thank you for looking at this issue
I suspect that, with this fix, the post-compile jobs would get to run before the compile-pch job finished.
I'm starting to wonder if a better fix is to remove the early return from addRuleBeyondMandatoryCompiles
and instead to put an early return in collectJobsDiscoveredToBeNeededAfterFinishing
, returning empty if a non-compile job?
Hate to say it, but I'm now waffling. |
Ok, let's merge this for now. @davidungar any advice for adding test for this change? |
Good question, @nkcsgexi . I guess we need a test that creates a precompiled header. I would look at |
One last thought: with this change are we guaranteed that the whole driver process won't terminate before the pch job? |
I think this job is always going to be a part of the initial set of jobs we submit to llbuild, (not one discovered when other jobs finish), so the |
Thanks! Sounds good to me. |
rdar://74447605