[mdatagen] Add semconv reference for metrics in metadata schema #15546
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-and-test-arm | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+*" | |
| merge_group: | |
| types: [checks_requested] | |
| pull_request: | |
| env: | |
| TEST_RESULTS: testbed/tests/results/junit/results.xml | |
| # Make sure to exit early if cache segment download times out after 2 minutes. | |
| # We limit cache download as a whole to 5 minutes. | |
| SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 | |
| permissions: read-all | |
| # Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| arm-unittest-matrix: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04-arm, macos-14] | |
| if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run ARM') || github.event_name == 'push' || github.event_name == 'merge_group') }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: oldstable | |
| cache: false | |
| - name: Cache Go | |
| id: go-cache | |
| timeout-minutes: 5 | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| ~/go/bin | |
| ~/go/pkg/mod | |
| key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }} | |
| - name: Install dependencies | |
| if: steps.go-cache.outputs.cache-hit != 'true' | |
| run: make gomoddownload | |
| - name: Run Unit Tests | |
| run: make -j4 gotest | |
| arm-unittest: | |
| if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run ARM') || github.event_name == 'push' || github.event_name == 'merge_group') }} | |
| runs-on: ubuntu-latest | |
| needs: [arm-unittest-matrix] | |
| steps: | |
| - name: Print result | |
| run: echo ${{ needs.arm-unittest-matrix.result }} | |
| - name: Interpret result | |
| run: | | |
| if [[ success == ${{ needs.arm-unittest-matrix.result }} ]] | |
| then | |
| echo "All matrix jobs passed!" | |
| else | |
| echo "One or more matrix jobs failed." | |
| false | |
| fi |