-
Notifications
You must be signed in to change notification settings - Fork 53
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
Integration tests are not always pulling head commit #1993
Comments
Just found another example https://github.com/rancher/elemental-toolkit/actions/runs/8186424112?pr=1995 There is a cache hit, but the PR actually changes the code. Hence the cache hit is not possible as this hash includes tracking changes under In fact in that same run if we check the toolkit commit is actually building this is the HEAD of Interesting enough on build-toolkit job I see the
Where However after adding an empty commit in the same PR and in the same step I see:
Which clearly points to the fact the code is the merge to main so it tests the code including the changes of the PR. 😕 Then again b609554 commit, is not the latest of #1995 at that time, it is just the previous one. It really feels it always checkouts HEAD~1 for the given PR. |
I can't really find what is going on but I got a couple of clear examples that integration tests are not running the expected code. Most obvious is the difference from these two runs from PR #1992:
The first run and the second run they only diverge by this empty commit 406899a on first run on workflow logs we can see the extra argument in makefile was not added in actual worlflow run, however we can see it in the second. In both cases the code was exactly the same.
I have see this issue more than once lately, but now I managed to collect an example that clearly shows the issue.
And the very same thing happened again on the same PR. Added a fix for recovery test
Feels like if we were always testing one commit behind... so weird 🤷🏽♂️ This already puzzled me several times in the past few weeks...
The text was updated successfully, but these errors were encountered: