Skip to content

Commit

Permalink
Debug info system cpu/mem load while running e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed May 2, 2024
1 parent 6cc924d commit 9518b27
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ UPLOAD_LOGS:
# Define e2e tests
e2e-tests:
FROM ../+end-to-end
RUN yarn test ./src/e2e
RUN yarn test ./src/e2e & pid=$!; while [ -d /proc/$pid ]; do uptime && free -h; sleep 10; done; wait $pid

flakey-e2e-tests:
FROM ../+end-to-end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('e2e_blacklist_token_contract mint', () => {
await t.setup();
// Have to destructure again to ensure we have latest refs.
({ asset, tokenSim, wallets, blacklisted } = t);
}, 200_000);
});

afterAll(async () => {
await t.teardown();
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/src/e2e_lending_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('e2e_lending_contract', () => {
new TokenSimulator(collateralAsset, logger, [lendingContract.address, wallet.getAddress()]),
new TokenSimulator(stableCoin, logger, [lendingContract.address, wallet.getAddress()]),
);
}, 200_000);
});

afterAll(() => teardown());

Expand Down
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/src/e2e_ordering.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('e2e_ordering', () => {

beforeEach(async () => {
({ teardown, pxe, wallet } = await setup());
}, 200_000);
});

afterEach(() => teardown());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('e2e_public_cross_chain_messaging deposits', () => {
ownerAddress = crossChainTestHarness.ownerAddress;
l2Bridge = crossChainTestHarness.l2Bridge;
l2Token = crossChainTestHarness.l2Token;
}, 200_000);
});

afterEach(async () => {
await t.teardown();
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('e2e_public_cross_chain_messaging deposits', () => {
siblingPath,
);
expect(await crossChainTestHarness.getL1BalanceOf(ethAccount)).toBe(l1TokenBalance - bridgeAmount + withdrawAmount);
}, 120_000);
});
// docs:end:e2e_public_cross_chain

it('Someone else can mint funds to me on my behalf (publicly)', async () => {
Expand Down Expand Up @@ -157,5 +157,5 @@ describe('e2e_public_cross_chain_messaging deposits', () => {
// ensure funds are gone to owner and not user2.
await crossChainTestHarness.expectPublicBalanceOnL2(ownerAddress, bridgeAmount);
await crossChainTestHarness.expectPublicBalanceOnL2(user2Wallet.getAddress(), 0n);
}, 90_000);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('e2e_public_cross_chain_messaging failures', () => {
({ crossChainTestHarness, user1Wallet, user2Wallet } = t);
ethAccount = crossChainTestHarness.ethAccount;
l2Bridge = crossChainTestHarness.l2Bridge;
}, 200_000);
});

afterAll(async () => {
await t.teardown();
Expand All @@ -36,7 +36,7 @@ describe('e2e_public_cross_chain_messaging failures', () => {
.methods.exit_to_l1_public(ethAccount, withdrawAmount, EthAddress.ZERO, nonce)
.prove(),
).rejects.toThrow('Assertion failed: Message not authorized by account');
}, 60_000);
});

it("can't claim funds privately which were intended for public deposit from the token portal", async () => {
const bridgeAmount = 100n;
Expand Down Expand Up @@ -64,5 +64,5 @@ describe('e2e_public_cross_chain_messaging failures', () => {
await expect(
l2Bridge.withWallet(user2Wallet).methods.claim_private(secretHash, bridgeAmount, secret).prove(),
).rejects.toThrow(`No non-nullified L1 to L2 message found for message hash ${wrongMessage.hash().toString()}`);
}, 60_000);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('e2e_public_cross_chain_messaging l1_to_l2', () => {

aztecNode = crossChainTestHarness.aztecNode;
inbox = crossChainTestHarness.inbox;
}, 200_000);
});

afterAll(async () => {
await t.teardown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('e2e_public_cross_chain_messaging l2_to_l1', () => {
aztecNode = crossChainTestHarness.aztecNode;

outbox = crossChainTestHarness.outbox;
}, 200_000);
});

afterAll(async () => {
await t.teardown();
Expand Down

0 comments on commit 9518b27

Please sign in to comment.