Skip to content

Commit a5865ae

Browse files
Increase default polling duration to 2 hours + README update
1 parent 03c5ceb commit a5865ae

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ For calculating test coverage gains, we support Pytest and Jest at the moment.
171171
Example:
172172

173173
```
174-
npm run test {{testFilePaths}} -- --coverage --coverageReporters=json-summary
174+
npm run test {{testFilePaths}} -- --coverage --coverageReporters=json-summary --coverageDirectory=./coverage
175175
```
176176
177177
## Advanced Configuration
@@ -180,7 +180,7 @@ For calculating test coverage gains, we support Pytest and Jest at the moment.
180180
181181
The test runner step also takes these optional inputs to further configure the command polling behavior. In general, we recommend to leave them as they are unless you have a specific reason to deviate from these defaults.
182182
183-
- `pollingDuration`: How long to poll for commands (in seconds). Defaults to "3600".
183+
- `pollingDuration`: How long to poll for commands (in seconds). Defaults to "7200".
184184
- `pollingInterval`: How often to poll for commands (in seconds). Defaults to "2".
185185
- `maxConcurrency`: Maximum number of commands to run concurrently. Defaults to "5".
186186

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ inputs:
4040
pollingDuration:
4141
description: "How long to poll for commands (in seconds)"
4242
required: false
43-
default: "3600"
43+
default: "7200"
4444
pollingInterval:
4545
description: "How often to poll for commands (in seconds)"
4646
required: false

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function run() {
2626
const runnerIndex = core.getInput("runnerIndex", { required: false }) || undefined;
2727
core.info(`Runner index: ${runnerIndex}`);
2828

29-
const pollingDuration = parseInt(core.getInput("pollingDuration") || "3600", 10); // Default 60 minutes
29+
const pollingDuration = parseInt(core.getInput("pollingDuration") || "7200", 10); // Default 120 minutes
3030
const pollingInterval = parseInt(core.getInput("pollingInterval") || "2", 10); // Default 2 seconds
3131
const inactivityTimeoutSeconds = 20 * 60; // 20 minutes
3232

0 commit comments

Comments
 (0)