-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[AptosFramework] migrate forge tests #260
Conversation
✅ Deploy Preview for aptos-developer-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
345c521
to
1013197
Compare
/canary |
/canary |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4908 |
💔 Test Failed - build-test-deploy |
/canary |
/canary |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4939 |
💔 Test Failed - build-test-deploy |
💥 Tests timed-out |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4964 |
/canary |
/canary |
This PR is already being canaried |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/5023 |
☀️ Canary successful |
@@ -404,7 +400,7 @@ impl<'t, 'd> TxnEmitter<'t, 'd> { | |||
info!("Creating and minting seeds accounts"); | |||
let mut i = 0; | |||
let mut seed_accounts = vec![]; | |||
// load vasp account created by AOS directly | |||
// // load vasp account created by AOS directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops and what is this AOS thing?
@@ -536,7 +535,7 @@ impl<'t, 'd> TxnEmitter<'t, 'd> { | |||
self.accounts.len() | |||
); | |||
println!("Mint is done"); | |||
tokio::time::sleep(Duration::from_secs(60)).await; | |||
// tokio::time::sleep(Duration::from_secs(60)).await; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm?
@@ -536,7 +535,7 @@ impl<'t, 'd> TxnEmitter<'t, 'd> { | |||
self.accounts.len() | |||
); | |||
println!("Mint is done"); | |||
tokio::time::sleep(Duration::from_secs(60)).await; | |||
// tokio::time::sleep(Duration::from_secs(60)).await; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm?
@@ -39,8 +39,7 @@ const VALIDATOR_SCALING_FACTOR: i64 = 3; | |||
const UTILITIES_SCALING_FACTOR: i64 = 3; | |||
const TRUSTED_SCALING_FACTOR: i64 = 1; | |||
|
|||
// XXX: swap this out for aptos-framework eventually | |||
const GENESIS_MODULES_DIR: &str = "/aptos/move/modules"; | |||
const GENESIS_MODULES_DIR: &str = "/aptos-framework/move/modules"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
win
@@ -39,8 +39,7 @@ const VALIDATOR_SCALING_FACTOR: i64 = 3; | |||
const UTILITIES_SCALING_FACTOR: i64 = 3; | |||
const TRUSTED_SCALING_FACTOR: i64 = 1; | |||
|
|||
// XXX: swap this out for aptos-framework eventually | |||
const GENESIS_MODULES_DIR: &str = "/aptos/move/modules"; | |||
const GENESIS_MODULES_DIR: &str = "/aptos-framework/move/modules"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
win
@@ -70,7 +70,7 @@ pub async fn transfer_and_reconfig( | |||
for _ in 0..num_transfers { | |||
// Reconfigurations have a 20% chance of being executed | |||
if random::<u16>() % 5 == 0 { | |||
let diem_version = client.get_aptos_version().await.unwrap(); | |||
let diem_version = client.get_dpn_version().await.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm?
@@ -86,7 +86,7 @@ pub async fn transfer_and_reconfig( | |||
|
|||
pub async fn assert_balance(client: &RestClient, account: &LocalAccount, balance: u64) { | |||
let balances = client | |||
.get_account_balances(account.address()) | |||
.get_dpn_account_balances(account.address()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm?
@@ -86,7 +86,7 @@ pub async fn transfer_and_reconfig( | |||
|
|||
pub async fn assert_balance(client: &RestClient, account: &LocalAccount, balance: u64) { | |||
let balances = client | |||
.get_account_balances(account.address()) | |||
.get_dpn_account_balances(account.address()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this isn't forge, it is smoke test...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this isn't forge, it is smoke test...
crates/aptos-rest-client/src/lib.rs
Outdated
.await | ||
} | ||
|
||
pub async fn get_account_balances(&self, address: AccountAddress) -> Result<Response<Balance>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there aren't plural? balance
crates/aptos-rest-client/src/lib.rs
Outdated
.await | ||
} | ||
|
||
pub async fn get_account_balances(&self, address: AccountAddress) -> Result<Response<Balance>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there aren't plural? balance
/land |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/5199 |
…lexity check (aptos-labs#260) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (aptos-labs#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (aptos-labs#260) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (aptos-labs#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (aptos-labs#260) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (aptos-labs#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (#260) (#13937) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (aptos-labs#260) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (aptos-labs#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (#260) (#13935) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (aptos-labs#260) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (aptos-labs#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
…lexity check (#260) (#13936) * improve metadata check efficiency * mark normalized types as deprecated * improve module complexity check * Update timed_features.rs * Add activation time * Update feature flag name * [release-1.15] Deactivate broken package overrides (#13797) Renaming the tomls for deactivating the tests * Update timed_features.rs --------- Co-authored-by: runtianz <runtian@aptoslabs.com> Co-authored-by: Wolfgang Grieskamp <wg@aptoslabs.com>
Motivation
(Write your motivation for proposed changes here.)
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/aptos-labs/aptos-core/tree/main/developer-docs-site, and link to your PR here.)
If targeting a release branch, please fill the below out as well