-
-
Notifications
You must be signed in to change notification settings - Fork 387
Add pending_changelog target #1549
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
Add pending_changelog target #1549
Conversation
fca476d to
1439372
Compare
posix.mak
Outdated
| pending_changelog: | ||
| @echo "This command will be available soon." | ||
| pending_changelog_impl: ${STABLE_DMD} | ||
| $(STABLE_RDMD) $(TOOLS_DIR)/changed.d -o changelog/pending.dd "v${LATEST}..upstream/stable" |
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.
FYI: if you only want to display the manual changes and hide the changes from resolved Bugzilla issues, we can just remove the "v${LATEST}..upstream/stable" part.
Querying Bugzilla takes about 10-15s.
|
Ping @CyberShadow - is there anything else I can do from my side? |
|
Leaving it up to @CyberShadow to merge, then. (i.e. to review for compatibility with DAutoTest, although I can't see why it shouldn't work) |
|
Any reason not to include it into the default target? I.e., let's say I make DAutoTest invoke |
|
BTW, I've mentioned this before, but would be really cool if it would generate pages for the next versions using the current pending changelog, i.e. for 2.074.0 from |
262bfbf to
d469203
Compare
Okay I managed to hack this into the default target. The biggest problem was that the
I am not sure whether I understand, but I changed the Makefile to write the generated changelog file to |
|
@CyberShadow: I am not sure how you want to handle the resulting changelog file, but I guess it's hard without special casing. |
I think that should be solved in Note that you can fetch from a URL directly without adding it as a remote. If adding a remote is required,
That might not be a good idea right now, since it doesn't look like updating the DMD Also, this would be a cherry on top but the download links are broken right now, whereas ideally it would link to the latest nightlies. The idea is to allow people to see what's coming in the next official release, and easily test it out if they want to. Same with the stable branch but for upcoming regression fixes. Anyway, if you don't want to commit to all of that now, we can revert to the simpler version for the moment.
That looks good to me, what's the problem? |
d469203 to
8b033ce
Compare
I am not sure how @MartinNowak depends on this script. I added this to the tools PR as an example (it's just three lines). Should I keep the Makefile initialization of
"Simple arithmetics" in a Makefile..
Well, I am running a bit out of time for now....
That as far as I understand it will always be shown as "385 additions" in the status line? |
That looks good, but would be nice to drop the adding of the remotes. They will not be added if the repository already exists, and
Yep, that's the ticket.
No, only the first time the file is created. |
|
Cool, I see @wilzbach and @CyberShadow have this going. Thanks! |
Well unfortunately this is a bit blocked on dlang/tools#217 (cleaning up the way |
8b033ce to
3001827
Compare
3001827 to
2bfe60b
Compare
|
@CyberShadow I think with dlang/tools#217 merged we can finally enable this? :) |
|
My wishlist of possible future improvements:
First one is most important to avoid confusion. just in case someone stumbles upon that page somehow. I've been demanding enough for this series of changes, though. |
-> #1586
Hmm, then it would be easily visible to the public. Do we want this? -> #1585
Well I am not sure on the best path here as AFAIK currently @MartinNowak commits the changelog manually. Do you have sth. specific in mind? |
Yes, pertaining that the other issues are resolved.
Sorry, but can we not use exactly the same method we use for the |
|
Just name the changlog _pre.d will build a pre-release changlog. |
|
|
||
| pending_changelog: | ||
| @echo "This command will be available soon." | ||
| changelog/${NEXT_VERSION}.dd: ${STABLE_DMD} ../tools ../installer |
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.
changelog/${NEXT_VERSION}_pre.dd
| pending_changelog: | ||
| @echo "This command will be available soon." | ||
| changelog/${NEXT_VERSION}.dd: ${STABLE_DMD} ../tools ../installer | ||
| $(STABLE_RDMD) $(TOOLS_DIR)/changed.d "v${LATEST}..upstream/stable" -o changelog/${NEXT_VERSION}.dd \ |
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.
Always using stable seems incorrect when the purpose of this target is trying to build the changelog for dmd/druntime/phobos PRs.
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 was already changed, as we realized that showing the bug list from Bugzilla will lead to unrelated diffs on DAutoTest: #1588
|
This breaks the build script b/c it builds the pending changelog by default http://nightlies.dlang.org/dmd-master-2017-03-01/build.html. |
How about sth. like
Nope doesn't make sense, you are absolutely correct ;-) |
Does it matter? Seems the problem is that the machine building the nightlies has an old version of git? Could that be solved instead?
|
|
Yes, it matters, we don't want to build 2.075 changelogs for 2.074 releases, so we need some option to skip that eventually. |
Ah, I thought it was already skipped for releases? |
It's a pending PR: #1586 |

@CyberShadow - do you need anything more than this target to display a preview of the upcoming changelog on your
DAutoTest?CC @MartinNowak