Skip to content

Commit 59bcea8

Browse files
authored
Merge pull request #10344 from ipfs/release-v0.27.0
Release: v0.27.0 [skip changelog]
2 parents 096f510 + 10e6a20 commit 59bcea8

Some content is hidden

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

76 files changed

+2068
-1544
lines changed

.github/dependabot.yml

-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
version: 2
22
updates:
3-
- package-ecosystem: gomod
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: "11:00"
8-
open-pull-requests-limit: 10
9-
labels:
10-
- "topic/dependencies"
113
- package-ecosystem: "github-actions"
124
directory: "/"
135
schedule:

.github/workflows/build.yml

+9-29
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
run:
3737
shell: bash
3838
steps:
39-
- uses: actions/setup-go@v4
39+
- uses: actions/setup-go@v5
4040
with:
4141
go-version: ${{ env.GO_VERSION }}
4242
- uses: actions/checkout@v4
4343
- run: make build
44-
- uses: actions/upload-artifact@v3
44+
- uses: actions/upload-artifact@v4
4545
with:
4646
name: kubo
4747
path: cmd/ipfs/ipfs
@@ -53,44 +53,24 @@ jobs:
5353
run:
5454
shell: bash
5555
steps:
56-
- uses: actions/setup-node@v3
56+
- uses: actions/setup-node@v4
5757
with:
5858
node-version: lts/*
59-
- uses: actions/download-artifact@v3
59+
- uses: actions/download-artifact@v4
6060
with:
6161
name: kubo
6262
path: cmd/ipfs
6363
- run: chmod +x cmd/ipfs/ipfs
6464
- run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
6565
id: npm-cache-dir
66-
- uses: actions/cache@v3
66+
- uses: actions/cache@v4
6767
with:
6868
path: ${{ steps.npm-cache-dir.outputs.dir }}
6969
key: ${{ runner.os }}-${{ github.job }}-helia-${{ hashFiles('**/package-lock.json') }}
7070
restore-keys: ${{ runner.os }}-${{ github.job }}-helia-
7171
- run: sudo apt update
7272
- run: sudo apt install -y libxkbcommon0 libxdamage1 libgbm1 libpango-1.0-0 libcairo2 # dependencies for playwright
73-
- uses: actions/checkout@v4
74-
with:
75-
repository: ipfs/helia
76-
fetch-depth: 1
77-
path: interop
78-
ref: 'ea5533c794df844c9fb9812e85e2f5e6af09efeb' # temporary while this commit is being released
79-
- name: Checkout latest tag
80-
run: |
81-
exit 0 # temporary while ea5533c794df844c9fb9812e85e2f5e6af09efeb is released
82-
export TAG="$(git describe --tags --abbrev=0)"
83-
echo "Running tests against: $TAG"
84-
git checkout "$TAG"
85-
working-directory: interop
86-
- run: npm install
87-
working-directory: interop
88-
- run: npm run build
89-
working-directory: interop
90-
- run: npm install
91-
working-directory: interop/packages/interop
92-
- run: npm test
93-
working-directory: interop/packages/interop
73+
- run: npx --package @helia/interop helia-interop
9474
env:
9575
KUBO_BINARY: ${{ github.workspace }}/cmd/ipfs/ipfs
9676
ipfs-webui:
@@ -109,10 +89,10 @@ jobs:
10989
run:
11090
shell: bash
11191
steps:
112-
- uses: actions/setup-node@v3
92+
- uses: actions/setup-node@v4
11393
with:
11494
node-version: 18.14.0
115-
- uses: actions/download-artifact@v3
95+
- uses: actions/download-artifact@v4
11696
with:
11797
name: kubo
11898
path: cmd/ipfs
@@ -124,7 +104,7 @@ jobs:
124104
- run: |
125105
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
126106
id: npm-cache-dir
127-
- uses: actions/cache@v3
107+
- uses: actions/cache@v4
128108
with:
129109
path: ${{ steps.npm-cache-dir.outputs.dir }}
130110
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/package-lock.json') }}

.github/workflows/codeql-analysis.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@ jobs:
3131
- name: Checkout repository
3232
uses: actions/checkout@v4
3333

34+
- name: Setup Go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version: 1.21.x
38+
3439
# Initializes the CodeQL tools for scanning.
3540
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v2
41+
uses: github/codeql-action/init@v3
3742
with:
3843
languages: go
3944

