Skip to content

Test legacy relayed V1 & V2 before and after de-activation. Removed some dead code, as well.#138

Merged
andreibancioiu merged 9 commits intomainfrom
update-system-tests-09
Sep 15, 2025
Merged

Test legacy relayed V1 & V2 before and after de-activation. Removed some dead code, as well.#138
andreibancioiu merged 9 commits intomainfrom
update-system-tests-09

Conversation

@andreibancioiu
Copy link
Collaborator

@andreibancioiu andreibancioiu commented Sep 11, 2025

No actual change in production code - not necessary for the de-activation of legacy relayed transactions (V1 and V2).

@andreibancioiu andreibancioiu self-assigned this Sep 11, 2025
@codecov
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.68%. Comparing base (4e79ee2) to head (26e46e5).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   61.65%   61.68%   +0.03%     
==========================================
  Files          48       48              
  Lines        3792     3769      -23     
==========================================
- Hits         2338     2325      -13     
+ Misses       1302     1292      -10     
  Partials      152      152              

☔ 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.

@andreibancioiu andreibancioiu marked this pull request as ready for review September 11, 2025 11:19
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 dead code and tests for legacy relayed V1 & V2 transactions both before and after their de-activation. The primary purpose is to clean up deprecated functionality while adding test coverage for the deactivation behavior of relayed transaction versions V1 and V2.

  • Adds a new run-for-relayed-v1-v2 command to test legacy relayed transactions before and after deactivation
  • Removes deprecated activation epoch tracking and related dead code
  • Updates version to v0.8.0 and infrastructure configuration for testing

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
version/constants.go Updates middleware version to v0.8.0
testscommon/networkProviderMock.go Removes deprecated activation epoch fields and related methods
systemtests/localnet.toml Updates configuration for testing with longer epoch duration and newer software versions
systemtests/generate_testdata_on_network.py Adds new command to test legacy relayed V1/V2 transactions and refactors existing transaction generation
systemtests/config.py Replaces activation epoch fields with custom tokens completion and deactivation epochs
systemtests/check_with_mesh_cli.py Removes deprecated activation epoch command line parameter
server/services/*_test.go Removes deprecated activation epoch mock setup
server/services/transactionsFeaturesDetector.go Removes unused method for detecting legacy relayed V1 transactions
server/services/interface.go Removes deprecated IsReleaseSpicaActive method
server/provider/networkProvider.go Removes Spica activation epoch tracking and related functionality
server/factory/*.go Removes activation epoch parameters from factory interfaces
requirements-dev.txt Updates SDK version and adds deprecation note
cmd/rosetta/*.go Removes activation epoch CLI flag and related functionality
README.md Adds documentation for new test command

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

return withSendingValueToNonPayableContract || withMetaTransactionIsInvalid
}

func (detector *transactionsFeaturesDetector) isRelayedV1TransactionCompletelyIntrashardWithSignalError(tx *transaction.ApiTransactionResult, innerTx *innerTransactionOfRelayedV1) bool {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dead code.

gas_limit=5_000_000,
relayer=accounts.get_user(shard=SOME_SHARD, index=0),
), await_processing_started=True)
if configuration.generate_relayed_v3:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only added if configuration.generate_relayed_v3:. Here and below.

@andreibancioiu andreibancioiu merged commit 998fdc2 into main Sep 15, 2025
9 checks passed
@andreibancioiu andreibancioiu deleted the update-system-tests-09 branch September 15, 2025 11:39
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

Comments