I am new on Gitlab, so this is possibly a beginner question.
I just migrated my Rails repo to Gitlab - pretty basic, no tests yet. But it seems the CI pipeline seems to fail here:
$ rails db:migrate
rails aborted!
NameError: uninitialized constant ApplicationPolicy
/builds/sapi/app/policies/request_update_policy.rb:1:in `<top (required)>'
/builds/sapi/config/application.rb:28:in `each'
/builds/sapi/config/application.rb:28:in `<class:Application>'
/builds/sapi/config/application.rb:20:in `<module:SDOTApi>'
/builds/sapi/config/application.rb:19:in `<top (required)>'
Now the problem is that I can’t reproduce this in my local repo. So, I am not sure how best to debug this given that I didn’t think should be occurring in the first place (and certainly, not in this unused policy file compared to all other policy files).
So, a few questions:
- How can I log in to the CI console to debug this?
- Any tips or idea what might be going on?
- How can I turn off CI if I need to (not per commit message, but in general for the project)?