4045
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v2
46+
uses: github/codeql-action/autobuild@v3
4247

4348
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@v2
49+
uses: github/codeql-action/analyze@v3

.github/workflows/docker-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run:
2727
shell: bash
2828
steps:
29-
- uses: actions/setup-go@v4
29+
- uses: actions/setup-go@v5
3030
with:
3131
go-version: 1.21.x
3232
- uses: actions/checkout@v4

.github/workflows/docker-image.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
uses: actions/checkout@v4
4141

4242
- name: Set up QEMU
43-
uses: docker/setup-qemu-action@v2
43+
uses: docker/setup-qemu-action@v3
4444

4545
- name: Set up Docker Buildx
46-
uses: docker/setup-buildx-action@v2
46+
uses: docker/setup-buildx-action@v3
4747

4848
- name: Cache Docker layers
49-
uses: actions/cache@v3
49+
uses: actions/cache@v4
5050
with:
5151
path: /tmp/.buildx-cache
5252
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -63,7 +63,7 @@ jobs:
6363
shell: bash
6464

6565
- name: Log in to Docker Hub
66-
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
66+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
6767
with:
6868
username: ${{ vars.DOCKER_USERNAME }}
6969
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -72,7 +72,7 @@ jobs:
7272
# builds, only one platform is being loaded into the cache. This would
7373
# prevent us from testing the other platforms.
7474
- name: Build Docker image (linux/amd64)
75-
uses: docker/build-push-action@v4
75+
uses: docker/build-push-action@v5
7676
with:
7777
platforms: linux/amd64
7878
context: .
@@ -84,7 +84,7 @@ jobs:
8484
cache-to: type=local,dest=/tmp/.buildx-cache-new
8585

8686
- name: Build Docker image (linux/arm/v7)
87-
uses: docker/build-push-action@v4
87+
uses: docker/build-push-action@v5
8888
with:
8989
platforms: linux/arm/v7
9090
context: .
@@ -96,7 +96,7 @@ jobs:
9696
cache-to: type=local,dest=/tmp/.buildx-cache-new
9797

9898
- name: Build Docker image (linux/arm64/v8)
99-
uses: docker/build-push-action@v4
99+
uses: docker/build-push-action@v5
100100
with:
101101
platforms: linux/arm64/v8
102102
context: .
@@ -116,7 +116,7 @@ jobs:
116116
# This will only push the previously built images.
117117
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.push == 'true'
118118
name: Publish to Docker Hub
119-
uses: docker/build-push-action@v4
119+
uses: docker/build-push-action@v5
120120
with:
121121
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
122122
context: .

.github/workflows/gateway-conformance.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
steps:
4242
# 1. Download the gateway-conformance fixtures
4343
- name: Download gateway-conformance fixtures
44-
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.4
44+
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.5
4545
with:
4646
output: fixtures
4747

4848
# 2. Build the kubo-gateway
4949
- name: Setup Go
50-
uses: actions/setup-go@v4
50+
uses: actions/setup-go@v5
5151
with:
5252
go-version: 1.21.x
5353
- uses: protocol/cache-go-action@v1
@@ -96,7 +96,7 @@ jobs:
9696

9797
# 6. Run the gateway-conformance tests
9898
- name: Run gateway-conformance tests
99-
uses: ipfs/gateway-conformance/.github/actions/test@v0.4
99+
uses: ipfs/gateway-conformance/.github/actions/test@v0.5
100100
with:
101101
gateway-url: http://127.0.0.1:8080
102102
json: output.json
@@ -111,13 +111,13 @@ jobs:
111111
run: cat output.md >> $GITHUB_STEP_SUMMARY
112112
- name: Upload HTML report
113113
if: failure() || success()
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116116
name: gateway-conformance.html
117117
path: output.html
118118
- name: Upload JSON report
119119
if: failure() || success()
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: gateway-conformance.json
123123
path: output.json
@@ -129,15 +129,15 @@ jobs:
129129
steps:
130130
# 1. Download the gateway-conformance fixtures
131131
- name: Download gateway-conformance fixtures
132-
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.4
132+
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.5
133133
with:
134134
output: fixtures
135135

