-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
chore(tests) include kong*.rockspec to cache hash calculation on travis #6380
Conversation
594d16b
to
8d90bde
Compare
I would like to hear more opinions from others, for the following reasons:
Basically, everything that can not be corrected by Obviously, being defensive is a good thing, for the CI runs the most defensive thing we could have done is to not use cache at all. We choose to not do that because it creates more harm without solving any known issues for us, the same principle should apply here as well. |
We tried couple of things. But didn't find the solution that is better than this. Could we go with this solution as it makes cache correct, and then try to optimize it later? If you have better way to solve this, I am open to see it ( If cache gets correct, everything will suddenly turn green, so you never know do you have this: #6361 screwing up the cache. It depends that does I don't agree this creates more harm. It does similar thing to editing |
We could only hash the rockspec dependencies, but not when adding a new file to Kong (or when adding a blank line to the rockspec).
Output looks like:
Could we hash that 👆instead? |
Or just |
Something like:
|
### Summary If it is not included in cache hash calculation, dependencies that are updated in .rockspec are leaked to other tests / builds.
8d90bde
to
7b7fc30
Compare
I updated the PR with this change. Btw. we are also soon dropping travis... so... just to get things green until that. |
I'll close this, let's just merge this to |
Summary
If it is not included in cache hash calculation, dependencies that are updated in .rockspec might be leaked to other tests / builds.