Open izgeri opened 3 years ago
Note: I tried to manually upload v1.1.0 to automation hub, but the upload failed:
Importing with galaxy-importer 0.2.14
Invalid collection metadata. Each author in 'authors' list must not be greater than 64 characters
File "/venv/lib64/python3.6/site-packages/rq/worker.py", line 936, in perform_job
rv = job.perform()
File "/venv/lib64/python3.6/site-packages/rq/job.py", line 684, in perform
self._result = self._execute()
File "/venv/lib64/python3.6/site-packages/rq/job.py", line 690, in _execute
return self.func(*self.args, **self.kwargs)
File "/app/galaxy_ng/app/tasks/publishing.py", line 47, in import_and_move_to_staging
expected_version=kwargs['expected_version'],
File "/venv/lib64/python3.6/site-packages/pulp_ansible/app/tasks/collections.py", line 149, in import_collection
artifact_file, filename=filename, logger=user_facing_logger
File "/venv/lib64/python3.6/site-packages/galaxy_importer/collection.py", line 57, in import_collection
return _import_collection(file, filename, logger, cfg)
File "/venv/lib64/python3.6/site-packages/galaxy_importer/collection.py", line 77, in _import_collection
data = CollectionLoader(extract_dir, filename, cfg=cfg, logger=logger).load()
File "/venv/lib64/python3.6/site-packages/galaxy_importer/collection.py", line 142, in load
self._load_collection_manifest()
File "/venv/lib64/python3.6/site-packages/galaxy_importer/collection.py", line 178, in _load_collection_manifest
raise exc.ManifestValidationError(str(e))
Note that in #59 we suggest a fix to add pipeline validation that will enable us to successfully publish the collection to AH - it still outputs warnings (though it is not yet failing the build at this time):
[2021-02-11T22:21:58.095Z] WARNING: roles/conjur_host_identity/tasks/summon-conjur.yml:2: [E208] File permissions unset or incorrect
[2021-02-11T22:21:58.095Z] ERROR: WARNING Listing 1 violation(s) that are fatal
[2021-02-11T22:21:58.095Z] ERROR: You can skip specific rules or tags by adding them to your configuration file:
[2021-02-11T22:21:58.095Z] ERROR:
[2021-02-11T22:21:58.095Z] ERROR: ┌──────────────────────────────────────────────────────────────────────────────┐
[2021-02-11T22:21:58.095Z] ERROR: │ # .ansible-lint │
[2021-02-11T22:21:58.095Z] ERROR: │ warn_list: # or 'skip_list' to silence them completely │
[2021-02-11T22:21:58.095Z] ERROR: │ - '208' # File permissions unset or incorrect │
[2021-02-11T22:21:58.095Z] ERROR: │ - experimental # all rules tagged as experimental │
[2021-02-11T22:21:58.095Z] ERROR: └──────────────────────────────────────────────────────────────────────────────┘
[2021-02-11T22:21:58.095Z] Loading lookup conjur_variable
[2021-02-11T22:21:58.095Z] Loading python dependencies
[2021-02-11T22:21:58.095Z] Collection loading complete
[2021-02-11T22:21:58.095Z] Importer processing completed successfully
At current, this collection is listed in Automation Hub but does not automatically update there with new releases; new releases are only automatically published to Ansible Galaxy.
In this card, we want to update our pipeline to also auto-publish to Automation Hub. We should probably also add a section to the README about installing from automation hub.
References:
AC: