Skip to content

[gce_testing] Create findMatchingLogs to return all found logs and create QueryAllLogs. #706

[gce_testing] Create findMatchingLogs to return all found logs and create QueryAllLogs.

[gce_testing] Create findMatchingLogs to return all found logs and create QueryAllLogs. #706

Workflow file for this run

# Copyright 2025 Google LLC
#
# 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
#
# 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.
name: Presubmit
permissions:
contents: read
pull-requests: write
on:
pull_request:
branches:
- master
env:
# Default minimum version of Go to support.
DEFAULT_GO_VERSION: 1.24
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04]
# The OpenTelemetry Collector modules all support one Go version
# back from current mainline release.
# We build GBOC with the most current Go version possible.
# As a result, we run CI on one version back and current.
# We have had very rare problems with particular Go updates
# (mainly to do with CGO) so testing one version back
# also helps avoid that.
go: [1.24, 1.25]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
lfs: true
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- name: Install Tools
run: make install-tools
- name: Run presubmit (GPU off)
run: make presubmit
- name: Run presubmit (GPU on)
run: GO_BUILD_TAGS=gpu make presubmit
test-components:
strategy:
matrix:
distro: [google-otel, otelopscol]
go: [1.24, 1.25]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
lfs: true
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
- name: Test Components
run: make test-${{matrix.distro}}-components
test-distros:
strategy:
matrix:
distro: [google-built-opentelemetry-collector, otelopscol]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
lfs: true
- name: Build Distro
run: cd ${{matrix.distro}} && make image-build-full