Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stuck on "Fetching closed dates for issues"#965

Unanswered
Bluefitdev asked this question inQ&A
Discussion options

Hey guys

I have 2 repos, front end and backend. Front end works fine when i generate changelog for the first time, however backend stucks here:

❯ ./generate-changelog.shUsing these options::date_format=>"%Y-%m-%d":output=>"CHANGELOG.md":base=>"HISTORY.md":issues=>true:add_issues_wo_labels=>true:add_pr_wo_labels=>true:pulls=>true:filter_issues_by_milestone=>true:issues_of_open_milestones=>true:author=>true:unreleased=>true:unreleased_label=>"Unreleased":compare_link=>true:exclude_labels=>["duplicate", "question", "invalid", "wontfix", "Duplicate", "Question", "Invalid", "Wontfix", "Meta: Exclude From Changelog"]:summary_labels=>["Release summary", "release-summary", "Summary", "summary"]:breaking_labels=>["backwards-incompatible", "Backwards incompatible", "breaking"]:enhancement_labels=>["enhancement", "Enhancement", "Type: Enhancement"]:bug_labels=>["bug", "Bug", "Type: Bug"]:deprecated_labels=>["deprecated", "Deprecated", "Type: Deprecated"]:removed_labels=>["removed", "Removed", "Type: Removed"]:security_labels=>["security", "Security", "Type: Security"]:configure_sections=>{}:add_sections=>{}:issue_line_labels=>[]:max_issues=>nil:simple_list=>false:ssl_ca_file=>nil:verbose=>true:header=>"# Changelog":merge_prefix=>"**Merged pull requests:**":issue_prefix=>"**Closed issues:**":summary_prefix=>"":breaking_prefix=>"**Breaking changes:**":enhancement_prefix=>"**Implemented enhancements:**":bug_prefix=>"**Fixed bugs:**":deprecated_prefix=>"**Deprecated:**":removed_prefix=>"**Removed:**":security_prefix=>"**Security fixes:**":http_cache=>true:require=>[]:config_file=>".github_changelog_generator":user=>"BC2-Development":project=>"salt-backend":token=>"No token used"Found 1 tagsFetching tags dates: 1/1Sorting tags...Received issues: 50Pull Request count: 2Filtered pull requests: 1Filtered issues: 47Fetching events for issues and PR: 48Fetching closed dates for issues: 48/48

Then it just stuck for more than a day now, i tried to cancel, rerun, run from docker, nothing works. Any idea why?

When I cancel withctrl + c it just says interrupt, 'block in make_fiber`. not sure what's that...

Mygithub_changelog_generator version is:1.16.2
Ruby version:ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
Gem version:3.2.3

You must be logged in to vote

Replies: 22 comments 19 replies

Comment options

Hi,

(Go for hello everyone, we want to includeeveryone!)

Thanks for the report!

Can you add a backtrace of where you Ctrl-c? That may or may not make this easier to pinpoint.

You must be logged in to vote
0 replies
Comment options

Hey guys, gee you're fast in replying! Thanks for the amazing project

Here'sCONSOLE_LEVEL=debug doesn't give me extra information, I reckon because it has no error at all? its just stuck at the "Fetching closed date for issues".

Also if its worth noting, this project is in laravel (php) if that affects anything which i think it shouldn't? The other one that works is in react

Here's the full log after Ctrl - c

Found 2 tagsFetching tags dates: 2/2Sorting tags...Received issues: 51Pull Request count: 3Filtered pull requests: 1Filtered issues: 47Fetching events for issues and PR: 48Fetching closed dates for issues: 48/48^C/Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:380:in `key?': Interrupt        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:380:in `commits_in_tag'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:347:in `commits_in_branch'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:200:in `sha_in_release_branch?'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:107:in `block in associate_release_branch_prs'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `reject'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `associate_release_branch_prs'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:49:in `add_first_occurring_tag_to_prs'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:152:in `fetch_issues_and_pr'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:55:in `block in compound_changelog'        from /Users/rob/.rvm/gems/ruby-3.0.0/gems/async-1.29.0/lib/async/task.rb:263:in `block in make_fiber'
You must be logged in to vote
0 replies
Comment options

  • Upcoming Ruby 3.0.2 has a bug fix, thatmay be relevant to this issue.
  • Can you try running with Ruby 2.7?
