Skip to content

fix: sort epInfos to process InfraNIC first before EndpointCreate #20188

fix: sort epInfos to process InfraNIC first before EndpointCreate

fix: sort epInfos to process InfraNIC first before EndpointCreate #20188

Workflow file for this run

name: golangci-lint
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
merge_group:
types:
- checks_requested
permissions:
contents: read
jobs:
generate:
name: Generate BPF Handling Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Run go generate
run: make bpf-lib && go generate ./...
- name: Upload generated code
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: generated-bpf-program-code
path: ./bpf-prog/azure-block-iptables/pkg/blockservice
golangci:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: Lint
needs: generate
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
- name: Download generated code
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: generated-bpf-program-code
path: ./bpf-prog/azure-block-iptables/pkg/blockservice
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: latest
args: ${{ (github.event_name == 'pull_request' && format('--new-from-rev=origin/{0}', github.base_ref)) || (github.event_name == 'merge_group' && format('--new-from-rev={0}', github.event.merge_group.base_sha)) || '' }} --config=.golangci.yml --timeout=25m