Closed Bug 1403997 Opened 7 years ago Closed 7 years ago

Toolchain Dependencies are not downloaded if a Tooltool manifest is omitted

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(firefox58 fixed)

RESOLVED FIXED
Tracking Status
firefox58 --- fixed

People

(Reporter: tjr, Assigned: glandium)

References

Details

Attachments

(1 file)

While trying to remove the last item from the tooltool manifest (rust) I discovered that if I completely removed the tooltool manifest - none of the toolchain dependencies was downloaded. 

Example: https://treeherder.mozilla.org/#/jobs?repo=try&revision=d4523d179228b607c70a7aedfc4df48790e0e4c6&selectedJob=133839927



If I created an empty tooltool manifest and added it back, the toolchain dependencies were downloaded.

Example: https://treeherder.mozilla.org/#/jobs?repo=try&revision=0bbf4e751d6a99255f056332f37d71e1d1017286&selectedJob=133849319
(This build is broken, but because I didn't know the correct rust dep to use at time-of-writing this bug. You can see in the log however that gcc is present and the toolchain deps were downloaded - search for 'Downloading... 0.0')
Assignee: nobody → mh+mozilla
Component: Build Config → Mozharness
Product: Core → Release Engineering
QA Contact: catlee
Version: Trunk → unspecified
Depends on: 1382564
Comment on attachment 8913494 [details]
Bug 1403997 - Don't pass tooltool flags to `mach artifact toolchain` when no tooltool manifest is configured.

Duh, I forgot gps is away.
Attachment #8913494 - Flags: review?(gps) → review?(mshal)
Comment on attachment 8913494 [details]
Bug 1403997 - Don't pass tooltool flags to `mach artifact toolchain` when no tooltool manifest is configured.

https://reviewboard.mozilla.org/r/184836/#review190676

It's sad how many different tooltool fetching functions we have.
Attachment #8913494 - Flags: review?(mshal) → review+
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/610baed314d5
Still run `mach artifact toolchain` when no tooltool manifest is set but MOZ_TOOLCHAINS is. r=mshal
This patch has a bug in it:

>  [mozharness: 2017-10-03 17:15:05.246924Z] Finished build step (failed)
>  Uncaught exception: Traceback (most recent call last):
>    File "/builds/worker/workspace/build/src/testing/mozharness/mozharness/base/script.py", line 2059, in run
>      self.run_action(action)
>    File "/builds/worker/workspace/build/src/testing/mozharness/mozharness/base/script.py", line 1997, in run_action
>      self._possibly_run_method("preflight_%s" % method_name)
>    File "/builds/worker/workspace/build/src/testing/mozharness/mozharness/base/script.py", line 1938, in _possibly_run_method
>      return getattr(self, method_name)()
>    File "/builds/worker/workspace/build/src/testing/mozharness/mozharness/mozilla/building/buildbase.py", line 1604, in preflight_build
>      self._run_tooltool()
>    File "/builds/worker/workspace/build/src/testing/mozharness/mozharness/mozilla/building/buildbase.py", line 1126, in _run_tooltool
>      manifest_src)
>    File "/usr/lib/python2.7/posixpath.py", line 68, in join
>      if b.startswith('/'):
>  AttributeError: 'NoneType' object has no attribute 'startswith'

Try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4c7b99a3887e189bc4ddbc497ac0b8ac4fdb4dfb&selectedJob=134680030

Try run without removing tooltool (still errors, but it compiles): https://treeherder.mozilla.org/#/jobs?repo=try&revision=bb495264c5f69ed02a94c4725fc27777a17064cd&selectedJob=134679973
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 8913494 [details]
Bug 1403997 - Don't pass tooltool flags to `mach artifact toolchain` when no tooltool manifest is configured.

This is separate patch on top of the one that already landed, but mozreview idn't really great for those situations.
Attachment #8913494 - Flags: review+ → review?(mshal)
Comment on attachment 8913494 [details]
Bug 1403997 - Don't pass tooltool flags to `mach artifact toolchain` when no tooltool manifest is configured.

https://reviewboard.mozilla.org/r/184836/#review191526
Attachment #8913494 - Flags: review?(mshal) → review+
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/e0ba108cf6d9
Don't pass tooltool flags to `mach artifact toolchain` when no tooltool manifest is configured. r=mshal
https://hg.mozilla.org/mozilla-central/rev/e0ba108cf6d9
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: