Skip to content

chore: remove jinja vars from conditional statements in test asserts #178

chore: remove jinja vars from conditional statements in test asserts

chore: remove jinja vars from conditional statements in test asserts #178

Triggered via pull request July 26, 2024 22:49
Status Failure
Total duration 2m 43s
Artifacts

ansible-test.yml

on: pull_request
Matrix: sanity-and-lint
Matrix: unit
Fit to window
Zoom out
Zoom in

Annotations

65 errors and 25 warnings
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
sanity-and-lint (stable-2.16, 3.11)
The job was canceled because "stable-2_17_3_11" failed.
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
sanity-and-lint (stable-2.16, 3.12)
The job was canceled because "stable-2_17_3_11" failed.
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
sanity-and-lint (stable-2.16, 3.10)
The job was canceled because "stable-2_17_3_11" failed.
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
sanity-and-lint (stable-2.17, 3.12)
The job was canceled because "stable-2_17_3_11" failed.
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
sanity-and-lint (stable-2.17, 3.10)
The job was canceled because "stable-2_17_3_11" failed.
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L2
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: agent_type)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L3
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: package_state)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L4
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: version)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L6
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: main_config_file)
var-naming[no-role-prefix]: roles/google_cloud_ops_agents/defaults/main.yml#L8
Variables names from within roles should use google_cloud_ops_agents_ as a prefix. (vars: additional_config_dir)
fqcn[action-core]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Use FQCN for builtin module actions (service).
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L2
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L2
Jinja templates should only be at the end of 'name'
name[casing]: roles/google_cloud_ops_agents/handlers/main.yml#L8
All names should start with an uppercase letter.
name[template]: roles/google_cloud_ops_agents/handlers/main.yml#L8
Jinja templates should only be at the end of 'name'
unit (stable-2.17, 3.10)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit (stable-2.16, 3.11)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit (stable-2.17, 3.11)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit (stable-2.16, 3.10)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit (stable-2.17, 3.12)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
unit (stable-2.16, 3.12)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
sanity-and-lint (stable-2.17, 3.11)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/create_instance.yml#L64
Jinja2 spacing could be improved: {{ instance_created.instances + [ instance ] }} -> {{ instance_created.instances + \[instance] }}
jinja[spacing]: roles/google_cloud_ops_agents/molecule/resources/playbooks/verify.yml#L11
Jinja2 spacing could be improved: {{ 'stackdriver-agent' if agent_type=='monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }} -> {{ 'stackdriver-agent' if agent_type == 'monitoring' else 'google-fluentd' if agent_type == 'logging' else 'google-cloud-ops-agent' }}
jinja[spacing]: roles/google_cloud_ops_agents/tasks/windows.yml#L30
Jinja2 spacing could be improved: .\\add-google-cloud-ops-agent-repo.ps1 {{ '-AlsoInstall' if package_state == 'present' else '-Uninstall -RemoveRepo' }} -Version {{ version }} {{ '-WhatIf' if ansible_check_mode else ''}}