-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update scip-ruby/master with latest changes from upstream mast…
…er (#208)
- Loading branch information
Showing
1,975 changed files
with
32,138 additions
and
83,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
unameOut="$(uname -s)" | ||
case "${unameOut}" in | ||
Linux*) platform="linux";; | ||
Darwin*) platform="mac";; | ||
*) exit 1 | ||
esac | ||
|
||
export JOB_NAME=test-rbi-gen | ||
source .buildkite/tools/setup-bazel.sh | ||
|
||
err=0 | ||
|
||
echo "+++ running tests" | ||
|
||
# `-c opt` is required, otherwise the tests are too slow | ||
# forcedebug is really the ~only thing in `--config=dbg` we care about. | ||
# must come after `-c opt` because `-c opt` will define NDEBUG on its own | ||
test_args=( | ||
"//test:end_to_end_rbi_test" | ||
"//test:single_package_runner" | ||
"-c" | ||
"opt" | ||
"--config=forcedebug" | ||
"--spawn_strategy=local" | ||
) | ||
|
||
./bazel test \ | ||
--experimental_generate_json_trace_profile \ | ||
--profile=_out_/profile.json \ | ||
--test_summary=terse \ | ||
--test_output=errors \ | ||
"${test_args[@]}" || err=$? | ||
|
||
if [ "$err" -ne 0 ]; then | ||
echo "--- annotating build result" | ||
failing_tests="$(mktemp)" | ||
|
||
echo 'Run this command to run failing tests locally:' >> "$failing_tests" | ||
echo >> "$failing_tests" | ||
echo '```bash' >> "$failing_tests" | ||
echo "./bazel test \\" >> "$failing_tests" | ||
|
||
# Take the lines that start with target labels. | ||
# Lines look like "//foo FAILED in 10s" | ||
{ ./bazel test --test_summary=terse "${test_args[@]}" || true ; } | \ | ||
grep '^//' | \ | ||
sed -e 's/ .*/ \\/' | \ | ||
sed -e 's/^/ /' >> "$failing_tests" | ||
|
||
# Put this last as an easy way to not have a `\` on the last line. | ||
echo ' -c opt --config=forcedebug' >> "$failing_tests" | ||
echo '```' >> "$failing_tests" | ||
|
||
buildkite-agent annotate --context "test-rbi-gen.sh" --style error --append < "$failing_tests" | ||
|
||
exit "$err" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.7 | ||
3.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.