Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't Find Repository in Buildkite #231

Open
wesmangum opened this issue Aug 13, 2019 · 2 comments
Open

Couldn't Find Repository in Buildkite #231

wesmangum opened this issue Aug 13, 2019 · 2 comments

Comments

@wesmangum
Copy link

wesmangum commented Aug 13, 2019

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
Copy link
Author

I took an idea from lemurheavy/coveralls-public#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.

@jtwebman
Copy link

jtwebman commented Mar 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants