#42 [WIP] Zuul setup
Merged 2 years ago by patrikp. Opened 2 years ago by patrikp.
fedora-ci/ patrikp/monitor-gating zuul_ci  into  production

file modified
+34 -15
@@ -1,18 +1,37 @@ 

- # See https://pre-commit.com for more information

- # See https://pre-commit.com/hooks.html for more hooks

+ ---

  repos:

- -   repo: https://github.com/pre-commit/pre-commit-hooks

-     rev: v2.4.0

+   - repo: https://github.com/pre-commit/pre-commit-hooks

+     rev: v4.0.1

      hooks:

-     -   id: trailing-whitespace

-     -   id: end-of-file-fixer

-     -   id: check-yaml

-     -   id: check-added-large-files

-     -   id: check-ast

-     -   id: check-merge-conflict

-     -   id: check-toml

-     -   id: debug-statements

- -   repo: https://gitlab.com/PyCQA/flake8

-     rev: master

+       - id: check-yaml

+       - id: check-added-large-files

+       - id: check-toml

+       - id: debug-statements

+ 

+   - repo: https://gitlab.com/PyCQA/flake8

+     rev: 4.0.1

      hooks:

-     -   id: flake8

+       - id: flake8

+ 

+   - repo: https://github.com/psf/black

+     rev: 21.11b1

+     hooks:

+       - id: black

+         args:

+           - --diff

+           - --check

+ 

+   - repo: https://github.com/adrienverge/yamllint

+     rev: v1.26.3

+     hooks:

+       - id: yamllint

+         alias: yamllint-non-ansible

+         name: yamllint (non-Ansible)

+         files: '^[^(ci/)].*\.ya?ml$'

+       - id: yamllint

+         alias: yamllint-ansible

+         name: yamllint (Ansible)

+         files: '^ci/.*\.ya?ml$'

+         args:

+           - -c

+           - .yamllint-ansible.yaml

@@ -0,0 +1,5 @@ 

+ ---

+ extends: default

+ rules:

+   truthy:

+     allowed-values: ['true', 'false', 'yes', 'no']

file added
+10
@@ -0,0 +1,10 @@ 

+ ---

+ - job:

+     name: gating-pre-commit

+     run: ci/gating-pre-commit.yaml

+     nodeset: fedora-35-vm

+ 

+ - project:

+     check:

+       jobs:

+         - gating-pre-commit

@@ -0,0 +1,20 @@ 

+ ---

+ - hosts: all

+ 

+   tasks:

+     - name: List project directory on the test system

+       command: "ls -al {{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

+ 

+     - name: install pip

+       become: true

+       package:

+         name: python3-pip

+         state: present

+ 

+     - name: install pre-commit

+       command: pip install pre-commit --user

+ 

+     - name: run pre-commit

+       command:

+         chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"

+         cmd: pre-commit run --all

file added
+2
@@ -0,0 +1,2 @@ 

+ [tool.black]

+     line_length = 120

no initial comment

Zuul encountered a syntax error while parsing its configuration in the
repo fedora-ci/monitor-gating on branch production. The error was:

expected a single document in the stream
in "fedora-ci/monitor-gating/.zuul.yaml@production", line 2, column 1
but found another document
in "fedora-ci/monitor-gating/.zuul.yaml@production", line 11, column 1

1 new commit added

  • Fix .yaml document ends
2 years ago

Zuul encountered a syntax error while parsing its configuration in the
repo fedora-ci/monitor-gating on branch production. The error was:

Configuration item has more than one key. Each zuul.yaml
configuration file must be a list of dictionaries with a
single key, for example:

  • job:
    name: foo

  • project:
    name: bar

Ensure that every item in the list is a dictionary with only
one key (in this example, 'job' and 'project'). This error
may be caused by insufficient indentation of the keys under
the configuration item ('name' in this example).

The incorrect values are around:

job: null
name: pre-commit
run: ci/pre-commit.yaml
nodeset: fedora-35-vm

1 new commit added

  • Fix indentation
2 years ago

Zuul encountered a syntax error while parsing its configuration in the
repo fedora-ci/monitor-gating on branch production. The error was:

Job pre-commit in fedora-ci/monitor-gating is not permitted to shadow job pre-commit in fedora-infra/rpmautospec

The error appears in the following job stanza:

job:
name: pre-commit
run: ci/pre-commit.yaml
nodeset: fedora-35-vm

in "fedora-ci/monitor-gating/.zuul.yaml@production", line 2, column 3

1 new commit added

  • Rename pre-commit
2 years ago

Zuul encountered a syntax error while parsing its configuration in the
repo fedora-ci/monitor-gating on branch production. The error was:

Job pre-commit in fedora-ci/monitor-gating is not permitted to shadow job pre-commit in fedora-infra/rpmautospec

The error appears in the following job stanza:

job:
name: pre-commit
run: ci/pre-commit.yaml
nodeset: fedora-35-vm

in "fedora-ci/monitor-gating/.zuul.yaml@production", line 2, column 3

1 new commit added

  • Change .zuul.yaml
2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

1 new commit added

  • Change revs in .pre-commit-config
2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

1 new commit added

  • Tweak max line length
2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Pull-Request has been merged by patrikp

2 years ago