#1763 test_profiles failed after config reading refactoring
Closed: Fixed by mikem. Opened by julian8628.

FAIL: Test that profiles thread safe
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/koji-pr-unittest-pipeline@2/tests/test_lib/test_profiles.py", line 31, in test_profile_threading
    assert False
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/koji-pr-unittest-pipeline@2/tests/test_lib/test_profiles.py", line 37, in stress
    koji.get_profile_module('koji')
  File "/var/lib/jenkins/workspace/koji-pr-unittest-pipeline@2/koji/__init__.py", line 1815, in get_profile_module
    result = read_config(profile_name)
  File "/var/lib/jenkins/workspace/koji-pr-unittest-pipeline@2/koji/__init__.py", line 1780, in read_config
    raise ConfigurationError("no configuration for profile name: %s" % profile_name)
ConfigurationError: no configuration for profile name: koji

It is caused by that now configs will never be empty even any path there doesn't exist.
It would not be a problem after rpm install, but it would be better to check config than configs


PR #1767

Metadata Update from @julian8628:
- Custom field Size adjusted to None

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.20
- Issue tagged with: bug

Commit c1464236 fixes this issue

Commit 31a26705 fixes this issue

Metadata Update from @julian8628:
- Issue tagged with: no_qe

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1763

Please continue any further discussion there.

Metadata
Related Pull Requests