node-coveralls icon indicating copy to clipboard operation
node-coveralls copied to clipboard

Couldn't Find Repository in Buildkite

Open wesmangum opened this issue 5 years ago • 2 comments

I'm running coveralls in the final step of my Buildkite pipeline. I'm saving the required ENV variables under Pipeline Settings, like so:

COVERALLS_SERVICE_NAME="buildkite"
COVERALLS_REPO_TOKEN="<redacted for security>"

The repo token was created in my Coveralls account under the name "buildkite"

At the end of the run, I keep getting Bad response: 422 {"message":"Couldn't find a repository matching this job.","error":true}

I've reviewed the Coveralls API and looked through similar issues here, but they mostly seem to pertain to Travis PRO and problems on that end. Does anyone have any advice? Am I missing a config option, or is it not formatted correctly?

wesmangum avatar Aug 13 '19 19:08 wesmangum

I took an idea from https://github.com/lemurheavy/coveralls-public/issues/1228 and ran the command with --verbose and got this interesting tidbit in the logs:


[debug] "2019-08-15T17:01:51.154Z"  'user options undefined'
--
  | [debug] "2019-08-15T17:01:51.187Z"  { service_name: 'buildkite',
  | service_job_number: '75473',
  | service_job_id: '16bb072d-9132-4598-9dd5-9f930a4ef06a',
  | service_pull_request: '27370',
  | run_at: '2019-08-15T17:01:51.155Z',
  | repo_token: '<EDITED>',
  | git:
  | { head:
  | { id: 'c079aa821c1e4ac71c6c70a3a11bf2696cb75866',
  | committer_name: '<EDITED>',
  | committer_email: '<EDITED>',
  | message: 'run coveralls with verbose flag',
  | author_name: '<EDITED>',
  | author_email: '<EDITED>' },
  | branch: 'designer-api-coveralls',
  | remotes: [ [Object] ] } }

I'm unsure if this is missing configs on my end, or if there's something in Coveralls that needs to be tweaked.

wesmangum avatar Aug 15 '19 22:08 wesmangum

Since this library doesn't seem to be supported anymore I fix a bunch of things on a fork if you want to check it out and are still pulling the library into your packages: https://github.com/jtwebman/coveralls-next I would be willing to help you out if you want. You can see how I used the tool directly here if that helps: https://github.com/jtwebman/coveralls-next/blob/master/.github/workflows/test.yml#L39

jtwebman avatar Mar 06 '22 22:03 jtwebman