zuul/tests/fixtures/config/tenant-parser/git
Tobias Henkel fac26fb890
Don't exclude config if excluded in earlier tenant
Consider the following scenario where tenant-one includes org/project1
without any config. Zuul currently doesn't load the config of
org/project1 in tenant-two as well.

- tenant:
    name: tenant-one
    source:
      gerrit:
        untrusted-projects:
          - org/project1:
              include: []

- tenant:
    name: tenant-two
    source:
      gerrit:
        untrusted-projects:
          - org/project1

This is caused because we cache an empty config if we exclude all
config from the repo the same way as if the repo wouldn't have any
config. This causes the cat job to be skipped when loading
tenant-two. This can be solved by marking the empty config that will
be cached as 'this has no config because it has been skipped'. Then we
can detect that case and still trigger a cat job if we need the config
in a later tenant.

Change-Id: I1e7e68f11ca4fb7d1e52eee6d4c9a9d8331b012c
2019-02-11 16:03:57 +01:00
..
common-config Fix mixed canonical/non-canonical project merge 2017-11-29 20:34:06 +01:00
org_project1 Allow per-repo selection of configuration classes to load 2017-06-08 11:38:03 -07:00
org_project2 configloader: add variant-description 2018-04-12 03:11:13 +00:00
org_project3 Don't validate references for excluded config items 2018-05-03 09:58:02 +02:00
org_project4 Test coverage to exclude pipeline with untrusted project 2019-01-20 13:34:37 -05:00
org_project5 Don't exclude config if excluded in earlier tenant 2019-02-11 16:03:57 +01:00