Add scopes the application-services cron task
Categories
(Release Engineering :: Firefox-CI Administration, task)
Tracking
(Not tracked)
People
(Reporter: bdk, Assigned: jcristau)
Details
Attachments
(5 files)
After merging our PR to implement nightly builds, our nightly cron tasks have been failing with a permissions errors. It looks like we need to grant it the secrets:get:project/application-services/symbols-token
scope.
Assignee | ||
Comment 1•2 years ago
|
||
The nightly cron job now runs tasks that require
secrets:get:project/application-services/symbols-token.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
The appservices-{level}-beetmover worker type was used before
https://github.com/mozilla/application-services/pull/3168; since then
it's changed to app-services-{level}-beetmover. It's high time we
removed the corresponding grant.
Assignee | ||
Comment 5•2 years ago
|
||
I haven't been able to find where
project/application-services/gradle-plugin-publish was used;
project/application-services/publish has been unused since the switch to
beetmover in https://github.com/mozilla/application-services/pull/744.
Both pre-date ci-config and were migrated from the previous manually
maintained config.
Assignee | ||
Comment 6•2 years ago
|
||
application-services is now publishing daily artifacts from cron so
needs access to maven.mozilla.org from non-github-release graphs.
Assignee | ||
Comment 8•2 years ago
|
||
I'm abusing this bug to clean up some obsolete grants from A-S release jobs while we're looking at this.
Assignee | ||
Comment 10•2 years ago
|
||
Cron job triggered manually, https://firefox-ci-tc.services.mozilla.com/tasks/NLb8d4JJTLOx06xz7HIcEQ is green; closing.
Reporter | ||
Comment 11•2 years ago
|
||
The decision task succeeded, however the signing tasks seem to have failed with the MALFORMED_PAYLOAD
exception. Any idea why those tasks are failing?
https://firefox-ci-tc.services.mozilla.com/tasks/groups/NLb8d4JJTLOx06xz7HIcEQ
Reporter | ||
Comment 12•2 years ago
|
||
FWIW, this task was working when running from a PR 4 days ago: https://firefox-ci-tc.services.mozilla.com/tasks/FuQ3IbAwQCWFRHgkCr-ySQ
Comment 13•2 years ago
|
||
That's a CoT error, see the chain_of_trust.log
to see the actual error message.
It's happening because Chain of Trust is hitting an exception while trying to rebuild and verify the Decision task's definition. Looks like it's expecting a task["extra"]["cron"]
value in the definition. Looks like app-services
is missing this bit of config in the .tc.yml
:
https://github.com/mozilla-mobile/firefox-android/blob/main/.taskcluster.yml#L347
Assignee | ||
Comment 14•2 years ago
|
||
2023-04-24T16:03:00 ERROR - Error while rebuilding scriptworker:parent NLb8d4JJTLOx06xz7HIcEQ task definition!
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/scriptworker/cot/verify.py", line 1569, in verify_parent_task_definition
jsone_context, tmpl = await get_jsone_context_and_template(chain, parent_link, decision_link, tasks_for)
File "/app/lib/python3.9/site-packages/scriptworker/cot/verify.py", line 1539, in get_jsone_context_and_template
jsone_context = await populate_jsone_context(chain, parent_link, decision_link, tasks_for)
File "/app/lib/python3.9/site-packages/scriptworker/cot/verify.py", line 1312, in populate_jsone_context
jsone_context.update(await _get_additional_git_cron_jsone_context(decision_link))
File "/app/lib/python3.9/site-packages/scriptworker/cot/verify.py", line 1139, in _get_additional_git_cron_jsone_context
"cron": load_json_or_yaml(decision_link.task["extra"]["cron"]),
KeyError: 'cron'
2023-04-24T16:03:00 CRITICAL - Chain of Trust verification error!
Chain-of-trust verification expects something like https://github.com/mozilla-mobile/firefox-android/blob/a4a2449c2037b4b84d7ecee3cf07366c4986b767/.taskcluster.yml#L349 for cron decision tasks, which is missing from https://github.com/mozilla/application-services/blob/main/.taskcluster.yml.
Reporter | ||
Comment 15•2 years ago
|
||
After fixing the COT errors, the build works. Thanks again!
https://firefox-ci-tc.services.mozilla.com/tasks/groups/LXzVhwIKRSG3voC3YDD3nQ
Description
•