Skip to content

Drop legacy logic that handles special, exotic transactions / circumstances in the pre-Sirius era#134

Merged
andreibancioiu merged 5 commits intomainfrom
update-07-09
Jul 9, 2025
Merged

Drop legacy logic that handles special, exotic transactions / circumstances in the pre-Sirius era#134
andreibancioiu merged 5 commits intomainfrom
update-07-09

Conversation

@andreibancioiu
Copy link
Collaborator

@andreibancioiu andreibancioiu commented Jul 9, 2025

  • Drop legacy logic that handles special, exotic circumstances / transactions of the pre-Sirius era (more than 1.5 years ago). Older transactions of these exotic kinds aren't of interest in regular production flows.
  • Deprecated CLI argument activation-epoch-sirius.
  • Bump version
  • Slightly optimize some workflows (less running time)

@andreibancioiu andreibancioiu self-assigned this Jul 9, 2025
@andreibancioiu andreibancioiu marked this pull request as ready for review July 9, 2025 08:12
@codecov
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.64%. Comparing base (0ee159d) to head (bc2a38b).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
- Coverage   61.90%   61.64%   -0.26%     
==========================================
  Files          48       48              
  Lines        3843     3791      -52     
==========================================
- Hits         2379     2337      -42     
+ Misses       1310     1302       -8     
+ Partials      154      152       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

// However, since the value remains at the sender, we don't emit any operations in these circumstances.
transfersValue = transfersValue && !transformer.featuresDetector.isContractDeploymentWithSignalErrorOrIntrashardContractCallWithSignalError(tx)
}
// Special handling of:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already active, for more than 1.5 years. Older transactions of this exotic kind aren't of interest in regular production flows.

// - https://github.com/multiversx/mx-chain-rosetta/pull/81/files
// - https://console.cloud.google.com/bigquery?sq=667383445384:bfeb7de9aeec453192612ddc7fa9d94e
func (transformer *transactionsTransformer) extractInnerTxOperationsIfBeforeSiriusRelayedCompletelyIntrashardWithSignalError(tx *transaction.ApiTransactionResult) ([]*types.Operation, error) {
if transformer.provider.IsReleaseSiriusActive(tx.Epoch) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already active, for more than 1.5 years. Older transactions of this exotic kind aren't of interest in regular production flows.

@andreibancioiu andreibancioiu changed the title Drop legacy logic that handles of special, exotic circumstances of the pre-Sirius era Drop legacy logic that handles special, exotic transactions / circumstances of the pre-Sirius era Jul 9, 2025
@andreibancioiu andreibancioiu changed the title Drop legacy logic that handles special, exotic transactions / circumstances of the pre-Sirius era Drop legacy logic that handles special, exotic transactions / circumstances in the pre-Sirius era Jul 9, 2025
@andreibancioiu andreibancioiu requested a review from Copilot July 9, 2025 10:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes all legacy handling of pre-Sirius special transactions, deprecates the activation-epoch-sirius CLI flag, bumps the version, and shortens some system test runs to optimize workflow times.

  • Dropped activation-epoch-sirius fields, methods, CLI flags, and related legacy code/tests.
  • Updated RosettaMiddlewareVersion to v0.7.0.
  • Reduced block counts in system test workflows for faster execution.

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
version/constants.go Bumped RosettaMiddlewareVersion to v0.7.0
systemtests/generate_testdata_on_network.py Removed deprecated wait_until_epoch call
systemtests/config.py Removed activation_epoch_sirius configuration field
systemtests/check_with_mesh_cli.py Dropped --activation-epoch-sirius flag usage
server/services/transactionsTransformer.go Removed legacy inner-tx extraction and pre-Sirius guard
server/services/transactionsTransformer_test.go Deleted pre-Sirius relay tests and updated test name
server/services/transactionEventsController.go Removed pre-Sirius guard from extractEventTransferValueOnly
server/services/transactionEventsController_test.go Deleted pre-Sirius transferValueOnly test
server/services/interface.go Removed IsReleaseSiriusActive from the interface
server/provider/networkProvider.go Dropped activationEpochSirius field, argument, and method
server/factory/provider.go Removed ActivationEpochSirius constructor argument
server/factory/interface.go Removed IsReleaseSiriusActive from factory interface
cmd/rosetta/main.go No longer passes activation-epoch-sirius to provider
cmd/rosetta/cli.go Deprecated and zeroed out activation-epoch-sirius flag
.github/workflows/regularly_check_mainnet.yml Reduced --num-blocks from 5000 to 3000
.github/workflows/regularly_check_devnet.yml Reduced --num-blocks from 3000 to 2000

Usage: "Deprecated (not used anymore).",
Required: false,
Value: 1265,
Value: 0,
Copy link

Copilot AI Jul 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Since this flag is fully deprecated and no longer used, consider removing it entirely or at least marking it as Hidden (e.g., Hidden: true) to keep the CLI help clean.

Suggested change
Value: 0,
Value: 0,
Hidden: true,

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

@andreibancioiu andreibancioiu Jul 9, 2025

Choose a reason for hiding this comment

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

Marked as hidden 👍 (will be dropped at a later time, after we alter "mx-chain-rosetta-docker").

sstanculeanu
sstanculeanu previously approved these changes Jul 9, 2025
danidrasovean
danidrasovean previously approved these changes Jul 9, 2025
@andreibancioiu andreibancioiu dismissed stale reviews from danidrasovean and sstanculeanu via bc2a38b July 9, 2025 10:32
@andreibancioiu andreibancioiu merged commit 7573686 into main Jul 9, 2025
7 checks passed
@andreibancioiu andreibancioiu deleted the update-07-09 branch July 9, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants