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
Copy file name to clipboardExpand all lines: action.yml
+24-15Lines changed: 24 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,33 @@ branding:
6
6
7
7
author: "Arthur Pastel"
8
8
inputs:
9
-
token:
10
-
description: "CodSpeed upload token"
11
-
required: false
12
9
run:
13
10
description: "The command to run the benchmarks"
14
11
required: true
15
12
13
+
mode:
14
+
description: |
15
+
The mode to to run the benchmarks in. The following modes are available:
16
+
- `instrumentation`: Run the benchmarks with CPU instrumentation measurements.
17
+
- `walltime`: Run the benchmarks with walltime measurement.
18
+
19
+
We strongly recommend starting with the `instrumentation` mode.
20
+
21
+
Using the `walltime` mode on traditional VMs/Hosted Runners might lead to inconsistent data. For the best results, we recommend using CodSpeed Hosted Macro Runners, which are fine-tuned for performance measurement consistency.
22
+
Check out the [Walltime Instrument Documentation](https://docs.codspeed.io/instruments/walltime/) for more details.
23
+
required: true
24
+
25
+
token:
26
+
description: |
27
+
CodSpeed upload token. Only required for private repositories.
28
+
required: false
29
+
16
30
working-directory:
17
31
description: |
18
32
The directory where the `run` command will be executed.
19
33
Warning: if you use defaults.working-directory, you must still set this parameter.
20
34
required: false
35
+
21
36
upload-url:
22
37
description: "The upload endpoint (for on-premise deployments)"
23
38
required: false
@@ -26,18 +41,6 @@ inputs:
26
41
description: "The version of the runner to use. Use 'latest' to automatically fetch the latest release version from GitHub, or specify a version like '3.5.0' or 'v3.5.0'."
27
42
required: false
28
43
29
-
mode:
30
-
description: |
31
-
The mode to to run the benchmarks in. The following modes are available:
32
-
- `instrumentation` (default): Run the benchmarks with instrumentation enabled.
33
-
- `walltime`: Run the benchmarks with walltime enabled.
34
-
35
-
We strongly recommend not changing this mode unless you know what you are doing.
36
-
37
-
Using the `walltime` mode on traditional VMs/Hosted Runners will lead to inconsistent data. For the best results, we recommend using CodSpeed Hosted Macro Runners, which are fine-tuned for performance measurement consistency.
38
-
Check out the [Walltime Instrument Documentation](https://docs.codspeed.io/instruments/walltime/) for more details.
39
-
required: false
40
-
41
44
instruments:
42
45
description: |
43
46
Comma separated list of instruments to enable. The following instruments are available:
@@ -57,6 +60,12 @@ runs:
57
60
GH_MATRIX: "${{ toJson(matrix) }}"
58
61
GH_STRATEGY: "${{ toJson(strategy) }}"
59
62
run: |
63
+
# Validate required inputs (custom message for smoother v4 migration)
64
+
if [ -z "${{ inputs.mode }}" ]; then
65
+
echo "::error title=Missing required input 'mode'::The 'mode' input is required as of CodSpeed Action v4. Please explicitly set 'mode' to 'instrumentation' or 'walltime'. Before, this variable was automatically set to instrumentation on every runner except for CodSpeed macro runners where it was set to walltime by default. See https://codspeed.io/docs/instruments for details."
0 commit comments