This is an automated email from the ASF dual-hosted git repository. yecol pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push: new 8e2a5de8 feat(ci): focus cpp lcov code coverage reports to just core path (#748) 8e2a5de8 is described below commit 8e2a5de8db977805d9d6ca102ff4f228d08903a6 Author: Xiaokang Yang <81174897+yang...@users.noreply.github.com> AuthorDate: Tue Sep 9 10:20:22 2025 +0800 feat(ci): focus cpp lcov code coverage reports to just core path (#748) * config lcov extract * update * add codecov yml * add license --- .github/workflows/ci.yml | 25 +++++++++++++------------ codecov.yml | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1a8ff51..1306bf22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,25 +148,26 @@ jobs: run: | export ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure - + + - name: Benchmark + working-directory: "cpp/build" + run: | + ./graph_info_benchmark + ./arrow_chunk_reader_benchmark + ./label_filter_benchmark + - name: Generate coverage info working-directory: "cpp/build" run: | lcov --capture --directory . --output-file coverage.info + lcov --extract coverage.info '*/src/graphar/*' --output-file coverage.info lcov --remove coverage.info '/usr/*' --output-file coverage.info lcov --list coverage.info - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - - - name: Benchmark - working-directory: "cpp/build" - run: | - ./graph_info_benchmark - ./arrow_chunk_reader_benchmark - ./label_filter_benchmark - name: Use Static Arrow working-directory: "cpp" @@ -184,7 +185,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ubuntu-libgraphar.a - path: cpp/build-static/libgraphar.a + path: cpp/build-static/libgraphar.a macos: name: ${{ matrix.architecture }} macOS ${{ matrix.macos-version }} C++ @@ -209,7 +210,7 @@ jobs: run: | brew bundle --file=cpp/Brewfile git clone https://github.com/apache/incubator-graphar-testing.git $GAR_TEST_DATA --depth 1 - + - name: Build GraphAr working-directory: "cpp" run: | @@ -242,4 +243,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: macos-${{ matrix.macos-version }}-libgraphar.a - path: cpp/build-static/libgraphar.a \ No newline at end of file + path: cpp/build-static/libgraphar.a \ No newline at end of file diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..4ad85655 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +ignore: + - "cpp/benchmarks/**" + - "cpp/examples/**" + - "cpp/thirdparty/**" + - "cpp/test/**" \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org For additional commands, e-mail: commits-h...@graphar.apache.org