Skip to content

Commit 5113b7f

Browse files
udesoustephenrkellqinsoonLuis Eduardo de Souza Amorim
authored
Updating dev branches with latest version from upstream (#226)
Updating `dev`. Merge with mmtk/julia#85. --------- Co-authored-by: Stephen Kell <[email protected]> Co-authored-by: Yi Lin <[email protected]> Co-authored-by: Luis Eduardo de Souza Amorim <[email protected]>
1 parent e780a0b commit 5113b7f

32 files changed

+3669
-331
lines changed

.github/mergify.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ pull_request_rules:
2121
assignees:
2222
- "{{ author }}"
2323
label_conflicts: backport-conflicts
24+
- name: backport patches to dev
25+
conditions:
26+
- base=master
27+
- label=backport-dev
28+
actions:
29+
backport:
30+
branches:
31+
- dev
32+
assignees:
33+
- "{{ author }}"
34+
label_conflicts: backport-conflicts

.github/scripts/Make.user

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
FORCE_ASSERTIONS=1
2-
LLVM_ASSERTIONS=1
2+
LLVM_ASSERTIONS=1
3+
USE_BINARYBUILDER_MMTK_JULIA=0

.github/scripts/ci-build.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ fi
2727
plan_feature=${plan,,}
2828
moving_feature=${is_moving,,}
2929

30-
cd $MMTK_JULIA_DIR/mmtk
31-
cargo build --features $plan_feature,$moving_feature $build_args
30+
if [ "$is_moving" == "moving" ]; then
31+
MOVING=1
32+
else
33+
MOVING=0
34+
fi
3235

3336
cd $JULIA_PATH
34-
3537
# Clean first
3638
make cleanall
37-
# Build
39+
# This will build the binding in MMTK_JULIA_DIR (defined in common.sh), and link it
40+
# when building Julia, instead of using the set version defined in Julia itself
3841
cp $BINDING_PATH/.github/scripts/Make.user $JULIA_PATH/
39-
MMTK_PLAN=$plan MMTK_BUILD=$build_type make
42+
MMTK_MOVING=$MOVING MMTK_PLAN=$plan MMTK_BUILD=$build_type make
4043
# Run hello world
4144
$JULIA_PATH/julia $HELLO_WORLD_JL

.github/scripts/ci-checkout.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ set -ex
22

33
. $(dirname "$0")/common.sh
44

5-
JULIA_URL=`cargo read-manifest --manifest-path=$BINDING_PATH/mmtk/Cargo.toml | python -c 'import json,sys; print(json.load(sys.stdin)["metadata"]["julia"]["julia_repo"])'`
6-
JULIA_VERSION=`cargo read-manifest --manifest-path=$BINDING_PATH/mmtk/Cargo.toml | python -c 'import json,sys; print(json.load(sys.stdin)["metadata"]["julia"]["julia_version"])'`
5+
# We may later allow setting up a specific version of Julia using comments
6+
# in the PR, but for now we just use the latest master from JuliaLang
7+
JULIA_URL=https://github.com/$1.git
8+
JULIA_VERSION=$2
79

810
rm -rf $JULIA_PATH
911
git clone $JULIA_URL $JULIA_PATH

.github/scripts/ci-ffi.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set -ex
2+
3+
. $(dirname "$0")/common.sh
4+
5+
pushd $MMTK_JULIA_DIR
6+
7+
make regen-bindgen-ffi
8+
9+
popd
10+

.github/scripts/ci-style.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ export RUSTFLAGS="-D warnings"
66

77
pushd $BINDING_PATH/mmtk
88

9-
# Currently we have many warnings from clippy, and we have PRs sitting there to be merged.
10-
# I am concerned that enabling this will cause merge conflicts everywhere.
11-
# However, we should enable this as soon as we can.
12-
# cargo clippy
13-
# cargo clippy --release
9+
cargo clippy
10+
cargo clippy --release
1411

1512
cargo fmt -- --check
1613
popd

.github/scripts/ci-test-LinearAlgebra.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ num_workers=2
1313
export JULIA_TEST_MAXRSS_MB=$((total_mem_restricted/ num_workers))
1414

1515
echo "-> Run single threaded"
16-
ci_run_jl_test "LinearAlgebra" 2
16+
ci_run_jl_test "LinearAlgebra" 2

.github/scripts/ci-test-gc-core.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ do
2727
ci_run_jl_test $test
2828
fi
2929
done
30-
31-

.github/scripts/ci-test-stdlib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ declare -a tests_to_skip=(
2222
"SparseArrays"
2323
# Running LinearAlgebra in a separate job
2424
"LinearAlgebra"
25+
# Skipping distributed tests because of https://github.com/JuliaLang/Distributed.jl/issues/132
26+
"Distributed"
2527
)
2628
# These tests need multiple workers.
2729
declare -a tests_with_multi_workers=(

.github/scripts/ci-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cd $cur
1515

1616
# Use release build to run tests
1717
cd $cur
18-
./ci-test-gc-core.sh
18+
./ci-test-gc-core.sh

0 commit comments

Comments
 (0)