-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Explicitly save cache in primer jobs #9932
Conversation
I have one more theory on where I think another set of errors might be coming from. The Django import errors in sentry might tied to the order in which the projects are processed ( |
@akamat10 What concerns me about the django <--> sentry interaction is that I'm wondering why the django imports are being picked up at all. We're not installing dependencies of primer projects (to my knowledge). Maybe we should. But since we're not intending to, are we sometimes picking up django as a namespace just because Django doesn't use a src/ folder? Why only sometimes? |
My theory was that it depends on linting order of projects without any django installation. I have to verify if the order somehow varies from one run to the next. But one theory I need is to check is whether previous project modules are getting cached or whether their directories are becoming part of search path discovery and getting used in linting of subsequent projects. So in that scenario say |
Ok I have confirmed it is related to django repo running in the same batch as sentry. Turns out both PR run and main run give
main run error:
I don't know why they give different messages but they both shouldn't exist if the cache from django linting was cleared correct. That is because the variables checker code here will return if import of the django module fails and will skip checking for |
On the theory that we might see primer indeterminacy due to incompletely created virtual environments being cached when jobs are interrupted (due to
cancel-in-progress: true
), exercise some control by running separateactions/restore
andactions/save
actions.Refs #9925 (comment)
cc/ @akamat10