Add build::build_info() -> BuildInfo function
Categories
(Testing :: geckodriver, enhancement, P1)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: ato, Assigned: natquaylenelson)
References
Details
(Keywords: good-first-bug)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
For no other good reason than making it a bit more Rust-esque, we
should add a build_info() -> BuildInfo
function to
testing/geckodriver/build.rs
. This also requires a couple of
changes throughout geckodriver, which you can test with ./mach test testing/geckodriver
.
Read more about working on geckodriver at
https://firefox-source-docs.mozilla.org/testing/geckodriver/.
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Good evening! I'm interested in contributing to this project via Outreachy and using/expanding upon my Rust knowledge. Can I be assigned this issue?
In the meantime I'll work on checking out the code and getting a working dev environment together so I can take on this or anything else.
Thanks!
Reporter | ||
Comment 2•6 years ago
|
||
You may find these links useful to get started:
- General Gecko development: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction
- geckodriver development: https://firefox-source-docs.mozilla.org/testing/geckodriver/index.html#for-developers
- Submitting patches: https://moz-conduit.readthedocs.io/en/latest/
We also have #interop on irc.mozilla.org in case you have any questions.
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
I'm stuck trying to run the geckodriver build with ./mach build testing/geckodriver
. The cargo build errors with the following output: Pastebin
After cloning the repo through bootstrap.py
, I also ran ./mach bootstrap
. I don't know if those are two separate things but I wanted to be safe.
I'm going to make sure bzip is installed on my system, but that's my only guess for how to fix this.
Reporter | ||
Comment 4•6 years ago
|
||
Thanks for reporting this.
(In reply to Nat Quayle Nelson from comment #3)
I'm going to make sure bzip is installed on my system, but that's
my only guess for how to fix this.
Yes, you need the bzip2 headers, found on Debian in libbz2-dev.
I’ve filed https://bugzilla.mozilla.org/show_bug.cgi?id=1531483 to
have this installed by ./mach bootstrap
.
Comment 5•6 years ago
|
||
(In reply to Andreas Tolfsen ⦗:ato⦘ from comment #4)
Yes, you need the bzip2 headers, found on Debian in libbz2-dev.
I’ve filed https://bugzilla.mozilla.org/show_bug.cgi?id=1531483 to
have this installed by./mach bootstrap
.
That bug was marked as invalid. What else do we have to fix to get mach build testing/geckodriver
working?
For now I assume running cargo build
in testing/geckodriver
will be fine and should work. I think I experienced the same thing not that long ago.
Reporter | ||
Comment 6•6 years ago
|
||
I already resolved this with Nat on IRC.
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] (away 02/28 - 03/03) from comment #5)
(In reply to Andreas Tolfsen ⦗:ato⦘ from comment #4)
Yes, you need the bzip2 headers, found
on Debian in libbz2-dev. I’ve filed
https://bugzilla.mozilla.org/show_bug.cgi?id=1531483 to have
this installed by./mach bootstrap
.That bug was marked as invalid. What else do we have to fix to get
mach build testing/geckodriver
working?
./mach configure
For now I assume running
cargo build
intesting/geckodriver
will be fine and should work. I think I experienced the same thing
not that long ago.
Yes, because that fetches the build dependencies instead of using
those from third_party.
Assignee | ||
Comment 7•6 years ago
|
||
I could use some clarification on the desired change for the build_info issue. Is the goal essentially to replace the existing get_build_info() with a function that needs no arguments and returns a value, not a Box?
If that's the case, I'm wondering what changes to geckodriver would be necessary. It seems like build.rs would be the only file to change.
Reporter | ||
Comment 8•6 years ago
|
||
I realise the text in comment #0 is incorrect: it references
testing/geckodriver/build.rs but should instead say
testing/geckodriver/src/build.rs. The link, however, is correct.
The difference between these is that the first is used at build
time to produce some static content later used by the module
build
. This bug is about adding a new function to the module,
returning the BuildInfo
struct.
Sorry for the confusion, but does that help?
Assignee | ||
Comment 9•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Hi, is this issue resolved yet? I would like to complete it if possible.
Reporter | ||
Comment 11•5 years ago
|
||
It looks like Nat forgot to request review on this patch.
But the patch looks good, so I pick it up and make sure it lands.
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Description
•