From 1754405bb4c812eaa688ef9e179e817c30d2e220 Mon Sep 17 00:00:00 2001 From: Mike Graves Date: Wed, 31 Mar 2021 00:31:47 -0400 Subject: [PATCH] [bp/1.2] Restrict molecule version to <3.3.0 The 3.3.0 version of molecule broke the test suite. Restricting the version until we can either fix upstream or decide on the best workaround. --- .github/workflows/ci.yml | 6 ++++-- changelogs/fragments/403-pin-molecule.yaml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/403-pin-molecule.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e490c60..2807a59c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,8 +84,10 @@ jobs: with: python-version: ${{ matrix.python_version }} + # The 3.3.0 release of molecule introduced a breaking change. See + # https://github.com/ansible-community/molecule/issues/3083 - name: Install molecule and openshift dependencies - run: pip install ansible molecule yamllint openshift flake8 + run: pip install ansible "molecule<3.3.0" yamllint openshift flake8 # The latest release doesn't work with Molecule currently. # See: https://github.com/ansible-community/molecule/issues/2757 @@ -177,7 +179,7 @@ jobs: python-version: ${{ matrix.python_version }} - name: Install molecule and openshift dependencies - run: pip install "ansible>=2.9.0,<2.10.0" molecule yamllint openshift flake8 + run: pip install "ansible>=2.9.0,<2.10.0" "molecule<3.3.0" yamllint openshift flake8 - name: Create default collection path symlink run: | diff --git a/changelogs/fragments/403-pin-molecule.yaml b/changelogs/fragments/403-pin-molecule.yaml new file mode 100644 index 00000000..98c7d564 --- /dev/null +++ b/changelogs/fragments/403-pin-molecule.yaml @@ -0,0 +1,2 @@ +bugfixes: + - pin molecule version to <3.3.0 to fix breaking changes (https://github.com/ansible-collections/community.kubernetes/pull/403).