Skip to content

Add object pool for payload.Object_Vector #2045

Add object pool for payload.Object_Vector

Add object pool for payload.Object_Vector #2045

Workflow file for this run

#
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]>
#
# Licensed 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
#
# https://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.
#
name: "Run hack tests"
on:
push:
branches:
- main
paths:
- "go.mod"
- "go.sum"
- ".github/workflows/test-hack.yml"
- "hack/gorules/**"
- "hack/helm/**"
- "hack/license/**"
- "hack/tools/**"
pull_request:
paths:
- "go.mod"
- "go.sum"
- ".github/workflows/test-hack.yml"
- "hack/gorules/**"
- "hack/helm/**"
- "hack/license/**"
- "hack/tools/**"
env:
# NOTE: This variable is used to make gorules run properly.
GOPATH: ${{ github.workspace }}
PROJECT_ROOT_DIR: src/github.com/vdaas/vald
jobs:
dump-contexts-to-log:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/dump-context
test-hack:
name: Run tests for hack packages
runs-on: ubuntu-latest
container:
image: ghcr.io/vdaas/vald/vald-ci-container:nightly
defaults:
run:
working-directory: ${{ env.GOPATH }}/${{ env.PROJECT_ROOT_DIR }}
steps:
- uses: actions/checkout@v3
with:
path: ${{ env.PROJECT_ROOT_DIR }}
- name: Set Git config
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Install Proto dependencies
run: |
make proto/deps
- name: Run tests for hack packages / gotestfmt
run: |
TEST_RESULT_DIR=${GITHUB_WORKSPACE} make test/hack/gotestfmt
- name: Print tparse result
run: |
tparse -notests -smallscreen -sort cover -format markdown -file ${GITHUB_WORKSPACE}/test-hack-gotestfmt-result.json