Open
Description
Describe the bug
API code paths are not recorded consistently with GitLab rails application
To Reproduce
- Start
GitLab
rails console (withexport 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,
- 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
Labels
No labels