Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Jan 21, 2025
1 parent 5d04e1e commit 796f916
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions turborepo-tests/helpers/setup_example_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ $package_manager_command
# Simulating the user's first run and dumping logs to a file
$turbo_command >>./tmp/run-1.txt 2>&1

cat ./tmp/run-1.txt

# We don't want to hit cache on first run because we're acting like a user.
# A user would never hit cache on first run. Why should we?
if grep -q ">>> FULL TURBO" ./tmp/run-1.txt; then
Expand All @@ -79,6 +81,8 @@ fi
# Simulating the user's second run and dumping logs to a file
$turbo_command >>./tmp/run-2.txt 2>&1

cat ./tmp/run-1.txt

# Make sure the user hits FULL TURBO on the second go
if ! grep -q ">>> FULL TURBO" ./tmp/run-2.txt; then
echo "[ERROR] No 'FULL TURBO' was found. This indicates that at least one 'cache miss' occurred on the second run when all tasks were expected to be 'cache hit'."
Expand Down

0 comments on commit 796f916

Please sign in to comment.