Skip to content

Commit

Permalink
config: pipeline: fix build-only-trees rules
Browse files Browse the repository at this point in the history
We have a template for restricting build-only jobs to a list of allowed
trees only. However, this anchor contained the `rules` top-level key
itself, meaning using it as `rules: *build-only-trees-rules` would end
up creating the following object:

```
  kbuild-job:
    ...
    rules:
      rules:
        tree:
          ...
```

The nested `rules` keys prevented successful parsing of those rules,
which were therefore ignored, causing the corresponding job to run on
all trees.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
  • Loading branch information
a-wai authored and nuclearcat committed Aug 7, 2024
1 parent 5722ecd commit 3666490
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,14 @@ _anchors:

### Frequently used rules

build-only-trees: &build-only-trees-rules
rules:
tree:
- 'amlogic'
- 'ardb'
- 'arnd'
- 'clk'
- 'efi'
- 'peterz'
build-only-trees-rules: &build-only-trees-rules
tree:
- 'amlogic'
- 'ardb'
- 'arnd'
- 'clk'
- 'efi'
- 'peterz'

api:

Expand Down

0 comments on commit 3666490

Please sign in to comment.