You must be logged in to vote
1 reply
@aelam
Comment options

I tried ruby 3.1.2 with github-changelog-generator 1.16.4, still stucks

Comment options

Hey, i tried running with ruby 2.7

Same result after 20 minutes that I have to cancel it

Found 2 tagsFetching tags dates: 2/2Sorting tags...Received issues: 51Pull Request count: 3Filtered pull requests: 1Filtered issues: 47Fetching events for issues and PR: 48Fetching closed dates for issues: 48/48^[[B^CTraceback (most recent call last):        14: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/async-1.29.0/lib/async/task.rb:263:in `block in make_fiber'        13: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:55:in `block in compound_changelog'        12: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:152:in `fetch_issues_and_pr'        11: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:49:in `add_first_occurring_tag_to_prs'        10: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `associate_release_branch_prs'         9: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `reject'         8: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:107:in `block in associate_release_branch_prs'         7: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:200:in `sha_in_release_branch?'         6: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:347:in `commits_in_branch'         5: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:384:in `commits_in_tag'         4: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:384:in `each'         3: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:385:in `block in commits_in_tag'         2: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:55:in `[]'         1: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:104:in `block (3 levels) in attr_accessor'/Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:104:in `to_sym': Interrupt
You must be logged in to vote
0 replies
Comment options

Thanks for making an attempt!

You must be logged in to vote
0 replies
Comment options

CONSOLE_LEVEL=debug should give you a ton of extra output from the event loop andasync-http. Are you getting that?

You must be logged in to vote
0 replies
Comment options

No i didn't get anything at all,

❯❯ CONSOLE_LEVEL=debug && ./generate-changelog.shUsing these options::date_format=>"%Y-%m-%d":output=>"CHANGELOG.md":base=>"HISTORY.md":issues=>true:add_issues_wo_labels=>true:add_pr_wo_labels=>true:pulls=>true:filter_issues_by_milestone=>true:issues_of_open_milestones=>true:author=>true:unreleased=>true:unreleased_label=>"Unreleased":compare_link=>true:exclude_labels=>["duplicate", "question", "invalid", "wontfix", "Duplicate", "Question", "Invalid", "Wontfix", "Meta: Exclude From Changelog"]:summary_labels=>["Release summary", "release-summary", "Summary", "summary"]:breaking_labels=>["backwards-incompatible", "Backwards incompatible", "breaking"]:enhancement_labels=>["enhancement", "Enhancement", "Type: Enhancement"]:bug_labels=>["bug", "Bug", "Type: Bug"]:deprecated_labels=>["deprecated", "Deprecated", "Type: Deprecated"]:removed_labels=>["removed", "Removed", "Type: Removed"]:security_labels=>["security", "Security", "Type: Security"]:configure_sections=>{}:add_sections=>{}:issue_line_labels=>[]:max_issues=>nil:simple_list=>false:ssl_ca_file=>nil:verbose=>true:header=>"# Changelog":merge_prefix=>"**Merged pull requests:**":issue_prefix=>"**Closed issues:**":summary_prefix=>"":breaking_prefix=>"**Breaking changes:**":enhancement_prefix=>"**Implemented enhancements:**":bug_prefix=>"**Fixed bugs:**":deprecated_prefix=>"**Deprecated:**":removed_prefix=>"**Removed:**":security_prefix=>"**Security fixes:**":http_cache=>true:require=>[]:config_file=>".github_changelog_generator":user=>"BC2-Development":project=>"salt-backend":token=>"No token used"Found 2 tagsFetching tags dates: 2/2Sorting tags...Received issues: 51Pull Request count: 3Filtered pull requests: 1Filtered issues: 47Fetching events for issues and PR: 48Fetching closed dates for issues: 48/48
You must be logged in to vote
0 replies
Comment options

What if you leave off the initial && just after the "debug" word?

You must be logged in to vote
0 replies
Comment options

Oh, yeah, totally missed that. It should beCONSOLE_LEVEL=debug ./command without the&&.

You must be logged in to vote
0 replies
Comment options

Omg guys i missed it!!

Here's the log. although not sure if it meant something. It stucked at the same stream after 2.6s

 1.79s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x17c0] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 25 active streams> 1.84s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x17e8] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.86s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1784] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.86s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x17fc] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.88s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1748] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.89s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1770] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams>  1.9s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1810] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams>  1.9s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x17d4] [pid=14491] [2021-05-06 15:13:51 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.91s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x18ec] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.91s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x189c] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.91s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x184c] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.92s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1874] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.92s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1888] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.92s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1860] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.92s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1824] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.93s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x18b0] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.93s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1900] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.93s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1928] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.94s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x18d8] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.94s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x18c4] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.95s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x193c] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 5 active streams> 1.95s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1950] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 1.96s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1914] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 1.96s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1838] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 1.96s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1964] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 1.97s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1978] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 1.98s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1568] [pid=14491] [2021-05-06 15:13:52 +1000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 2.27s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1568] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 2.27s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1568] [pid=14491] [2021-05-06 15:13:52 +1000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams> 2.54s    debug: Async::Pool::Controller [oid=0x1554] [ec=0x1568] [pid=14491] [2021-05-06 15:13:52 +1000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>^C40.36s    debug: Async::Reactor [oid=0x1cd4] [ec=0x1ce8] [pid=14491] [2021-05-06 15:14:30 +1000]               | Exiting run-loop because .^CTraceback (most recent call last):        14: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/async-1.29.0/lib/async/task.rb:263:in `block in make_fiber'        13: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:55:in `block in compound_changelog'        12: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator.rb:152:in `fetch_issues_and_pr'        11: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:49:in `add_first_occurring_tag_to_prs'        10: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `associate_release_branch_prs'         9: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:105:in `reject'         8: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:107:in `block in associate_release_branch_prs'         7: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/generator/generator_fetcher.rb:200:in `sha_in_release_branch?'         6: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:347:in `commits_in_branch'         5: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:384:in `commits_in_tag'         4: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:384:in `each'         3: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/github_changelog_generator-1.16.2/lib/github_changelog_generator/octo_fetcher.rb:385:in `block in commits_in_tag'         2: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:55:in `[]'         1: from /Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:104:in `block (3 levels) in attr_accessor'/Users/rob/.rvm/gems/ruby-2.7.2/gems/sawyer-0.8.2/lib/sawyer/resource.rb:104:in `to_sym': Interrupt
You must be logged in to vote
0 replies
Comment options

This log file looks okay.

You must be logged in to vote
0 replies
Comment options

I got same issue now. But in my case, it also shows a warning aboutCan't fetch commit e01afc986580916f72ef76e9bdaf31f476fb0423. It is probably referenced from another repo..
Screen Shot 2021-05-10 at 15 44 38

2 weeks ago, the same script works well. But for now, it start stuck
Maybe bellow commit have any influences on it? (Not sure... 🤔
c596513#diff-c19d6b251c4679493fa482c2c08d6ff90ebd5136a52fa65c9b8954fcb3576b2e

================================
Update:

I just find that1.15.2 works well. I will switch my project to specify that for a while 😆

You must be logged in to vote
0 replies
Comment options

So I'm running to this exact issue, and I tried to downgrade back to the original version I was using (v1.15.2), but now I'm getting a bunch of errors:

Traceback (most recent call last):40: from /usr/local/bin/github_changelog_generator:23:in `<main>'39: from /usr/local/bin/github_changelog_generator:23:in `load'38: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/bin/github_changelog_generator:5:in `<top (required)>'37: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator.rb:35:in `run'36: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator.rb:46:in `compound_changelog'35: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_tags.rb:10:in `fetch_and_filter_tags'34: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:85:in `get_all_tags'33: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:399:in `check_github_response'32: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'31: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'30: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'29: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:400:in `block in check_github_response'28: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:85:in `block in get_all_tags'27: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:112:in `github_fetch_tags'26: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:93:in `calculate_pages'25: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:399:in `check_github_response'24: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'23: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'22: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'21: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:400:in `block in check_github_response'20: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:94:in `block in calculate_pages'19: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/client/repositories.rb:552:in `tags'18: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/connection.rb:84:in `paginate'17: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/connection.rb:156:in `request'16: from /Library/Ruby/Gems/2.6.0/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94:in `call'15: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/connection.rb:198:in `get'14: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/connection.rb:492:in `run_request'13: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/rack_builder.rb:154:in `build_response'12: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115:in `call'11: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135:in `call!'10: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:185:in `process' 9: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:75:in `read' 8: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `lookup_response' 7: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `map' 6: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `block in lookup_response' 5: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `deserialize_entry' 4: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `map' 3: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `block in deserialize_entry' 2: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:141:in `deserialize_object' 1: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/marshal.rb:8:in `load'/Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/marshal.rb:8:in `load': undefined class/module Async:: (ArgumentError)43: from /usr/local/bin/github_changelog_generator:23:in `<main>'42: from /usr/local/bin/github_changelog_generator:23:in `load'41: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/bin/github_changelog_generator:5:in `<top (required)>'40: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator.rb:35:in `run'39: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator.rb:46:in `compound_changelog'38: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/generator/generator_tags.rb:10:in `fetch_and_filter_tags'37: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:85:in `get_all_tags'36: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:399:in `check_github_response'35: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'34: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'33: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'32: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:400:in `block in check_github_response'31: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:85:in `block in get_all_tags'30: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:112:in `github_fetch_tags'29: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:93:in `calculate_pages'28: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:399:in `check_github_response'27: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'26: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'25: from /Library/Ruby/Gems/2.6.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'24: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:400:in `block in check_github_response'23: from /Library/Ruby/Gems/2.6.0/gems/github_changelog_generator-1.15.2/lib/github_changelog_generator/octo_fetcher.rb:94:in `block in calculate_pages'22: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/client/repositories.rb:552:in `tags'21: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/connection.rb:84:in `paginate'20: from /Library/Ruby/Gems/2.6.0/gems/octokit-4.20.0/lib/octokit/connection.rb:156:in `request'19: from /Library/Ruby/Gems/2.6.0/gems/sawyer-0.8.2/lib/sawyer/agent.rb:94:in `call'18: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/connection.rb:198:in `get'17: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/connection.rb:492:in `run_request'16: from /Library/Ruby/Gems/2.6.0/gems/faraday-1.3.0/lib/faraday/rack_builder.rb:154:in `build_response'15: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:115:in `call'14: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:135:in `call!'13: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache.rb:185:in `process'12: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:75:in `read'11: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `lookup_response'10: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `map' 9: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:99:in `block in lookup_response' 8: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `deserialize_entry' 7: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `map' 6: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:137:in `block in deserialize_entry' 5: from /Library/Ruby/Gems/2.6.0/gems/faraday-http-cache-2.2.0/lib/faraday/http_cache/storage.rb:141:in `deserialize_object' 4: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/marshal.rb:7:in `load' 3: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/marshal.rb:12:in `rescue in load' 2: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/core_ext/string/inflections.rb:74:in `constantize' 1: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/inflector/methods.rb:274:in `constantize'/Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.3/lib/active_support/inflector/methods.rb:274:in `const_get': uninitialized constant Async (NameError)npm ERR! code ELIFECYCLE

I tried to uninstall and reinstall, but still the same thing:

sudo gem uninstall github_changelog_generatorsudo gem install github_changelog_generator -v 1.15.2

How do I cleanly uninstall everything and try again?

Other notes:
OS:MacOS 11.13.1
Ruby:ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
Gem:3.0.3

EDIT: I just tried to uninstall every single Ruby gem that this library installed, and then reinstallv1.15.2, but I still get the same error. I'm extremely confused how that can be.v1.15.2 was working just fine before I tried to upgrade tov1.16.2.

You must be logged in to vote
0 replies
Comment options

Weirdly it only happens in some repo. In my case only 1 repo, the rest are fine..

You must be logged in to vote
3 replies
@olleolleolle
Comment options

Can you share their specific github_changelog_generator invocations, so I can try and reproduce?

@Bluefitdev
Comment options

Hey I just manage to try it again, after I downgraded to1.15.2, it works!! Yayy

@olleolleolle
Comment options

So, the new feature in 1.16 and later is a much-more-efficient asynchronous way of talking to GitHub - and we're interested in having that tested out, with combinations that consistently get stuck, so that we can analyze what is going wrong.

Comment options

It looks like you might be using a mixed up install. I see in the log the executable is coming from your system. Make sure you install it using bundler and then usebundle exec.

You must be logged in to vote
0 replies
Comment options

@ioquatix Most users of this tool are not primarily Ruby users

Here's a very small guide to what the above meant.

Using Bundler &bundle exec

In order to app-isolate the RubyGems packages used when running a Ruby tool, Ruby users often rely onBundler, a "package manager manager". It installs and selects what versions of packages should be used.

These steps would get you to where@ioquatix noted you could try:

  1. Find a fileGemfile in the directory where you want to run the command, and if you can't find one, create one using:bundle init
  2. InGemfile, add a linegem "github_changelog_generator"
  3. Runbundle install. This will fetch and install gems, then create aGemfile.lock with the selected versions.
  4. Now, you're ready to use those exact gem versions:bundle exec github_changelog_generator (with the options you have selected, etc, etc, in the regular way of using GitHub Changelog Generator).

Hope this helps!

You must be logged in to vote
0 replies
Comment options

Thanks@olleolleolle . I'm new to Ruby &bundle, so your instructions helped, but I had to change Step 2 to:

gem 'github_changelog_generator', '~> 1.15.1'

After that, everything worked as expected!

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@olleolleolle
Comment options

Hello, and welcome to a threaded discussion about this!

Comment options

Not sure why everyone, but after downgrading tov1.15.2, it works for me perfectly. Not sure why the latest one is not working

You must be logged in to vote
3 replies
@ioquatix
Comment options

Can you add me to the repo which has the problem. Otherwise I cannot test.

@Bluefitdev
Comment options

It's a company private repo unfortunately.. Sorry

@ioquatix
Comment options

Okay, if you prefer, you can pay me as a consultant and I will fix your problem :) I am happy to sign a contract/NDA.

Comment options

Hello there,

I am testing github-changelog-generator on a new repo and I am getting the same error discussed here: it gets stuck when fetching closed dates for issues.

My repo ishttps://github.com/kong/kong/ , it is open source. In my case I am using the docker image to attempt to generate the changelog.

I have tried several combinations of options, all get stuck. Here a simple one:

git clone https://github.com/kong/kong/cd kong/kongdocker run -it --rm \    -e CONSOLE_LEVEL=debug \    -v "$(pwd)":/usr/local/src/your-app \    githubchangeloggenerator/github-changelog-generator \    --user kong \    --project kong \    --token "$GITHUB_TOKEN"

It finds the tags,

Fetching tags dates: 131/131Sorting tags...

It receives the issues around the 2-minute mark:

Received issues: 6974

Then the logs stop at around the 4-min mark. Last lines:

    3m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:54:45 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    3m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:54:48 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:54:56 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:54:59 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:55:04 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Pool::Controller [oid=0x1504] [ec=0x1518] [pid=1] [2021-06-02 15:55:06 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>
You must be logged in to vote
8 replies
@olleolleolle
Comment options

@kikito 👋 How does v1.16.4 work for your use-case?

@kikito
Comment options

Hi, nice turnaround! I have tried again (with Docker) and got the same result (stuck afterReceived Issues).

It seems that dependabot has not yet pushed the v1.16.4 bump tohttps://github.com/github-changelog-generator/docker-github-changelog-generator/pulls .

For now I am stuck to trying this with Docker, so I will have to wait until v1.16.4 lands there.

@olleolleolle
Comment options

Right, there were a few levers to pull, there, and soon, the version ought to be more ready to go out.

@kikito
Comment options

Hello, since I saw that 1.16.4 was already bumped in the docker image, I tried manually creating the image myself:

git clone https://github.com/github-changelog-generator/docker-github-changelog-generator.gitcd docker-github-changelog-generatordocker build -t localchangelog .

And then used it to try to generate the changelog:

cd kong/kongdocker run -it --rm \                                                                                                                                                  -e CONSOLE_LEVEL=debug \    -v "$(pwd)":/usr/local/src/your-app \    localchangelog \    --user kong \    --project kong \    --token "$GITHUB_TOKEN"

Unfortunately that also didn't work. It found and fetched the tags

Found 131 tags...Fetching tags dates: 131/131Sorting tags...

Unfortunately it failed, again at the 4 minute mark. The failure might be more useful than the previous one since it includes a traceback:

    2m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 12:05:32 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    2m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 12:05:33 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    2m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 12:05:34 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 12:08:03 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    error: Async::Task [oid=0x2508] [ec=0x251c] [pid=1] [2021-06-10 12:08:03 +0000]               |   Errno::EPIPE: Broken pipe               |   → /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `syswrite_nonblock'               |     /usr/local/lib/ruby/2.7.0/openssl/buffering.rb:383 in `write_nonblock'               |     /usr/local/bundle/gems/async-io-1.32.1/lib/async/io/generic.rb:216 in `async_send'               |     /usr/local/bundle/gems/async-io-1.32.1/lib/async/io/generic.rb:62 in `block in wrap_blocking_method'               |     /usr/local/bundle/gems/async-io-1.32.1/lib/async/io/generic.rb:156 in `write'               |     /usr/local/bundle/gems/async-io-1.32.1/lib/async/io/stream.rb:160 in `block in flush'               |     /usr/local/bundle/gems/async-1.29.0/lib/async/semaphore.rb:80 in `acquire'               |     /usr/local/bundle/gems/async-io-1.32.1/lib/async/io/stream.rb:155 in `flush'               |     /usr/local/bundle/gems/async-http-0.56.3/lib/async/http/protocol/http2/connection.rb:84 in `write_frame'               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:132 in `write_frame'               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:213 in `write_data'               |     /usr/local/bundle/gems/protocol-http2-0.14.2/lib/protocol/http2/stream.rb:220 in `send_data'               |     /usr/local/bundle/gems/async-http-0.56.3/lib/async/http/protocol/http2/stream.rb:158 in `finish_output'               |     /usr/local/bundle/gems/async-http-0.56.3/lib/async/http/protocol/http2/output.rb:73 in `close'               |     /usr/local/bundle/gems/async-http-0.56.3/lib/async/http/protocol/http2/output.rb:107 in `passthrough'               |     /usr/local/bundle/gems/async-1.29.0/lib/async/task.rb:263 in `block in make_fiber'    4m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 12:08:03 +0000]               | Retire #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    4m    debug: Async::Task [oid=0x2530] [ec=0x1540] [pid=1] [2021-06-10 12:08:03 +0000]               |   TypeError: no implicit conversion of nil into Array               |   → /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:169 in `concat'               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:169 in `block in fetch_closed_issues_and_pr'               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:438 in `iterate_pages'               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:166 in `fetch_closed_issues_and_pr'               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:144 in `fetch_issues_and_pr'               |     /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:55 in `block in compound_changelog'               |     /usr/local/bundle/gems/async-1.29.0/lib/async/task.rb:263 in `block in make_fiber'    4m    debug: Async::Reactor [oid=0x2544] [ec=0x2558] [pid=1] [2021-06-10 12:08:03 +0000]               | Exiting run-loop because finished.Traceback (most recent call last):6: from /usr/local/bundle/gems/async-1.29.0/lib/async/task.rb:263:in `block in make_fiber'5: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:55:in `block in compound_changelog'4: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/generator/generator.rb:144:in `fetch_issues_and_pr'3: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:166:in `fetch_closed_issues_and_pr'2: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:438:in `iterate_pages'1: from /usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:169:in `block in fetch_closed_issues_and_pr'/usr/local/bundle/gems/github_changelog_generator-1.16.4/lib/github_changelog_generator/octo_fetcher.rb:169:in `concat': no implicit conversion of nil into Array (TypeError)

I'm under the impression that the generator is just trying to pull too much stuff from Github, and at some point I get rate-limited, and the changelog dies (it would be nice it if died with a more specific error).

I am ok with doing more tests like this. But is there a way to limit the amount of info the generator pulls from github? Currently I am not interested in generating the whole changelog from scratch, just the "Unreleased" changes. Can this be used somehow to limit the amount of issues pulled from github? They should be a substantial subset of the whole list.

@kikito
Comment options

Update: tried again, same command as before:

cd kong/kongdocker run -it --rm \                                                                                                                                                  -e CONSOLE_LEVEL=debug \    -v "$(pwd)":/usr/local/src/your-app \    localchangelog \    --user kong \    --project kong \    --token "$GITHUB_TOKEN"

That was ~40 minutes ago. The generator is still "working on it" .. kindof. Here's the latest logs:

    4m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:17:33 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>    8m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:21:45 +0000]               | Retire #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>   14m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:28:27 +0000]               | No available resources, allocating new one...   15m    debug: Async::HTTP::Client [oid=0x1554] [ec=0x1540] [pid=1] [2021-06-10 14:29:04 +0000]               | Making connection to #<Async::HTTP::Endpoint https://api.github.com/repos/kong/kong/tags?per_page=100 {}>   16m    debug: Async::IO::Socket [ec=0x1540] [pid=1] [2021-06-10 14:29:53 +0000]               | Connecting to #<Addrinfo: 140.82.121.6:443 TCP api.github.com (api.github.com)>   18m    debug: Async::HTTP::Protocol::HTTPS [ec=0x1540] [pid=1] [2021-06-10 14:32:06 +0000]               | Negotiating protocol "h2"...   18m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:32:06 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>   18m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:32:06 +0000]               | Reuse #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>   19m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:32:59 +0000]               | Wait for resource -> #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>   36m    debug: Async::Pool::Controller [oid=0x152c] [ec=0x1540] [pid=1] [2021-06-10 14:49:53 +0000]               | Retire #<Async::HTTP::Protocol::HTTP2::Client 0 active streams>
Comment options

I can confirm this issue persists in the latest 1.16.4. - no matter what type of flags I add to the gem command, it gets stuck onfetching closed dates for issues: 689/689. It looks like you guys always fetch the full history list, at which point i assume the app applies the filters and sorting to the list, which is probably why the process is hanging on repos with very large git histories. Good luck.

You must be logged in to vote
1 reply
@cormacrelf
Comment options

A good workaround is to use--since-tag with a recent tag. You can usegit describe --abbrev=0 --tags to find the most recent one. This will of course generate a CHANGELOG without all the historical entries, but you can join the new and old together afterward.

I have a complicated bash + awk script that concatenates two CHANGELOG.md files, such that you can fetch only the most recent stuff and whack it on the end. The reason I wanted this originally is so that I can avoid the "summary issue" system, and simply edit the changelog in-place to add commentary. A nice side effect is that I am not affected by the hang.

Comment options

We discovered the same problem. There is a very easy reproduction. Basically exclude all tags present in the repository. Something like
docker run -it --rm -e CONSOLE_LEVEL=debug -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator --user USER --project PROJECT --token TOKEN --exclude-tags v0.1.0,v0.2.0,v0.3.0,v.0.4.0,v0.5.0[...].
For us the use case is that we have multiple changelogs in the same repository and only certain tags relate to a specific changelog. The situation where all tags are excluded happens when a new changelog is create for the first time.

Will try to work around that with placing some dummy tags and report back soonish :)

You must be logged in to vote
2 replies
@eike-hass
Comment options

things are getting weirder. The only way I can generate a changelog with excluding almost all tags is allowing at least one tag. It has to be somewhere in the middle of the history though. If I allow a very early or a very recent tag the process also hangs atFetching closed dates for issues.

@eike-hass
Comment options

also memory usage is slowly creeping up if the process is kept running

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
10 participants
@Bluefitdev@olleolleolle@ioquatix@kikito@aelam@cormacrelf@denchen@eike-hass@rjsuzuki@HevaWu
Converted from issue

This discussion was converted from issue #961 on May 19, 2021 07:05.


[8]ページ先頭

©2009-2025 Movatter.jp