You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
3ecd36a953
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/download-artifact](https://redirect.github.com/actions/download-artifact) | action | major | `v5.0.0` -> `v6.0.0` | | [actions/upload-artifact](https://redirect.github.com/actions/upload-artifact) | action | major | `v4.6.2` -> `v5.0.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>actions/download-artifact (actions/download-artifact)</summary> ### [`v6.0.0`](https://redirect.github.com/actions/download-artifact/releases/tag/v6.0.0) [Compare Source](https://redirect.github.com/actions/download-artifact/compare/v5.0.0...v6.0.0) #### What's Changed **BREAKING CHANGE:** this update supports Node `v24.x`. This is not a breaking change per-se but we're treating it as such. - Update README for download-artifact v5 changes by [@​yacaovsnc](https://redirect.github.com/yacaovsnc) in [#​417](https://redirect.github.com/actions/download-artifact/pull/417) - Update README with artifact extraction details by [@​yacaovsnc](https://redirect.github.com/yacaovsnc) in [#​424](https://redirect.github.com/actions/download-artifact/pull/424) - Readme: spell out the first use of GHES by [@​danwkennedy](https://redirect.github.com/danwkennedy) in [#​431](https://redirect.github.com/actions/download-artifact/pull/431) - Bump `@actions/artifact` to `v4.0.0` - Prepare `v6.0.0` by [@​danwkennedy](https://redirect.github.com/danwkennedy) in [#​438](https://redirect.github.com/actions/download-artifact/pull/438) #### New Contributors - [@​danwkennedy](https://redirect.github.com/danwkennedy) made their first contribution in [#​431](https://redirect.github.com/actions/download-artifact/pull/431) **Full Changelog**: <https://github.com/actions/download-artifact/compare/v5...v6.0.0> </details> <details> <summary>actions/upload-artifact (actions/upload-artifact)</summary> ### [`v5.0.0`](https://redirect.github.com/actions/upload-artifact/compare/v4.6.2...v5.0.0) [Compare Source](https://redirect.github.com/actions/upload-artifact/compare/v4.6.2...v5.0.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/open-telemetry/opentelemetry-go). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTYuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
178 lines
6.2 KiB
YAML
178 lines
6.2 KiB
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
env:
|
|
# Default version of Go to use by CI workflows. This should be the latest
|
|
# release of Go; developers likely use the latest release in development and
|
|
# we want to catch any bugs (e.g. lint errors, race detection) with this
|
|
# release before they are merged. The Go compatibility guarantees ensure
|
|
# backwards compatibility with the previous two minor releases and we
|
|
# explicitly test our code for these versions so keeping this at prior
|
|
# versions does not add value.
|
|
DEFAULT_GO_VERSION: "~1.25.0"
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
fetch-depth: 0 ## Needed for "Set internal/tools/go.mod timestamp" step.
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Tools cache
|
|
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
env:
|
|
cache-name: go-tools-cache
|
|
with:
|
|
path: .tools
|
|
key: ${{ runner.os }}-${{ env.DEFAULT_GO_VERSION }}-${{ env.cache-name }}-${{ hashFiles('./internal/tools/**') }}
|
|
# The step below is needed to not rebuild all the build tools.
|
|
- name: Set internal/tools/go.mod timestamp
|
|
run: |
|
|
filename="internal/tools/go.mod"
|
|
unixtime=$(git log -1 --format="%at" -- "${filename}")
|
|
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
|
|
touch -t ${touchtime} "${filename}"
|
|
ls -la --time-style=full-iso "${filename}"
|
|
- name: Generate
|
|
run: make generate
|
|
- name: Run linters
|
|
run: make toolchain-check license-check lint vanity-import-check verify-readmes verify-mods
|
|
- name: Build
|
|
run: make build
|
|
- name: Check clean repository
|
|
run: make check-clean-work-tree
|
|
test-bench:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Setup Environment
|
|
run: |
|
|
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
|
|
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run benchmarks to check functionality
|
|
run: make test-bench
|
|
|
|
test-race:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run tests with race detector
|
|
run: make test-race
|
|
|
|
test-concurrent-safe:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run ConcurrentSafe tests multiple times with race detector
|
|
run: make test-concurrent-safe
|
|
|
|
test-coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ env.DEFAULT_GO_VERSION }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run coverage tests
|
|
run: make test-coverage
|
|
- name: Store coverage test output
|
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
with:
|
|
name: coverage-artifacts-${{ env.DEFAULT_GO_VERSION }}
|
|
path: coverage.txt
|
|
|
|
codecov:
|
|
runs-on: ubuntu-latest
|
|
needs: [test-coverage]
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
|
with:
|
|
pattern: coverage-artifacts-${{ env.DEFAULT_GO_VERSION }}
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
|
|
with:
|
|
fail_ci_if_error: true
|
|
files: ./coverage.txt
|
|
verbose: true
|
|
|
|
compatibility-test:
|
|
strategy:
|
|
matrix:
|
|
go-version: ["1.25.0", "1.24.0"]
|
|
platform:
|
|
- os: ubuntu-latest
|
|
arch: "386"
|
|
- os: ubuntu-latest
|
|
arch: amd64
|
|
- os: ubuntu-22.04-arm
|
|
arch: arm64
|
|
- os: macos-13
|
|
arch: amd64
|
|
- os: macos-latest
|
|
arch: arm64
|
|
- os: windows-latest
|
|
arch: "386"
|
|
- os: windows-latest
|
|
arch: amd64
|
|
runs-on: ${{ matrix.platform.os }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: Install Go
|
|
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
check-latest: true
|
|
cache-dependency-path: "**/go.sum"
|
|
- name: Run tests
|
|
env:
|
|
GOARCH: ${{ matrix.platform.arch }}
|
|
run: make test-short
|
|
|
|
test-compatibility:
|
|
runs-on: ubuntu-latest
|
|
needs: [compatibility-test]
|
|
if: always()
|
|
steps:
|
|
- name: Test if compatibility-test passed
|
|
run: |
|
|
echo ${{ needs.compatibility-test.result }}
|
|
test ${{ needs.compatibility-test.result }} == "success"
|