inconsistent changelog: empty or not (random)
slorber opened this issue · comments
Hi,
I'm working on docusaurus. We are long-time lerna-changelog users.
I noticed that Lerna gives me unpredictable changelogs.
A command can give me an empty changelog, and 10 seconds later, the exact same command gives me the changelog I want:
As I'm not able to enable verbose logging or whatever, I don't really know what is happening.
I noticed that when the changelog is empty, the last % of the progress bar takes much longer just before.
Also noticed that running lerna-changelog --from lastReleaseTag
is much faster than just lerna-changelog
, and much more likely to give me a non-empty output. Basically, I feel
Has anyone an idea about what is going on?
I tried to delete the .changelog
generated folder to see if it improves, but not really. Maybe there's some rate-limiting happening and errors are swallowed or something?
The repo is public and my token has the correct permissions, afaik:
hmm, thanks for reporting this. I haven't noticed any such issues so far unfortunately
As I'm not able to enable verbose logging or whatever, I don't really know what is happening.
yeah, I guess we could/should introduce something like https://github.com/visionmedia/debug to enable verbose logging if such things happen
Yes that could be helpful.
For example, just logging which tag it uses when I don't provide --from
attribute would be nice
FYI I tried with a new Github token and it didn't work better :'(
@Turbo87 I have the sample problem, lerna-changelog
shows the progress bar and then silently fails(succeeds) without creating a CHANGELOG, lerna-changelog --from lastReleaseTag
doesnt help either, it silently fails on all cases. You can try it here, we should probably make lerna-changelog
more strict so it never fails silently.
https://github.com/izelnakri/memserver [having the CHANGELOG or not having has no impact on the command output, tried that as well]
@izelnakri the PRs in your project don't have any labels, which is why they don't show up in the generated changelog. see https://github.com/lerna/lerna-changelog#usage
Yes, I just realized that after an hour of debugging
Initially I thought it autogenerates a label for each commit by default if missing, my assumption was wrong