Skip to content

Commit

Permalink
rename run_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
tknickman committed Jan 30, 2024
1 parent ce54ecc commit df6ce1f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/run-summary/error.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ that behavior in this test.
$ ${TURBO} run maybefails --filter=my-app --summarize > /dev/null 2>&1
[1]

$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"
$ SUMMARY=$(/bin/ls .turbo/runs/*.json | head -n1)

Validate that there was a failed task and exitCode is 1 (which is what we get from npm for the failed task)
Expand Down Expand Up @@ -91,7 +91,7 @@ Don't use --filter here, so we can validate that both tasks attempted to run
$ ${TURBO} run maybefails --summarize --force --continue > /dev/null 2>&1
[1]

$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"
$ SUMMARY=$(/bin/ls .turbo/runs/*.json | head -n1)

success should be 1, and attempted should be 2
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/run-summary/monorepo.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Setup
[0-9]+ (re)

# Extract some task-specific summaries from each
$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"
$ FIRST_APP_BUILD=$(getSummaryTaskId "$FIRST" "my-app#build")
$ SECOND_APP_BUILD=$(getSummaryTaskId "$SECOND" "my-app#build")
$ FIRST_UTIL_BUILD=$(getSummaryTaskId "$FIRST" "util#build")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Check
$ ls .turbo/runs/*.json | wc -l
\s*1 (re)

$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"
$ SUMMARY=$(/bin/ls .turbo/runs/*.json | head -n1)
$ TASK_SUMMARY=$(getSummaryTask "$SUMMARY" "build")

Expand Down Expand Up @@ -117,7 +117,7 @@ Check Rust implementation
$ ls .turbo/runs/*.json | wc -l
\s*1 (re)

$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"
$ SUMMARY=$(/bin/ls .turbo/runs/*.json | head -n1)

$ TASK_SUMMARY=$(getSummaryTask "$SUMMARY" "build")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ . ${TESTDIR}/../../../helpers/setup_integration_test.sh "with-pkg-deps"
$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"

$ rm -rf .turbo/runs
$ git commit --quiet -am "new sha" --allow-empty && ${TURBO} run build --summarize > /dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/run/gitignored-inputs.t
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This field is already part of our turbo config.
$ git add . && git commit --quiet -m "add internal.txt"

Some helper functions to parse the summary file
$ source "$TESTDIR/../../../helpers/utils_run_summary.sh"
$ source "$TESTDIR/../../../helpers/run_summary.sh"

Just run the util package, it's simpler
$ ${TURBO} run build --filter=util --output-logs=hash-only --summarize | grep "util:build: cache"
Expand Down

0 comments on commit df6ce1f

Please sign in to comment.