Closed Bug 1481203 Opened 6 years ago Closed 6 years ago

Cannot mark Thunderbird 60.0 as shipped: No valid scope found

Categories

(Thunderbird :: Build Config, defect)

defect
Not set
normal

Tracking

(thunderbird_esr60 fixed, thunderbird63 wontfix, thunderbird64 fixed)

RESOLVED FIXED
Thunderbird 64.0
Tracking Status
thunderbird_esr60 --- fixed
thunderbird63 --- wontfix
thunderbird64 --- fixed

People

(Reporter: jlorenzo, Assigned: rjl)

References

Details

Attachments

(5 files)

https://tools.taskcluster.net/groups/B5SChkanQf2ahu0Kr1POgQ/tasks/a16X_sdwSxKSnErZgCb6oQ/runs/1/logs/public%2Flogs%2Flive_backing.log: > 2018-08-06 12:38:58,287 - scriptworker.client - ERROR - Failed to run async_main > Traceback (most recent call last): > File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/client.py", line 203, in _handle_asyncio_loop > await async_main(context) > File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/script.py", line 20, in async_main > validate_task_schema(context) > File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 42, in validate_task_schema > action = get_task_action(context) > File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 49, in get_task_action > scope = _get_scope(context, "action") > File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 26, in _get_scope > too_many_item_error_message='More than one valid scope given', > File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/utils.py", line 700, in get_single_item_from_sequence > raise ErrorClass(error_message) > scriptworker.exceptions.TaskVerificationError: No valid scope found. Task must have a scope that starts with "project:comm:thunderbird:releng:ship-it:action". Given: ['project:comm:thunderbird:releng:ship-it:production'] We're missing the action scope.
In the meantime, I manually marked the release as shipped.
(In reply to Johan Lorenzo [:jlorenzo] from comment #1) > In the meantime, I manually marked the release as shipped. Yeah, sounds like in-tree payload misconfig. Like Johan said, we need "project:comm:thunderbird:releng:ship-it:action:mark-as-shipped" to be added both in-tree in the task payload and also in the relpro TC client[1]. [1]: https://tools.taskcluster.net/auth/clients/project%2Freleng%2Freleasepromotion%2Fproduction
This broke again for Thunderbird 60.0b11. (I've marked it as shipped manually, again)
Assignee: nobody → rob
This file will need adjusting, look at the Mozilla version to see what needs to be done. https://hg.mozilla.org/releases/comm-esr60/file/tip/taskcluster/ci/release-mark-as-shipped/kind.yml
This will fix the problem of not being able to mark a release as shipped.
Comment on attachment 9013137 [details] Bug 1481203 - Add mark-as-shipped scope to release-mark-as-shipped kind Jorg K (GMT+2) has approved the revision.
Attachment #9013137 - Flags: review+
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/5488135778be Add mark-as-shipped scope to release-mark-as-shipped kind. rs=jorgk
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Beta uplift here?
Flags: needinfo?(rob)
Yes we will need these in beta.
Flags: needinfo?(rob)
Component: Release Automation: Other → Build Config
Product: Release Engineering → Thunderbird
QA Contact: sfraser
Target Milestone: --- → Thunderbird 64.0
Attachment #9013137 - Flags: approval-comm-esr60+
Attachment #9013137 - Flags: approval-comm-beta+
Task failed again on 63.0b1. Need to change 'project:comm:thunderbird:releng:ship-it:production' to 'project:comm:thunderbird:releng:ship-it:server:production' 2018-10-11 20:09:48,745 - scriptworker.client - ERROR - Failed to run async_main Traceback (most recent call last): File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/client.py", line 203, in _handle_asyncio_loop await async_main(context) File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/script.py", line 22, in async_main context.ship_it_instance_config = get_ship_it_instance_config_from_scope(context) File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 31, in get_ship_it_instance_config_from_scope scope = _get_scope(context, "server") File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 26, in _get_scope too_many_item_error_message='More than one valid scope given', File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/utils.py", line 700, in get_single_item_from_sequence raise ErrorClass(error_message) scriptworker.exceptions.TaskVerificationError: No valid scope found. Task must have a scope that starts with "project:comm:thunderbird:releng:ship-it:server". Given: ['project:comm:thunderbird:releng:ship-it:production', 'project:comm:thunderbird:releng:ship-it:action:mark-as-shipped']
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Error message asks for a scope "project:comm:thunderbird:releng:ship-it:server" in additon to "project:comm:thunderbird:releng:ship-it:action:mark-as-shipped"
This patch needs to be applied to the ci-configuration repository and adds the addition scope grants necessary for the latest changes to Taskcluster.
Can you upload the ci-config patch to phabricator?
The Thunderbird release-mark-as-shipped task fails due to a scope problem. Task must have a scope that starts with "project:comm:thunderbird:releng:ship-it:server", yet there is no such scope. {scope_prefix}:server:staging and {scope_prefix}:server:production are not present at Per https://github.com/mozilla-releng/shipitscript/blob/master/SCOPES.md, The scopes for :releng:ship-it are not listed at: https://tools.taskcluster.net/auth/clients/project%2Freleng%2Freleasepromotion%2Fproduction This patch adds them.
comm-beta is using an older revision of release-mark-as-shipped/kind.yml as it's base and the patch for c-c will not apply. As it is not feasible to update kind.yml due to "by-release-level" not being available in taskgraph yet, here is a version of the patch that applies to comm-beta.
Comment on attachment 9016824 [details] [diff] [review] Fix release-mark-as-shipped server scopes - BETA/ESR60 version This will also work for comm-esr60.
Attachment #9016824 - Attachment description: Fix release-mark-as-shipped server scopes - ESR60 version → Fix release-mark-as-shipped server scopes - BETA/ESR60 version
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry, I can't get "hg phabread" set up right now, see bug 1499305, so I can't land this at the moment.
I finally got "hg phabread" going again. Sadly the patch doesn't apply, just look at it: diff --git a/grants.yml b/grants.yml --- a/grants.yml +++ b/grants.yml As far as I can tell, "grants.yml" doesn't exist anywhere in the entire codebase, neither M-C nor C-C. The beta version applies to taskcluster/ci/release-mark-as-shipped/kind.yml
Flags: needinfo?(rob)
Keywords: checkin-needed
The grants.yml patch was for the ci-configuration repository, and that's already landed separately. Attachment 9016492 [details] applies to C-C (https://phabricator.services.mozilla.com/D8481). Attachment 9016824 [details] [diff] should apply to both beta and esr60. I don't know of a way to put patches that differ for beta and esr in phabricator, that's why that one is here.
Flags: needinfo?(rob)
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/229c5a7bba53 Fix server scopes on release-mark-as-shipped task. r=mkmelin
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Attachment #9016824 - Flags: approval-comm-esr60+
Attachment #9016824 - Flags: approval-comm-beta+
New ship-it error: Traceback (most recent call last): File "/builds/scriptworker/lib/python3.6/site-packages/scriptworker/client.py", line 203, in _handle_asyncio_loop await async_main(context) File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/script.py", line 22, in async_main context.ship_it_instance_config = get_ship_it_instance_config_from_scope(context) File "/builds/scriptworker/lib/python3.6/site-packages/shipitscript/task.py", line 37, in get_ship_it_instance_config_from_scope raise TaskVerificationError('This worker is not configured to handle scope "{}"'.format(scope)) scriptworker.exceptions.TaskVerificationError: This worker is not configured to handle scope "project:comm:thunderbird:releng:ship-it:server:production" Per :tomprince via IRC, the Taskcluster scriptworkers need to be updated via puppet to recognize the new scopes. I've submitted a pull request at: https://github.com/mozilla-releng/build-puppet/pull/278
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This ran successfully on the 60.3 release
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: