8000 Added CI tests for Clang 16/Ubuntu 22.04 by michael-wb · Pull Request #6563 · realm/realm-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added CI tests for Clang 16/Ubuntu 22.04 #6563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
### Internals
* Reduce the memory footprint of an automatic (discard or recover) client reset when there are large incoming changes from the server. ([#6567](https://github.com/realm/realm-core/issues/6567))
* `get_committed_file_format_version()` safe access to mappings vector from multiple threads.
* Add CI tests for Clang 16/Ubuntu 22.04 and update lint task ([PR #6563](https://github.com/realm/realm-core/pull/6563))

----------------------------------------------

Expand Down
57 changes: 36 additions & 21 deletions evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,10 @@ tasks:
format_ref="${revision}"
fi

readonly out=$(git clang-format -v --diff $format_ref)
clang_command="git clang-format -v --diff $format_ref"
out=$($clang_command)

echo -e "CLANG: $clang_command\n$out"

if [[ "$out" == *"no modified files to format"* ]]; then
exit 0
Expand All @@ -818,7 +821,7 @@ tasks:
fi

echo "ERROR: you need to run git clang-format on your commit"
echo $out
echo "COMMAND: git clang-format -f --commit $format_ref"
exit 1

- name: fuzzer
Expand Down Expand Up @@ -887,6 +890,20 @@ task_groups:
tasks:
- core-tests

- name: core_sync_tests_group
setup_group_can_fail_task: true
setup_group:
- func: "fetch source"
- func: "fetch binaries"
teardown_task:
- func: "upload test results"
timeout:
- func: "run hang analyzer"
tasks:
- compile
- core-tests
- sync-tests

- name: benchmarks
setup_group_can_fail_task: true
setup_group:
Expand Down Expand Up @@ -929,26 +946,10 @@ task_groups:
tasks:
- fuzzer

- name: object-store-tests-v8
setup_group_can_fail_task: true
setup_group:
- func: "fetch source"
- func: "fetch binaries"
- func: "compile"
vars:
long_running_test_duration: 2
target_to_build: ObjectStoreTests
teardown_task:
- func: "upload test results"
timeout:
- func: "run hang analyzer"
tasks:
- object-store-tests

buildvariants:
- name: ubuntu2004
display_name: "Ubuntu 20.04 x86_64 (Clang 11)"
run_on: ubuntu2004-small
run_on: ubuntu2004-large
expansions:
clang_url: "https://s3.amazonaws.com/static.realm.io/evergreen-assets/clang%2Bllvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04.tar.xz"
cmake_url: "https://s3.amazonaws.com/static.realm.io/evergreen-assets/cmake-3.20.3-linux-x86_64.tar.gz"
Expand All @@ -958,10 +959,24 @@ buildvariants:
c_compiler: "./clang_binaries/bin/clang"
cxx_compiler: "./clang_binaries/bin/clang++"
tasks:
- name: lint
- name: compile_test

- name: ubuntu2204
display_name: "Ubuntu 22.04 x86_64 (Clang 16 + lint)"
run_on: ubuntu2204-large
expansions:
clang_url: "https://s3.amazonaws.com/static.realm.io/evergreen-assets/clang%2Bllvm-16.0.2-x86_64-linux-gnu-ubuntu-22.04.tar.xz"
cmake_url: "https://s3.amazonaws.com/static.realm.io/evergreen-assets/cmake-3.26.3-linux-x86_64.tar.gz"
cmake_bindir: "./cmake_binaries/bin"
fetch_missing_dependencies: On
run_tests_against_baas: On
c_compiler: "./clang_binaries/bin/clang"
cxx_compiler: "./clang_binaries/bin/clang++"
tasks:
- name: lint
distros:
- ubuntu2004-large
- ubuntu2204-small
- name: core_sync_tests_group

- name: ubuntu2004-session-multiplexing
display_name: "Ubuntu 20.04 x86_64 (Sync Multiplexing Enabled)"
Expand Down
0