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

[AptosFramework] migrate forge tests #260

Merged
merged 1 commit into from
Mar 22, 2022
Merged

Conversation

zekun000
Copy link
Contributor

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

  • Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
  • Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
  • Why we must have it for the release.
  • What workarounds and alternative we have if we do not push the PR.

@netlify
Copy link

netlify bot commented Mar 21, 2022

Deploy Preview for aptos-developer-docs ready!

Name Link
🔨 Latest commit 1de250f
🔍 Latest deploy log https://app.netlify.com/sites/aptos-developer-docs/deploys/623a21299c8c090009170444
😎 Deploy Preview https://deploy-preview-260--aptos-developer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@zekun000 zekun000 force-pushed the framework branch 2 times, most recently from 345c521 to 1013197 Compare March 21, 2022 16:55
@zekun000
Copy link
Contributor Author

/canary

@zekun000
Copy link
Contributor Author

/canary

@aptos-bot
Copy link
Contributor

Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4908
Forge Test Result: all up : 1982 TPS, 2205 ms latency, 3050 ms p99 latency,no expired txns

@aptos-bot
Copy link
Contributor

💔 Test Failed - build-test-deploy

@zekun000
Copy link
Contributor Author

/canary

@zekun000
Copy link
Contributor Author

/canary

@zekun000 zekun000 requested a review from davidiw March 21, 2022 18:28
@aptos-bot
Copy link
Contributor

Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4939
Forge Test Result: all up : 2006 TPS, 2177 ms latency, 2950 ms p99 latency,no expired txns

@aptos-bot
Copy link
Contributor

💔 Test Failed - build-test-deploy

@aptos-bot
Copy link
Contributor

💥 Tests timed-out

@aptos-bot
Copy link
Contributor

Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4964
Forge Test Result: ``

@zekun000
Copy link
Contributor Author

/canary

aptos-bot pushed a commit that referenced this pull request Mar 21, 2022
@zekun000
Copy link
Contributor Author

/canary

@aptos-bot
Copy link
Contributor

This PR is already being canaried

@aptos-bot
Copy link
Contributor

Forge run: https://circleci.com/gh/aptos-labs/aptos-core/5023
Forge Test Result: all up : 1945 TPS, 2259 ms latency, 3200 ms p99 latency,no expired txns

@aptos-bot
Copy link
Contributor

☀️ 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
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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";
Copy link
Contributor

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";
Copy link
Contributor

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();
Copy link
Contributor

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())
Copy link
Contributor

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())
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm?

Copy link
Contributor

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

Copy link
Contributor

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

.await
}

pub async fn get_account_balances(&self, address: AccountAddress) -> Result<Response<Balance>> {
Copy link
Contributor

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

.await
}

pub async fn get_account_balances(&self, address: AccountAddress) -> Result<Response<Balance>> {
Copy link
Contributor

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

@zekun000
Copy link
Contributor Author

/land

@aptos-bot
Copy link
Contributor

Forge run: https://circleci.com/gh/aptos-labs/aptos-core/5199
Forge Test Result: all up : 1967 TPS, 2218 ms latency, 3050 ms p99 latency,no expired txns

@aptos-bot aptos-bot closed this in 1de250f Mar 22, 2022
@aptos-bot aptos-bot merged commit 1de250f into aptos-labs:main Mar 22, 2022
vgao1996 added a commit to vgao1996/aptos-core that referenced this pull request Jul 8, 2024
…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>
vgao1996 added a commit to vgao1996/aptos-core that referenced this pull request Jul 8, 2024
…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>
vgao1996 added a commit to vgao1996/aptos-core that referenced this pull request Jul 8, 2024
…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>
sherry-x pushed a commit that referenced this pull request Jul 8, 2024
…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>
vgao1996 added a commit to vgao1996/aptos-core that referenced this pull request Jul 8, 2024
…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>
vgao1996 added a commit that referenced this pull request Jul 8, 2024
…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>
vgao1996 added a commit to vgao1996/aptos-core that referenced this pull request Jul 8, 2024
…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>
sherry-x pushed a commit that referenced this pull request Jul 8, 2024
…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>
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