-
Notifications
You must be signed in to change notification settings - Fork 3
ci: Cherry-pick prestodb/presto#13361 to use pre-commit for quality checks; Fix compilation caching by using cache on runner.
#11
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
Changes from all commits
17a3ee4
40afa57
e972b81
f7a5f79
7ee96d9
b9f5816
13c0794
3f445dd
04c6191
8df7c10
f430fd6
a8d72a0
0659d3e
a1ae373
49ee963
175e131
16e8eaf
d99245f
8d95db1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| Checks: > | ||
| *, | ||
| -abseil-*, | ||
| -android-*, | ||
| -cert-err58-cpp, | ||
| -cert-err58-cpp, | ||
| -clang-analyzer-osx-*, | ||
| -cppcoreguidelines-avoid-c-arrays, | ||
| -cppcoreguidelines-avoid-goto, | ||
| -cppcoreguidelines-avoid-magic-numbers, | ||
| -cppcoreguidelines-avoid-non-const-global-variables, | ||
| -cppcoreguidelines-owning-memory, | ||
| -cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
| -cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
| -cppcoreguidelines-pro-type-reinterpret-cast, | ||
|
Comment on lines
+1
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Switch to literal block for Using YAML folded style ( -Checks: >
+Checks: |
*
-abseil-*
-android-*
...
🤖 Prompt for AI Agents |
||
| -cppcoreguidelines-pro-type-vararg, | ||
| -cppcoreguidelines-pro-type-vararg, | ||
| -cppcoreguidelines-special-member-functions, | ||
| -fuchsia-*, | ||
| -google-*, | ||
| -hicpp-avoid-c-arrays, | ||
| -hicpp-avoid-goto, | ||
| -hicpp-deprecated-headers, | ||
| -hicpp-no-array-decay, | ||
| -hicpp-special-member-functions, | ||
| -hicpp-use-equals-default, | ||
| -hicpp-vararg, | ||
| -hicpp-vararg, | ||
| -llvm-header-guard, | ||
| -llvm-include-order, | ||
| -llvmlibc-*, | ||
| -misc-no-recursion, | ||
| -misc-no-recursion, | ||
| -misc-non-private-member-variables-in-classes, | ||
| -misc-unused-parameters, | ||
| -modernize-avoid-c-arrays, | ||
| -modernize-deprecated-headers, | ||
| -modernize-use-nodiscard, | ||
| -modernize-use-trailing-return-type, | ||
| -mpi-*, | ||
| -objc-*, | ||
| -openmp-*, | ||
| -readability-avoid-const-params-in-decls, | ||
| -readability-convert-member-functions-to-static, | ||
| -readability-implicit-bool-conversion, | ||
| -readability-magic-numbers, | ||
| -zircon-*, | ||
|
|
||
| HeaderFilterRegex: '.*' | ||
|
|
||
| WarningsAsErrors: '' | ||
|
|
||
|
Comment on lines
+49
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Restrict
🤖 Prompt for AI Agents |
||
| CheckOptions: | ||
| # Naming conventions as explicitly stated in CODING_STYLE.md | ||
| - key: readability-identifier-naming.ClassCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.StructCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.EnumCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.TypeAliasCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.TypeTemplateParameterCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.FunctionCase | ||
| value: camelBack | ||
| - key: readability-identifier-naming.VariableCase | ||
| value: camelBack | ||
| - key: readability-identifier-naming.ParameterCase | ||
| value: camelBack | ||
| - key: readability-identifier-naming.PrivateMemberCase | ||
| value: camelBack | ||
| - key: readability-identifier-naming.PrivateMemberSuffix | ||
| value: _ | ||
| - key: readability-identifier-naming.ProtectedMemberCase | ||
| value: camelBack | ||
| - key: readability-identifier-naming.ProtectedMemberSuffix | ||
| value: _ | ||
| - key: readability-identifier-naming.MacroDefinitionCase | ||
| value: UPPER_CASE | ||
| - key: readability-identifier-naming.NamespaceCase | ||
| value: lower_case | ||
| - key: readability-identifier-naming.StaticConstantPrefix | ||
| value: k | ||
| - key: readability-identifier-naming.EnumConstantCase | ||
| value: CamelCase | ||
| - key: readability-identifier-naming.EnumConstantPrefix | ||
| value: k | ||
|
|
||
| # Use nullptr instead of NULL or 0 | ||
| - key: modernize-use-nullptr.NullMacros | ||
| value: 'NULL' | ||
|
|
||
| # Prefer enum class over enum | ||
| - key: modernize-use-using.IgnoreUsingStdAllocator | ||
| value: 1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
|
|
||
| name: Build problem | ||
| description: Report an issue when building Velox. | ||
| labels: ["build", "triage"] | ||
| labels: [build, triage] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
|
|
@@ -26,7 +26,7 @@ body: | |
| attributes: | ||
| label: Problem description | ||
| description: Please describe the problem. | ||
| value: "Please describe how you were trying to build velox and what issue occured" | ||
| value: Please describe how you were trying to build velox and what issue occured | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Fix typo and align placeholder formatting 🤖 Prompt for AI Agents |
||
| validations: | ||
| required: true | ||
| - type: textarea | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,45 +18,50 @@ on: | |
| workflow_call: | ||
| inputs: | ||
| use-clang: | ||
| description: 'Use Clang to compile the project.' | ||
| description: Use Clang to compile the project. | ||
| default: false | ||
| required: false | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| ubuntu-release: | ||
| name: "Ubuntu release with resolve_dependency" | ||
| name: Ubuntu release with resolve_dependency | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider hyphenating job name for consistency 🤖 Prompt for AI Agents |
||
| runs-on: yscope-gh-runner | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix invalid runner label in 🧰 Tools🪛 actionlint (1.7.7)29-29: label "yscope-gh-runner" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file (runner-label) 🤖 Prompt for AI Agents |
||
| env: | ||
| CCACHE_DIR: "${{ github.workspace }}/ccache" | ||
| USE_CLANG: "${{ inputs.use-clang && 'true' || 'false' }}" | ||
| CCACHE_COMPRESSLEVEL: 2 | ||
| CCACHE_MAX_SIZE: 5G | ||
| USE_CLANG: ${{ inputs.use-clang && 'true' || 'false' }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Quote the Wrapping 🤖 Prompt for AI Agents |
||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: velox | ||
| steps: | ||
| - name: Ensure Stash Dirs Exists | ||
| working-directory: ${{ github.workspace }} | ||
| run: | | ||
| mkdir -p '${{ env.CCACHE_DIR }}' | ||
|
|
||
| - uses: actions/checkout@v4 | ||
| with: | ||
| path: velox | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Dependencies | ||
| run: | | ||
| source scripts/setup-ubuntu.sh && install_apt_deps | ||
|
|
||
| - name: Clear CCache Statistics | ||
| run: | | ||
| ccache -sz | ||
|
|
||
|
Comment on lines
+48
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure cache directory exists. The 🤖 Prompt for AI Agents |
||
| - name: Build Artifact | ||
| env: | ||
| VELOX_DEPENDENCY_SOURCE: BUNDLED | ||
| ICU_SOURCE: SYSTEM | ||
| MAKEFLAGS: "MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=3" | ||
| MAKEFLAGS: MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=3 | ||
| run: | | ||
|
Comment on lines
+56
to
57
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Quote complex The unquoted env:
MAKEFLAGS: "MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=3"🤖 Prompt for AI Agents |
||
| if [[ "${USE_CLANG}" = "true" ]]; then export CC=/usr/bin/clang-15; export CXX=/usr/bin/clang++-15; fi | ||
| make release | ||
|
|
||
| - name: CCache after | ||
| run: | | ||
| ccache -vs | ||
|
|
||
| - name: Run Tests | ||
| run: | | ||
| cd _build/release && ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure --no-tests=error | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicate check entries
The disabled patterns list contains duplicates (e.g.,
cert-err58-cpptwice). Deduplicate entries to streamline maintenance.🤖 Prompt for AI Agents