Rollback pulp container to stabilise CI (#72580)

pull/72586/head
Jordan Borean 4 years ago committed by GitHub
parent a521ea0a13
commit 03a395cba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -301,38 +301,39 @@
- (install_req_actual.results[0].content | b64decode | from_json).collection_info.version == '1.0.0' - (install_req_actual.results[0].content | b64decode | from_json).collection_info.version == '1.0.0'
- (install_req_actual.results[1].content | b64decode | from_json).collection_info.version == '1.0.0' - (install_req_actual.results[1].content | b64decode | from_json).collection_info.version == '1.0.0'
- name: install cache.cache at the current latest version # Uncomment once pulp container is at pulp>=0.5.0
command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' -vvv #- name: install cache.cache at the current latest version
environment: # command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' -vvv
ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections' # environment:
# ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
- set_fact: #
cache_version_build: '{{ (cache_version_build | int) + 1 }}' #- set_fact:
# cache_version_build: '{{ (cache_version_build | int) + 1 }}'
- name: publish update for cache.cache test #
setup_collections: #- name: publish update for cache.cache test
server: galaxy_ng # setup_collections:
collections: # server: galaxy_ng
- namespace: cache # collections:
name: cache # - namespace: cache
version: 1.0.{{ cache_version_build }} # name: cache
# version: 1.0.{{ cache_version_build }}
- name: make sure the cache version list is ignored on a collection version change #
command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' --force -vvv #- name: make sure the cache version list is ignored on a collection version change - {{ test_name }}
register: install_cached_update # command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' --force -vvv
environment: # register: install_cached_update
ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections' # environment:
# ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
- name: get result of install collections with ansible-galaxy install - {{ test_name }} #
slurp: #- name: get result of cache version list is ignored on a collection version change - {{ test_name }}
path: '{{ galaxy_dir }}/ansible_collections/cache/cache/MANIFEST.json' # slurp:
register: install_cached_update_actual # path: '{{ galaxy_dir }}/ansible_collections/cache/cache/MANIFEST.json'
# register: install_cached_update_actual
- name: assert install collections with ansible-galaxy install - {{ test_name }} #
assert: #- name: assert cache version list is ignored on a collection version change - {{ test_name }}
that: # assert:
- '"Installing ''cache.cache:1.0.{{ cache_version_build }}'' to" in install_cached_update.stdout' # that:
- (install_cached_update_actual.content | b64decode | from_json).collection_info.version == '1.0.' ~ cache_version_build # - '"Installing ''cache.cache:1.0.{{ cache_version_build }}'' to" in install_cached_update.stdout'
# - (install_cached_update_actual.content | b64decode | from_json).collection_info.version == '1.0.' ~ cache_version_build
- name: remove test collection install directory - {{ test_name }} - name: remove test collection install directory - {{ test_name }}
file: file:

@ -94,9 +94,13 @@ class GalaxyProvider(CloudProvider):
""" """
super(GalaxyProvider, self).__init__(args) super(GalaxyProvider, self).__init__(args)
# Cannot use the latest container image as either galaxy_ng 4.2.0rc2 or pulp 0.5.0 has sporatic issues with
# dropping published collections in CI. Try running the tests multiple times when updating. Will also need to
# comment out the cache tests in 'test/integration/targets/ansible-galaxy-collection/tasks/install.yml' when
# the newer update is available.
self.pulp = os.environ.get( self.pulp = os.environ.get(
'ANSIBLE_PULP_CONTAINER', 'ANSIBLE_PULP_CONTAINER',
'docker.io/pulp/pulp-galaxy-ng@sha256:263282d364e2c996f5e0740e85bbfb685bcc602bce1ab2c4f5af702fe46f9b20' 'docker.io/pulp/pulp-galaxy-ng@sha256:b79a7be64eff86d8f58db9ca83ed4967bd8b4e45c99addb17a91d11926480cf1'
) )
self.containers = [] self.containers = []

Loading…
Cancel
Save