8000 API code paths not being recorded in coverband with GitLab rails app · Issue #584 · danmayer/coverband · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
API code paths not being recorded in coverband with GitLab rails app #584
Open
@harshanails

Description

@harshanails

Describe the bug
API code paths are not recorded consistently with GitLab rails application

To Reproduce

  1. Start GitLab rails console (with export COVERBAND_ENABLED=true)
pry(main)> first = Coverband.configuration.store.coverage.to_h.select { |key, _| key.include?("lib/api/api.rb") }
=> {"./lib/api/api.rb"=>
  {"first_updated_at"=>1744254539,
   "last_updated_at"=>1744254542,
   "file_hash"=>"5027ff225ec0e25b4a48e779bc8a8a5a",
   "data"=>
    [nil,
     nil,
     1,
     1,
     1,
     1,
     nil,
     1,
     nil,
     1,
     1,
     1,
     1,
     1,
     1,
     1,
     nil,
     1,
     1,
     nil,
  1. Make a curl to invoke projects api from outside the rails console
curl -i  'http://gdk.test:3000/api/v4/projects' --header 'PRIVATE-TOKEN: token' --header 'Content-Type: application/json'
second = Coverband.configuration.store.coverage.to_h.select { |key, _| key.include?("lib/api/api.rb") }
=> {"./lib/api/api.rb"=>
  {"first_updated_at"=>1744254539,
   "last_updated_at"=>1744254542,
   "file_hash"=>"5027ff225ec0e25b4a48e779bc8a8a5a",
   "data"=>
    [nil,
     nil,
     1,
     1,
     1,
     1,
     nil,
     1,
     nil,
     1,
     1,
     1,
     1,
     1,
     1,
     1,
     nil,
     1,
     1,
     nil,

No change between first and second.

Expected behavior
There should be a delta between first and second hashes

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
https://gitlab.com/gitlab-org/quality/quality-engineering/team-tasks/-/issues/3532

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

      0