Skip to content

Commit 460e981

Browse files
authored
Streamline buildkite configuration a bit (#41494)
* Add `/cache/repos` as a mapping into the CI sandbox This should allow `git` to find its cached objects properly, which should silence the warnings on CI, and also give us the proper git version info within buildkite builds * Break up `llvmpasses` output a bit * Provide `/cache/repos` for `whitespace` as well * Give a positive message if whitespace check passes It's a little unnerving to have a silent command block in buildkite, so let's output a success message if everything is on the up-and-up
1 parent f2d7300 commit 460e981

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.buildkite/embedding.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ steps:
1818
rootfs_treehash: "f3ed53f159e8f13edfba8b20ebdb8ece73c1b8a8"
1919
uid: 1000
2020
gid: 1000
21+
workspaces:
22+
# Include `/cache/repos` so that our `git` version introspection works.
23+
- "/cache/repos:/cache/repos"
2124
commands: |
2225
prefix="/tmp/prefix"
2326
echo "+++ Build julia, deploy to $${prefix}"

.buildkite/llvm_passes.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ steps:
1616
- staticfloat/sandbox#v1:
1717
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v1/llvm-passes.tar.gz
1818
rootfs_treehash: "f3ed53f159e8f13edfba8b20ebdb8ece73c1b8a8"
19+
workspaces:
20+
# Include `/cache/repos` so that our `git` version introspection works.
21+
- "/cache/repos:/cache/repos"
1922
commands: |
2023
echo "--- Install in-tree LLVM dependencies"
2124
make -j$${JULIA_NUM_CORES} -C deps install-llvm install-clang install-llvm-tools install-libuv install-utf8proc install-unwind
@@ -37,10 +40,14 @@ steps:
3740
rootfs_treehash: "f3ed53f159e8f13edfba8b20ebdb8ece73c1b8a8"
3841
uid: 1000
3942
gid: 1000
43+
workspaces:
44+
- "/cache/repos:/cache/repos"
4045
commands: |
41-
echo "+++ run llvmpasses"
46+
echo "--- make release"
4247
make -j$${JULIA_NUM_CORES} release JULIA_PRECOMPILE=0
48+
echo "--- make src/install-analysis-deps"
4349
make -j$${JULIA_NUM_CORES} -C src install-analysis-deps
50+
echo "+++ make test/llvmpasses"
4451
make -j$${JULIA_NUM_CORES} -C test/llvmpasses
4552
timeout_in_minutes: 60
4653
notify:

.buildkite/whitespace.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ steps:
1616
- staticfloat/sandbox#v1:
1717
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v1/llvm-passes.tar.gz
1818
rootfs_treehash: "f3ed53f159e8f13edfba8b20ebdb8ece73c1b8a8"
19+
workspaces:
20+
- "/cache/repos:/cache/repos"
1921
commands: |
2022
make -j$${JULIA_NUM_CORES} check-whitespace
2123
timeout_in_minutes: 10

contrib/check-whitespace.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ if git --no-pager grep --color -n --full-name -e ' $' -- $file_patterns; then
3535
echo "and then a forced push of the correct branch"
3636
exit 1
3737
fi
38+
39+
echo "Whitespace check found no issues"

0 commit comments

Comments
 (0)