Coder Social home page Coder Social logo

Comments (1)

benpetty avatar benpetty commented on June 13, 2024

@derekherman I'm having the same issue using Travis-Pro. It's getting a commit hash that doesn't even exist in our repository. Where $TRAVIS_COMMIT is 50e440c5e3ec182607cb71370173cd884f33bc2a the response from coveralls is:

Bad response: 422 {"message":"The commit 0023214bdfc259bef2a8e00444f77fa60825a5ba wasn't found on the repo OrgName/RepoNameThe commit 0023214bdfc259bef2a8e00444f77fa60825a5ba wasn't found on the repo OrgName/RepoName","error":true}

As you can see the commit hash is wrong, is not even in our repo:

$ git show 0023214bdfc259bef2a8e00444f77fa60825a5ba
fatal: bad object 0023214bdfc259bef2a8e00444f77fa60825a5ba

The above config includes $COVERALLS_REPO_TOKEN environment variable being sent to travis. If I remove $COVERALLS_REPO_TOKEN, I get this:

Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}

Even though the docs say this will work out of the box without it. I suppose it hasn't been tested for Travis-PRO or maybe something in Travis PRO has changed since the code was written.

I've submitted a PR that would definitely fix this. Instead of passing "HEAD", pass the actual $TRAVIS_COMMIT env var which will always exist in every travis build (pro/free).

Pull request here: #272

Someone please merge this and release!

from node-coveralls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.