Switch to Zuul's regular expression for `Depends-On` detection

Since `Depends-On` is ultimately for Zuul (the service), there is no
point in being stricter or less strict that Zuul is. Otherwise, the UI
would not reflect what Zuul can pick up or fails to pick up. This would
be confusing for users.

For reference, Zuul's regular expression for `Depends-On` detection is
here:

  https://opendev.org/zuul/zuul/src/commit/041e251b7c3d76f7cc89e491f2ed246b87b1cd9c/zuul/driver/gerrit/gerritconnection.py#L477

Change-Id: Idf421a6e1a29e21883540d49cf5ccc8190ffec17
2 files changed
tree: 2e6626a6fd21b5638cb3f170390fe1b7c98cc405
  1. gr-zuul/
  2. src/
  3. .eslintignore
  4. .eslintrc.json
  5. .gitignore
  6. BUILD
  7. LICENSE
  8. README.md
README.md

Gerrit Zuul Plugin

Openstack uses Zuul for project gating and one of the features of Zuul is cross repository dependencies (CRD). Zuul will detect CRDs in git commit messages to allow it to arrange patchsets (in order) before scheduling them for build and test.

The problems with having only a ‘depends-on’ reference:

  • It can become very difficult, downright confusing really, to determine the dependency relationships.
  • The use of CRD can produce dependency cycles which can be difficult to detect.

To help alleviate these issues this plugin adds the following:

  • A reverse lookup for the ‘depends-on’ reference.
  • A REST endpoint to allow other clients to retrieve CRD info.

Detailed information about this plugin can be found in the documentation.