-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI (Buildkite): Add
package_linux$ARCH
and tester_linux$ARCH
for …
…more Linux architectures, and use a separate rootfs image for the `tester_*` jobs
- Loading branch information
1 parent
f7f46af
commit 986b1c7
Showing
4 changed files
with
148 additions
and
93 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,142 @@ | ||
agents: | ||
queue: "julia" | ||
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing | ||
sandbox.jl: "true" | ||
os: "linux" | ||
|
||
steps: | ||
- label: "package_linux$ARCH" | ||
key: package_linux$ARCH | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.6 | ||
- staticfloat/sandbox#v1: | ||
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_PACK/package_linux.$ROOTFS_ARCH.tar.gz | ||
rootfs_treehash: "$ROOTFS_TREE_PACK" | ||
uid: 1000 | ||
gid: 1000 | ||
workspaces: | ||
# Include `/cache/repos` so that our `git` version introspection works. | ||
- "/cache/repos:/cache/repos" | ||
commands: | | ||
echo "--- Print the full and short commit hashes" | ||
SHORT_COMMIT_LENGTH=10 | ||
SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` | ||
JULIA_BINARYDIST_FILENAME=`make print-JULIA_BINARYDIST_FILENAME | cut -c27-` | ||
ARTIFACT_FILE_EXTENSION="tar.gz" | ||
ARTIFACT_FILENAME="$$JULIA_BINARYDIST_FILENAME.$$ARTIFACT_FILE_EXTENSION" | ||
echo "The full commit is: $$BUILDKITE_COMMIT" | ||
echo "The short commit is: $$SHORT_COMMIT" | ||
echo "The artifact filename will be: $$ARTIFACT_FILENAME" | ||
echo "--- Build Julia from source" | ||
rm -rf $$ARTIFACT_FILENAME | ||
make -j 8 | ||
echo "--- Print Julia version info" | ||
./julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' | ||
echo "--- Create build artifacts" | ||
make -j 8 binary-dist | ||
ls -l $$ARTIFACT_FILENAME | ||
echo "--- Upload build artifacts" | ||
buildkite-agent artifact upload $$ARTIFACT_FILENAME | ||
timeout_in_minutes: 60 | ||
notify: | ||
- github_commit_status: | ||
context: "package_linux$ARCH" | ||
|
||
- label: "tester_linux$ARCH" | ||
key: tester_linux$ARCH | ||
depends_on: package_linux$ARCH | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.6 | ||
- staticfloat/sandbox#v1: | ||
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_TEST/tester_linux.$ROOTFS_ARCH.tar.gz | ||
rootfs_treehash: "$ROOTFS_TREE_TEST" | ||
uid: 1000 | ||
gid: 1000 | ||
workspaces: | ||
# Include `/cache/repos` so that our `git` version introspection works. | ||
- "/cache/repos:/cache/repos" | ||
env: | ||
JULIA_SHELL: "/bin/bash" | ||
commands: | | ||
echo "--- Print the full and short commit hashes" | ||
SHORT_COMMIT_LENGTH=10 | ||
SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` | ||
JULIA_DIRECTORY_NAME="julia-$$SHORT_COMMIT" | ||
ARTIFACT_FILE_EXTENSION="tar.gz" | ||
ARTIFACT_FILENAME="julia-$$SHORT_COMMIT-linux$ARCH.$$ARTIFACT_FILE_EXTENSION" | ||
echo "The full commit is: $$BUILDKITE_COMMIT" | ||
echo "The short commit is: $$SHORT_COMMIT" | ||
echo "The artifact filename will be: $$ARTIFACT_FILENAME" | ||
echo "The Julia directory name will be: $$JULIA_DIRECTORY_NAME" | ||
echo "--- Download build artifacts" | ||
rm -rf $$ARTIFACT_FILENAME | ||
buildkite-agent artifact download $$ARTIFACT_FILENAME . | ||
echo "--- Extract build artifacts" | ||
rm -rf $$JULIA_DIRECTORY_NAME/ | ||
tar xzf $$ARTIFACT_FILENAME $$JULIA_DIRECTORY_NAME/ | ||
echo "--- Print Julia version info" | ||
$$JULIA_DIRECTORY_NAME/bin/julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' | ||
echo "--- Run the Julia test suite" | ||
unset JULIA_DEPOT_PATH | ||
$$JULIA_DIRECTORY_NAME/bin/julia .buildkite/utilities/rr/rr_capture.jl $$JULIA_DIRECTORY_NAME/bin/julia -e 'Base.runtests(["all"]; ncores = Sys.CPU_THREADS)' | ||
timeout_in_minutes: 120 | ||
notify: | ||
- github_commit_status: | ||
context: "tester_linux$ARCH" | ||
|
||
- label: "tester_linux$ARCH_sameimage" | ||
key: tester_linux$ARCH_sameimage | ||
depends_on: package_linux$ARCH | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.6 | ||
- staticfloat/sandbox#v1: | ||
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_PACK/tester_linux.$ROOTFS_ARCH.tar.gz | ||
rootfs_treehash: "$ROOTFS_TREE_PACK" | ||
uid: 1000 | ||
gid: 1000 | ||
workspaces: | ||
# Include `/cache/repos` so that our `git` version introspection works. | ||
- "/cache/repos:/cache/repos" | ||
env: | ||
JULIA_SHELL: "/bin/bash" | ||
commands: | | ||
echo "--- Print the full and short commit hashes" | ||
SHORT_COMMIT_LENGTH=10 | ||
SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` | ||
JULIA_DIRECTORY_NAME="julia-$$SHORT_COMMIT" | ||
ARTIFACT_FILE_EXTENSION="tar.gz" | ||
ARTIFACT_FILENAME="julia-$$SHORT_COMMIT-linux$ARCH.$$ARTIFACT_FILE_EXTENSION" | ||
echo "The full commit is: $$BUILDKITE_COMMIT" | ||
echo "The short commit is: $$SHORT_COMMIT" | ||
echo "The artifact filename will be: $$ARTIFACT_FILENAME" | ||
echo "The Julia directory name will be: $$JULIA_DIRECTORY_NAME" | ||
echo "--- Download build artifacts" | ||
rm -rf $$ARTIFACT_FILENAME | ||
buildkite-agent artifact download $$ARTIFACT_FILENAME . | ||
echo "--- Extract build artifacts" | ||
rm -rf $$JULIA_DIRECTORY_NAME/ | ||
tar xzf $$ARTIFACT_FILENAME $$JULIA_DIRECTORY_NAME/ | ||
echo "--- Print Julia version info" | ||
$$JULIA_DIRECTORY_NAME/bin/julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' | ||
echo "--- Run the Julia test suite" | ||
unset JULIA_DEPOT_PATH | ||
$$JULIA_DIRECTORY_NAME/bin/julia .buildkite/utilities/rr/rr_capture.jl $$JULIA_DIRECTORY_NAME/bin/julia -e 'Base.runtests(["all"]; ncores = Sys.CPU_THREADS)' | ||
timeout_in_minutes: 120 | ||
notify: | ||
- github_commit_status: | ||
context: "tester_linux$ARCH_sameimage" |
This file was deleted.
Oops, something went wrong.
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