Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ jobs:
CODSPEED_SKIP_UPLOAD: true
steps:
- uses: actions/checkout@v4
- name: Check action with cycle-estimation and exclude-allocations
- name: Check action with cycle-estimation, exclude-allocations and simulation-track-subprocess
uses: ./
with:
allow-empty: true
mode: simulation
cycle-estimation: "false"
exclude-allocations: "true"
simulation-track-subprocess: "true"
run: echo "Testing simulation tuning inputs!"
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
# enable. Requires runner v5 or later.
# Defaults to "false".
exclude-allocations: ""

# [OPTIONAL]
# Measure the subprocesses spawned by the benchmarked process in `simulation` mode.
# Set to "true" to enable. Requires runner v5.2.0 or later.
# Defaults to "false".
simulation-track-subprocess: ""
```

# Example usage
Expand Down
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ inputs:
Requires runner v5 or later. Defaults to 'false'.
required: false

simulation-track-subprocess:
description: |
Measure the subprocesses spawned by the benchmarked process in `simulation` mode. Set to 'true' to enable.
Requires runner v5.2.0 or later. Defaults to 'false'.
required: false

config:
description: "Path to a CodSpeed configuration file (codspeed.yml). If not specified, the runner will look for a codspeed.yml file in the repository root."
required: false
Expand Down Expand Up @@ -292,6 +298,9 @@ runs:
if [ -n "${{ inputs.exclude-allocations }}" ]; then
RUNNER_ARGS+=(--exclude-allocations="${{ inputs.exclude-allocations }}")
fi
if [ "${{ inputs.simulation-track-subprocess }}" = "true" ]; then
RUNNER_ARGS+=(--simulation-track-subprocess)
fi

if [ -n "$CODSPEED_INPUT_RUN" ]; then
RUNNER_ARGS+=(-- "$CODSPEED_INPUT_RUN")
Expand Down
Loading