-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
"stable" appearing to track future release branches #3268
Comments
> git ls-remote --tags [email protected]:django/channels.git Shows that the most recent tag is indeed 1.1.8. Looks like a bug to me. |
@andrewgodwin I just took a couple of screenshots of our JupyterHub configuration settings in RTD: This first screenshot shows the far right settings menu with Advanced Settings selected. This screenshot shows the Versions page when selected from the far right settings menu (This is different than the top level versions menu). Double check that the versions desired match what you wish to build and see what SHA the stable version when enabled is picking up. If these settings are not correct, wipe will have no effect. Unfortunately, I can't see your settings. Let me know if you have further questions. Traveling the rest of the day but will be around tomorrow/Friday. |
I'll have to confirm this tomorrow, but my initial thoughts here are that we are in fact determining that the Agreed that tags should probably take precedence over a branch name. I'm not fully certain of the best UX here though -- making versioning work for everyone is hard. Perhaps we need a way to turn off the handy wavy magic we do here to select a new version. I'll poke this tomorrow when I'm fresher. |
Right, I wasn't clear if I don't mind too much what it is as long as it's well defined, but given I have a lot of links on the internet pointing to |
@agjohnson @andrewgodwin FWIW, one difference that we do with JupyterHub and friends is use a configuration file for RTD (
In setting up a test build on RTD (https://readthedocs.org/projects/test-channels/) using my fork as the source (https://github.com/willingc/channels) to see if the above configuration would change Andrew's build experience for stable, I discovered that trying to rebuild stable from the drop down selection on the main page or the build page results in a page with an API deprecation warning: I think this is likely part of the problem. I, too, with the test build did not have a SHA for the stable version in the Versions page above. |
Ups... Sorry. That's a bug that's already fixed in this PR at #3260 Seems it's not deployed yet. It shouldn't be related with andrew's issue regarding the |
@andrewgodwin if this goes on for longer without resolution lets just get a temporary redirect in at the web server level or something. I'll see if one of us can't get to this tomorrow, i ended up swamped with work today. |
Cool, thanks for your help on this! |
I did a quick test on my local instance and it was pretty easy to reproduce andrew's report. I created a git repo with The code that decide the where I wrote an horrible hack that make tags take preference over branches and I tested with the Once we have that defined and clear, I could try to write the chunk of code and test needed for this. It will probably involve touching other parts of the codebase also. What are you thoughts on the logic to decide the stable? |
Nice work @humitos. I'm cool with your logic. As a user, I would love to be able to provide a SHA commit for what I would like to have as stable and just have the default stable come in to play if I don't provide the SHA. |
Ah, I did wonder if it was something like that. For reference, the "versions" doc at http://docs.readthedocs.io/en/latest/versions.html describes stable as |
That could be a good feature. But, suposing that the That's why I wanted to more feedback on how the stable version should be determined to think in some cases that "take preference of tags over branches" won't work for a project/user. |
Well, this sentence is very confusing for me because of that comma. My English knowledge doesn't help here. I suppose that it has the same meaning than "If your project has any tagged releases, we also create a stable version". So, I understand that the If I'm right, we should re-write that chunk of the documentation also. |
Channels does indeed have tagged releases, quite a few of them - the most recent being |
I'm taking a look at this issue. I already proposed a PR but I have a doubt on this. With the patch applied in my local instance and http://localhost:8000/docs/channels/en/1.1.8/ I see this message: but when I open My question is, how this should work?
What do you think? |
Meh, wrong button clicked :/ |
In my case, because 2.0 is a development branch and not a tag, I don't want it shown as a new version. However, if you want to decide that branches also imply versions, then I'd appreciate this being documented and a workaround suggested (like "name development branches |
I completely agree with @andrewgodwin re: versions and what is stable. |
This is slated for next release, most likely going out this week. |
Great! Thanks all. |
Believe this should be deployed -- let me know if it's resolved. |
I can't seem to shift the |
Mmm... weird. It should just work. Sorry about that. I just updated my master branch, ran it locally and "triggered the build" for version 0.7 of channels from the "Versions" tab. The tag I will try to take a look at this tomorrow. |
Believe this is because the machine tag was removed when you edited the
stable version. This will stop us from updating it in the future. I have
re-added it for now (and we should document this, as well)
On Wed, Nov 29, 2017 at 6:40 PM Manuel Kaufmann ***@***.***> wrote:
Mmm... weird. It should just work. Sorry about that.
I just updated my master branch, ran it locally and "triggered the build"
for version 0.7 of channels from the "Versions" tab. The tag 1.1.8.1 was
created. Besides, stable was updated to point to the same commit than
1.1.8.1...
[image: captura de pantalla_2017-11-29_21-33-07]
<https://user-images.githubusercontent.com/244656/33410285-85dbfa56-d54d-11e7-9285-53a5c5584448.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#3268 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABjppgE73xL3rWaezEYxiOImp5tsypFks5s7hWDgaJpZM4Qeh5Y>
.
--
Eric Holscher
Co-founder, Read the Docs & Write the Docs
Director, Python Software Foundation
http://ericholscher.com
|
When you say "machine tag", is that the same as the "tags" field I see in the Edit screen, or something else? And would another push to master or another tag trigger stable to re-pin to that? |
This is an internal thing that we track, for versions we have created: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/models.py#L710 |
Any build should fix it now though. |
Stable looks 👍 here: https://readthedocs.org/projects/channels/versions/ ( |
Ah, perfect, all fixed. Thanks! |
Happy to read this :)
@ericholscher I don't understand this. "you edited the stable version", who are you refering to here? Me, Andrew? Anyway, I don't understand how the |
@humitos when a person disables the version, we set |
I'll do a PR for that one. |
Got it! Thanks for the exaplanation. |
Is there no way to configure the I just noticed that our But our stable version is currently the I'd prefer to have more control on what I want to show to users as the current "stable" version, instead of having it change automagically. (Note that I'll gladly turn this comment into a proper feature request if that's considered useful). |
@akien-mga the stable release is chosen following the pep-440 you can use a pre-release branch https://www.python.org/dev/peps/pep-0440/#pre-releases |
That doesn't work for my use case, as I want to use the http://docs.godotengine.org/en/3.0/ namespace now even though it's not released yet. Our documentation for releases is not static, it evolves daily based on PRs from contributors (so I want the 3.0 branch to follow the master/latest branch until the real release and incompatible changes in 3.x happen). |
I guess I can just disable the Edit: Doesn't work as I need to use an Exact Redirect so it will work only for http://docs.godotengine.org/en/stable, not for http://docs.godotengine.org/en/stable/index.html. Don't misinterpret me, that feature is great for libraries, but for our use case we really need more control... |
Unfortunately, no.
If you want to keep (in fact, that's exactly what this issue was about and was fixed) |
Thanks, I've tried that but it doesn't seem to work: https://github.com/godotengine/godot-docs/releases/tag/2.1 (btw our stable is 2.1, I made a typo above). It looks like the tag became a version Edit: I'm deleting our 3.0 branch for now as too many users are being confused by getting the wrong docs on |
I've tried deleting the |
Mmm... "This seems like a bug in the new feature". @akien-mga would you mind opening a new issue explaining this and what are the steps to reproduce it? Like, what branches do the repository needs and in which order should be created and the attemp to workaround with the tag, etc... so we can test it locally and see how it behaves? |
Will do, but I'll have to make a test RTD project for it as I would prefer to avoid borking https://readthedocs.org/projects/godot/ again, it's used by hundreds of users every day :) |
Details
Expected Result
I expect the "stable" build version to only follow tags, not new branches, as described in http://docs.readthedocs.io/en/latest/versions.html
Actual Result
The "stable" build says it is following
origin/2.0
, which looks like a reference to a remote Git branch rather than the project's most recent tag,1.1.8
, which means the "stable" docs have ended up being the in-development version docs.The "wipe" command does not appear to fix this, and I would like to avoid deleting and remaking the project just to see if it's a bad tag being stored somewhere.
The text was updated successfully, but these errors were encountered: