Closed
Bug 1256730
Opened 7 years ago
Closed 6 years ago
Fail if api key files don't exist
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox52 fixed, firefox53 fixed, firefox54 fixed)
RESOLVED
FIXED
mozilla54
People
(Reporter: dustin, Assigned: glandium)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 5 obsolete files)
58 bytes,
text/x-review-board-request
|
chmanchester
:
review+
jcristau
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta+
gchang
:
approval-mozilla-release-
|
Details |
58 bytes,
text/x-review-board-request
|
gps
:
review+
jcristau
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta+
gchang
:
approval-mozilla-release-
|
Details |
In bug 1231320, I arranged to provide various API keyfiles in /builds to all build tasks, including try (level-1) builds. The latter have "fake" secrets, though. The bug came to us a bit late because the build process did not complain that the secrets files named in the mozconfigs didn't exist, and went on blithely building without secrets. I'd rather that not happen again. The obvious fix is to fail configure in that condition. However, try builds under Buildbot do, in fact, lack these files, so the obvious fix makes such builds fail. Mozconfigs have no way to know the scm level they're building, and it feels wrong to inject that information. So, let's wait until we're not building in Buildbot anymore, then land the change.
Reporter | ||
Comment 1•7 years ago
|
||
r+ from glandium in bug 1231320
Attachment #8730818 -
Flags: review+
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•7 years ago
|
||
(re-requesting review since this has been 5mo since r+)
Assignee | ||
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8779006 [details] Bug 1256730: fail configure when api keyfiles do not exist; https://reviewboard.mozilla.org/r/70070/#review67560
Attachment #8779006 -
Flags: review?(mh+mozilla) → review-
Assignee | ||
Updated•7 years ago
|
Assignee: dustin → mh+mozilla
Assignee | ||
Updated•7 years ago
|
Blocks: pyconfigure
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] from comment #3) > (re-requesting review since this has been 5mo since r+) Is something supposed to have changed wrt the key files? Because try tells me the second patch breaks the build on TC because /builds/google-oauth-api.key is not there.
Assignee | ||
Comment 8•7 years ago
|
||
It's actually funnier than that, it's missing on buildbot builds too.
Assignee | ||
Comment 9•7 years ago
|
||
And it's not even a try vs non-try thing... inbound builds have this in nsURLFormatter.js: GOOGLE_OAUTH_API_CLIENTID:() => "no-google-oauth-api-clientid", GOOGLE_OAUTH_API_KEY: () => "no-google-oauth-api-key", BING_API_CLIENTID:() => "no-bing-api-clientid", BING_API_KEY: () => "no-bing-api-key",
Assignee | ||
Comment 10•7 years ago
|
||
The google oauth api key used to be there and disappeared in Firefox 46. The only code that used it was actually removed in Firefox 45 (bug 1213984)... I guess someone thought about removing the files on build slaves, but not the build system stuff... The bing API key was added in bug 1014367 and has never shipped a value. At least, mozconfigs are not trying to pass the option with a non-existing file...
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 15•7 years ago
|
||
The Google API key was used by the Hello import contacts feature, which is now obsolete. The Bing API key was used for the in-page content translation feature, which we haven't shipped (yet).
Comment 16•7 years ago
|
||
mozreview-review |
Comment on attachment 8779261 [details] Bug 1256730 - Fail configure when API key files do not exist or are empty. https://reviewboard.mozilla.org/r/70288/#review67582 Ship it!
Attachment #8779261 -
Flags: review?(mdeboer) → review+
Comment 17•7 years ago
|
||
mozreview-review |
Comment on attachment 8779262 [details] Bug 1256730 - Add Mozilla and Google API files to artifact and cross-osx builds. https://reviewboard.mozilla.org/r/70290/#review67584
Attachment #8779262 -
Flags: review?(mdeboer) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 19•7 years ago
|
||
Looks like this is all not enough. New problem: Windows try buildbot slaves don't have the mozilla api key file (but it's there on inbound)
Flags: needinfo?(dustin)
Reporter | ||
Comment 20•7 years ago
|
||
Well, I'm glad I re-requested review! If it's missing on Windows try slaves, then we should get another bug on file to fix that (bug 1293643). Hopefully that's just try slaves, though, and we haven't adversely impacted any shipped releases with that error!
Depends on: 1293643
Flags: needinfo?(dustin)
Reporter | ||
Updated•7 years ago
|
Attachment #8730818 -
Attachment is obsolete: true
Reporter | ||
Comment 21•7 years ago
|
||
mozreview-review |
Comment on attachment 8779298 [details] Bug 1256730 - Add Mozilla and Google API files to artifact builds. https://reviewboard.mozilla.org/r/70310/#review67598
Attachment #8779298 -
Flags: review?(dustin) → review+
Comment 22•7 years ago
|
||
mozreview-review |
Comment on attachment 8779292 [details] Bug 1256730 - Fail configure when API keyfiles do not exist or are empty. https://reviewboard.mozilla.org/r/70308/#review68084
Attachment #8779292 -
Flags: review?(cmanchester) → review+
Comment 23•7 years ago
|
||
mozreview-review |
Comment on attachment 8779291 [details] Bug 1256730 - Move --with-*-keyfile options to python configure. https://reviewboard.mozilla.org/r/70306/#review68082 Looks great. Clearing review because however we handle the adjust sdk variable name might be enough to warrant re-review. ::: build/moz.configure/keyfiles.configure:49 (Diff revision 1) > + def id_and_secret(value): > + if value.startswith('no-') and value.endswith('-key'): > + id = value[:-3] + 'clientid' > + secret = value > + else: > + id, secret = value[0].split(' ', 1) Shouldn't this just be `value`? ::: build/moz.configure/keyfiles.configure:66 (Diff revision 1) > + > +simple_keyfile('Google API') > + > +id_and_secret_keyfile('Bing API') > + > +simple_keyfile('Adjust SDK') The old variable for this is `MOZ_INSTALL_TRACKING_ADJUST_SDK_APP_TOKEN`, but the trasnposition in `simple_keyfile` will give us `MOZ_ADJUST_SDK_TOKEN`. Should we just change the consumers to match?
Attachment #8779291 -
Flags: review?(cmanchester)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8779291 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8779292 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8779298 -
Attachment is obsolete: true
Assignee | ||
Comment 26•7 years ago
|
||
Sorry Dustin, this is the same patch as previously, but mozreview doesn't know. Chris, this is rebased on top of bug 1294585, with a testcase, so the re-review is wanted.
Reporter | ||
Updated•7 years ago
|
Attachment #8779262 -
Flags: review?(dustin) → review+
Comment 27•7 years ago
|
||
mozreview-review |
Comment on attachment 8779261 [details] Bug 1256730 - Fail configure when API key files do not exist or are empty. https://reviewboard.mozilla.org/r/70288/#review68880
Attachment #8779261 -
Flags: review?(cmanchester) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #8779006 -
Attachment is obsolete: true
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 30•6 years ago
|
||
mozreview-review |
Comment on attachment 8779262 [details] Bug 1256730 - Add Mozilla and Google API files to artifact and cross-osx builds. https://reviewboard.mozilla.org/r/70290/#review108068
Attachment #8779262 -
Flags: review+
Comment 31•6 years ago
|
||
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/4b5b1d19453a Fail configure when API key files do not exist or are empty. r=chmanchester,mikedeboer https://hg.mozilla.org/integration/autoland/rev/c34a0a8cd144 Add Mozilla and Google API files to artifact and cross-osx builds. r=gps,mikedeboer
Assignee | ||
Comment 32•6 years ago
|
||
Comment on attachment 8779261 [details] Bug 1256730 - Fail configure when API key files do not exist or are empty. Approval Request Comment [Feature/Bug causing the regression]: Prevent bug 1333516 from happening silently [Is this code covered by automated tests?]: the code is the test [Has the fix been verified in Nightly?]: it didn't break on autoland [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: the other patch in this bug [Is the change risky?]: kind of [Why is the change risky/not risky?]: the risk is that it can turn some builds red, but that only would mean it unveiled breakage like bug 1333516, not that it itself broke something. [String changes made/needed]: none
Attachment #8779261 -
Flags: approval-mozilla-release?
Attachment #8779261 -
Flags: approval-mozilla-beta?
Attachment #8779261 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 33•6 years ago
|
||
Comment on attachment 8779262 [details] Bug 1256730 - Add Mozilla and Google API files to artifact and cross-osx builds. Approval Request Comment [Feature/Bug causing the regression]: This fixes failures uncovered by the other patch [User impact if declined]: Build failure on artifact and cross-osx builds [Is this code covered by automated tests?]: code is the test [Has the fix been verified in Nightly?]: it didn't break on autoland [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: N/A [Is the change risky?]: no [Why is the change risky/not risky?]: it only adds missing files on some taskcluster builds, with the same properties as the same files on TC builds that have them. [String changes made/needed]: none
Attachment #8779262 -
Flags: review?(dustin)
Attachment #8779262 -
Flags: approval-mozilla-release?
Attachment #8779262 -
Flags: approval-mozilla-beta?
Attachment #8779262 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 34•6 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #32) > Approval Request Comment > [Feature/Bug causing the regression]: Prevent bug 1333516 from happening > silently Side effect: this means is also ensures that bug 1333516 actually works when uplifted.
Comment 35•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4b5b1d19453a https://hg.mozilla.org/mozilla-central/rev/c34a0a8cd144
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Comment 36•6 years ago
|
||
Comment on attachment 8779261 [details] Bug 1256730 - Fail configure when API key files do not exist or are empty. avoid silent API key breakage, aurora53+, beta52+
Attachment #8779261 -
Flags: approval-mozilla-beta?
Attachment #8779261 -
Flags: approval-mozilla-beta+
Attachment #8779261 -
Flags: approval-mozilla-aurora?
Attachment #8779261 -
Flags: approval-mozilla-aurora+
Updated•6 years ago
|
Attachment #8779262 -
Flags: approval-mozilla-beta?
Attachment #8779262 -
Flags: approval-mozilla-beta+
Attachment #8779262 -
Flags: approval-mozilla-aurora?
Attachment #8779262 -
Flags: approval-mozilla-aurora+
Comment 37•6 years ago
|
||
bugherderuplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/d68404317ac4 https://hg.mozilla.org/releases/mozilla-aurora/rev/d72b62654730
status-firefox53:
--- → fixed
Flags: in-testsuite+
Comment 38•6 years ago
|
||
bugherderuplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/10be69536c44 https://hg.mozilla.org/releases/mozilla-beta/rev/e8e90b0da7c4
status-firefox52:
--- → fixed
Comment 39•6 years ago
|
||
Comment on attachment 8779261 [details] Bug 1256730 - Fail configure when API key files do not exist or are empty. We don't have then plan to have dot release for 51. Rel51-.
Attachment #8779261 -
Flags: approval-mozilla-release? → approval-mozilla-release-
Updated•6 years ago
|
Attachment #8779262 -
Flags: approval-mozilla-release? → approval-mozilla-release-
Updated•4 years ago
|
Component: Build Config → General
Product: Firefox → Firefox Build System
Updated•4 years ago
|
Target Milestone: Firefox 54 → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•