136136
# 2. Build the kubo-gateway
137137
- name: Setup Go
138-
uses: actions/setup-go@v4
138+
uses: actions/setup-go@v5
139139
with:
140-
go-version: 1.20.x
140+
go-version: 1.21.x
141141
- uses: protocol/cache-go-action@v1
142142
with:
143143
name: ${{ github.job }}
@@ -202,7 +202,7 @@ jobs:
202202

203203
# 9. Run the gateway-conformance tests over libp2p
204204
- name: Run gateway-conformance tests over libp2p
205-
uses: ipfs/gateway-conformance/.github/actions/test@v0.4
205+
uses: ipfs/gateway-conformance/.github/actions/test@v0.5
206206
with:
207207
gateway-url: http://127.0.0.1:8092
208208
json: output.json
@@ -217,13 +217,13 @@ jobs:
217217
run: cat output.md >> $GITHUB_STEP_SUMMARY
218218
- name: Upload HTML report
219219
if: failure() || success()
220-
uses: actions/upload-artifact@v3
220+
uses: actions/upload-artifact@v4
221221
with:
222222
name: gateway-conformance-libp2p.html
223223
path: output.html
224224
- name: Upload JSON report
225225
if: failure() || success()
226-
uses: actions/upload-artifact@v3
226+
uses: actions/upload-artifact@v4
227227
with:
228228
name: gateway-conformance-libp2p.json
229229
path: output.json

.github/workflows/gobuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run:
2929
shell: bash
3030
steps:
31-
- uses: actions/setup-go@v4
31+
- uses: actions/setup-go@v5
3232
with:
3333
go-version: 1.21.x
3434
- uses: actions/checkout@v4

.github/workflows/golang-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v4
2626
with:
2727
submodules: recursive
28-
- uses: actions/setup-go@v4
28+
- uses: actions/setup-go@v5
2929
with:
3030
go-version: "1.21.x"
3131
- name: Check that go.mod is tidy

.github/workflows/golint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run:
3030
shell: bash
3131
steps:
32-
- uses: actions/setup-go@v4
32+
- uses: actions/setup-go@v5
3333
with:
3434
go-version: 1.21.x
3535
- uses: actions/checkout@v4

.github/workflows/gotest.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
shell: bash
3131
steps:
3232
- name: Set up Go
33-
uses: actions/setup-go@v4
33+
uses: actions/setup-go@v5
3434
with:
3535
go-version: 1.21.x
3636
- name: Check out Kubo
@@ -45,7 +45,7 @@ jobs:
4545
make -j "$PARALLEL" test/unit/gotest.junit.xml &&
4646
[[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
4747
- name: Upload coverage to Codecov
48-
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
48+
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
4949
if: failure() || success()
5050
with:
5151
name: unittests
@@ -73,32 +73,32 @@ jobs:
7373
mv go.sum.bak go.sum
7474
working-directory: docs/examples/kubo-as-a-library
7575
- name: Create a proper JUnit XML report
76-
uses: pl-strflt/gotest-json-to-junit-xml@v1
76+
uses: ipdxco/gotest-json-to-junit-xml@v1
7777
with:
7878
input: test/unit/gotest.json
7979
output: test/unit/gotest.junit.xml
8080
if: failure() || success()
8181
- name: Archive the JUnit XML report
82-
uses: actions/upload-artifact@v3
82+
uses: actions/upload-artifact@v4
8383
with:
8484
name: unit
8585
path: test/unit/gotest.junit.xml
8686
if: failure() || success()
8787
- name: Create a HTML report
88-
uses: pl-strflt/junit-xml-to-html@v1
88+
uses: ipdxco/junit-xml-to-html@v1
8989
with:
9090
mode: no-frames
9191
input: test/unit/gotest.junit.xml
9292
output: test/unit/gotest.html
9393
if: failure() || success()
9494
- name: Archive the HTML report
95-
uses: actions/upload-artifact@v3
95+
uses: actions/upload-artifact@v4
9696
with:
9797
name: html
9898
path: test/unit/gotest.html
9999
if: failure() || success()
100100
- name: Create a Markdown report
101-
uses: pl-strflt/junit-xml-to-html@v1
101+
uses: ipdxco/junit-xml-to-html@v1
102102
with:
103103
mode: summary
104104
input: test/unit/gotest.junit.xml

0 commit comments

Comments
 (0)