You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use more conservative gas tip estimation, i.e. call `FeeHistory` endpoint with tip percentile corresponding to given priory and then select median value
# when enabled when creating a new Seth client we will send 10k wei from root address to root address
55
55
# to make sure transaction can be submitted and mined
@@ -81,6 +81,32 @@ key_sync_retries = 10
81
81
[block_stats]
82
82
rpc_requests_per_second_limit = 15
83
83
84
+
[[networks]]
85
+
name = "Ethereum_Mainnet"
86
+
dial_timeout = "1m"
87
+
transaction_timeout = "30s"
88
+
eip_1559_dynamic_fees = true
89
+
90
+
# automated gas estimation
91
+
gas_price_estimation_enabled = true
92
+
gas_price_estimation_blocks = 20
93
+
gas_price_estimation_tx_priority = "standard"
94
+
# how many times to try fetching & calculating gas price data in case of errors, defaults to 1 if empty
95
+
gas_price_estimation_attempt_count = 2
96
+
# urls_secret = ["xxx"]
97
+
98
+
# gas limits
99
+
transfer_gas_fee = 21_000
100
+
# gas limit should be explicitly set only if you are connecting to a node that's incapable of estimating gas limit itself (should only happen for very old versions)
101
+
# gas_limit = 14_000_000
102
+
103
+
# manual settings, used when gas_price_estimation_enabled is false or when it fails
log.Fatal().Err(err).Msg("Error running test packages")
@@ -180,6 +180,7 @@ func init() {
180
180
RunTestsCmd.Flags().StringSlice("select-tests", nil, "Comma-separated list of test names to specifically run")
181
181
RunTestsCmd.Flags().Float64("max-pass-ratio", 1.0, "The maximum pass ratio threshold for a test to be considered flaky. Any tests below this pass rate will be considered flaky.")
182
182
RunTestsCmd.Flags().Bool("omit-test-outputs-on-success", true, "Omit test outputs and package outputs for tests that pass")
183
+
RunTestsCmd.Flags().Bool("ignore-parent-failures-on-subtests", false, "Ignore failures in parent tests when only subtests fail")
This utility transforms the output of Go's test JSON format to handle subtest failures more intelligently. It prevents parent tests from failing when only their subtests fail, while preserving the original test structure and output format.
4
+
5
+
## Features
6
+
7
+
- Transforms Go test JSON output to modify how test failures propagate
8
+
- Parent tests won't fail if they only have failing subtests but no direct failures
9
+
- Maintains the original JSON format for compatibility with other tools
10
+
11
+
## Key Behavior
12
+
13
+
-**Subtest Failure Handling**: When a subtest fails, the parent test will not be marked as failed unless the parent itself has a direct failure
14
+
-**Important Note**: If a parent test has both log messages (`t.Log()`) and failing subtests, it will still be marked as failed, as seen in the `TestLogMessagesNotDirectFailures` test
15
+
16
+
## Usage
17
+
18
+
```bash
19
+
go test -json ./... | go-test-transform -ignore-all
20
+
```
21
+
22
+
This will transform the test output to prevent parent tests from failing when only their subtests fail.
Note that in the original output, both `TestParent/Subtest1` and `TestParent` would be marked as failed. After transformation, `TestParent/Subtest1` remains failed, but `TestParent` is changed to pass since it doesn't have a direct failure.
0 commit comments