Skip to content

Commit 81367c0

Browse files
committed
merging with main
2 parents 8b60ffd + b4c5f50 commit 81367c0

File tree

362 files changed

+21692
-7258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+21692
-7258
lines changed

.github/dependabot.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,4 @@ updates:
3131
labels: ["lang/go", "area/dependencies"]
3232
ignore:
3333
- dependency-name: "github.com/inspektor-gadget/inspektor-gadget"
34-
- dependency-name: "google.golang.org/grpc"
35-
open-pull-requests-limit: 10
36-
- package-ecosystem: "gomod"
37-
directory: "/hack/tools"
38-
schedule:
39-
interval: "daily"
40-
reviewers:
41-
- "microsoft/retina"
42-
commit-message:
43-
prefix: "deps"
44-
labels: ["lang/go", "area/infra", "area/dependencies"]
4534
open-pull-requests-limit: 10

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If this pull request is related to any issue, please mention it here. Additional
88

99
## Checklist
1010

11-
- [ ] I have read the [contributing documentation](https://retina.sh/docs/contributing).
11+
- [ ] I have read the [contributing documentation](https://retina.sh/docs/Contributing/overview).
1212
- [ ] I signed and signed-off the commits (`git commit -S -s ...`). See [this documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification) on signing commits.
1313
- [ ] I have correctly attributed the author(s) of the code.
1414
- [ ] I have tested the changes locally.

.github/workflows/codeql.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ jobs:
2828
steps:
2929
- name: Checkout repository
3030
if: env.IS_NOT_MERGE_GROUP
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
- name: Setup go
3333
if: env.IS_NOT_MERGE_GROUP
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3535
with:
3636
go-version-file: go.mod
3737
- name: Initialize CodeQL
3838
if: env.IS_NOT_MERGE_GROUP
39-
uses: github/codeql-action/init@v3
39+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4040
with:
4141
languages: ${{ matrix.language }}
4242
- name: Autobuild
4343
if: env.IS_NOT_MERGE_GROUP
44-
uses: github/codeql-action/autobuild@v3
44+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4545
- name: Perform CodeQL Analysis
4646
if: env.IS_NOT_MERGE_GROUP
47-
uses: github/codeql-action/analyze@v3
47+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4848
with:
4949
category: "/language:${{matrix.language}}"

.github/workflows/commit-message.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
commit-message:
1313
if: ${{ github.event_name != 'merge_group' }}
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: verify_commit_message
1717
env:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Daily Scale Test
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
11+
jobs:
12+
call-scale-test:
13+
uses: ./.github/workflows/scale-test.yaml
14+
with:
15+
num_deployments: 1000
16+
num_replicas: 20
17+
num_netpol: 0
18+
num_nodes: 1000
19+
cleanup: true
20+
secrets: inherit

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
- name: Setup Pages
2626
uses: actions/configure-pages@v5
2727
- uses: actions/setup-node@v4

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Setup go
25-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2626
with:
2727
go-version-file: go.mod
2828
- run: go version

.github/workflows/golangci-lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
GOOS: ${{ matrix.goos }}
2121
GOARCH: ${{ matrix.goarch }}
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
if: env.IS_NOT_MERGE_GROUP
2525
with:
2626
fetch-depth: 0
27-
- uses: actions/setup-go@v5
27+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2828
if: env.IS_NOT_MERGE_GROUP
2929
with:
3030
go-version-file: go.mod
3131
- name: golangci-lint
3232
if: env.IS_NOT_MERGE_GROUP
3333
uses: golangci/golangci-lint-action@v6
3434
with:
35-
version: v1.62
35+
version: latest
3636
args: --concurrency 4 --verbose --config=.golangci.yaml --timeout=25m
3737
only-new-issues: true
3838
skip-cache: true

.github/workflows/goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 0
2020
- name: Set up Go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2222
with:
2323
go-version-file: go.mod
2424
- name: Run GoReleaser build
@@ -33,11 +33,11 @@ jobs:
3333
if: github.ref_type == 'tag'
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
fetch-depth: 0
3939
- name: Set up Go
40-
uses: actions/setup-go@v5
40+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
4141
with:
4242
go-version-file: go.mod
4343
- name: Run GoReleaser release

.github/workflows/images.yaml

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727

28-
- uses: actions/setup-go@v5
28+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
2929
with:
3030
go-version-file: go.mod
3131
- run: go version
@@ -52,6 +52,7 @@ jobs:
5252
IMAGE_NAMESPACE=${{ github.repository }} \
5353
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
5454
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
55+
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
5556
BUILDX_ACTION=--push
5657
else
5758
make retina-image \
@@ -73,9 +74,9 @@ jobs:
7374

7475
steps:
7576
- name: Checkout code
76-
uses: actions/checkout@v4
77+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7778

78-
- uses: actions/setup-go@v5
79+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
7980
with:
8081
go-version-file: go.mod
8182
- run: go version
@@ -102,6 +103,7 @@ jobs:
102103
IMAGE_NAMESPACE=${{ github.repository }} \
103104
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
104105
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
106+
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
105107
WINDOWS_YEARS=${{ matrix.year }} \
106108
BUILDX_ACTION=--push
107109
else
@@ -124,9 +126,9 @@ jobs:
124126

125127
steps:
126128
- name: Checkout code
127-
uses: actions/checkout@v4
129+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
128130

129-
- uses: actions/setup-go@v5
131+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
130132
with:
131133
go-version-file: go.mod
132134
- run: go version
@@ -153,6 +155,7 @@ jobs:
153155
IMAGE_NAMESPACE=${{ github.repository }} \
154156
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
155157
IMAGE_REGISTRY=${{ vars.ACR_NAME }} \
158+
APP_INSIGHTS_ID=${{ secrets.AZURE_APP_INSIGHTS_KEY }} \
156159
BUILDX_ACTION=--push
157160
else
158161
make retina-operator-image \
@@ -173,9 +176,9 @@ jobs:
173176

174177
steps:
175178
- name: Checkout code
176-
uses: actions/checkout@v4
179+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
177180

178-
- uses: actions/setup-go@v5
181+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
179182
with:
180183
go-version-file: go.mod
181184
- run: go version
@@ -222,9 +225,9 @@ jobs:
222225

223226
steps:
224227
- name: Checkout code
225-
uses: actions/checkout@v4
228+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
226229

227-
- uses: actions/setup-go@v5
230+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
228231
with:
229232
go-version-file: go.mod
230233
- run: go version
@@ -279,7 +282,7 @@ jobs:
279282

280283
steps:
281284
- name: Checkout code
282-
uses: actions/checkout@v4
285+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
283286

284287
- name: Setup QEMU
285288
uses: docker/setup-qemu-action@v3
@@ -307,10 +310,10 @@ jobs:
307310

308311
steps:
309312
- name: Checkout code
310-
uses: actions/checkout@v4
313+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
311314

312315
- name: Setup go
313-
uses: actions/setup-go@v5
316+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
314317
with:
315318
go-version-file: go.mod
316319
- run: go version
@@ -332,18 +335,18 @@ jobs:
332335
set -euo pipefail
333336
go test -v ./test/e2e/. -timeout 60m -tags=e2e -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ github.repository}}
334337
335-
perf:
338+
perf-basic:
336339
if: ${{ github.event_name == 'merge_group' && success('manifests')}}
337-
name: Retina Performance Test
340+
name: Retina Basic Performance Test
338341
runs-on: ubuntu-latest
339342
needs: [manifests]
340343

