Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

v1.16: Report new received crds signatures and their respective origins to metrics (backport of #32504) #32674

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 1, 2023

This is an automatic backport of pull request #32504 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

@gregcusack
Copy link
Contributor

@Mergifyio rebase

@mergify
Copy link
Contributor Author

mergify bot commented Aug 1, 2023

rebase

❌ Unable to rebase: user gregcusack is unknown.

Please make sure gregcusack has logged in Mergify dashboard.

@gregcusack
Copy link
Contributor

@Mergifyio rebase

…etrics (#32504)

* screwed up old branch and syncing with upstream branch

* add fixed size ring buff instead of variable sized vecdeque for reporting signatures

* modify difficulty to take in n 0 bits and check if signature ending ends in n 0 bits

* update to only push every 18 trailing zero bits. and clean up

* report origin with signature. and set trailing 0s to 8 for local testing

* change back to 18 trailing zeros and rm unused imports

* run cargo rmt

* run ./scripts/cargo-for-all-lock-files.sh tree

* allow integer arithmetic for bit comparison

* rm unused lifetime

* rm duplicate entry?

* re implement ring buf

* put ringbuf in sorted order

* ringbuf in cargo.toml now in sorted order

* rm ring buf, refactor, fix trailing zero bug

* fix bug in trailing zeros. was comparing wrong ones

* fix needless range loop bug

* fix bug

* change trailing zero checking to build in methods and only report first 8 bytes of signature and origin pubkey

* report full origin string and first 8 bytes of signature

* set SIGNATURE_SAMPLE_TRAILING_ZEROS back to 18

* forgot to run cargo tree

* avoid panic and change working

* rm bs58

* pass in Option<String> into datapoint_info

* shorten metric names

(cherry picked from commit 80f7082)
@mergify
Copy link
Contributor Author

mergify bot commented Aug 1, 2023

rebase

✅ Branch has been successfully rebased

@gregcusack gregcusack force-pushed the mergify/bp/v1.16/pr-32504 branch from 43a344c to 94da837 Compare August 1, 2023 20:06
@gregcusack gregcusack requested a review from behzadnouri August 1, 2023 21:02
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #32674 (1992d7e) into v1.16 (1992d7e) will not change coverage.
The diff coverage is n/a.

❗ Current head 1992d7e differs from pull request most recent head 94da837. Consider uploading reports for the commit 94da837 to get more accurate results

@@           Coverage Diff           @@
##            v1.16   #32674   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         762      762           
  Lines      207807   207807           
=======================================
  Hits       170413   170413           
  Misses      37394    37394           

@gregcusack gregcusack merged commit 79c8bac into v1.16 Aug 1, 2023
@gregcusack gregcusack deleted the mergify/bp/v1.16/pr-32504 branch August 1, 2023 21:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants