From 530639484033a968a5546807d10f50b5fc8e620b Mon Sep 17 00:00:00 2001 From: Adel Golghalyani Date: Fri, 24 Jan 2025 09:53:55 +0100 Subject: [PATCH] ci-skip-rust update ci --- .github/workflows/check-code.yml | 19 +- .../__snapshots__/index.test.ts.snap | 83 +--- .../tests/xcm/initiateWithdrawAsset/config.ts | 55 --- .../__snapshots__/index.test.ts.snap | 357 ------------------ .../xcm/limitedReserveTransfer/config.ts | 94 ----- .../chopsticks/src/vitest.config.ts | 6 +- 6 files changed, 21 insertions(+), 593 deletions(-) delete mode 100644 integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/__snapshots__/index.test.ts.snap diff --git a/.github/workflows/check-code.yml b/.github/workflows/check-code.yml index a855081d2..cfa995080 100644 --- a/.github/workflows/check-code.yml +++ b/.github/workflows/check-code.yml @@ -132,12 +132,15 @@ jobs: env: working-dir: ./integration-tests/chopsticks CI: true - PEREGRINE_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm SPIRITNET_BLOCK_NUMBER: 7850499 HYDRATION_BLOCK_NUMBER: 5235787 POLKADOT_BLOCK_NUMBER: 21010819 ASSETHUB_BLOCK_NUMBER: 7934113 SPIRITNET_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm + PEREGRINE_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm + + # Configured by the Docker image. We can't change this unless the image does it. + CARGO_HOME: /usr/local/cargo defaults: run: @@ -154,6 +157,18 @@ jobs: with: tool-cache: true + - name: Set up Cargo cache + uses: actions/cache@v4 + with: + # These paths are mounted inside the Docker container. + # We cannot mount the `.cargo/bin` folder since the container already contains binaries, and overriding with an empty one breaks compilation. + path: | + ~/.cargo/registry/index + ~/.cargo/registry/cache + ~/.cargo/git/db + key: ${{ github.job }}-${{ github.ref }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.lock') }} + save-always: true + - name: Setup environment uses: actions/setup-node@v4 with: @@ -181,7 +196,7 @@ jobs: save-always: true - name: Build Peregrine runtime - run: cargo build -p peregrine-runtime + run: cargo build -p peregrine-runtime --no-default-features --target wasm32-unknown-unknown - name: Run Chopsticks tests run: yarn test diff --git a/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/__snapshots__/index.test.ts.snap b/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/__snapshots__/index.test.ts.snap index 3f013fcfc..294edfb3b 100644 --- a/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/__snapshots__/index.test.ts.snap +++ b/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/__snapshots__/index.test.ts.snap @@ -1,52 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events "messageQueue" 1`] = ` -[ - { - "data": { - "id": "(hash)", - "origin": { - "Sibling": "(rounded 2000)", - }, - "success": true, - "weightUsed": { - "proofSize": 0, - "refTime": 800000000, - }, - }, - "method": "Processed", - "section": "messageQueue", - }, -] -`; - -exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"balances","method":"Burned"} 1`] = ` -[ - { - "data": { - "amount": 1000000000000000, - "who": "4qXPdpioJ6D8cgdeYXaukV2Y2oAQUHaX1VnGhdbSRqJn2CBt", - }, - "method": "Burned", - "section": "balances", - }, -] -`; - -exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"balances","method":"Minted"} 1`] = ` -[ - { - "data": { - "amount": "(rounded 1000000000000000)", - "who": "4rsmbFBYpVmWE2LHRsSZKxf22a8cbJLxMZqvVGkGkSDmDBcr", - }, - "method": "Minted", - "section": "balances", - }, -] -`; - -exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"system","method":"NewAccount"} 1`] = ` +exports[`Withdraw Asset > Hydration -> KILT DEV > receiver events {"section":"system","method":"NewAccount"} 1`] = ` [ { "data": { @@ -58,41 +12,6 @@ exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section ] `; -exports[`Withdraw Asset > Hydration -> KILT at Block > sender events "xcmpQueue" 1`] = ` -[ - { - "data": { - "messageHash": "(hash)", - }, - "method": "XcmpMessageSent", - "section": "xcmpQueue", - }, -] -`; - -exports[`Withdraw Asset > Hydration -> KILT at Block > sender events {"section":"currencies","method":"Withdrawn"} 1`] = ` -[ - { - "data": { - "amount": "(rounded 500000000000)", - "currencyId": 0, - "who": "7NL1GYCJu8cFSnWBLwET2X3fMdodw8T75zuxi59hA2bhdjQq", - }, - "method": "Withdrawn", - "section": "currencies", - }, - { - "data": { - "amount": 1000000000000000, - "currencyId": "(rounded 30)", - "who": "7NL1GYCJu8cFSnWBLwET2X3fMdodw8T75zuxi59hA2bhdjQq", - }, - "method": "Withdrawn", - "section": "currencies", - }, -] -`; - exports[`Withdraw Asset > Hydration -> KILT live > receiver events {"section":"system","method":"NewAccount"} 1`] = ` [ { diff --git a/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/config.ts b/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/config.ts index 7af035d2c..a5e1c5ab5 100644 --- a/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/config.ts +++ b/integration-tests/chopsticks/src/tests/xcm/initiateWithdrawAsset/config.ts @@ -126,59 +126,4 @@ export const testPairsWithdrawAssets: WithdrawAssetTestConfiguration[] = [ receiver: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains, }, }, - - { - config: { - desc: 'Hydration -> KILT at Block', - precision: BigInt(99), - network: { - relay: mainChains.polkadot.getConfig({ - blockNumber: mainChains.polkadot.parameters.blockNumber, - }), - // sender, receiver - parachains: [mainChains.hydration.getConfig({}), mainChains.kilt.getConfig({})], - }, - storage: { - senderStorage: { - ...mainChains.hydration.storage.assignKiltTokensToAccounts([keysAlice.address], initialBalanceKILT), - ...mainChains.hydration.storage.assignNativeTokensToAccounts( - [keysAlice.address], - initialBalanceHDX - ), - }, - receiverStorage: {}, - relayStorage: {}, - }, - }, - - accounts: { - senderAccount: keysAlice, - receiverAccount: keysBob, - }, - query: { - sender: query.tokens(mainChains.hydration.chainInfo.kiltTokenId), - receiver: query.balances, - }, - txContext: { - tx: tx.xtokens.transfer( - mainChains.hydration.chainInfo.kiltTokenId, - tx.xtokens.parachainV3(mainChains.kilt.chainInfo.paraId) - ), - pallets: { - sender: ['xcmpQueue', { section: 'currencies', method: 'Withdrawn' }], - receiver: [ - 'messageQueue', - { section: 'balances', method: 'Burned' }, - { section: 'balances', method: 'Minted' }, - { section: 'system', method: 'NewAccount' }, - ], - }, - balanceToTransfer: BigInt(1e15), - }, - - sovereignAccount: { - sender: mainChains.kilt.chainInfo.sovereignAccountOnSiblingChains, - receiver: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains, - }, - }, ] as const diff --git a/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/__snapshots__/index.test.ts.snap b/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/__snapshots__/index.test.ts.snap deleted file mode 100644 index e4189f6ce..000000000 --- a/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/__snapshots__/index.test.ts.snap +++ /dev/null @@ -1,357 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V2 > receiver events "currencies" 1`] = ` -[ - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Deposited", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 3000000000000)", - "currencyId": "(rounded 30)", - "who": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Deposited", - "section": "currencies", - }, -] -`; - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V2 > receiver events "tokens" 1`] = ` -[ - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Endowed", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Deposited", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 3000000000000)", - "currencyId": "(rounded 30)", - "who": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Deposited", - "section": "tokens", - }, -] -`; - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V2 > sender events {"section":"balances","method":"Withdraw"} 1`] = ` -[ - { - "data": { - "amount": "(rounded 200000000000)", - "who": "4seWojfEHrk5YKPahdErazQ3CWEHZYi6NV4gKz5AaejWbRPJ", - }, - "method": "Withdraw", - "section": "balances", - }, -] -`; - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V3 > receiver events "currencies" 1`] = ` -[ - { - "data": { - "amount": "(rounded 10000000)", - "currencyId": 5, - "from": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - "to": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": 200000000000, - "currencyId": 5, - "from": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - "to": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 100000000000000000000)", - "currencyId": "(rounded 100)", - "from": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - "to": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 2000000000)", - "currencyId": 1, - "who": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Withdrawn", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 100000000000000000000)", - "currencyId": "(rounded 100)", - "who": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Withdrawn", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 100000000)", - "currencyId": "(rounded 20)", - "from": "7LVGEVLFXpsCCtnsvhzkSMQARU7gRVCtwMckG7u7d3V6FVvG", - "to": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Deposited", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 3000000000000)", - "currencyId": "(rounded 30)", - "who": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Deposited", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 200000000000000000)", - "currencyId": "(rounded 100)", - "from": "7L53bUTCCAvmCxhe15maHwJZbjQYH89LkXuyTnTi1J58xyFC", - "to": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 20000000000000)", - "currencyId": 0, - "from": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - "to": "7L53bUTCCAvmCxhe15maHwJZbjQYH89LkXuyTnTi1J58xyFC", - }, - "method": "Transferred", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 3000000)", - "currencyId": 1, - "who": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Withdrawn", - "section": "currencies", - }, - { - "data": { - "amount": "(rounded 60000000000)", - "currencyId": 0, - "from": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - "to": "7L53bUTCQURi4iNpkVMox9K5XUra9Nom1nvJDMwxNRdJR7zu", - }, - "method": "Transferred", - "section": "currencies", - }, -] -`; - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V3 > receiver events "tokens" 1`] = ` -[ - { - "data": { - "amount": "(rounded 10000000)", - "currencyId": 5, - "who": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Unreserved", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 10000000)", - "currencyId": 5, - "from": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - "to": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": 200000000000, - "currencyId": 5, - "who": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Unreserved", - "section": "tokens", - }, - { - "data": { - "amount": 200000000000, - "currencyId": 5, - "from": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - "to": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 100000000000000000000)", - "currencyId": "(rounded 100)", - "who": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Endowed", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 100000000000000000000)", - "currencyId": "(rounded 100)", - "from": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - "to": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 2000000000)", - "currencyId": 1, - "who": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Withdrawn", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 200000000000000000)", - "currencyId": "(rounded 100)", - "who": "7L53bUTCCAvmCxhe15maHwJZbjQYH89LkXuyTnTi1J58xyFC", - }, - "method": "Endowed", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 200000000000000000)", - "currencyId": "(rounded 100)", - "from": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - "to": "7L53bUTCCAvmCxhe15maHwJZbjQYH89LkXuyTnTi1J58xyFC", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 100000000000000000000)", - "currencyId": "(rounded 100)", - "who": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Withdrawn", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 100000000)", - "currencyId": "(rounded 20)", - "from": "7LVGEVLFXpsCCtnsvhzkSMQARU7gRVCtwMckG7u7d3V6FVvG", - "to": "7KCp4eenFS4CowF9SpQE5BBCj5MtoBA3K811tNyRmhLfH1aV", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Endowed", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 1000000000000000)", - "currencyId": "(rounded 30)", - "who": "7MZG43idRmdg8VSt5BS9mVJeBhhxxt5y55hCsMpoKp5xFQX2", - }, - "method": "Deposited", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 3000000000000)", - "currencyId": "(rounded 30)", - "who": "7L53bUTBopuwFt3mKUfmkzgGLayYa1Yvn1hAg9v5UMrQzTfh", - }, - "method": "Deposited", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 200000000000000000)", - "currencyId": "(rounded 100)", - "from": "7L53bUTCCAvmCxhe15maHwJZbjQYH89LkXuyTnTi1J58xyFC", - "to": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Transfer", - "section": "tokens", - }, - { - "data": { - "amount": "(rounded 3000000)", - "currencyId": 1, - "who": "7L53bUTBbfuj14UpdCNPwmgzzHSsrsTWBHX5pys32mVWM3C1", - }, - "method": "Withdrawn", - "section": "tokens", - }, -] -`; - -exports[`Limited Reserve Transfers > Kilt -> Hydration at block V3 > sender events {"section":"balances","method":"Withdraw"} 1`] = ` -[ - { - "data": { - "amount": "(rounded 200000000000)", - "who": "4seWojfEHrk5YKPahdErazQ3CWEHZYi6NV4gKz5AaejWbRPJ", - }, - "method": "Withdraw", - "section": "balances", - }, -] -`; diff --git a/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/config.ts b/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/config.ts index 0c970c472..000a6d093 100644 --- a/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/config.ts +++ b/integration-tests/chopsticks/src/tests/xcm/limitedReserveTransfer/config.ts @@ -78,53 +78,6 @@ export const testPairsLimitedReserveTransfers: LimitedReserveTestConfiguration[] }, }, - { - config: { - desc: 'Kilt -> Hydration at block V2', - precision: BigInt(99), - network: { - // sender, receiver - parachains: [mainChains.kilt.getConfig({}), mainChains.hydration.getConfig({})], - relay: mainChains.polkadot.getConfig({ - blockNumber: mainChains.polkadot.parameters.blockNumber, - }), - }, - storage: { - senderStorage: mainChains.kilt.storage.assignNativeTokensToAccounts( - [keysAlice.address], - initialBalanceKILT - ), - receiverStorage: {}, - relayStorage: {}, - }, - }, - - accounts: { - senderAccount: keysAlice, - receiverAccount: keysBob, - }, - query: { - sender: query.balances, - receiver: query.tokens(mainChains.hydration.chainInfo.kiltTokenId), - }, - txContext: { - tx: tx.xcmPallet.limitedReserveTransferAssetsV2( - mainChains.kilt.chainInfo.KILT, - tx.xcmPallet.parachainV2(1, mainChains.hydration.chainInfo.paraId) - ), - pallets: { - sender: [{ section: 'balances', method: 'Withdraw' }], - receiver: ['tokens', 'currencies'], - }, - balanceToTransfer: BigInt(1e15), - }, - - sovereignAccount: { - sender: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains, - receiver: mainChains.kilt.chainInfo.sovereignAccountOnSiblingChains, - }, - }, - { config: { desc: 'Kilt -> Hydration live V3', @@ -170,53 +123,6 @@ export const testPairsLimitedReserveTransfers: LimitedReserveTestConfiguration[] }, }, - { - config: { - desc: 'Kilt -> Hydration at block V3', - precision: BigInt(99), - storage: { - senderStorage: mainChains.kilt.storage.assignNativeTokensToAccounts( - [keysAlice.address], - initialBalanceKILT - ), - receiverStorage: {}, - relayStorage: {}, - }, - network: { - // sender, receiver - parachains: [mainChains.kilt.getConfig({}), mainChains.hydration.getConfig({})], - relay: mainChains.polkadot.getConfig({ - blockNumber: mainChains.polkadot.parameters.blockNumber, - }), - }, - }, - - accounts: { - senderAccount: keysAlice, - receiverAccount: keysBob, - }, - query: { - sender: query.balances, - receiver: query.tokens(mainChains.hydration.chainInfo.kiltTokenId), - }, - txContext: { - tx: tx.xcmPallet.limitedReserveTransferAssetsV3( - mainChains.kilt.chainInfo.KILT, - tx.xcmPallet.parachainV3(1, mainChains.hydration.chainInfo.paraId) - ), - pallets: { - sender: [{ section: 'balances', method: 'Withdraw' }], - receiver: ['tokens', 'currencies'], - }, - balanceToTransfer: BigInt(1e15), - }, - - sovereignAccount: { - sender: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains, - receiver: mainChains.kilt.chainInfo.sovereignAccountOnSiblingChains, - }, - }, - { config: { desc: 'Kilt DEV -> Hydration live v3', diff --git a/integration-tests/chopsticks/src/vitest.config.ts b/integration-tests/chopsticks/src/vitest.config.ts index 4691a74d2..d713f9e5c 100644 --- a/integration-tests/chopsticks/src/vitest.config.ts +++ b/integration-tests/chopsticks/src/vitest.config.ts @@ -5,10 +5,10 @@ export default defineConfig({ maxWorkers: process.env.CI ? 4 : 10, minWorkers: process.env.CI ? 1 : 5, hideSkippedTests: true, - retry: process.env.CI ? 3 : 0, + retry: process.env.CI ? 3 : 1, setupFiles: './src/setup.ts', hookTimeout: process.env.CI ? 120_000 : 40_000, - testTimeout: process.env.CI ? 60_000 : 10_000, - teardownTimeout: process.env.CI ? 60_000 : 15_000, + testTimeout: process.env.CI ? 60_000 : 20_000, + teardownTimeout: process.env.CI ? 60_000 : 10_000, }, })