Skip to content

Instantly share code, notes, and snippets.

@acmiyaguchi
Created June 7, 2016 23:48
Show Gist options
  • Save acmiyaguchi/f3ed620414821a0da02e09a77e470e0c to your computer and use it in GitHub Desktop.
Save acmiyaguchi/f3ed620414821a0da02e09a77e470e0c to your computer and use it in GitHub Desktop.
Releasetasks sample dump
from releasetasks.test.firefox import make_task_graph
from releasetasks.test import PVT_KEY_FILE
import pprint
pp = pprint.PrettyPrinter(indent=2)
graph = make_task_graph(
product="firefox",
version="42.0b2",
next_version="42.0b3",
appVersion="42.0",
buildNumber=3,
source_enabled=True,
checksums_enabled=True,
en_US_config={
"platforms": {
"macosx64": {"task_id": "abc"},
"win32": {"task_id": "def"},
"win64": {"task_id": "jgh"},
"linux": {"task_id": "ijk"},
"linux64": {"task_id": "lmn"},
}
},
l10n_config={},
repo_path="releases/foo",
revision="fedcba654321",
mozharness_changeset="abcd",
partial_updates={
"38.0": {
"buildNumber": 1,
"locales": ["de", "en-GB", "zh-TW"],
},
"37.0": {
"buildNumber": 2,
"locales": ["de", "en-GB", "zh-TW"],
},
},
branch="foo",
updates_enabled=True,
bouncer_enabled=True,
push_to_candidates_enabled=True,
beetmover_candidates_bucket='mozilla-releng-beet-mover-dev',
push_to_releases_enabled=True,
uptake_monitoring_enabled=True,
postrelease_version_bump_enabled=True,
postrelease_bouncer_aliases_enabled=True,
tuxedo_server_url="https://bouncer.real.allizom.org/api",
signing_class="release-signing",
verifyConfigs={},
release_channels=["foo"],
balrog_api_root="https://balrog.real/api",
funsize_balrog_api_root="http://balrog/api",
signing_pvt_key=PVT_KEY_FILE,
build_tools_repo_path='build/tools',
push_to_releases_automatic=True,
partner_repacks_platforms=["win32", "macosx64"],
)
pp.pprint(graph)
@acmiyaguchi
Copy link
Author

Print the results of Releasetasks full feature graph test. To run, clone the repository and run the following commands.

python setup.py develop
This will install the relevant dependencies.
python dump.py > taskgraph.txt
This will dump the output to a file.

@acmiyaguchi
Copy link
Author

acmiyaguchi commented Jun 8, 2016

python dump.py | grep 'description' will give a fairly useful view for the chronological ordering of tasks. First the docker images are generated for funsize-update-generator and funsize-balrog-submitter. The AV database for beetmover is then updated. This marks the end of the preparatory steps. A task moves the artifacts of an earlier CI build into the correct directory and the whole process continues from there.

Below is an abridged output from the search.

{ 'metadata': { 'description': 'Release Promotion',
'metadata': { 'description': 'Generate funsize-update-generator docker image',
'metadata': { 'description': 'Generate funsize-balrog-submitter docker image',
'metadata': { 'description': 'Refresh AV DB of beetmover docker image',
'metadata': { 'description': 'moves artifacts for en_US based builds to candidates dir',
...
'metadata': { 'description': 'This task generates MAR files and publishes unsigned bits.\n',
'metadata': { 'description': 'This task signs MAR files and publishes signed bits.\n',
'metadata': { 'description': 'This task publishes signed updates to Balrog.\n',
'metadata': { 'description': 'moves partial artifacts for en_US based builds to candidates dir',
...
'metadata': { 'description': 'Generates a source tarball\n',
'metadata': { 'description': 'Sign source tarball\n',
'metadata': { 'description': 'moves source artifacts to candidates dir',
'metadata': { 'description': 'moves source artifact checksums to candidates dir',
'metadata': { 'description': 'Release Promotion bouncer submission job',
'metadata': { 'description': 'Release Promotion checksums job',
'metadata': { 'description': 'moves candidates artifacts to releases dir. also known as push to mirrors',
'metadata': { 'description': 'Release Promotion uptake monitoring',
'metadata': { 'description': 'Release Promotion post release human decision task',
'metadata': { 'description': 'Release Promotion bouncer aliases',
'metadata': { 'description': 'Release Promotion version bump',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment