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

Remove the "remove_error_details" change #15331

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

areshand
Copy link
Contributor

@areshand areshand commented Nov 20, 2024

Description

withdrew this change due to negative ecosystem impact after the discussion

How Has This Been Tested?

Existing tests

Key Areas to Review

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Full Node (API, Indexer, etc.)
  • Move/Aptos Virtual Machine
  • Aptos Framework
  • Aptos CLI/SDK
  • Developer Infrastructure
  • Move Compiler
  • Other (specify)

Checklist

  • I have read and followed the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I identified and added all stakeholders and component owners affected by this change as reviewers
  • I tested both happy and unhappy path of the functionality
  • I have made corresponding changes to the documentation

Copy link

trunk-io bot commented Nov 20, 2024

⏱️ 8h 49m total CI duration on this PR
Slowest 15 Jobs Cumulative Duration Recent Runs
execution-performance / single-node-performance 3h 19m 🟥🟩🟩🟩🟩 (+4 more)
test-target-determinator 41m 🟩🟩🟩🟩🟩 (+4 more)
execution-performance / test-target-determinator 39m 🟩🟩🟩🟩🟩 (+4 more)
check 33m 🟩🟩🟩🟩🟩 (+4 more)
rust-cargo-deny 22m 🟩🟩🟩🟩🟩 (+8 more)
fetch-last-released-docker-image-tag 15m 🟩🟩🟩🟩🟩 (+4 more)
rust-move-tests 14m 🟥🟥
check-dynamic-deps 13m 🟩🟩🟩🟩🟩 (+8 more)
rust-move-tests 12m 🟩
rust-move-tests 12m 🟩
rust-move-tests 9m 🟥
rust-move-tests 8m 🟥
rust-move-tests 8m 🟥
rust-move-tests 7m 🟥
rust-move-tests 7m 🟥

🚨 1 job on the last run was significantly faster/slower than expected

Job Duration vs 7d avg Delta
execution-performance / single-node-performance 26m 16m +57%

settingsfeedbackdocs ⋅ learn more about trunk.io

@areshand areshand requested review from msmouse and grao1991 November 20, 2024 17:31
@areshand areshand force-pushed the deprecate_related_changes branch from 6257556 to 86056a3 Compare November 21, 2024 18:23
@areshand areshand changed the title Remove error detail from default feature list Remove the "remove_error_details" change Nov 21, 2024
@areshand areshand force-pushed the deprecate_related_changes branch 2 times, most recently from 632487e to 0f9c1d0 Compare November 21, 2024 19:10
@areshand areshand enabled auto-merge (rebase) November 21, 2024 19:11

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@@ -489,6 +483,7 @@ impl AptosDB {
Ok(root_hash)
}

#[allow(dead_code)]
Copy link

Choose a reason for hiding this comment

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

The #[allow(dead_code)] annotation appears incorrect since commit_transaction_auxiliary_data() is called in the commit_chunk_impl() method. Consider removing this annotation or documenting why this function appears unused if there are special circumstances around its usage pattern.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

types/src/transaction/mod.rs Outdated Show resolved Hide resolved
@@ -163,7 +163,6 @@ impl FeatureFlag {
FeatureFlag::COIN_TO_FUNGIBLE_ASSET_MIGRATION,
FeatureFlag::OBJECT_NATIVE_DERIVED_ADDRESS,
FeatureFlag::DISPATCHABLE_FUNGIBLE_ASSET,
FeatureFlag::REMOVE_DETAILED_ERROR_FROM_HASH,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also remove is_remove_detailed_error_from_hash_enabled? Also we can rename the feature flag to indicate this is unused?

Copy link
Contributor Author

@areshand areshand Nov 23, 2024

Choose a reason for hiding this comment

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

we probably shouldn't remove feature and thus its corresponding functions. I added a comment to indicate this feature is not used.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think you can just call the feature flag as _DEPRECATED_... - we already have this for transaction fees and DKG feature flags. Better than the comment because it is explicitly deprecated. I would still prefer to remove is_remove_detailed_error_from_hash_enabled because if feature is removed, it should not have public APIs

types/src/transaction/mod.rs Outdated Show resolved Hide resolved
aptos-move/aptos-vm/src/aptos_vm.rs Show resolved Hide resolved
@georgemitenkov georgemitenkov self-requested a review November 21, 2024 23:45
Copy link
Contributor

@georgemitenkov georgemitenkov left a comment

Choose a reason for hiding this comment

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

Approved by mistake, want to comment only😄 requesting changes to override

@areshand areshand force-pushed the deprecate_related_changes branch from feb912b to 4ce2b13 Compare December 2, 2024 21:09

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@areshand
Copy link
Contributor Author

areshand commented Dec 3, 2024

@msmouse pls take a look when you have time

@@ -285,7 +285,9 @@ impl From<FeatureFlag> for AptosFeatureFlag {
FeatureFlag::ReconfigureWithDkg => AptosFeatureFlag::_DEPRECATED_RECONFIGURE_WITH_DKG,
FeatureFlag::KeylessAccounts => AptosFeatureFlag::KEYLESS_ACCOUNTS,
FeatureFlag::KeylessButZklessAccounts => AptosFeatureFlag::KEYLESS_BUT_ZKLESS_ACCOUNTS,
FeatureFlag::RemoveDetailedError => AptosFeatureFlag::REMOVE_DETAILED_ERROR_FROM_HASH,
FeatureFlag::RemoveDetailedError => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be renamed to _deprecated_XX as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

execution/executor-benchmark/src/lib.rs Outdated Show resolved Hide resolved
@areshand areshand force-pushed the deprecate_related_changes branch 2 times, most recently from e240b67 to 9af7ac8 Compare December 3, 2024 23:06
@areshand areshand requested a review from msmouse December 3, 2024 23:06

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@areshand areshand force-pushed the deprecate_related_changes branch from 9af7ac8 to 508aafd Compare December 4, 2024 03:40
@areshand areshand force-pushed the deprecate_related_changes branch from 508aafd to f4ab996 Compare December 4, 2024 03:46

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Dec 4, 2024

✅ Forge suite realistic_env_max_load success on f4ab996adc6700c272ec148ba32e35b3c6c03f91

two traffics test: inner traffic : committed: 14166.82 txn/s, latency: 2804.76 ms, (p50: 2700 ms, p70: 2700, p90: 3000 ms, p99: 3300 ms), latency samples: 5386540
two traffics test : committed: 100.07 txn/s, latency: 2105.32 ms, (p50: 1600 ms, p70: 2000, p90: 2200 ms, p99: 15900 ms), latency samples: 1800
Latency breakdown for phase 0: ["MempoolToBlockCreation: max: 2.140, avg: 1.280", "ConsensusProposalToOrdered: max: 0.328, avg: 0.292", "ConsensusOrderedToCommit: max: 0.375, avg: 0.362", "ConsensusProposalToCommit: max: 0.663, avg: 0.654"]
Max non-epoch-change gap was: 0 rounds at version 0 (avg 0.00) [limit 4], 1.09s no progress at version 2235205 (avg 0.20s) [limit 15].
Max epoch-change gap was: 0 rounds at version 0 (avg 0.00) [limit 4], 15.69s no progress at version 2235203 (avg 15.69s) [limit 16].
Test Ok

Copy link
Contributor

github-actions bot commented Dec 4, 2024

✅ Forge suite compat success on 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91

Compatibility test results for 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91 (PR)
1. Check liveness of validators at old version: 3527aa2e299553b759c515d9843586bad48c802c
compatibility::simple-validator-upgrade::liveness-check : committed: 13956.60 txn/s, latency: 2271.06 ms, (p50: 2000 ms, p70: 2100, p90: 2700 ms, p99: 8600 ms), latency samples: 545000
2. Upgrading first Validator to new version: f4ab996adc6700c272ec148ba32e35b3c6c03f91
compatibility::simple-validator-upgrade::single-validator-upgrading : committed: 6628.23 txn/s, latency: 4339.22 ms, (p50: 4900 ms, p70: 5200, p90: 5300 ms, p99: 5400 ms), latency samples: 122740
compatibility::simple-validator-upgrade::single-validator-upgrade : committed: 6145.90 txn/s, latency: 5242.60 ms, (p50: 5400 ms, p70: 5500, p90: 7100 ms, p99: 7400 ms), latency samples: 210100
3. Upgrading rest of first batch to new version: f4ab996adc6700c272ec148ba32e35b3c6c03f91
compatibility::simple-validator-upgrade::half-validator-upgrading : committed: 7329.80 txn/s, latency: 3896.38 ms, (p50: 4400 ms, p70: 4600, p90: 4700 ms, p99: 4800 ms), latency samples: 136960
compatibility::simple-validator-upgrade::half-validator-upgrade : committed: 6810.44 txn/s, latency: 4785.41 ms, (p50: 4800 ms, p70: 4800, p90: 6900 ms, p99: 7300 ms), latency samples: 253660
4. upgrading second batch to new version: f4ab996adc6700c272ec148ba32e35b3c6c03f91
compatibility::simple-validator-upgrade::rest-validator-upgrading : committed: 10297.91 txn/s, latency: 2689.14 ms, (p50: 2800 ms, p70: 3200, p90: 3600 ms, p99: 3800 ms), latency samples: 181480
compatibility::simple-validator-upgrade::rest-validator-upgrade : committed: 10211.18 txn/s, latency: 3094.05 ms, (p50: 2800 ms, p70: 3300, p90: 5100 ms, p99: 6000 ms), latency samples: 333560
5. check swarm health
Compatibility test for 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91 passed
Test Ok

Copy link
Contributor

github-actions bot commented Dec 4, 2024

✅ Forge suite framework_upgrade success on 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91

Compatibility test results for 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91 (PR)
Upgrade the nodes to version: f4ab996adc6700c272ec148ba32e35b3c6c03f91
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1364.80 txn/s, submitted: 1368.34 txn/s, failed submission: 3.54 txn/s, expired: 3.54 txn/s, latency: 2201.34 ms, (p50: 1800 ms, p70: 2300, p90: 3600 ms, p99: 4700 ms), latency samples: 123420
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1335.08 txn/s, submitted: 1337.97 txn/s, failed submission: 2.90 txn/s, expired: 2.90 txn/s, latency: 2174.10 ms, (p50: 2100 ms, p70: 2400, p90: 3600 ms, p99: 4800 ms), latency samples: 119840
5. check swarm health
Compatibility test for 3527aa2e299553b759c515d9843586bad48c802c ==> f4ab996adc6700c272ec148ba32e35b3c6c03f91 passed
Upgrade the remaining nodes to version: f4ab996adc6700c272ec148ba32e35b3c6c03f91
framework_upgrade::framework-upgrade::full-framework-upgrade : committed: 1439.42 txn/s, submitted: 1441.68 txn/s, failed submission: 2.26 txn/s, expired: 2.26 txn/s, latency: 2263.64 ms, (p50: 2100 ms, p70: 2400, p90: 3600 ms, p99: 5400 ms), latency samples: 127520
Test Ok

@areshand areshand merged commit 7f1f7df into main Dec 4, 2024
48 checks passed
@areshand areshand deleted the deprecate_related_changes branch December 4, 2024 04:18
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