Skip to content
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

Remove clang-format for autotests github action. It takes too many time #769

Closed
wants to merge 1 commit into from

Conversation

Montel
Copy link
Contributor

@Montel Montel commented Dec 26, 2023

No description provided.

@Montel Montel self-assigned this Dec 26, 2023
@Montel Montel force-pushed the remove_clang_format_autotest_macos branch from be7a18d to fb43b6a Compare December 26, 2023 13:48
@@ -65,7 +65,7 @@ jobs:
# once Ubuntu 22.04 is we can move to clang-format-14 everywhere
# for now we need at least clang-format-12 otherwise include reordering fails after clang-format off
# https://github.com/KDAB/cxx-qt/issues/121
ctest_args: --exclude-regex '^(example_qml_features_test|example_qml_minimal_myobject_test|reuse_lint|cpp_clang_format|cargo_build_rerun|.*valgrind)$'
ctest_args: --exclude-regex '^(cargo_tests|example_qml_features_test|example_qml_minimal_myobject_test|reuse_lint|cpp_clang_format|cargo_build_rerun|.*valgrind)$'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is cargo_tests being added here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it tests clang-format => if we remove clang-format support this test will failed

@@ -184,7 +184,7 @@ jobs:
# https://github.com/KDAB/cxx-qt/issues/121
#
# automake is needed for building libicu which is a dependency of Qt
run: brew install automake autoconf-archive ninja clang-format
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should instead be removing clang-format from the ctests as well and running clang-format in it's own job, see clang-format-rs for ideas https://github.com/KDAB/clang-format-rs/blob/main/.github/workflows/github-clang-format-tests.yml

@@ -184,7 +184,7 @@ jobs:
# https://github.com/KDAB/cxx-qt/issues/121
#
# automake is needed for building libicu which is a dependency of Qt
run: brew install automake autoconf-archive ninja clang-format
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the end, moving to macOS 12 has made installing clang-format fast again ? So do we need to worry about this ? As we'll still want cargo test on all platforms i think ?

@LeonMatthesKDAB
Copy link
Collaborator

I agree with @ahayzen-kdab , Installing clang-format is luckily fast again now.

I think we can close this. We do want to run cargo test on all platforms if we can.
It's still slow, but can hopefully be sped up by using sccache, which should push it to <10 min.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants