From d1f4297a14050e54f222bdea46362a7cfad144c1 Mon Sep 17 00:00:00 2001 From: AztecBot Date: Fri, 27 Feb 2026 09:46:11 +0000 Subject: [PATCH] fix: increase minFeePadding in e2e_bot bridge resume tests to prevent flaky gas fee failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gas fees can escalate >10x during rapid block building in the test environment. The previous 10x padding (minFeePadding: 9) was insufficient — the failing test saw fees rise ~13.4x between estimation and processing. Increased to 100x (minFeePadding: 99) for both bridge resume tests, with the second test being especially susceptible because changing salt triggers additional bridge operations. --- yarn-project/end-to-end/src/e2e_bot.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_bot.test.ts b/yarn-project/end-to-end/src/e2e_bot.test.ts index 00c5b06e16c3..78a1f6affff9 100644 --- a/yarn-project/end-to-end/src/e2e_bot.test.ts +++ b/yarn-project/end-to-end/src/e2e_bot.test.ts @@ -134,8 +134,9 @@ describe('e2e_bot', () => { // TODO: this should be taken from the `setup` call above l1Mnemonic: new SecretValue('test test test test test test test test test test test junk'), flushSetupTransactions: true, - // Increase fee headroom to handle fee volatility from rapid block building in tests - minFeePadding: 9, + // Increase fee headroom to handle fee volatility from rapid block building in tests. + // Fees can escalate >10x due to blocks built by earlier tests and bridge operations. + minFeePadding: 99, }; { @@ -174,8 +175,10 @@ describe('e2e_bot', () => { // TODO: this should be taken from the `setup` call above l1Mnemonic: new SecretValue('test test test test test test test test test test test junk'), flushSetupTransactions: true, - // Increase fee headroom to handle fee volatility from rapid block building in tests - minFeePadding: 9, + // Increase fee headroom to handle fee volatility from rapid block building in tests. + // This test is especially susceptible because changing salt triggers a new bridge claim, + // adding more block building on top of what earlier tests already produced. + minFeePadding: 99, }; {