-
Notifications
You must be signed in to change notification settings - Fork 723
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
Build stages result is not correct when combining build stages with matrix expansion that expands to one job only #9157
Comments
Could you explain the problem with concrete examples? |
Thanks for the fast response. In this commit https://github.com/urho3d/llvm-clang/commit/deee6dfd30379e9d10bd93a478c945b287c4e0c4, if I comment off the |
I believe this is a variation of #4681; if there is only one job in the base, In your case, there is no reason for you to define |
It was initially inside the Alternatively, you could say, I should just have two jobs in |
Oh, you're right! |
This behavior is unlikely to change. For you, I suggest dropping |
Thanks again for the effort. I have looked at your changes. I agree with you that should work (as I have already commented before). However, it is missing my point of raising this issue. I have hit by this issue in the past after the build stage is being introduced and only care to raise the issue yesterday. What I have encountered in the past is closer to scenario I put the in the issue description. I quote below again. "Imagine during experimenting one might alter the build setup by commenting off some jobs in the the job matrix then suddenly the CI build setup became broken simply because the job matrix resolve to just one job after the alteration." |
I understand the issue. I explained why it behaves the way it does. It is probably possible to make this behavior more explicit to reduce confusion, since I do not think we would be changing it. |
I am OK if it would not be fixed. Just want to bring this surprisingly behavior to Travis attention. The issue could be workaround, provided one know what exactly what has happened. Thanks for the PR that shows me the alternative workaround, BTW. |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
When the matrix expansion expands to two or more jobs then combining them with other build stages in the
jobs.include
does not cause any issues. This may sound like a nitpicking but it would be really awesome when this issue can be fixed. Imagine during experimenting one might alter the build setup by commenting off some jobs in the the job matrix then suddenly the CI build setup became broken simply because the job matrix resolve to just one job after the alteration.The text was updated successfully, but these errors were encountered: