Skip to content

Commit 05199aa

Browse files
authored
Merge branch 'main' into add-config-option-to-disable-initial-check
2 parents 9951538 + 74c56ee commit 05199aa

File tree

117 files changed

+3976
-4412
lines changed

Some content is hidden

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

117 files changed

+3976
-4412
lines changed

.github/dependabot.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@
44
version: 2
55
updates:
66
- package-ecosystem: "github-actions"
7-
open-pull-requests-limit: 30
7+
open-pull-requests-limit: 40
88
directory: "/"
99
labels:
1010
- "🤖 Dependencies"
1111
schedule:
1212
interval: "daily"
1313
- package-ecosystem: "gomod"
14-
open-pull-requests-limit: 30
14+
open-pull-requests-limit: 40
15+
allow:
16+
# Allow both direct and indirect updates for all packages.
17+
- dependency-type: "all"
1518
directories:
1619
- "**/*"
1720
labels:
@@ -43,6 +46,34 @@ updates:
4346
azure-modules:
4447
patterns:
4548
- "github.com/Azure/**"
49+
ebitengine-modules:
50+
patterns:
51+
- "github.com/ebitengine/**"
52+
go-logr-modules:
53+
patterns:
54+
- "github.com/go-logr/**"
55+
go-ole-modules:
56+
patterns:
57+
- "github.com/go-ole/**"
58+
go-redis-modules:
59+
patterns:
60+
- "github.com/redis/go-redis/**"
61+
grpc-gateway-modules:
62+
patterns:
63+
- "github.com/grpc-ecosystem/grpc-gateway/**"
64+
shirou-modules:
65+
patterns:
66+
- "github.com/shirou/gopsutil"
67+
- "github.com/shirou/gopsutil/**"
68+
klauspost-modules:
69+
patterns:
70+
- "github.com/klauspost/**"
71+
snappy-modules:
72+
patterns:
73+
- "github.com/golang/snappy"
74+
tklauser-modules:
75+
patterns:
76+
- "github.com/tklauser/**"
4677
docker-modules:
4778
patterns:
4879
- "github.com/docker/**"

.github/labeler.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/auto-labeler.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
name: Auto labeler
1+
name: auto-labeler
22
on:
3-
issues:
4-
types: [ opened, edited, milestoned ]
5-
pull_request_target:
6-
types: [ opened ]
7-
permissions:
8-
contents: read
9-
issues: write
10-
pull-requests: write
11-
statuses: write
12-
checks: write
3+
issues:
4+
types: [opened, edited, milestoned]
5+
pull_request_target:
6+
types: [opened, edited, reopened, synchronize]
7+
workflow_dispatch:
138
jobs:
14-
labeler:
15-
runs-on: ubuntu-latest
16-
if: ${{ github.actor != 'dependabot[bot]' }}
17-
steps:
18-
- name: Check Labels
19-
id: labeler
20-
uses: fuxingloh/multi-labeler@v4
21-
with:
22-
github-token: ${{secrets.GITHUB_TOKEN}}
9+
auto-labeler:
10+
uses: gofiber/.github/.github/workflows/auto-labeler.yml@main
11+
secrets:
12+
github-token: ${{ secrets.ISSUE_PR_TOKEN }}
13+
with:
14+
config-path: .github/labeler.yml
15+
config-repository: gofiber/.github

.github/workflows/benchmark.yml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ on:
1010
paths:
1111
- "**"
1212
- "!**.md"
13-
1413
permissions:
1514
deployments: write
1615
contents: write
17-
1816
name: Benchmark
1917
jobs:
2018
changes:
@@ -23,8 +21,7 @@ jobs:
2321
pull-requests: read
2422
steps:
2523
- name: Checkout repository
26-
uses: actions/checkout@v4
27-
24+
uses: actions/checkout@v6
2825
- name: Generate filters
2926
id: filter-setup
3027
run: |
@@ -33,15 +30,13 @@ jobs:
3330
echo "$filters" >> $GITHUB_OUTPUT
3431
echo "EOF" >> $GITHUB_OUTPUT
3532
shell: bash
36-
3733
- name: Filter changes
3834
id: filter
3935
uses: dorny/paths-filter@v3
4036
with:
4137
filters: ${{ steps.filter-setup.outputs.filters }}
4238
outputs:
4339
packages: ${{ steps.filter.outputs.changes || '[]' }}
44-
4540
compare:
4641
needs: changes
4742
runs-on: ubuntu-latest
@@ -53,36 +48,39 @@ jobs:
5348
fail-fast: false
5449
steps:
5550
- name: Fetch Repository
56-
uses: actions/checkout@v4
57-
51+
uses: actions/checkout@v6
5852
- name: Install Go
59-
uses: actions/setup-go@v5
53+
if: ${{ matrix.package != 'clickhouse' }}
54+
uses: actions/setup-go@v6
6055
with:
6156
# NOTE: Keep this in sync with the version from go.mod
62-
go-version: "1.23.x"
63-
57+
go-version: "1.24.x"
6458
- name: Setup Node.js
65-
uses: actions/setup-node@v4
59+
uses: actions/setup-node@v6
6660
with:
6761
node-version: '20'
68-
6962
- name: Install Cloudflare Worker
7063
if: ${{ matrix.package == 'cloudflarekv' }}
71-
run : |
64+
run: |
7265
.github/scripts/initialize-wrangler.sh
7366
cd cloudflarekv && npx wrangler dev &
7467
npx wait-on tcp:8787
75-
76-
- name: Install etcd
77-
if: ${{ matrix.package == 'etcd' }}
68+
- name: Install Coherence
69+
if: ${{ matrix.package == 'coherence' }}
70+
run: |
71+
docker run -d -p 1408:1408 -p 30000:30000 ghcr.io/oracle/coherence-ce:22.06.5
72+
sleep 30
73+
- name: Setup Redis
74+
if: ${{ matrix.package == 'rueidis' || matrix.package == 'valkey' }}
75+
uses: shogo82148/actions-setup-redis@v1
76+
with:
77+
redis-version: '7.x'
78+
auto-start: 'false'
79+
- name: Run Redis
80+
if: ${{ matrix.package == 'rueidis' || matrix.package == 'valkey' }}
7881
run: |
79-
docker run -d --name Etcd-server \
80-
--publish 2379:2379 \
81-
--publish 2380:2380 \
82-
--env ALLOW_NONE_AUTHENTICATION=yes \
83-
--env ETCD_ADVERTISE_CLIENT_URLS=http://etcd-server:2379 \
84-
bitnami/etcd:latest
85-
82+
redis-server --port 6379 &
83+
sleep 15
8684
- name: Install MSSQL
8785
if: ${{ matrix.package == 'mssql' }}
8886
run: |
@@ -99,7 +97,6 @@ jobs:
9997
--health-start-period 10s \
10098
--health-retries 20 \
10199
mcmoe/mssqldocker:latest
102-
103100
- name: Run Benchmarks
104101
working-directory: ${{ matrix.package }}
105102
run: |
@@ -119,6 +116,7 @@ jobs:
119116
TEST_CLICKHOUSE_IMAGE: "clickhouse/clickhouse-server:23-alpine"
120117
TEST_COUCHBASE_IMAGE: "couchbase:enterprise-7.6.5"
121118
TEST_DYNAMODB_IMAGE: amazon/dynamodb-local:latest
119+
TEST_ETCD_IMAGE: gcr.io/etcd-development/etcd:v3.6.6
122120
TEST_MEMCACHED_IMAGE: "memcached:latest"
123121
TEST_MINIO_IMAGE: "docker.io/minio/minio:latest"
124122
TEST_MONGODB_IMAGE: "docker.io/mongo:7"
@@ -130,15 +128,13 @@ jobs:
130128
TEST_SURREALDB_IMAGE: "surrealdb/surrealdb:latest"
131129
TEST_VALKEY_IMAGE: "valkey/valkey:8"
132130
COHERENCE_LOG_LEVEL: "ERROR"
133-
134131
- name: Get Previous Benchmark Results
135132
uses: actions/cache@v4
136133
with:
137134
path: ./cache
138135
key: ${{ runner.os }}-benchmark-${{ matrix.package }}
139-
140136
- name: Save Benchmark Results
141-
uses: benchmark-action/[email protected].4
137+
uses: benchmark-action/[email protected].7
142138
with:
143139
tool: "go"
144140
output-file-path: ${{ matrix.package }}/output.txt
@@ -150,5 +146,3 @@ jobs:
150146
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }}
151147
auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
152148
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
153-
154-
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
name: Dependabot auto-merge
22
on:
3-
pull_request
4-
3+
workflow_dispatch:
4+
pull_request_target:
55
permissions:
66
contents: write
77
pull-requests: write
8-
98
jobs:
109
wait_for_checks:
1110
runs-on: ubuntu-latest
1211
if: ${{ github.actor == 'dependabot[bot]' }}
1312
steps:
14-
- name: Wait for check is finished
15-
uses: lewagon/[email protected].0
16-
id: wait_for_checks
17-
with:
18-
ref: ${{ github.event.pull_request.head.sha || github.sha }}
19-
running-workflow-name: wait_for_checks
20-
check-regexp: Tests
21-
repo-token: ${{ secrets.PR_TOKEN }}
22-
wait-interval: 10
13+
- name: Wait for check is finished
14+
uses: lewagon/[email protected].1
15+
id: wait_for_checks
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
18+
running-workflow-name: wait_for_checks
19+
check-regexp: Tests
20+
repo-token: ${{ secrets.PR_TOKEN }}
21+
wait-interval: 10
2322
dependabot:
2423
needs: [wait_for_checks]
2524
name: Dependabot auto-merge
@@ -34,8 +33,8 @@ jobs:
3433
- name: Enable auto-merge for Dependabot PRs
3534
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
3635
run: |
37-
gh pr review --approve "$PR_URL"
38-
gh pr merge --auto --merge "$PR_URL"
36+
gh pr review --approve "$PR_URL"
37+
gh pr merge --auto --merge "$PR_URL"
3938
env:
4039
PR_URL: ${{github.event.pull_request.html_url}}
4140
GITHUB_TOKEN: ${{secrets.PR_TOKEN}}

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Golangci-Lint Check
2-
32
on:
43
push:
54
branches:
@@ -18,16 +17,15 @@ on:
1817
- LICENSE
1918
- ".github/ISSUE_TEMPLATE/*.yml"
2019
- ".github/dependabot.yml"
21-
20+
workflow_dispatch:
2221
jobs:
2322
changes:
2423
runs-on: ubuntu-latest
2524
steps:
2625
- name: Fetch Repository
27-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2827
with:
2928
fetch-depth: 0
30-
3129
- name: Generate filters
3230
id: filter-setup
3331
run: |
@@ -39,15 +37,13 @@ jobs:
3937
echo "$testhelpers_filters" >> $GITHUB_OUTPUT
4038
echo "EOF" >> $GITHUB_OUTPUT
4139
shell: bash
42-
4340
- name: Filter changes
4441
id: filter
4542
uses: dorny/paths-filter@v3
4643
with:
4744
filters: ${{ steps.filter-setup.outputs.filters }}
4845
outputs:
4946
packages: ${{ steps.filter.outputs.changes || '[]' }}
50-
5147
lint:
5248
needs: changes
5349
runs-on: ubuntu-latest
@@ -56,7 +52,7 @@ jobs:
5652
package: ${{ fromJSON(needs.changes.outputs.packages || '[]') }}
5753
steps:
5854
- name: Fetch Repository
59-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
6056
- name: Run golangci-lint
6157
uses: reviewdog/action-golangci-lint@v2
6258
with:

0 commit comments

Comments
 (0)