Uh oh!
There was an error while loading. Please reload this page.
make ignore-git true by default when channel is dev - #43895
Conversation
rust-highfive
commented
Aug 16, 2017
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
JeremySorensen
commented
Aug 16, 2017
This is my first PR, so please tell me what I did wrong! |
Mark-Simulacrum
commented
Aug 16, 2017
bors
commented
Aug 16, 2017
📌 Commit c3b27d5 has been approved by |
ishitatsuyuki
commented
Aug 16, 2017
I have no idea why you're doing this, as almost any action will cause a full rebuild due to the staged nature. This removes the version number from my dev channel build, and I will have to change the channel to nightly as the Oh, and by the way, dev is the default with git, and stable is the default without git. I think a build should contain version number out of box. If you need to disable for timestamp reasons, just do in your own config.toml. |
bors
commented
Aug 16, 2017
⌛ Testing commit c3b27d5 with merge b7afe1fdef0a39be24a9fee3bd782e370e2409f6... |
ishitatsuyuki
commented
Aug 16, 2017
Oh, I see, there was a discussion for this decision. Nevermind my comments. |
bors
commented
Aug 16, 2017
💔 Test failed - status-travis |
@bors: retry
|
bors
commented
Aug 17, 2017
⌛ Testing commit c3b27d5 with merge 2c5f1bc088de952ace86da838b963711357e5880... |
bors
commented
Aug 17, 2017
💔 Test failed - status-travis |
TimNN
commented
Aug 17, 2017
This patch changes the default of |
| # Flag indicating whether git info will be retrieved from .git automatically. | ||
| #ignore-git = false | ||
| # Having the git information can cause a lot of rebuilds during development. | ||
| # Note: If this attribute is not explicity set (e.g. it left commented out) it |
There was a problem hiding this comment.
This should probably be "if left commented out".
There was a problem hiding this comment.
yes you are right
JeremySorensen
commented
Aug 17, 2017
Oh darn... OK well I think the fix is simple, just revert the initial value of ignore-git back to false, and only keep the logic for setting the default if there is a config.toml file.
If all of those are true, for any test, then that(those) test(s) will fail. So if we want to keep this patch, we would need to find all such tests and explicitly set ignore-git to false. |
JeremySorensen
commented
Aug 23, 2017
sorry I was trying to figure out how to update a pull request, I didn't realize that pushing to my fork was enough to cause stuff to run. I will follow contributing.md more closely and see if I can figure out what is going on with the tests. |
JeremySorensen
commented
Aug 24, 2017
OK I am getting to the point where I need some mentoring here. When I ran the tests (on my machine), a whole block of them failed with the same error. Here is an excerpt of the results: But the thing is I get this even after I revert back to the original config.rs. So the only thing that is changed is config.toml, but everything builds fine its the tests that fail. So I am not sure why these tests are failing but it doesn't seem related to my code. Also I am not sure why the travis-ci failed, it kind of looks like it got cancelled, if somebody cancelled it because of my comment indicating that I had kicked it off inadvertently then that is fine, but I don't know how to tell that. At this point the only change to the code is one line: |
Mark-Simulacrum
commented
Aug 24, 2017
It looks like you might not have @bors r+ |
bors
commented
Aug 24, 2017
📌 Commit bdb7901 has been approved by |
kennytm
commented
Aug 29, 2017
Unable to update registry, spurious. But @JeremySorensen wants to hold off a bit? |
alexcrichton
commented
Aug 29, 2017
@JeremySorensen oh bors is our integration bot, when we "r+" a PR it goes into a queue of PRs to be tested, and then the queue is drained one at a time. You've also now seen what happens when tests fail! (spuriously) The comment looks fine by me though, but @JeremySorensen did you want to reword it? |
JeremySorensen
commented
Aug 29, 2017
@alexcrichton I think the expected behavior is that if the user doesn't copy |
alexcrichton
commented
Aug 29, 2017
Ok! I think, though, that the failure here is not a spurious failure. I believe what you'll want to do is add an option to the configure script for this one builder. You can find the builder's configuration in Note that |
alexcrichton
commented
Aug 29, 2017
Er sorry, you want |
alexcrichton
commented
Aug 29, 2017
@bors: r+ |
bors
commented
Aug 29, 2017
📌 Commit d24ee23 has been approved by |
arielb1
commented
Aug 29, 2017
@bors r- |
alexcrichton
commented
Aug 29, 2017
I think maybe |
JeremySorensen
commented
Aug 29, 2017
I ran it as is and got the same error (as expected), then I changed the line in
I checked, the false is not in quotes in the Docker file, so I guess it is getting escaped incorrectly, or not getting parsed. |
alexcrichton
commented
Aug 29, 2017
I think we may need to add a special case to this line to just convert |
@alexcrichton Ha! I just did that! my code looks like this: forkeyinknown_args:
# The `set` option is special and can be passed a bunch of timesifkey=='set':
foroption, valueinknown_args[key]:
keyval=value.split('=', 1)
iflen(keyval) ==1orkeyval[1] =="true":
value=Trueelifkeyval[1] =="false":
value=Falseelse:
value=keyval[1]
set(keyval[0], value)
continueWe actually need the false case here |
alexcrichton
commented
Aug 29, 2017
Looks good to me! |
JeremySorensen
commented
Aug 30, 2017
I ran the tests again and it looks like it got the ignore-git=false, but I am having a bunch of seemingly unrelated errors. I don't know anything about Docker (I had to install it to make the command work) but I wonder if it is because I ran the test several times and killed it in progress a couple times, or if somehow I really broke everything. Should I push the changes to the Docker file and configure.py? I didn't redirect the output of the command to a file and it rolled off the end so I don't know if I got everything but here are at least some of the errors: |
alexcrichton
commented
Aug 30, 2017
Yeah that all looks fine to me, thanks for investigating though! I'm not sure what's up with the python looking failure, but the docker failures I believe are all related to IPv6 in the container. I get them locally as well and I'm not sure how to fix them :( |
alexcrichton
commented
Aug 30, 2017
@bors: r+ Thanks! |
bors
commented
Aug 30, 2017
📌 Commit 4f591a4 has been approved by |
bors
commented
Aug 30, 2017
make ignore-git true by default when channel is dev Fixes#43771 (Handle git info in rustbuild differently)
bors
commented
Aug 30, 2017
☀️ Test successful - status-appveyor, status-travis |
Fixes#43771
(Handle git info in rustbuild differently)