Skip to content

Fix model serving telemetry_config drift and dropped updates #11227

Fix model serving telemetry_config drift and dropped updates

Fix model serving telemetry_config drift and dropped updates #11227

Workflow file for this run

name: check
on:
pull_request:
types: [opened, synchronize]
merge_group:
types: [checks_requested]
push:
# Always run on push to main. The build cache can only be reused
# if it was saved by a run from the repository's default branch.
# The run result will be identical to that from the merge queue
# because the commit is identical, yet we need to perform it to
# seed the build cache.
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
# Use different schema from regular job, to avoid overwriting the same key
cache-dependency-path: |
go.sum
.golangci.yaml
- name: Run go mod tidy
run: go mod tidy
- name: Fail if go.mod/go.sum changed
run: git diff --exit-code
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: "0.8.9"
- name: Run Go and Python lint checks (does not include formatting checks)
# `task lint` runs golangci-lint and `ruff check` (lint-python). ruff is
# provided by uvx, installed above; formatting is checked by `task fmt` below.
run: go tool -modfile=tools/task/go.mod task lint
- name: "task fmt: Python, Go and YAML formatting"
# `task fmt` runs ruff format (Python) plus Go and YAML formatters; the diff
# check fails the build if anything was left unformatted.
run: |
go tool -modfile=tools/task/go.mod task fmt
git diff --exit-code
- name: "task checks: custom checks outside of fmt and lint"
run: |-
go tool -modfile=tools/task/go.mod task checks
git diff --exit-code