@@ -321,6 +321,127 @@ jobs:
321321 if : always()
322322 run : bash ./scripts/dashboard/format_results.sh ${{job.status}} ${{github.job}}/${{matrix.container.image}}-${{matrix.container.version}} ${{github.workspace}}
323323
324+ oss-metrics-tests :
325+ name : Metrics Integration Tests - Official OSS Images
326+ needs : build-unsigned-snapshot
327+ if : ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
328+ runs-on : ubuntu-22.04
329+ strategy :
330+ matrix :
331+ container :
332+ - image : " bookworm"
333+ version : " stable"
334+ release : " debian"
335+ - image : " bookworm"
336+ version : " mainline"
337+ release : " debian"
338+ - image : " alpine"
339+ version : " stable"
340+ release : " alpine"
341+ - image : " alpine"
342+ version : " mainline"
343+ release : " alpine"
344+ steps :
345+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
346+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
347+ with :
348+ go-version-file : ' go.mod'
349+ cache : false
350+ - name : Download Packages
351+ uses : actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
352+ with :
353+ name : nginx-agent-unsigned-snapshots
354+ path : build
355+
356+ - name : Create Results Directory
357+ run : mkdir -p ${{ github.workspace }}/test/dashboard/logs/${{ github.job }}/${{matrix.container.image}}-${{matrix.container.version}}
358+
359+ - name : Start Promtail
360+ uses : ./.github/actions/start-promtail
361+ with :
362+ loki_url : ${{ secrets.LOKI_DASHBOARD_URL }}
363+
364+ - name : Run Integration Tests
365+ run : |
366+ go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
367+ CONTAINER_NGINX_IMAGE_REGISTRY="docker-registry.nginx.com" \
368+ TAG="${{ matrix.container.version }}-${{ matrix.container.image }}" \
369+ OS_RELEASE="${{ matrix.container.release }}" OS_VERSION="${{ matrix.container.version }}" \
370+ make metrics-test | tee ${{github.workspace}}/test/dashboard/logs/${{github.job}}/${{matrix.container.image}}-${{matrix.container.version}}/raw_logs.log
371+ exit "${PIPESTATUS[0]}"
372+
373+ - name : Format Results
374+ if : always()
375+ run : bash ./scripts/dashboard/format_results.sh ${{job.status}} ${{github.job}}/${{matrix.container.image}}-${{matrix.container.version}} ${{github.workspace}}
376+
377+ plus-metrics-tests :
378+ name : Metrics Integration Tests - Official Plus Images
379+ needs : build-unsigned-snapshot
380+ if : ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.head_ref, 'dependabot-') }}
381+ runs-on : ubuntu-22.04
382+ strategy :
383+ matrix :
384+ container :
385+ - image : " alpine"
386+ version : " 3.22"
387+ plus : " r35"
388+ release : " alpine"
389+ path : " /nginx-plus/agent"
390+ - image : " alpine"
391+ version : " 3.21"
392+ plus : " r34"
393+ release : " alpine"
394+ path : " /nginx-plus/agent"
395+ - image : " debian"
396+ version : " bookworm"
397+ plus : " r35"
398+ release : " debian"
399+ path : " /nginx-plus/agent"
400+ - image : " debian"
401+ version : " bookworm"
402+ plus : " r34"
403+ release : " debian"
404+ path : " /nginx-plus/agent"
405+ steps :
406+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
407+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
408+ with :
409+ go-version-file : ' go.mod'
410+ cache : false
411+ - name : Download Packages
412+ uses : actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
413+ with :
414+ name : nginx-agent-unsigned-snapshots
415+ path : build
416+ - name : Login to Docker Registry
417+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
418+ with :
419+ registry : ${{ secrets.TEST_REGISTRY_URL }}
420+ username : ${{ secrets.REGISTRY_USERNAME }}
421+ password : ${{ secrets.REGISTRY_PASSWORD }}
422+
423+ - name : Create Results Directory
424+ run : mkdir -p ${{ github.workspace }}/test/dashboard/logs/${{ github.job }}/${{matrix.container.image}}-${{matrix.container.version}}
425+
426+ - name : Start Promtail
427+ uses : ./.github/actions/start-promtail
428+ with :
429+ loki_url : ${{ secrets.LOKI_DASHBOARD_URL }}
430+
431+ - name : Run Integration Tests
432+ run : |
433+ go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
434+ CONTAINER_NGINX_IMAGE_REGISTRY="${{ secrets.TEST_REGISTRY_URL }}" \
435+ TAG="${{ matrix.container.plus }}-${{ matrix.container.image }}-${{ matrix.container.version }}" \
436+ OS_RELEASE="${{ matrix.container.release }}" OS_VERSION="${{ matrix.container.version }}" IMAGE_PATH="${{ matrix.container.path }}" \
437+ NGINX_LICENSE_JWT="${{ secrets.TEST_JWT }}" \
438+ make metrics-test | tee ${{github.workspace}}/test/dashboard/logs/${{github.job}}/${{matrix.container.image}}-${{matrix.container.version}}/raw_logs.log
439+ exit "${PIPESTATUS[0]}"
440+
441+ - name : Format Results
442+ if : always()
443+ run : bash ./scripts/dashboard/format_results.sh ${{job.status}} ${{github.job}}/${{matrix.container.image}}-${{matrix.container.version}} ${{github.workspace}}
444+
324445 performance-tests :
325446 name : Performance Tests
326447 runs-on : ubuntu-22.04
0 commit comments