-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make ignore-git true by default when channel is dev #43895
Conversation
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. |
This is my first PR, so please tell me what I did wrong! |
📌 Commit c3b27d5 has been approved by |
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. |
⌛ Testing commit c3b27d5 with merge b7afe1fdef0a39be24a9fee3bd782e370e2409f6... |
Oh, I see, there was a discussion for this decision. Nevermind my comments. |
💔 Test failed - status-travis |
@bors: retry
|
⌛ Testing commit c3b27d5 with merge 2c5f1bc088de952ace86da838b963711357e5880... |
💔 Test failed - status-travis |
This patch changes the default of |
config.toml.example
Outdated
@@ -259,7 +259,10 @@ | |||
#codegen-tests = true | |||
|
|||
# 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be "if left commented out".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes you are right
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. |
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. |
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: |
It looks like you might not have @bors r+ |
📌 Commit bdb7901 has been approved by |
Unable to update registry, spurious. But @JeremySorensen wants to hold off a bit? |
@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? |
@alexcrichton I think the expected behavior is that if the user doesn't copy |
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 |
Er sorry, you want |
@bors: r+ |
📌 Commit d24ee23 has been approved by |
@bors r- |
I think maybe |
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. |
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: for key in known_args:
# The `set` option is special and can be passed a bunch of times
if key == 'set':
for option, value in known_args[key]:
keyval = value.split('=', 1)
if len(keyval) == 1 or keyval[1] == "true":
value = True
elif keyval[1] == "false":
value = False
else:
value = keyval[1]
set(keyval[0], value)
continue We actually need the false case here |
Looks good to me! |
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:
|
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 :( |
@bors: r+ Thanks! |
📌 Commit 4f591a4 has been approved by |
make ignore-git true by default when channel is dev Fixes #43771 (Handle git info in rustbuild differently)
☀️ Test successful - status-appveyor, status-travis |
Fixes #43771
(Handle git info in rustbuild differently)