It looks like a database timeout error when we are trying to find the project:
from active_record/relation/finder_methods.rb:81:in `find_by' from routable.rb:35:in `find_by_full_path' from gitlab/ci/config/external/file/project.rb:46:in `block in project' from gitlab/utils/strong_memoize.rb:30:in `strong_memoize' from gitlab/ci/config/external/file/project.rb:45:in `project' from gitlab/ci/config/external/file/project.rb:51:in `can_access_local_content?' from gitlab/ci/config/external/file/project.rb:33:in `validate_content!' from gitlab/ci/config/external/file/base.rb:72:in `validate!' from gitlab/ci/config/external/file/base.rb:20:in `initialize' from gitlab/ci/config/external/file/project.rb:19:in `initialize' from gitlab/ci/config/external/mapper.rb:92:in `new' from gitlab/ci/config/external/mapper.rb:92:in `block in select_first_matching' from gitlab/ci/config/external/mapper.rb:91:in `map' from gitlab/ci/config/external/mapper.rb:91:in `select_first_matching' from gitlab/ci/config/external/mapper.rb:38:in `map' from gitlab/ci/config/external/mapper.rb:38:in `process' from gitlab/ci/config/external/processor.rb:12:in `initialize' from gitlab/ci/config.rb:89:in `new' from gitlab/ci/config.rb:89:in `build_config' from ee/gitlab/ci/config_ee.rb:18:in `build_config' from gitlab/ci/config.rb:76:in `expand_config' from gitlab/ci/config.rb:25:in `initialize' from gitlab/ci/yaml_processor.rb:29:in `new' from gitlab/ci/yaml_processor.rb:29:in `execute' from gitlab/ci/lint.rb:55:in `static_validation' from gitlab/ci/lint.rb:30:in `validate' from projects/ci/lints_controller.rb:19:in `create' from action_controller/metal/basic_implicit_render.rb:6:in `send_action'
I think that it tries to find a project without a path, we might be missing a validation.
Hi @szabgab! It seems like you got the error because you can't use the keyword file without the keyword project. If you try to use the path like so:
include:-'info.yml'# this should work with or without quotes: info.yml or 'info.yml'
this should work. This is probably not clear in the documentation though, so I'm glad you brought it up! I will create an MR to fix that and will make sure we have all necessary validations.
Let me know if this works for you and/or if you have any other comments.