packit / hardly

Project is archived since Packit team agreed on prioritising work with more benefits and bigger user base.
https://packit.dev/source-git/status
MIT License
0 stars 7 forks source link

AttributeError: 'NoneType' object has no attribute 'get_package_config_for' #104

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: PCKT-002-STREAM-SERVICE-3C

AttributeError: 'NoneType' object has no attribute 'get_package_config_for'
  File "hardly/tasks.py", line 119, in run_gitlab_ci_to_source_git_pr_handler
    package_config=packages_config_obj.get_package_config_for(job_config_obj),
mfocko commented 1 year ago

Might be related to the monorepo changes

jpopelka commented 1 year ago

It happens in run_gitlab_ci_to_source_git_pr_handler i.e. when the dist-git CI pipeline results are to be synced back to the original source-git MR.

I can reproduce it locally: 1) docker-compose up hardly service in one terminal 2) cat tests/data/webhooks/gitlab/pipeline.json | http --verify=no https://service.localhost:8443/api/webhooks/gitlab in another