Commit Graph

4 Commits

Author SHA1 Message Date
Gregory Szorc
ecdc35a7eb Bug 1391789 - Make hash_path() a "public" API; r=dustin
So we can use it from another module without feeling dirty.

MozReview-Commit-ID: 1TCk9dda6mL

--HG--
extra : rebase_source : 15c2ee0e4d6aa812ab8acc3564da0c3e7ba45e19
2017-08-18 13:30:05 -07:00
Mike Hommey
1bee705e53 Bug 1386588 - Error out when a resource pattern for toolchains matches nothing. r=dustin 2017-08-03 08:12:34 +09:00
Mike Hommey
0982410db2 Bug 1341213 - Make the index path for toolchain jobs independent of the source path. r=dustin
When I refactored hash_paths to add caching, I mixed things up such that
for each file, we end up hashing:
  (u'$sha256sum', u'$topsrcdir/$relpath') $relpath

when the intent was to hash:
  $sha256sum $relpath

This change fixes it, such that now the index paths are independent of
the source path, as originally intended.

--HG--
extra : rebase_source : 8ff7b49927d2365ed87fa06d8e6fca157faddc7d
2017-02-16 17:33:35 +09:00
Mike Hommey
3cfb819aa7 Bug 1335651 - Setup an index path in the gecko.cache namespace for toolchain builds. r=dustin
This allows to find them and optimize them out during the taskgraph
optimization phase, and will allow to get toolchain artifacts through a
mach command for developers.

The index path is generated similarly to git trees or mercurial
manifests, and allows to find the right task corresponding to the the
contents of the files in the task `extra.resources` along the toolchain
scripts.

`when.files-changed` is not used when a task has index paths because we
need tasks to happen independently of whether there were changes to
those files when the index or artifacts expire.

--HG--
extra : rebase_source : e9995cee0ee39d7b64090a243e380aeae336a69f
2017-02-01 09:27:31 +09:00