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

Removing microblock test tests::epoch_25::microblocks_disabled #5895

Merged
merged 8 commits into from
Mar 24, 2025

Conversation

wileyj
Copy link
Collaborator

@wileyj wileyj commented Mar 5, 2025

This removes the consistently failing test in the CI workflow epoch-tests.yml

Since microblocks are disabled, we do also have these test that remain and can likely be removed from bitcoin-tests.yml as well:

https://github.com/stacks-network/stacks-core/blob/develop/.github/workflows/bitcoin-tests.yml#L79-L93

Incidentally, from above file - it seems like we can likely remove the older epoch tests as well.

bitcoin-tests.yml:

  • tests::neon_integrations::test_competing_miners_build_anchor_blocks_and_microblocks_on_same_chain
  • tests::neon_integrations::bad_microblock_pubkey
  • tests::neon_integrations::microblock_fork_poison_integration_test
  • tests::neon_integrations::microblock_integration_test
  • tests::neon_integrations::microblock_large_tx_integration_test_FLAKY
  • tests::neon_integrations::microblock_limit_hit_integration_test
  • tests::neon_integrations::microblock_miner_multiple_attempts
  • tests::neon_integrations::test_problematic_microblocks_are_not_mined
  • tests::neon_integrations::test_problematic_microblocks_are_not_relayed_or_stored
  • tests::neon_integrations::runtime_overflow_unconfirmed_microblocks_integration_test
  • tests::neon_integrations::size_overflow_unconfirmed_invalid_stream_microblocks_integration_test
  • tests::neon_integrations::size_overflow_unconfirmed_microblocks_integration_test
  • tests::neon_integrations::size_overflow_unconfirmed_stream_microblocks_integration_test
  • tests::epoch_25::microblocks_disabled

related: #5892
#5894

@wileyj wileyj requested a review from a team as a code owner March 5, 2025 16:32
@wileyj
Copy link
Collaborator Author

wileyj commented Mar 5, 2025

I can remove the other tests as well based on review, for now i've kept this simple to target only the specified test that is failing.

@wileyj wileyj requested a review from a team March 5, 2025 17:28
jcnelson
jcnelson previously approved these changes Mar 7, 2025
@jcnelson
Copy link
Member

jcnelson commented Mar 7, 2025

Can you also remove the test itself? We can always restore it later from git history.

@wileyj
Copy link
Collaborator Author

wileyj commented Mar 7, 2025

Can you also remove the test itself? We can always restore it later from git history.

I can - any preference on the other tests I've listed? quite happy to remove them as well (or a subset of them)

@wileyj wileyj requested a review from a team as a code owner March 12, 2025 13:22
@wileyj wileyj added this to the 3.1.0.0.8 milestone Mar 12, 2025
@wileyj wileyj added testing chore Necessary but less impactful tasks such as cleanup or reorg labels Mar 12, 2025
@aldur aldur requested a review from obycode March 12, 2025 15:45
@wileyj
Copy link
Collaborator Author

wileyj commented Mar 12, 2025

Removed all listed microblock tests, with the addition of tests::epoch_205::bigger_microblock_streams_in_2_05

obycode
obycode previously approved these changes Mar 13, 2025
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

LGTM!

@obycode
Copy link
Contributor

obycode commented Mar 13, 2025

Can you also remove make_signed_microblock and clean up some unused imports?

@obycode
Copy link
Contributor

obycode commented Mar 13, 2025

and make_mblock_tx_chain

obycode
obycode previously approved these changes Mar 14, 2025
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

👍

@wileyj
Copy link
Collaborator Author

wileyj commented Mar 14, 2025

latest commits ended up removing these tests:

chainstate::stacks::db::transactions::test::process_poison_microblock_same_block
chainstate::stacks::db::transactions::test::process_poison_microblock_multiple_same_block
chainstate::stacks::db::transactions::test::process_poison_microblock_invalid_transaction
tests::neon_integrations::microblock_fork_poison_integration_test

edit: reverted in f4f234b and 500c434

Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

We should keep the unit tests because we need to retain the ability to process poison microblock transactions (there are many in the chain history). But it's fine to drop the integration tests.

@aldur aldur requested a review from jcnelson March 24, 2025 16:11
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

LGTM

@wileyj wileyj added this pull request to the merge queue Mar 24, 2025
Merged via the queue into stacks-network:develop with commit 3a8bb6d Mar 24, 2025
189 of 192 checks passed
@wileyj wileyj deleted the chore/remove_epoch_test branch March 24, 2025 19:31
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.82%. Comparing base (376ed5a) to head (6b9771d).
Report is 3736 commits behind head on develop.

❌ Your project status has failed because the head coverage (78.82%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5895      +/-   ##
===========================================
- Coverage    81.19%   78.82%   -2.38%     
===========================================
  Files          490      520      +30     
  Lines       351570   379606   +28036     
  Branches       323      323              
===========================================
+ Hits        285460   299219   +13759     
- Misses       66102    80379   +14277     
  Partials         8        8              
Files with missing lines Coverage Δ
testnet/stacks-node/src/tests/epoch_205.rs 0.00% <ø> (ø)
testnet/stacks-node/src/tests/mod.rs 89.09% <ø> (-0.89%) ⬇️
testnet/stacks-node/src/tests/neon_integrations.rs 59.78% <ø> (-11.88%) ⬇️

... and 412 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5f0ed8...6b9771d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Necessary but less impactful tasks such as cleanup or reorg testing
Projects
Status: Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants