Skip to content

invocation/error_card: don't show NO_BUILD abort events with cquery #9598

invocation/error_card: don't show NO_BUILD abort events with cquery

invocation/error_card: don't show NO_BUILD abort events with cquery #9598

name: "Test linux/arm64 executor"
on:
push:
branches:
- "master"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-22.04-16cpu-arm64
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout
uses: actions/checkout@v4
# GitHub's arm64 runners do not have the same pre-installed software as
# the amd64 runners so we have to install a few things here.
- name: Install bazelisk
run: |
curl -L --output /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-arm64
chmod +x /tmp/bazelisk
sudo mv /tmp/bazelisk /usr/bin/bazelisk
sudo ln -s /usr/bin/bazelisk /usr/bin/bazel
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y gcc g++
- name: Restore caches
id: cache-restore
uses: ./.github/actions/cache-restore
- name: Run tests
env:
GO_REPOSITORY_USE_HOST_CACHE: 1
GOMODCACHE: /home/runner/go-mod-cache
run: |
BUILD_FLAGS=(
--config=cache
--repository_cache=~/repo-cache
--bes_backend=remote.buildbuddy.io
--bes_results_url=https://app.buildbuddy.io/invocation/
--remote_cache=remote.buildbuddy.io
--flaky_test_attempts=3
--local_test_jobs=1
--build_metadata=ROLE=CI
--color=yes
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }}
)
bazel test "${BUILD_FLAGS[@]}" --test_tag_filters=-performance,-docker \
-- \
//enterprise/server/remote_execution/... \
//enterprise/server/test/integration/remote_execution/... \
-//enterprise/server/remote_execution/containers/firecracker/... \
-//enterprise/server/test/integration/remote_execution:remote_execution_test
# Run a separate bazel invocation to invoke tests with the "docker" tag.
# TODO: improve platform setup so that we can run this whenever the
# host has podman available.
bazel test "${BUILD_FLAGS[@]}" --test_tag_filters=+docker \
//enterprise/server/test/integration/podman:podman_test
- name: Save caches
uses: ./.github/actions/cache-save
if: always()
with:
repo-cache-dir: ${{ steps.cache-restore.outputs.repo-cache-dir }}
go-mod-cache-dir: ${{ steps.cache-restore.outputs.go-mod-cache-dir }}
yarn-cache-dir: ${{ steps.cache-restore.outputs.yarn-cache-dir }}