Cache step results while steps are executing instead of caching all of them at the end
Created by: BolajiOlajide
Test plan
We adjusted the test suite to ensure that tasks are cached after execution of all steps, but the steps are cached immediately the individual execution is done.
We also tested this change on the UI by taking the following steps:
- Create a batch spec that'll fail at a particular step
name: testerr
description: Add Hello World to READMEs
# Find all repositories that contain a README.md file.
on:
- repositoriesMatchingQuery: file:README.md count:100
# In each repository, run this command. Each repository's resulting diff is captured.
steps:
- run: echo Hello World 123 | tee -a $(find -name README.md)
container: ubuntu:18.04
- run: exit 1
container: ubuntu:18.04
# Describe the changeset (e.g., GitHub pull request) you want for each repository.
changesetTemplate:
title: Hello World
body: My first batch change!
branch: hello-world # Push the commit to this branch.
commit:
message: Append Hello World to all README.md files
- Ensure it fails, then retry the batch spec run and checking the previous passing steps was cached.
Closes #27564