Closed
Bug 1171063
Opened 10 years ago
Closed 9 years ago
Avoid setting nonexistent --authentication-file, again
Categories
(Release Engineering :: Applications: MozharnessCore, defect)
Release Engineering
Applications: MozharnessCore
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sfink, Assigned: sfink)
References
Details
Attachments
(1 file)
2.04 KB,
patch
|
dustin
:
review+
armenzg
:
review+
|
Details | Diff | Splinter Review |
In bug 1161794, I prevented passing --authentication-file if no such file exists, to allow unauthenticated use of the tooltool server (if that was all that was needed for a mozharness script.) Bug 1155238 added a new unconditional --authentication-file that broke my fix.
Assignee | ||
Comment 1•10 years ago
|
||
The confusing part is that the two files passed come from different code, and I don't know what the difference is. developer_mode uses get_credentials_path(), while the uncondtional one uses self._get_auth_file(). I doubt it accepts multiple paths, some I'm guessing one of these should go away or they should be merged. But I don't know enough about them to to do this. This patch eliminates get_credentials_path(), which works for me, but that doesn't prove anything because my use case requires neither of them to be used.
I'm not sure whether to give this to Armen or Dustin. /me flips coin
Attachment #8614737 -
Flags: review?(armenzg)
Comment 2•10 years ago
|
||
Comment on attachment 8614737 [details] [diff] [review]
Avoid setting nonexistent --authentication-file, again
Review of attachment 8614737 [details] [diff] [review]:
-----------------------------------------------------------------
::: mozharness/mozilla/tooltool.py
@@ -51,5 @@
> cmd = [tooltool[0]]
> else:
> cmd = [self._fetch_tooltool_py()]
> - if os.path.exists(get_credentials_path()):
> - cmd.extend(["--authentication-file", get_credentials_path()])
Looks good -- get_credentials_path is for ~/.mozilla/credentials.cfg, which contains LDAP credentials rather than a relengapi token.
Attachment #8614737 -
Flags: review?(armenzg) → review+
Comment 3•10 years ago
|
||
Comment on attachment 8614737 [details] [diff] [review]
Avoid setting nonexistent --authentication-file, again
Review of attachment 8614737 [details] [diff] [review]:
-----------------------------------------------------------------
We don't need that old approach anymore.
We still need credentials for pvtbuilds (not tooltool).
Attachment #8614737 -
Flags: review+
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•