Skip to content

Coverband.configuration.store.coverage returns empty hash #548

Open
@harshanails

Description

@harshanails

Describe the bug
We use Coverband to map covered file paths in Gitlab's E2E specs.

In this context, we have an internal api which calls Coverband.configuration.store.coverage but it keeps returning {} from the api.

But, from the rails console, the same call Coverband.configuration.store.coverage returns a non-empty coverage hash.

In rails logs I do see the following:

Coverband: background reporting coverage (runtime). Sleeping 3s
Coverband: background reporting coverage (runtime). Sleeping 3s
Coverband: background reporting coverage (runtime). Sleeping 24s
Coverband: background reporting coverage (runtime). Sleeping 24s

So that means, coverband is reporting to redis but the api is just unable to fetch the coverage 🤔

To Reproduce
It is perhaps specific to Gitlab environment, but would like some help in troubleshooting further.

Expected behavior
Coverband.configuration.store.coverage should return a non-empty hash when some coverage was recorded.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions