Skip to content

CI_{AUTHOR,COMMITTER}_{NAME,EMAIL} ignored by "done" #181

@cburroughs

Description

@cburroughs

I'm using the "Universal Coverage Reporter" to report my coverage. I'm using self-hosted Buildkite agents, so I'm configuring the reporter directly using env vars. However, in builds that occur after a GitHub merge queue the coveralls.io is associating the commit with https://github.com/web-flow I have tried setting the CI_ variables with something like:

    export CI_AUTHOR_NAME=${BUILDKITE_BUILD_AUTHOR}
    export CI_AUTHOR_EMAIL=${BUILDKITE_BUILD_AUTHOR_EMAIL}
    export CI_COMMITTER_NAME=${BUILDKITE_BUILD_AUTHOR}
    export CI_COMMITTER_EMAIL=${BUILDKITE_BUILD_AUTHOR_EMAIL}

But that had no apparent effect. (This is illustrative, I'm confident that the BUILDKITE_ vars are what I want from other debugging sources). To debug further on a regular branch, I've set the env vars to static strings to trace where they come from

    export CI_AUTHOR_NAME="CI_AUTHOR_NAME"
    export CI_AUTHOR_EMAIL="CI_AUTHOR_EMAIL"
    export CI_COMMITTER_NAME="CI_COMMITTER_NAME"
    export CI_COMMITTER_EMAIL="CI_COMMITTER_EMAIL"
    export COVERALLS_GIT_COMMITER_NAME="COVERALLS_GIT_COMMITER_NAME"
    export COVERALLS_GIT_COMMITER_EMAIL="COVERALLS_GIT_COMMITER_EMAIL"

When I run coveralls report with --debug I see:

  "git": {
    "branch": "csb/moar-webflow",
    "head": {
      "id": "a4de42a8a1bd04204a0d0233e39aceacc2e8f716",
      "committer_email": "CI_COMMITTER_EMAIL",
      "committer_name": "CI_COMMITTER_NAME",
      "author_email": "CI_AUTHOR_EMAIL",
      "author_name": "CI_AUTHOR_NAME",
      "message": "more debug"
    }
  },
  "run_at": "2025-09-25T18:00:28+00:00"

Which looks like everywhere is being passed through to the api as expected. However, when running coveralls done with --debug I see:

  v0.6.15
⭐️ Calling parallel done webhook: https://coveralls.io/webhook
---
⛑ Debug Output:
{
  "service_branch": "csb/moar-webflow",
  "service_job_id": "01998269-052b-4ac8-be12-b0525b395f32",
  "service_job_number": "33598",
  "service_name": "buildkite",
  "service_pull_request": "false",
  "commit_sha": "a4de42a8a1bd04204a0d0233e39aceacc2e8f716",
  "service_number": "01998269-052b-4ac8-be12-b0525b395f32",
  "repo_token": "[REDACTED]",
  "payload": {
    "build_num": "01998269-052b-4ac8-be12-b0525b395f32",
    "status": "done"
  },
  "git": {
    "branch": "csb/moar-webflow",
    "head": {
      "id": "a4de42a8a1bd04204a0d0233e39aceacc2e8f716",
      "committer_email": "[email protected]",
      "committer_name": "Chris Burroughs",
      "author_email": "[email protected]",
      "author_name": "Chris Burroughs",
      "message": "more debug"
    }
  }
}
---
✅ API Response: {"done":true,"url":"https://coveralls.io/builds/75706218","jobs":0}
- 💛, Coveralls
⏱️ Webhook request: 00:00:00.141573072

Showing no effect from the CI_ env vars.

I suspect the discordance between the report and done git hash is the source of the problem I am seeing in the web UI. (Even if not, I think the different behavior is confusing.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions