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

fix(gateway): ensure ipfs_http_gw_get_duration_seconds gets updated #167

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Feb 13, 2023

In #155 I overlooked where I was returning the success status and ended up returning false for all UnixFS files. I added more nested success status returning so the metric is more accurate now. Closes #162.

@codecov
Copy link

codecov bot commented Feb 13, 2023

Codecov Report

Merging #167 (415d56a) into main (c761383) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #167   +/-   ##
=======================================
  Coverage   19.62%   19.62%           
=======================================
  Files         100      100           
  Lines       11053    11052    -1     
=======================================
  Hits         2169     2169           
+ Misses       8597     8596    -1     
  Partials      287      287           
Impacted Files Coverage Δ
gateway/handler_unixfs.go 0.00% <0.00%> (ø)
gateway/handler_unixfs_dir.go 0.00% <0.00%> (ø)
gateway/handler_unixfs_file.go 0.00% <0.00%> (ø)

@hacdias
Copy link
Member Author

hacdias commented Feb 13, 2023

CI failures seem to be related to 8c06779. it's being worked in Kubo.

@hacdias hacdias self-assigned this Feb 13, 2023
@hacdias hacdias marked this pull request as ready for review February 13, 2023 11:55
@hacdias hacdias requested a review from lidel as a code owner February 13, 2023 11:55
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack. we need to make decision what to do with failing sharness, not having it is risk, not having correct metrics is also bad.

Let's wait for answer on ipfs/kubo#9643 (comment)

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, re-run sharness,green, lgtm

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

Successfully merging this pull request may close these issues.

gateway: ipfs_http_gw_get_duration_seconds metric is not updated
2 participants