While testing some bitrisescript changes on staging-firefox-ios, @isabelrios discovered a CoT failure:
https://firefox-ci-tc.services.mozilla.com/tasks/C4i1LZAQS1iLhBbATtJBBw/runs/0/logs/public/logs/chain_of_trust.log
This is a json-e rendering error:
jsone.shared.InterpreterError: InterpreterError at template.tasks[0].repoUrl: infix: . expects objects
It happens because the .taskcluster.yml evaluates event.pull_request.head.repo.html_url (which is standard in all our .taskcluster.yml files), but the Github context that verfiy_cot resolves has:
pull_request:
head:
repo: None
I believe this is happening because staging-firefox-ios is a fork of firefox-ios, so it means we hit this condition:
|
if repo_definition["fork"]: |
This causes us to use mozilla-mobile/firefox-ios as the head repository instead, and my theory is this causes the pull_request.head.repo to be None as the pull request in question doesn't exist over there.
While testing some bitrisescript changes on
staging-firefox-ios, @isabelrios discovered a CoT failure:https://firefox-ci-tc.services.mozilla.com/tasks/C4i1LZAQS1iLhBbATtJBBw/runs/0/logs/public/logs/chain_of_trust.log
This is a json-e rendering error:
It happens because the
.taskcluster.ymlevaluates event.pull_request.head.repo.html_url (which is standard in all our.taskcluster.ymlfiles), but the Github context thatverfiy_cotresolves has:I believe this is happening because
staging-firefox-iosis a fork offirefox-ios, so it means we hit this condition:scriptworker/src/scriptworker/cot/verify.py
Line 1179 in cd0aac0
This causes us to use
mozilla-mobile/firefox-iosas the head repository instead, and my theory is this causes thepull_request.head.repoto be None as the pull request in question doesn't exist over there.