Skip to content

Error when run against module with a second module merged into it. #665

@david22swan

Description

@david22swan

The changelog generator rake task seems to throw an error whenever it is run against a module that had previously had a separate orphaned module merged into to it. The error it shows is:

rake aborted! for tags: 50/68
Octokit::NotFound: GET https://api.github.com/repos/puppetlabs/puppetlabs-stdlib/compare/b305bbeac7a0560a271f34026f936b88b88da477...2.1.3: 404 - No common ancestor between b305bbeac7a0560a271f34026f936b88b88da477 and 2.1.3. // See: https://developer.github.com/v3/repos/commits/#compare-two-commits
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/octokit-4.9.0/lib/octokit/response/raise_error.rb:16:in `on_complete'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/response.rb:9:in `block in call'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/response.rb:61:in `on_complete'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/response.rb:8:in `call'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-http-cache-2.0.0/lib/faraday/http_cache.rb:290:in `fetch'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-http-cache-2.0.0/lib/faraday/http_cache.rb:195:in `process'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-http-cache-2.0.0/lib/faraday/http_cache.rb:142:in `call!'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-http-cache-2.0.0/lib/faraday/http_cache.rb:115:in `call'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/rack_builder.rb:143:in `build_response'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/connection.rb:387:in `run_request'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/faraday-0.15.2/lib/faraday/connection.rb:138:in `get'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/sawyer-0.8.1/lib/sawyer/agent.rb:94:in `call'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/octokit-4.9.0/lib/octokit/connection.rb:156:in `request'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/octokit-4.9.0/lib/octokit/connection.rb:19:in `get'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/octokit-4.9.0/lib/octokit/client/commits.rb:198:in `compare'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/bundler/gems/github-changelog-generator-20ee04ba1234/lib/github_changelog_generator/octo_fetcher.rb:254:in `block in fetch_compare'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/bundler/gems/github-changelog-generator-20ee04ba1234/lib/github_changelog_generator/octo_fetcher.rb:396:in `block in check_github_response'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `times'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/bundler/gems/github-changelog-generator-20ee04ba1234/lib/github_changelog_generator/octo_fetcher.rb:395:in `check_github_response'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/bundler/gems/github-changelog-generator-20ee04ba1234/lib/github_changelog_generator/octo_fetcher.rb:254:in `fetch_compare'
/Users/david.swan/GitHub/puppetlabs-stdlib/.bundle/gems/ruby/2.4.0/bundler/gems/github-changelog-generator-20ee04ba1234/lib/github_changelog_generator/octo_fetcher.rb:319:in `block (3 levels) in fetch_tag_shas_async'
Tasks: TOP => changelog

Encountered this problem when starting a new release on the puppetlabs-stdlib module. Here is a link to my fork of said module and the branch that the changes currently exit on:

https://github.com/david22swan/puppetlabs-stdlib/tree/PreRelease

Attempted to avoid issue by setting it so that only commits made after the last release would be counted but the issue still hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy