On sie 13, Imre Jonk wrote:
If I understand correctly, the JANE tool which we use for GitLab CI
testing relies partly on Git log patterns to decide which roles it
should test. A new commit that contains the role name in square
brackets would trigger a JANE test on
gitlab.com.
Yes, that's correct. Although I haven't found this to be used so far, most of
the time the [role] is used in the subject of the commit message but the files
of that role are found just fine with the diff patterns. Usually I write other
role names with quotes ('role') instead. I'm not sure if bash can handle this
without some regexp magic that supports both single and double quotes.
However, the JANE_LOG_PATTERN variables in .gitlab-ci.yml are
currently
in the form '\[debops.rolename\]', while our Git log messages contain
'[rolename]' instead. I guess that means that JANE only triggers on
JANE_DIFF_PATTERN, which contains a filesystem path to the role and its
documentation.
Should we update the JANE_LOG_PATTERN variables in .gitlab-ci.yml to
reflect our new Git log style?
Sure, sounds good to me.
-- Maciej