Closed Bug 1088208 Opened 10 years ago Closed 10 years ago

Allow tooltool.py to fetch files by using an authentication file

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: armenzg)

References

Details

Attachments

(1 file, 4 obsolete files)

Attached patch tooltool.diff (obsolete) — Splinter Review
This is useful for fetching files from a developer's machine.
Attached patch mh.tooltool.diff (obsolete) — Splinter Review
I would not land as-is; I would like the previous patch to land first.
Attachment #8510511 - Flags: review?(catlee)
Comment on attachment 8510511 [details] [diff] [review]
mh.tooltool.diff

Review of attachment 8510511 [details] [diff] [review]:
-----------------------------------------------------------------

good idea, re-work it a bit?

::: configs/developer_config.py
@@ +16,5 @@
>      "tooltool_servers": ["https://secure.pub.build.mozilla.org/tooltool/pvt/build"],
> +    "tooltool_cache": os.path.join(os.getenv("HOME"), ".mozilla/releng/builds/tooltool_cache"),
> +    "tooltool_cache_path": os.path.join(os.getenv("HOME"), ".mozilla/releng/builds/tooltool_cache"),
> +    #"tooltool_py": "https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py",
> +    "tooltool_py": "http://people.mozilla.org/~armenzg/incoming/tooltool.py.txt",

I'd name this 'tooltool_py_url' or something.

::: mozharness/mozilla/tooltool.py
@@ +30,5 @@
> +                ))
> +            if not os.path.exists(file_path):
> +                self.fatal("We can't get tooltool.py")
> +            self.chmod(file_path, 0755)
> +            tooltool = [file_path]

move most of this into a separate function?

if not os.path.exists(str(tooltool))...:
   tooltool = self.fetch_remote_tooltool()
Attachment #8510511 - Flags: review?(catlee)
Not working yet.
Attachment #8510511 - Attachment is obsolete: true
Attachment #8510510 - Attachment is obsolete: true
Attachment #8536093 - Flags: review?(catlee)
A run to try will be needed to make sure nothing is regressed.
Assignee: nobody → armenzg
Attachment #8535861 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8536094 - Flags: review?(catlee)
Adding jlund since he is working on tooltool for desktop so he can be in the loop.
Adding gbrown since we both originally worked on the android scripts and I want him to know that developer mode is coming to this script.
Comment on attachment 8536094 [details] [diff] [review]
[mozharness] allow to run android jobs for a developer and use authenticated tooltool

I will put the final patch in bug 1086672.
Attachment #8536094 - Attachment is obsolete: true
Attachment #8536094 - Flags: review?(catlee)
Attachment #8536093 - Flags: review?(catlee) → review?(rail)
Comment on attachment 8536093 [details] [diff] [review]
[tooltool] allow for authenticated file retrievals

lgtm
Attachment #8536093 - Flags: review?(rail) → review+
You're da bomb! Thank you, thank you!
Status: ASSIGNED → RESOLVED
Closed: 10 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: