Some quick updates.

https://gecko.readthedocs.org/en/latest/build/buildsystem/mozbuild-symbols.html#mozbuild-subcontext-files
now contains the full documentation on the "Files" type. These docs were
truncated before. Included is differences between '*' and '**'.

I have plans to stand up a web service that essentially exposes `mach
file-info`. This will allow anybody to query metadata without needing a
full source checkout.

I've deployed an alpha version of the service at
http://ec2-52-10-94-76.us-west-2.compute.amazonaws.com/. There is only one
useful endpoint right now. It has the form:

    /{tree}/file-info

It accepts "f" query string arguments that define files to retrieve
information on. e.g.


http://ec2-52-10-94-76.us-west-2.compute.amazonaws.com/central/file-info?f=Makefile.in

It is currently pulling central, inbound, and fx-team at 60s intervals.

Once the server is reviewed and checked in, I'll get it deployed somewhere
more permanent. For now, ping me for feature requests.

Hopefully the potential for this web service gets people thinking about the
cool things that can be derived from it.


On Tue, Mar 3, 2015 at 10:16 AM, Gregory Szorc <g...@mozilla.com> wrote:

> Support for the previously announced [1] intention to use moz.build to
> define metadata for files has now landed on mozilla-central with the
> landing of bug 1132771 [2].
>
> This is important to you because there are plans to leverage this metadata
> to make it easier to get stuff done. Some potential uses include:
>
> * automatically filing bugs against the proper component
> * automatically selecting reviewers for a patch
> * intelligently scheduling automation jobs based on what changed
>
> *But we can't do any of these things unless there is data to drive it.*
> That's where you come in.
>
> I would kindly request that you take a few minutes to help define which
> files in mozilla-central map to which Bugzilla components. The process for
> doing this is relatively simple:
>
> 1) Read the docs on how file metadata works [3]
> 2) Write and land a patch (see [4] for an example patch)
>
> The newly-landed `mach file-info` command can be used to help you query
> metadata on files. Run `mach help file-info` for usage.
>
> If you need help, ask in #build.
>
> If you don't like how things work or if you have a suggestion for
> improvement, file a new bug depending on bug 1132771 and we'll go from
> there. You may be interested in bugs already on file, which include support
> for defining code reviewers (bug 1137042) and the ability to audit metadata
> for correctness (bug 1137043).
>
> Adding or changing "Files" entries in moz.build files does not require
> build peer review.
>
> [1]
> https://groups.google.com/d/msg/mozilla.dev.platform/iXr70VgapWk/GkTCcKRjNi8J
> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1132771
> [3]
> https://ci.mozilla.org/job/mozilla-central-docs/Tree_Documentation/build/buildsystem/files-metadata.html
> [4] https://hg.mozilla.org/integration/mozilla-inbound/rev/4cc39c54099d
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to