Skip to content

Commit

Permalink
[stable-6] Lock sanity test versions based on what we were testing wh…
Browse files Browse the repository at this point in the history
…en 7.0.0 was released (#2000)

* [stable-6] Lock sanity test versions based on what we were testing when 7.0.0 was released
* units
* sync with main branch

---

SUMMARY

Now that stable-6 is primarily security-/bug- fixes only, lock the Ansible/Python versions of the Ansible sanity tests that we run. Explicitly excludes running against the milestone/devel versions of the tests since they're a moving target. While we should be applying these fixes to main/stable-7, many of the fixes are primarily cosmetic in nature and don't warrant backporting all the way into stable-6 and beyond.

ISSUE TYPE

    Feature Pull Request

COMPONENT NAME

.github/workflows/sanity.yml

ADDITIONAL INFORMATION
  • Loading branch information
tremble authored Nov 16, 2023
1 parent 8afd0fc commit c95c6c4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 98 deletions.
60 changes: 12 additions & 48 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,32 @@ on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
sanity:
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
# stable-6 sanity test versions locked based on tested versions as of 7.0.0 release
uses: ansible-network/github_actions/.github/workflows/sanity.yml@b2b68168f3040e55553664b1fbcdc19cf10f49bc
with:
matrix_include: "[]"
matrix_include: >-
[]
# devel and milestone are a moving target while we should fix issues in the
# main and our current major releases, they're no always appropriate to
# backport to older releases.
matrix_exclude: >-
[
{
"ansible-version": "stable-2.9"
"ansible-version": "milestone"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.11"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.11"
"ansible-version": "devel"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.7"
"python-version": "3.12"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.7"
},
{
"ansible-version": "milestone",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.9"
},
{
"ansible-version": "devel",
"python-version": "3.7"
},
{
"ansible-version": "devel",
"python-version": "3.8"
"python-version": "3.12"
},
{
"ansible-version": "devel",
"ansible-version": "stable-2.16",
"python-version": "3.9"
}
]
61 changes: 11 additions & 50 deletions .github/workflows/units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,29 @@ on: [workflow_call] # allow this workflow to be called from other workflows

jobs:
unit-source:
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
# stable-6 unit test versions locked based on tested versions as of 7.0.0 release
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@b2b68168f3040e55553664b1fbcdc19cf10f49bc
with:
# devel and milestone are a moving target while we should fix issues in the
# main and our current major releases, they're no always appropriate to
# backport to older releases.
matrix_exclude: >-
[
{
"python-version": "3.11"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.12",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.13",
"python-version": "3.8"
"ansible-version": "milestone"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.7"
"ansible-version": "devel"
},
{
"ansible-version": "stable-2.14",
"python-version": "3.8"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.7"
},
{
"ansible-version": "stable-2.15",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.7"
},
{
"ansible-version": "milestone",
"python-version": "3.8"
},
{
"ansible-version": "milestone",
"python-version": "3.9"
},
{
"ansible-version": "devel",
"python-version": "3.7"
"python-version": "3.11"
},
{
"ansible-version": "devel",
"python-version": "3.8"
"python-version": "3.12"
},
{
"ansible-version": "devel",
"ansible-version": "stable-2.16",
"python-version": "3.9"
}
]
collection_pre_install: ''
collection_pre_install: "-r source/tests/unit/requirements.yml"

0 comments on commit c95c6c4

Please sign in to comment.