From dc6fc2a539ef83c1d8fc6481d663d1450f321ee0 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 26 Mar 2024 21:37:16 +1100 Subject: [PATCH] ci: configure itests in build constraints, detect in Actions script --- .github/workflows/test.yml | 128 ++++++------------ itests/api_test.go | 2 + itests/batch_deal_test.go | 2 + itests/cli_test.go | 2 + itests/deadlines_test.go | 2 + itests/deals_512mb_test.go | 2 + itests/deals_anycid_test.go | 2 + itests/deals_concurrent_test.go | 2 + itests/deals_invalid_utf8_label_test.go | 2 + itests/deals_max_staging_deals_test.go | 2 + itests/deals_offline_test.go | 2 + itests/deals_padding_test.go | 2 + .../deals_partial_retrieval_dm-level_test.go | 2 + itests/deals_partial_retrieval_test.go | 2 + itests/deals_power_test.go | 2 + itests/deals_pricing_test.go | 2 + itests/deals_publish_test.go | 2 + itests/deals_remote_retrieval_test.go | 2 + itests/deals_retry_deal_no_funds_test.go | 2 + itests/deals_test.go | 2 + itests/decode_params_test.go | 2 + itests/direct_data_onboard_test.go | 2 + itests/direct_data_onboard_verified_test.go | 2 + itests/dup_mpool_messages_test.go | 2 + itests/eth_account_abstraction_test.go | 2 + itests/eth_api_test.go | 2 + itests/eth_balance_test.go | 2 + itests/eth_block_hash_test.go | 2 + itests/eth_bytecode_test.go | 2 + itests/eth_config_test.go | 2 + itests/eth_conformance_test.go | 2 + itests/eth_deploy_test.go | 2 + itests/eth_fee_history_test.go | 2 + itests/eth_filter_test.go | 2 + itests/eth_hash_lookup_test.go | 2 + itests/eth_transactions_test.go | 2 + itests/fevm_address_test.go | 2 + itests/fevm_events_test.go | 2 + itests/fevm_test.go | 2 + itests/gas_estimation_test.go | 2 + itests/gateway_test.go | 2 + itests/get_messages_in_ts_test.go | 2 + itests/harmonydb_test.go | 2 + itests/harmonytask_test.go | 2 + itests/lite_migration_test.go | 2 + itests/lookup_robust_address_test.go | 2 + itests/mempool_test.go | 2 + itests/migration_test.go | 2 + itests/mpool_msg_uuid_test.go | 2 + itests/mpool_push_with_uuid_test.go | 2 + itests/msgindex_test.go | 2 + itests/multisig_test.go | 2 + itests/net_test.go | 2 + itests/nonce_test.go | 2 + itests/path_detach_redeclare_test.go | 2 + itests/path_type_filters_test.go | 2 + itests/paych_api_test.go | 2 + itests/paych_cli_test.go | 2 + itests/pending_deal_allocation_test.go | 2 + itests/remove_verifreg_datacap_test.go | 2 + itests/sealing_resources_test.go | 2 + itests/sector_finalize_early_test.go | 2 + itests/sector_import_full_test.go | 2 + itests/sector_import_simple_test.go | 2 + itests/sector_miner_collateral_test.go | 2 + itests/sector_numassign_test.go | 2 + itests/sector_pledge_test.go | 2 + itests/sector_terminate_test.go | 2 + itests/sector_unseal_test.go | 2 + itests/self_sent_txn_test.go | 2 + itests/splitstore_test.go | 2 + itests/verifreg_test.go | 2 + itests/wdpost_config_test.go | 2 + itests/wdpost_dispute_test.go | 2 + itests/wdpost_no_miner_storage_test.go | 2 + itests/wdpost_test.go | 2 + itests/wdpost_worker_config_test.go | 2 + itests/worker_test.go | 2 + itests/worker_upgrade_test.go | 2 + 79 files changed, 197 insertions(+), 87 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 491a69d8e5e..ffbc3576973 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,7 @@ jobs: "skip_conformance": "0" } ] + run: | # Mapping from test group names to custom runner labels # The jobs default to running on the default hosted runners (4 CPU, 16 RAM). # We use self-hosted xlarge (4 CPU, 8 RAM; and large - 2 CPU, 4 RAM) runners @@ -67,101 +68,54 @@ jobs: # - itest-worker (✅) # - unit-cli (❌) # - unit-rest (❌) - runners: | - { - "itest-deals_concurrent": ["self-hosted", "linux", "x64", "4xlarge"], - "itest-sector_pledge": ["self-hosted", "linux", "x64", "4xlarge"], - "itest-worker": ["self-hosted", "linux", "x64", "4xlarge"], + runners='{ + "unit-storage": ["self-hosted", "linux", "x64", "2xlarge"], + "multicore-sdr": ["self-hosted", "linux", "x64", "xlarge"], + "unit-node": ["self-hosted", "linux", "x64", "xlarge"], + ' + # Detect integration test groups that require non-default runners + for file in $(find ./itests -name '*_test.go'); do + if grep -q '//go:build integration .*xlarge' $file; then + base_name=$(basename -- "$file") + test_name="${base_name%_test.go}" + runner_size=$(grep -o '.*xlarge' $file | awk '{print $NF}') + runners+=$'\n'"\"itest-$test_name\": [\"self-hosted\", \"linux\", \"x64\", \"$runner_size\"]," + fi + done + runners=${runners%?} + runners+=$'\n'"}" - "itest-gateway": ["self-hosted", "linux", "x64", "2xlarge"], - "itest-sector_import_full": ["self-hosted", "linux", "x64", "2xlarge"], - "itest-sector_import_simple": ["self-hosted", "linux", "x64", "2xlarge"], - "itest-wdpost": ["self-hosted", "linux", "x64", "2xlarge"], - "unit-storage": ["self-hosted", "linux", "x64", "2xlarge"], + # A list of test groups that require YugabyteDB to be started + yugabytedb="" + for file in $(find ./itests -name '*_test.go'); do + if grep -q '//go:build integration .* db' $file; then + base_name=$(basename -- "$file") + test_name="${base_name%_test.go}" + yugabytedb+=$'\n'"\"itest-$test_name\"," + fi + done + yugabytedb="[${yugabytedb%?}]" - "itest-batch_deal": ["self-hosted", "linux", "x64", "xlarge"], - "itest-cli": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_512mb": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_anycid": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_invalid_utf8_label": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_max_staging_deals": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_partial_retrieval": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_publish": ["self-hosted", "linux", "x64", "xlarge"], - "itest-deals_remote_retrieval": ["self-hosted", "linux", "x64", "xlarge"], - "itest-decode_params": ["self-hosted", "linux", "x64", "xlarge"], - "itest-dup_mpool_messages": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_account_abstraction": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_api": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_balance": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_bytecode": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_config": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_conformance": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_deploy": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_fee_history": ["self-hosted", "linux", "x64", "xlarge"], - "itest-eth_transactions": ["self-hosted", "linux", "x64", "xlarge"], - "itest-fevm_address": ["self-hosted", "linux", "x64", "xlarge"], - "itest-fevm_events": ["self-hosted", "linux", "x64", "xlarge"], - "itest-gas_estimation": ["self-hosted", "linux", "x64", "xlarge"], - "itest-get_messages_in_ts": ["self-hosted", "linux", "x64", "xlarge"], - "itest-lite_migration": ["self-hosted", "linux", "x64", "xlarge"], - "itest-lookup_robust_address": ["self-hosted", "linux", "x64", "xlarge"], - "itest-mempool": ["self-hosted", "linux", "x64", "xlarge"], - "itest-mpool_msg_uuid": ["self-hosted", "linux", "x64", "xlarge"], - "itest-mpool_push_with_uuid": ["self-hosted", "linux", "x64", "xlarge"], - "itest-msgindex": ["self-hosted", "linux", "x64", "xlarge"], - "itest-multisig": ["self-hosted", "linux", "x64", "xlarge"], - "itest-net": ["self-hosted", "linux", "x64", "xlarge"], - "itest-nonce": ["self-hosted", "linux", "x64", "xlarge"], - "itest-path_detach_redeclare": ["self-hosted", "linux", "x64", "xlarge"], - "itest-pending_deal_allocation": ["self-hosted", "linux", "x64", "xlarge"], - "itest-remove_verifreg_datacap": ["self-hosted", "linux", "x64", "xlarge"], - "itest-sector_miner_collateral": ["self-hosted", "linux", "x64", "xlarge"], - "itest-sector_numassign": ["self-hosted", "linux", "x64", "xlarge"], - "itest-self_sent_txn": ["self-hosted", "linux", "x64", "xlarge"], - "itest-verifreg": ["self-hosted", "linux", "x64", "xlarge"], - "multicore-sdr": ["self-hosted", "linux", "x64", "xlarge"], - "unit-node": ["self-hosted", "linux", "x64", "xlarge"] - } - # A list of test groups that require YugabyteDB to be running - # In CircleCI, all jobs had yugabytedb running as a sidecar. - yugabytedb: | - ["itest-harmonydb", "itest-harmonytask"] # A list of test groups that require Proof Parameters to be fetched # In CircleCI, only the following jobs had get-params set: # - unit-cli (✅) # - unit-storage (✅) # - itest-sector_pledge (✅) # - itest-wdpost (✅) - parameters: | - [ - "conformance", - "itest-api", - "itest-deals_offline", - "itest-deals_padding", - "itest-deals_partial_retrieval_dm-level", - "itest-deals_pricing", - "itest-deals", - "itest-direct_data_onboard_verified", - "itest-direct_data_onboard", - "itest-net", - "itest-path_detach_redeclare", - "itest-path_type_filters", - "itest-sealing_resources", - "itest-sector_finalize_early", - "itest-sector_import_full", - "itest-sector_import_simple", - "itest-sector_pledge", - "itest-sector_unseal", - "itest-wdpost_no_miner_storage", - "itest-wdpost_worker_config", - "itest-wdpost", - "itest-worker_upgrade", - "itest-worker", - "multicore-sdr", - "unit-cli", - "unit-storage" - ] - run: | + parameters=' + "conformance", + "multicore-sdr", + "unit-cli", + "unit-storage",' + for file in $(find ./itests -name '*_test.go'); do + if grep -q '//go:build integration .* parameters' $file; then + base_name=$(basename -- "$file") + test_name="${base_name%_test.go}" + parameters+=$'\n'"\"itest-$test_name\"," + fi + done + parameters="[${parameters%?}]" + # Create a list of integration test groups itests="$( find ./itests -name "*_test.go" | \ diff --git a/itests/api_test.go b/itests/api_test.go index ff43bd5c02e..2a71c842b25 100644 --- a/itests/api_test.go +++ b/itests/api_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/batch_deal_test.go b/itests/batch_deal_test.go index 21db9f08d0e..97b9839d9d7 100644 --- a/itests/batch_deal_test.go +++ b/itests/batch_deal_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/cli_test.go b/itests/cli_test.go index a323c0863d4..f757daf8d49 100644 --- a/itests/cli_test.go +++ b/itests/cli_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/deadlines_test.go b/itests/deadlines_test.go index 70da4be5a51..669943c3bde 100644 --- a/itests/deadlines_test.go +++ b/itests/deadlines_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/deals_512mb_test.go b/itests/deals_512mb_test.go index 7b55204d910..f679a8f335e 100644 --- a/itests/deals_512mb_test.go +++ b/itests/deals_512mb_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/deals_anycid_test.go b/itests/deals_anycid_test.go index c17441090b1..e0481319e78 100644 --- a/itests/deals_anycid_test.go +++ b/itests/deals_anycid_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/deals_concurrent_test.go b/itests/deals_concurrent_test.go index a106836bdd1..e96d58dacde 100644 --- a/itests/deals_concurrent_test.go +++ b/itests/deals_concurrent_test.go @@ -1,3 +1,5 @@ +//go:build integration && 4xlarge + // stm: #integration package itests diff --git a/itests/deals_invalid_utf8_label_test.go b/itests/deals_invalid_utf8_label_test.go index cec6fb4c3f5..9edc87ff457 100644 --- a/itests/deals_invalid_utf8_label_test.go +++ b/itests/deals_invalid_utf8_label_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/deals_max_staging_deals_test.go b/itests/deals_max_staging_deals_test.go index 738a1e2fed3..733d2c0cf12 100644 --- a/itests/deals_max_staging_deals_test.go +++ b/itests/deals_max_staging_deals_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/deals_offline_test.go b/itests/deals_offline_test.go index 997d7723aa6..78e92a3fcf6 100644 --- a/itests/deals_offline_test.go +++ b/itests/deals_offline_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/deals_padding_test.go b/itests/deals_padding_test.go index aaca4536069..7a2e2f5e70f 100644 --- a/itests/deals_padding_test.go +++ b/itests/deals_padding_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/deals_partial_retrieval_dm-level_test.go b/itests/deals_partial_retrieval_dm-level_test.go index c03d07aac53..d537579e390 100644 --- a/itests/deals_partial_retrieval_dm-level_test.go +++ b/itests/deals_partial_retrieval_dm-level_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/deals_partial_retrieval_test.go b/itests/deals_partial_retrieval_test.go index 0bbf23da054..9ef181621e9 100644 --- a/itests/deals_partial_retrieval_test.go +++ b/itests/deals_partial_retrieval_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge && parameters + // stm: #integration package itests diff --git a/itests/deals_power_test.go b/itests/deals_power_test.go index 57483cde716..ebdffb9b953 100644 --- a/itests/deals_power_test.go +++ b/itests/deals_power_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/deals_pricing_test.go b/itests/deals_pricing_test.go index f2301eee8dc..8918374045d 100644 --- a/itests/deals_pricing_test.go +++ b/itests/deals_pricing_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/deals_publish_test.go b/itests/deals_publish_test.go index 43f4eeb0500..11dfd758de1 100644 --- a/itests/deals_publish_test.go +++ b/itests/deals_publish_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/deals_remote_retrieval_test.go b/itests/deals_remote_retrieval_test.go index c0a37e69e33..44dc7d20158 100644 --- a/itests/deals_remote_retrieval_test.go +++ b/itests/deals_remote_retrieval_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/deals_retry_deal_no_funds_test.go b/itests/deals_retry_deal_no_funds_test.go index 650b2436e0e..daed2f81218 100644 --- a/itests/deals_retry_deal_no_funds_test.go +++ b/itests/deals_retry_deal_no_funds_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/deals_test.go b/itests/deals_test.go index a6953d07e69..f416ba4a527 100644 --- a/itests/deals_test.go +++ b/itests/deals_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/decode_params_test.go b/itests/decode_params_test.go index 6a4a8c681ed..a3d6e639bae 100644 --- a/itests/decode_params_test.go +++ b/itests/decode_params_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/direct_data_onboard_test.go b/itests/direct_data_onboard_test.go index 037fa1dbb53..4927ebe5521 100644 --- a/itests/direct_data_onboard_test.go +++ b/itests/direct_data_onboard_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/direct_data_onboard_verified_test.go b/itests/direct_data_onboard_verified_test.go index 530b3cca6b6..0caa711d0aa 100644 --- a/itests/direct_data_onboard_verified_test.go +++ b/itests/direct_data_onboard_verified_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/dup_mpool_messages_test.go b/itests/dup_mpool_messages_test.go index afafec3eeb3..a517c2ab74c 100644 --- a/itests/dup_mpool_messages_test.go +++ b/itests/dup_mpool_messages_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_account_abstraction_test.go b/itests/eth_account_abstraction_test.go index 5ca672674a6..501cd2b839f 100644 --- a/itests/eth_account_abstraction_test.go +++ b/itests/eth_account_abstraction_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_api_test.go b/itests/eth_api_test.go index 43b4b526674..0145a792071 100644 --- a/itests/eth_api_test.go +++ b/itests/eth_api_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_balance_test.go b/itests/eth_balance_test.go index d133ff6d90e..37ebb1f4ef1 100644 --- a/itests/eth_balance_test.go +++ b/itests/eth_balance_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_block_hash_test.go b/itests/eth_block_hash_test.go index 8debefa492c..c633b270264 100644 --- a/itests/eth_block_hash_test.go +++ b/itests/eth_block_hash_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/eth_bytecode_test.go b/itests/eth_bytecode_test.go index bc232142ab6..ed246a745c8 100644 --- a/itests/eth_bytecode_test.go +++ b/itests/eth_bytecode_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_config_test.go b/itests/eth_config_test.go index 8b74d011aa2..ba4f432f6fa 100644 --- a/itests/eth_config_test.go +++ b/itests/eth_config_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/eth_conformance_test.go b/itests/eth_conformance_test.go index 9c1b2ae34ef..00e26eeafcf 100644 --- a/itests/eth_conformance_test.go +++ b/itests/eth_conformance_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_deploy_test.go b/itests/eth_deploy_test.go index 68861f98fd8..c60fddc5e83 100644 --- a/itests/eth_deploy_test.go +++ b/itests/eth_deploy_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_fee_history_test.go b/itests/eth_fee_history_test.go index b611efeb18e..43565f8f0a5 100644 --- a/itests/eth_fee_history_test.go +++ b/itests/eth_fee_history_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/eth_filter_test.go b/itests/eth_filter_test.go index 9212e60fc01..11ca40a46b6 100644 --- a/itests/eth_filter_test.go +++ b/itests/eth_filter_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/eth_hash_lookup_test.go b/itests/eth_hash_lookup_test.go index 0a2c11d3cf1..2d9dac4b2c0 100644 --- a/itests/eth_hash_lookup_test.go +++ b/itests/eth_hash_lookup_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/eth_transactions_test.go b/itests/eth_transactions_test.go index 9e9fb7b87c4..8e8a3752baf 100644 --- a/itests/eth_transactions_test.go +++ b/itests/eth_transactions_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/fevm_address_test.go b/itests/fevm_address_test.go index aea56264efe..9f531e35221 100644 --- a/itests/fevm_address_test.go +++ b/itests/fevm_address_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/fevm_events_test.go b/itests/fevm_events_test.go index 458ac3470ab..8ccf20ad2e9 100644 --- a/itests/fevm_events_test.go +++ b/itests/fevm_events_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/fevm_test.go b/itests/fevm_test.go index 2dcb8ef1dff..6ab35c0370c 100644 --- a/itests/fevm_test.go +++ b/itests/fevm_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/gas_estimation_test.go b/itests/gas_estimation_test.go index 24013c8855b..fd4b0e8781e 100644 --- a/itests/gas_estimation_test.go +++ b/itests/gas_estimation_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/gateway_test.go b/itests/gateway_test.go index d20b3bd1a09..d59e836dfcf 100644 --- a/itests/gateway_test.go +++ b/itests/gateway_test.go @@ -1,3 +1,5 @@ +//go:build integration && 2xlarge + // stm: #integration package itests diff --git a/itests/get_messages_in_ts_test.go b/itests/get_messages_in_ts_test.go index ecc13e3aaa7..8e6a234a1c0 100644 --- a/itests/get_messages_in_ts_test.go +++ b/itests/get_messages_in_ts_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/harmonydb_test.go b/itests/harmonydb_test.go index 8b1b6123431..39e0abf0803 100644 --- a/itests/harmonydb_test.go +++ b/itests/harmonydb_test.go @@ -1,3 +1,5 @@ +//go:build integration && db + package itests import ( diff --git a/itests/harmonytask_test.go b/itests/harmonytask_test.go index 463f131d8fc..217aa853b14 100644 --- a/itests/harmonytask_test.go +++ b/itests/harmonytask_test.go @@ -1,3 +1,5 @@ +//go:build integration && db + package itests import ( diff --git a/itests/lite_migration_test.go b/itests/lite_migration_test.go index 0f846e6fa10..4a54c388033 100644 --- a/itests/lite_migration_test.go +++ b/itests/lite_migration_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/lookup_robust_address_test.go b/itests/lookup_robust_address_test.go index 536d8feef36..9d3b3c0caac 100644 --- a/itests/lookup_robust_address_test.go +++ b/itests/lookup_robust_address_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/mempool_test.go b/itests/mempool_test.go index f07b46a737c..a0f249b8ddc 100644 --- a/itests/mempool_test.go +++ b/itests/mempool_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/migration_test.go b/itests/migration_test.go index 68991a579a9..9e7fa0d5587 100644 --- a/itests/migration_test.go +++ b/itests/migration_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/mpool_msg_uuid_test.go b/itests/mpool_msg_uuid_test.go index 3eb30a6f6eb..7810c107e79 100644 --- a/itests/mpool_msg_uuid_test.go +++ b/itests/mpool_msg_uuid_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/mpool_push_with_uuid_test.go b/itests/mpool_push_with_uuid_test.go index 6b94dbad191..a58f898d86a 100644 --- a/itests/mpool_push_with_uuid_test.go +++ b/itests/mpool_push_with_uuid_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/msgindex_test.go b/itests/msgindex_test.go index 807ab3c03f0..da1aa265d41 100644 --- a/itests/msgindex_test.go +++ b/itests/msgindex_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/multisig_test.go b/itests/multisig_test.go index 92d9afca7dd..7b1ab118ee2 100644 --- a/itests/multisig_test.go +++ b/itests/multisig_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/net_test.go b/itests/net_test.go index 332677c2385..0abc253e599 100644 --- a/itests/net_test.go +++ b/itests/net_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge && parameters + // stm: #integration package itests diff --git a/itests/nonce_test.go b/itests/nonce_test.go index cac2413f73c..c504840207b 100644 --- a/itests/nonce_test.go +++ b/itests/nonce_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/path_detach_redeclare_test.go b/itests/path_detach_redeclare_test.go index 10774d01218..7c4a37a8c0a 100644 --- a/itests/path_detach_redeclare_test.go +++ b/itests/path_detach_redeclare_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge && parameters + package itests import ( diff --git a/itests/path_type_filters_test.go b/itests/path_type_filters_test.go index a2e2049323b..b6ff68511c6 100644 --- a/itests/path_type_filters_test.go +++ b/itests/path_type_filters_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/paych_api_test.go b/itests/paych_api_test.go index f8ecb5377da..a1750512d44 100644 --- a/itests/paych_api_test.go +++ b/itests/paych_api_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/paych_cli_test.go b/itests/paych_cli_test.go index f86f5d8deca..95d30fd57bb 100644 --- a/itests/paych_cli_test.go +++ b/itests/paych_cli_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/pending_deal_allocation_test.go b/itests/pending_deal_allocation_test.go index 60b755ac05e..cf324a0e5be 100644 --- a/itests/pending_deal_allocation_test.go +++ b/itests/pending_deal_allocation_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/remove_verifreg_datacap_test.go b/itests/remove_verifreg_datacap_test.go index ac88574d2b6..2e1ea587eb9 100644 --- a/itests/remove_verifreg_datacap_test.go +++ b/itests/remove_verifreg_datacap_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/sealing_resources_test.go b/itests/sealing_resources_test.go index 85779fd88e7..6afcff0adf3 100644 --- a/itests/sealing_resources_test.go +++ b/itests/sealing_resources_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/sector_finalize_early_test.go b/itests/sector_finalize_early_test.go index 1b8fcb346f9..3e20fac0b11 100644 --- a/itests/sector_finalize_early_test.go +++ b/itests/sector_finalize_early_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + // stm: #integration package itests diff --git a/itests/sector_import_full_test.go b/itests/sector_import_full_test.go index c9bd96afde1..d887d7a72fd 100644 --- a/itests/sector_import_full_test.go +++ b/itests/sector_import_full_test.go @@ -1,3 +1,5 @@ +//go:build integration && 2xlarge && parameters + package itests import ( diff --git a/itests/sector_import_simple_test.go b/itests/sector_import_simple_test.go index fb1a77a1410..2ac88e39837 100644 --- a/itests/sector_import_simple_test.go +++ b/itests/sector_import_simple_test.go @@ -1,3 +1,5 @@ +//go:build integration && 2xlarge && parameters + package itests import ( diff --git a/itests/sector_miner_collateral_test.go b/itests/sector_miner_collateral_test.go index 579b4e535a1..f83745d187a 100644 --- a/itests/sector_miner_collateral_test.go +++ b/itests/sector_miner_collateral_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/sector_numassign_test.go b/itests/sector_numassign_test.go index af667aa9213..700b2dc191f 100644 --- a/itests/sector_numassign_test.go +++ b/itests/sector_numassign_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + package itests import ( diff --git a/itests/sector_pledge_test.go b/itests/sector_pledge_test.go index eb93cfe9a1c..f0f4281df9a 100644 --- a/itests/sector_pledge_test.go +++ b/itests/sector_pledge_test.go @@ -1,3 +1,5 @@ +//go:build integration && 4xlarge && parameters + // stm: #integration package itests diff --git a/itests/sector_terminate_test.go b/itests/sector_terminate_test.go index ac586ff8f45..fe4836ff215 100644 --- a/itests/sector_terminate_test.go +++ b/itests/sector_terminate_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/sector_unseal_test.go b/itests/sector_unseal_test.go index 5d05cb0e33c..709befba9da 100644 --- a/itests/sector_unseal_test.go +++ b/itests/sector_unseal_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/self_sent_txn_test.go b/itests/self_sent_txn_test.go index 00ca0e5aeeb..22b282e4e2c 100644 --- a/itests/self_sent_txn_test.go +++ b/itests/self_sent_txn_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/splitstore_test.go b/itests/splitstore_test.go index ea59faf2a9f..2ed9b41f5be 100644 --- a/itests/splitstore_test.go +++ b/itests/splitstore_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/verifreg_test.go b/itests/verifreg_test.go index 07a31477d75..5fdca5ddf74 100644 --- a/itests/verifreg_test.go +++ b/itests/verifreg_test.go @@ -1,3 +1,5 @@ +//go:build integration && xlarge + // stm: #integration package itests diff --git a/itests/wdpost_config_test.go b/itests/wdpost_config_test.go index 984650ae6a6..12deb5ca7a3 100644 --- a/itests/wdpost_config_test.go +++ b/itests/wdpost_config_test.go @@ -1,3 +1,5 @@ +//go:build integration + package itests import ( diff --git a/itests/wdpost_dispute_test.go b/itests/wdpost_dispute_test.go index c4512874aaa..a65c02d3790 100644 --- a/itests/wdpost_dispute_test.go +++ b/itests/wdpost_dispute_test.go @@ -1,3 +1,5 @@ +//go:build integration + // stm: #integration package itests diff --git a/itests/wdpost_no_miner_storage_test.go b/itests/wdpost_no_miner_storage_test.go index 8c0e112f574..5c9317df559 100644 --- a/itests/wdpost_no_miner_storage_test.go +++ b/itests/wdpost_no_miner_storage_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/wdpost_test.go b/itests/wdpost_test.go index 2a6fc866ea8..ea52c65d6c8 100644 --- a/itests/wdpost_test.go +++ b/itests/wdpost_test.go @@ -1,3 +1,5 @@ +//go:build integration && 2xlarge && parameters + // stm: #integration package itests diff --git a/itests/wdpost_worker_config_test.go b/itests/wdpost_worker_config_test.go index ca22d82e4c9..6cd6e7278cd 100644 --- a/itests/wdpost_worker_config_test.go +++ b/itests/wdpost_worker_config_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import ( diff --git a/itests/worker_test.go b/itests/worker_test.go index 31ec40b5937..37f346f383f 100644 --- a/itests/worker_test.go +++ b/itests/worker_test.go @@ -1,3 +1,5 @@ +//go:build integration && 4xlarge && parameters + package itests import ( diff --git a/itests/worker_upgrade_test.go b/itests/worker_upgrade_test.go index b253a26a577..e9d19699f4d 100644 --- a/itests/worker_upgrade_test.go +++ b/itests/worker_upgrade_test.go @@ -1,3 +1,5 @@ +//go:build integration && parameters + package itests import (