341344
steps:
342345
- name: Checkout code
343-
uses: actions/checkout@v4
346+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
344347

345348
- name: Setup go
346-
uses: actions/setup-go@v5
349+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
347350
with:
348351
go-version-file: go.mod
349352
- run: go version
@@ -364,4 +367,38 @@ jobs:
364367
shell: bash
365368
run: |
366369
set -euo pipefail
367-
go test -v ./test/e2e/. -timeout 2h -tags=perf -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ github.repository }}
370+
go test -v ./test/e2e/. -timeout 2h -tags=perf -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ github.repository }} -retina-mode=basic
371+
372+
perf-advanced:
373+
if: ${{ github.event_name == 'merge_group' && success('manifests')}}
374+
name: Retina Advanced Performance Test
375+
runs-on: ubuntu-latest
376+
needs: [manifests]
377+
378+
steps:
379+
- name: Checkout code
380+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
381+
382+
- name: Setup go
383+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
384+
with:
385+
go-version-file: go.mod
386+
- run: go version
387+
388+
- name: Az CLI login
389+
uses: azure/login@v2
390+
if: ${{ github.event_name == 'merge_group' }}
391+
with:
392+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
393+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
394+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION }}
395+
396+
- name: Run Perf Tests
397+
env:
398+
AZURE_APP_INSIGHTS_KEY: ${{ secrets.AZURE_APP_INSIGHTS_KEY }}
399+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION }}
400+
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
401+
shell: bash
402+
run: |
403+
set -euo pipefail
404+
go test -v ./test/e2e/. -timeout 2h -tags=perf -count=1 -args -image-tag=$(make version) -image-registry=${{ vars.ACR_NAME }} -image-namespace=${{ github.repository }} -retina-mode=advanced

0 commit comments

Comments
 (0)