Skip to content

refactor(metadata): pre-refactors for migrating feature states to static metadata [part 4/12] #1017

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

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented May 3, 2024

Depends on #1016


Motivation

This PR simply removes test asserts related to methods that will be changed in the next PR, #1018:

  • FeatureService._calculate_new_state() call count asserts were removed because feature states will only be calculated once for each block, ever.
  • FeatureService._get_ancestor_iteratively() call count asserts were removed because this method will be removed.

Those changes required removing with scopes, making the diff very verbose, so a separate PR was created (setting "Hide whitespace" in the diff view makes it way easier to review).

Read the previous PR, #1016, for more info.

Acceptance Criteria

  • Remove unnecessary asserts in tests.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco added the refactor label May 3, 2024
@glevco glevco self-assigned this May 3, 2024
@glevco glevco changed the title refactor(metadata): pre-refactors for migrating feature states to static metadata [part 2/2] refactor(metadata): pre-refactors for migrating feature states to static metadata [part 3b] May 3, 2024
@glevco glevco changed the title refactor(metadata): pre-refactors for migrating feature states to static metadata [part 3b] refactor(metadata): pre-refactors for migrating feature states to static metadata [part 4] May 3, 2024
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.61%. Comparing base (5bb5dba) to head (927d482).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1017      +/-   ##
==========================================
- Coverage   84.63%   84.61%   -0.02%     
==========================================
  Files         317      317              
  Lines       24150    24150              
  Branches     3662     3662              
==========================================
- Hits        20439    20435       -4     
- Misses       3006     3009       +3     
- Partials      705      706       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch 2 times, most recently from d104751 to d009d7b Compare May 3, 2024 21:06
@glevco glevco marked this pull request as ready for review May 3, 2024 21:13
@glevco glevco requested review from jansegre and msbrogli as code owners May 3, 2024 21:13
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from b560a03 to 3381848 Compare May 3, 2024 21:40
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from d009d7b to 4004509 Compare May 3, 2024 21:40
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch 3 times, most recently from 3381848 to 521a79c Compare May 10, 2024 01:57
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 4004509 to 410212e Compare May 10, 2024 02:09
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 521a79c to 7632012 Compare May 10, 2024 02:48
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 410212e to 1de39c3 Compare May 10, 2024 02:48
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 7632012 to d407478 Compare May 13, 2024 14:25
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 1de39c3 to a762342 Compare May 13, 2024 14:25
@glevco glevco changed the title refactor(metadata): pre-refactors for migrating feature states to static metadata [part 4] refactor(metadata): pre-refactors for migrating feature states to static metadata [part 4/12] May 13, 2024
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from d407478 to a2d0148 Compare July 16, 2024 02:12
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from a762342 to 6481706 Compare July 16, 2024 02:13
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from a2d0148 to 8b67ae8 Compare July 16, 2024 02:31
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 6481706 to 80bbcec Compare July 16, 2024 02:32
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 8b67ae8 to 3170402 Compare July 16, 2024 03:59
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 0dba3ac to bd8f15b Compare August 16, 2024 15:17
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 1d39805 to 00b7ce1 Compare August 16, 2024 18:01
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from bd8f15b to c1f6ea6 Compare August 16, 2024 18:02
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 00b7ce1 to 9e9b5a5 Compare August 19, 2024 16:29
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from c1f6ea6 to 337c665 Compare August 19, 2024 16:29
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 9e9b5a5 to 069f959 Compare August 19, 2024 19:09
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 337c665 to 30ad6a7 Compare August 19, 2024 19:09
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 069f959 to a95006a Compare August 19, 2024 19:46
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 30ad6a7 to a1b267e Compare August 19, 2024 19:46
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from a95006a to 58fdabf Compare August 22, 2024 17:35
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from a1b267e to 255b9e7 Compare August 22, 2024 17:39
msbrogli
msbrogli previously approved these changes Aug 22, 2024
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-3 branch from 58fdabf to 112d6dc Compare August 23, 2024 21:37
@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 255b9e7 to 6f86959 Compare August 23, 2024 21:39
Base automatically changed from refactor/metadata/clean-up-refactors-3 to master August 27, 2024 14:23
@glevco glevco dismissed msbrogli’s stale review August 27, 2024 14:23

The base branch was changed.

@glevco glevco force-pushed the refactor/metadata/clean-up-refactors-4 branch from 6f86959 to 927d482 Compare August 27, 2024 14:25
Copy link

🐰Bencher

ReportTue, August 27, 2024 at 14:27:26 UTC
Projecthathor-core
Branchrefactor/metadata/clean-up-refactors-4
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Lower Boundary
nanoseconds (ns) | (%)
Latency Upper Boundary
nanoseconds (ns) | (%)
sync-v2 (up to 20000 blocks)✅ (view plot)101,437,171,060.38 (-0.91%)92,136,136,566.14 (90.83%)112,610,833,580.84 (90.08%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@glevco glevco merged commit 4f80786 into master Aug 27, 2024
13 checks passed
@glevco glevco deleted the refactor/metadata/clean-up-refactors-4 branch August 27, 2024 15:14
@jansegre jansegre mentioned this pull request Oct 4, 2024
2 tasks
glevco added a commit that referenced this pull request Oct 7, 2024
…s to static metadata [part 2/2] (#1017)"

This reverts commit 4f80786.
glevco added a commit that referenced this pull request Oct 8, 2024
…s to static metadata [part 2/2] (#1017)"

This reverts commit 4f80786.
glevco added a commit that referenced this pull request Oct 10, 2024
…s to static metadata [part 2/2] (#1017)"

This reverts commit 4f80786.
glevco added a commit that referenced this pull request Oct 11, 2024
…s to static metadata [part 2/2] (#1017)"

This reverts commit 4f80786.
@jansegre jansegre mentioned this pull request Dec 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants