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
{{ message }}
Repository navigation
Isolate temporary state for each action invocation #83
Observed behavior:#78 moves generated configuration and container files into the shared $RUNNER_TEMP/Invoke-Pester/.temp directory. The directory is created with -Force but is neither cleaned nor made invocation-specific. A later Invoke-Pester call in the same job can enumerate stale *.Container.* files from an earlier call.
Expected behavior: Each action invocation reads only the configuration and containers generated for that invocation.
Reproduction: Run the action twice in one job with different test paths. The second execution uses the same temporary directory and recursively loads every container file present there.
Regression: The shared location is introduced by #78. The previous working-directory location could also retain stale state when reused, but separate working directories did not collide.
Workaround: Run each invocation in a separate job, or explicitly remove the shared action directory between calls.
Acceptance criteria
Add an action test with two sequential invocations that use different tests.
Give each invocation a clean or unique private handoff directory.
Ensure the init and exec steps resolve the same invocation-specific directory.
Prevent stale configuration or container files from affecting later calls.
Preserve configured and default report output locations.
Technical decisions
Temporary handoff storage is private action state and should use runner temporary storage without introducing a job-wide collision domain. The test must prove isolation rather than only assert a directory location.
Implementation plan
Add the failing sequential-invocation test.
Select an invocation identifier available to both composite steps.
create or clean the private directory deterministically.
Verify sequential calls and existing report-path scenarios.
Activity