Closed
Bug 1381613
Opened 7 years ago
Closed 7 years ago
Populate a shared index route for "trunk" repos
Categories
(Firefox Build System :: Task Configuration, task)
Firefox Build System
Task Configuration
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla56
People
(Reporter: gps, Assigned: gps)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Currently, TC Index routes have the prefix "index.gecko.v2.{project}." where {project} is the repository name. e.g. "mozilla-central" or "autoland."
The fact that the repository is in the index path is kind of a kludge. In theory, we should be able to index based on revision and if there are variations between different repositories or branches/heads within a repository, those should be denoted by different task names. e.g. a build with a beta configuration should not only vary by the {project}/repo component of the index: it should vary by the task name.
Unfortunately, we can't universally remove the repository component of the index path just yet because we don't yet vary the job names across repositories. However, for the special case of the "trunk" repositories - {mozilla-central, autoland, mozilla-inbound} - we should be able to store results for these in a central/shared index path.
A big advantage of having a repository-less index path is that when searching for data attached to a revision you only need to make 1 HTTP request instead of N. This matters for things like artifact builds. Artifact builds walk the commit ancestry then look at multiple repositories in the index. It would be simpler and faster to just look at 1 thing: the revision.
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8887208 [details]
Bug 1381613 - Populate a repository-less index route for "trunk" repos;
https://reviewboard.mozilla.org/r/157986/#review163092
::: taskcluster/taskgraph/transforms/task.py:483
(Diff revision 1)
> ]
>
> +# {central, inbound, autoland} write to a "trunk" index prefix. This facilitates
> +# walking of tasks with similar configurations.
> +V2_TRUNK_ROUTE_TEMPLATES = [
> + "index.gecko.v2.trunk.revision.{head_rev}.{product}.{job-name}",
I assume this will require TC scope changes in order to grant permissions to write to the new index prefix. I'm not sure what all is involved here. I figure Dustin or someone can make those changes as part of granting r+.
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8887208 [details]
Bug 1381613 - Populate a repository-less index route for "trunk" repos;
https://reviewboard.mozilla.org/r/157986/#review163596
Looks good, but we need to have some external record (in production-branches.json) of what the "trunk" branches are first.
Attachment #8887208 -
Flags: review?(dustin) → review+
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 8887523 [details]
Bug 1381613: annotate the 'release' branches;
Not sure what is up with MozReview. But I landed this as https://hg.mozilla.org/build/tools/rev/931bdc862a80.
Attachment #8887523 -
Flags: review?(gps) → review+
Assignee | ||
Comment 7•7 years ago
|
||
I landed things to build/tools and I see your PR has merged. Does anything else need to happen before the Firefox change lands?
Flags: needinfo?(dustin)
Comment 8•7 years ago
|
||
$ ./tcadmin make-gecko-branch-role mozilla-central mozilla-inbound autoland
scope changes required for role repo:hg.mozilla.org/integration/autoland:*:
+ queue:route:index.gecko.v2.trunk.revision.*
updating role
done
no changes required for role repo:hg.mozilla.org/integration/autoland:cron:nightly-*
scope changes required for role repo:hg.mozilla.org/integration/mozilla-inbound:*:
+ queue:route:index.gecko.v2.trunk.revision.*
updating role
done
no changes required for role repo:hg.mozilla.org/integration/mozilla-inbound:cron:nightly-*
scope changes required for role repo:hg.mozilla.org/mozilla-central:*:
+ queue:route:index.gecko.v2.trunk.revision.*
updating role
done
no changes required for role repo:hg.mozilla.org/mozilla-central:cron:nightly-*
Now it's time :)
Flags: needinfo?(dustin)
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/543c503f745c
Populate a repository-less index route for "trunk" repos; r=dustin
Comment 10•7 years ago
|
||
Backed out for failing flake8 at taskcluster/taskgraph/transforms/task.py:836 with "too many blank lines":
https://hg.mozilla.org/integration/autoland/rev/a1ea69a3a0a760036e047f6ff89897aa7ffd4e53
Push with failure: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=543c503f745c89360398fd3207ddaea5c262a807&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=usercancel&filter-resultStatus=runnable
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=115449740&repo=autoland
> TEST-UNEXPECTED-ERROR | /home/worker/checkouts/gecko/taskcluster/taskgraph/transforms/task.py:836:5 | too many blank lines (2) (E303)
Flags: needinfo?(gps)
Comment hidden (mozreview-request) |
Comment 13•7 years ago
|
||
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/374180b112f3
Populate a repository-less index route for "trunk" repos; r=dustin
Comment 14•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•7 years ago
|
Product: TaskCluster → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•