Skip to content

Commit

Permalink
CI(ansible): Fix ansible-test runtime error root cause (aristanetwork…
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 authored Jan 13, 2022
1 parent b8590fa commit f97179c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .git-commit-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

#<type>[optional scope]: <description>

# Optional description

# BREAKING CHANHE: < description >
#
# Types: Feat / Fix / Cut / Doc / CI / Start / Stop / Bump / Test / Make / Refactor / Reformat / Optimize / License / Revert
# Scopes: cv_device_v3 cv_container_v3 cv_configlet_v3 cv_task_v3 module_utils dhcp_configuration mkdoc contribution how-to actions molecule ansible github requirements pytest
3 changes: 1 addition & 2 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ jobs:
- name: 'Install Python requirements'
run: make install-requirements
- name: 'ansible-test linting'
# Skip runtime-metadata as test is broken when requires_ansible contains < or > as described in documentation
run: |
cd ansible_collections/arista/cvp/
rm -rf molecule/
ansible-test sanity -v --requirements --docker --python ${{ matrix.python_version }} --skip-test runtime-metadata
ansible-test sanity -v --requirements --docker --python ${{ matrix.python_version }}
rm -rf tests/output/
2 changes: 1 addition & 1 deletion .github/workflows/tag-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Build project # This would actually build your project, using zip for an example artifact
run: |
sed -i 's/version: null/version: '"$(git describe --abbrev=0 --tags | sed 's/v//')"'/' ansible_collections/arista/cvp/galaxy.yml
sed -i 's/version: 0\.0\.0/version: '"$(git describe --abbrev=0 --tags | sed 's/v//')"'/' ansible_collections/arista/cvp/galaxy.yml
make collection-build
# - name: Release on Github
Expand Down
2 changes: 1 addition & 1 deletion ansible_collections/arista/cvp/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace: arista
name: cvp

# The version of the collection. Must be compatible with semantic versioning
version: null
version: 0.0.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down

0 comments on commit f97179c

Please sign in to comment.